Using an eValid script to call upon another script

How to apply eValid to functional testing of web applications.

Using an eValid script to call upon another script

Postby IMorris » Mon Jun 12, 2023 2:50 pm

Hello.

Can eValid scripts call one another script during a playback?

Thank you very much.
IMorris
 
Posts: 1
Joined: Mon Jun 12, 2023 2:47 pm

Re: Using an eValid script to call upon another script

Postby eValid » Tue Jun 13, 2023 12:52 pm

IMorris wrote:Hello.

Can eValid scripts call one another script during a playback?

Thank you very much.


Thanks for posting IMorris.

Yes, in part.

There are two commands of importance that you need to know about:

(I) Direct invocation: This is like a method invocation, and you can have some parameters.

CallScript runs with a tree, when done control returns to the invoking script -- just like it is supposed to!

CallScript "[PATH]script-name" ["Data-Substitution-Pair [Data-Substitution-Pair] "]

(II) Script Chaining: This passes control to a new script but doesn't expect to get control back.

GoScript "[PATH]script-name" ["Data Substitution"]

Important Note: Recursion isn't allowed, that is, A can't call A, etc.

But while first level recursion is checked and prevented, layers aren't.

So, if you really feel you have to you can do A > B > A... But CAUTION IS ADVISED!


-- eValid Support
eValid
 
Posts: 2396
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