Bug 465820 - JavaFX toolkit - ListView - check an order of list entries
Summary: JavaFX toolkit - ListView - check an order of list entries
Status: CLOSED WORKSFORME
Alias: None
Product: Jubula (Archived)
Classification: Technology
Component: RC (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 421595 429008
  Show dependency tree
 
Reported: 2015-04-29 10:27 EDT by Maissmaallsmyss Maulhs-Vvuillss CLA
Modified: 2015-05-07 08:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maissmaallsmyss Maulhs-Vvuillss CLA 2015-04-29 10:27:32 EDT
It would be nice to be able to check an order of list entries.
From Customer/PO perspectives it is important to be sure, that a list contain certain values in a certain order, probably to avoid user´s mistakes.

This check is wanted to be automated to be sure this aplication part wont be forgotten to be changed by changes in some other aplication part.

At the moment I have not found any good solution to check that. I could check the the entry is in a list by value, but this check does not prove, that the item´s place is correct. 
There is currently no action to check entry´s existence by index.
If there will be such an action, It would be nice If this action could have a value parameter to check the existence of particular entry by the position, 
and not only if any entry exists by this position at all.
For Trees I am using next module: select entry by coordinates position (action for  graphical components) and than checking text at mouse position within a tree.
For List such action is not available (check text at mouse position). 
                                       
I see the next possible solutions:
* action to check text at mouse position for list;
* action to check text at mouse position on an application level (I find it quite usefull, because such actions may be needed for other components in future, for example for TreeTable);
* action to check entry´s existence by index (better with value parameter when possible);
                                                                                                                      
Component: ListView within Accordion.
Jubula 8.1.2
Comment 1 Alexandra Schladebeck CLA 2015-04-30 11:08:34 EDT
The current way of doing this would be to:

* Select each item you want to check by the expected index it should have
* Check the text of the selected item using "Check Selection of Entry by Value"

My feeling about the automation of this is that the sort mechanism isn't necessarily something I'd primarily check in a UI test. For that reason, I tend against adding an action to check the entry's existence by index. With the method mentioned above, though, you can check the whole list. The only difficulty you will have (with any index-based action like this) is that you will need to know how many items are in the list. Having said that, if you want to check the text and order of all of them, then I assume that this information is available to you. 

Resolving as worksforme but please comment and/or reopen if this doesn't work for you ;)
Comment 2 Oliver Goetz CLA 2015-05-07 08:23:49 EDT
Closed due to comment 1