Page 1 of 1

How to check for field input during playback test worked

PostPosted: Tue Jan 23, 2018 12:03 pm
by JamesTG
Morning.

If my test playback puts something in to a field, how can I confirm that the imputed data worked?

Thanks

Re: How to check for field input during playback test worked

PostPosted: Wed Jan 24, 2018 2:11 pm
by eValid
JamesTG wrote:Morning.

If my test playback puts something in to a field, how can I confirm that the imputed data worked?

Thanks


Good question JamesTG.

The eValid commands are VERY reliable, but even so, it is a fair question.

Implanting data into the current page can happen in many different ways.

At playback time that could be a simple as having the [artificial] user type into an input field.

No problem.

But, to find out, after such a command has finished, exactly what was put into the field you need to know:

(1) The sourceIndex of the element.

(2) The name of the property in that DOM element that stores the data.

This will probably require you to use the IndexFindElement command:

http://e-valid.com/Products/Documentati ... ement.html

This will help you find [and set] sourceIndex to the right value.

Then you need to extract the specific value of the named DOM element, using the ValueGetElement command described here:

http://e-valid.com/Products/Documentati ... ation.html

When this command completes the current "ElementValue" string contains what was in that elements specifically named property.

Let us know if you need further help.


-- eValid Support