How does eValid work with values from a drop-down list

How to apply eValid to functional testing of web applications.

How does eValid work with values from a drop-down list

Postby GAlridge » Mon Sep 25, 2017 12:26 pm

Afternoon.

How do you compare values from the list in a drop-down list?

Thanks in advance.
GAlridge
 
Posts: 1
Joined: Mon Sep 25, 2017 12:23 pm

Re: How does eValid work with values from a drop-down list

Postby eValid » Tue Sep 26, 2017 9:06 am

GAlridge wrote:Afternoon.

How do you compare values from the list in a drop-down list?

Thanks in advance.


Thanks for posting GAlridge.

In this situation, when you say "values" [plural] you seem to be implying that you want to make MULTIPLE comparisons.

eValid, as you know, is command-line oriented. So to compare TWO things you need to set up your script to read and compare, and then read and compare.

Assuming you want BOTH facts to be true, this works great, because if both are true then the sequential comparison acts like an AND operation.

If you want to do an "OR" operation, so that one or the other can be false and the test still pass, then you may have to do that kind of logic in a command-line script that you execute using the SystemCall or SystemCallWait command.

It is a VERY GOOD IDEA to make sure that the DOM content you are checking is stable before you run the test. Here are the commands that synchronize first (and thus effectively validate) DOM items:

http://e-valid.com/Products/Documentati ... n.dom.html

Caution: If you want to validate position in the list -- that is, if you expect the position of a particular item to move around -- then you may need to search first using IndexFindElement command, and validate based on that particular DOM SourcIndex value.


-- eValid Support
eValid
 
Posts: 1731
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons