Script Development Help?

How to apply eValid to functional testing of web applications.

Script Development Help?

Postby unsigned » Tue Feb 12, 2008 2:48 pm

I have a couple of questions,

One:

- Is there a way to iterate over a block of statements in an evs file, a
"while/for" loop of sorts.

- Maybe its already built into evalid, but I want to ensure that a page is
completely rendered before the next statement is run.. In my case the
"MatchString" fails.

Two:

- Are the WAIT statements neccessary at all from a monitoring standpoint;
related to #1 I suppose.
unsigned
 
Posts: 167
Joined: Tue Jan 01, 2008 12:48 pm

Re: Script Development Help?

Postby functionaltesting » Tue Feb 12, 2008 3:15 pm

unsigned wrote:I have a couple of questions,

One:

- Is there a way to iterate over a block of statements in an evs file, a
"while/for" loop of sorts.


The script language is a "command language" so no, there's no such
looping construct.

However...

* You can Playback > Control Playback > Run Multiple to repeat a script
a fixed number of times. (Also ... > Run Forever is available in the
revenue version, but not in the EVAL.)

* You can have a script do this:
...
CallScript script.evs
CallScript script.evs
CallScript script.evs
CallScript script.evs
CallScript script.evs
...
which will script.evs run it 5 times. Etc.

- Maybe its already built into evalid, but I want to ensure that a page is
completely rendered before the next statement is run.. In my case the
"MatchString" fails.


The command is "SyncOnText" which waits until the named text is present
in the actual page...

Two:

- Are the WAIT statements neccessary at all from a monitoring standpoint;
related to #1 I suppose.


We generally leave the Waits in, maybe put a ceiling on the Wait times
(e.g. 5000 msec = 5 sec) so the server doesn't see a super heavy spike
of load...but you could of course zap them all with a wait time
multiplier of 0.0 if you want...
eValid Tech Support Team
functionaltesting
 
Posts: 116
Joined: Tue Jan 01, 2008 12:48 pm


Return to Desktop and Mobile Device Functional Testing

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