Page 1 of 1

Can eValid tests multi-objects on a page and still succeed

PostPosted: Wed Sep 13, 2017 3:29 pm
by SarahM
Hello.

How do I test for multiple objects on my page and make my tests successful?

Thanks

Re: Can eValid tests multi-objects on a page and still succe

PostPosted: Thu Sep 14, 2017 10:33 am
by eValid
SarahM wrote:Hello.

How do I test for multiple objects on my page and make my tests successful?

Thanks


Good question SarahM.

As you know, eValid can validate any particular fact about a page if you know the element index and the name of the property that you want eValid to check for.

Where it gets tricky is if you want two things to match.

Or more; if you can do it for two you can easily extend the idea for any number of matches.

What you do is arrange the test in series, first having set an OnErrorGoScript so that when a error (a mismatch) is found you have a recovery script that records the mismatch.

The sequence goes like this, for each successive required match.

Use IndexFindElement to locate the specific element.

Here is the manual page for that command and related commands:

http://e-valid.com/Products/Documentati ... indElement

Then you use an IndexValidateObjectProperty command to confirm that the required property name has the specific property name you want.

If the match is successful -- that is, that the script dow not throw a FAIL signal -- the you go on to the next match.

You can put any number of these types of checks in a row.

HINT: If you expect FAILS then put the most-likely to FAIL tests first in your sequence; then you don't waste time doing any successive tests because you test has already FAILED.


-- eValid Support