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

How to use eValid to support regression testing.

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

Postby SarahM » Wed Sep 13, 2017 3:29 pm

Hello.

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

Thanks
SarahM
 
Posts: 1
Joined: Wed Sep 13, 2017 3:24 pm

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

Postby eValid » Thu Sep 14, 2017 10:33 am

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
eValid
 
Posts: 1741
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Regression Testing

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