-
Notifications
You must be signed in to change notification settings - Fork 34
Add integration tests for collection estimation page #893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
… a collection estimation page. Addressed to #893
"Selenium.Utils.Robot": Select Random Option From List, - doesn't support option to skip a blank option element. Can I add an argument startIndex, which will indicate the start index in the options list? The idea was to reuse random selection keyword which we implemented earlier. |
@mukeshk Thank you for the good question! Yes, I think we should modify this keyword and re-use it. But I'd suggest to implement it a little differently:
WDYT? |
I was thinking about boolean was not sure how I could manipulate list in
robot script.
I agree with your suggestions. Will check it out.
Thanks and best regards
Mukesh
…On Wed 28 Aug, 2019, 3:45 PM Slava Semushin, ***@***.***> wrote:
@mukeshk <https://github.com/mukeshk> Thank you for the good question!
Yes, I think we should modify this keyword and re-use it. But I'd suggest
to implement it a little differently:
- add parameter "ignoreEmptyOption" and set it to "false" by default
(for backward compatibility)
- use if + Remove Values From List
<http://robotframework.org/robotframework/3.0.3/libraries/Collections.html#Remove%20Values%20From%20List>
to remove an empty value
WDYT?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#893?email_source=notifications&email_token=AAJPE6DWW7JYQAXEC5S72ALQGZF5FA5CNFSM4FGIEJP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5KTVJI#issuecomment-525679269>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJPE6H4SZFCYB2QEJA27BTQGZF5FANCNFSM4FGIEJPQ>
.
|
if we remove empty values from ${options} . Then we will not able to correctly identify the index , since size of array will change.
|
@mukeshk Very good point! I agree that we should use
Should be something like
|
P.S. https://stackoverflow.com/questions/42576003/fetch-value-from-list-in-robot-framework might be helpful. |
in the collection\estimation.html page - for the cell are represented by th instead of td. If I convert the th to td, we lose the bold formatting, should i apply bold tag to the content so that it looks like th - text content. |
We get the data table error after we submit the "add-series-form". |
It's not what I expected actually :) Would it work with
|
Thanks for finding and reporting this! I've done the same -- reported it back to upstream: MarketSquare/robotframework-seleniumlibrary-java#88 As I looked to the sources I found out that due to a little weird behavior of "Table Header Should Contain" we can use it for checking the footer :) See MarketSquare/robotframework-seleniumlibrary-java#89 for details. What do you think? |
P.S. Anyway, it both these keywords won't work for us, we can get elements and their text by CSS/XPath/etc as we do with other elements. |
Hm, you're right. Thank you for letting me know. By the way, if you have a code, it's always better to discuss details in the PR ;) |
You rock !!! it works :) |
Again Table Header Should Contain ... It works. |
The puzzle
884-d2a3ddba
from #884 has to be resolved:mystamps/src/main/java/ru/mystamps/web/controller/CollectionController.java
Line 107 in 9287473
The puzzle was created by Slava Semushin on 20-Jun-18.
I see that we can have at least the following 3 tests:
Before Test Suite:
paid
user (with a passwordtest
)Message should be shown when a collection is empty
/collection/paid/estimation
Series with its price should be taken into account
/series/1
and it to the collection with a some price (let's use 100) and random currency/collection/paid/estimation
pageTable Row Should Contain
for that? orGet Table Cell
)Table Footer Should Contain
for that?)Series without price should be shown but not taken into account
/series/2
Notes:
src/test/robotframework/collection/estimation/logic.robot
fileThe text was updated successfully, but these errors were encountered: