Automation of Sample Script

How to apply eValid to functional testing of web applications.

Automation of Sample Script

Postby pnegi » Wed Jan 05, 2011 1:09 pm

Thanks for your inputs. We have been able to work with automation of sample script. We are still facing some issues. Can you provide your inputs for these issues.

...snip...

2. eValid crashes after executing the Load test script when it tries to generate the log file. It successfully execute the playback, however fails to generate the log file and crashes.

...snip...
pnegi
 
Posts: 4
Joined: Mon Dec 27, 2010 1:49 pm

Re: Automation of Sample Script

Postby eValid » Wed Jan 05, 2011 1:19 pm

Whenever we see operations that don't create a file correctly, we suspect a permissions problem.

The crash is Windows telling you that you can't write to a file that you don't have permissions on...

Can you correct the permissions, and try again.

___________________
The Support Team
eValid
 
Posts: 2396
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA

Re: Automation of Sample Script

Postby pnegi » Wed Jan 05, 2011 3:25 pm

Thanks for your inputs. We have been able to work with automation of sample script. We are still facing some issues. Can you provide your inputs for these issues.

1. Below error is consistently observed when we execute the automated script. This issue is even observed even if script has simple step of login and logout. Please find attaced evalid log file.

# 24: SubmitClick 0 40 "" "" "Login" "" NAV
2010/12/28 13:58:55 24 11 24 Desktop test group_config_final WARNING 12346 0 - HTML element index out of range: 40
2010/12/28 13:58:55 25 11 24 Desktop test group_config_final WARNING 12346 0 - Button with text label "Login" not found at expected index. Beginning adaptive action...
2010/12/28 13:58:55 26 11 24 Desktop test group_config_final WARNING 12362 16 - Unable to find matching button
2010/12/28 13:58:55 27 11 24 Desktop test group_config_final ERROR 12362 0 - HTML element at index 40 is not a Button
2010/12/28 13:58:55 28 11 24 Desktop test group_config_final ERROR 12362 0 - HTML element will not be clicked
2010/12/28 13:58:55 29 11 24 Desktop test group_config_final FAIL 12362 0 - Form Submit: action failed.
2010/12/28 13:58:55 30 11 24 Desktop test group_config_final FAIL 12362 0 16 Command completed: SubmitClick [NAV]

...snip...
pnegi
 
Posts: 4
Joined: Mon Dec 27, 2010 1:49 pm

Re: Automation of Sample Script

Postby eValid » Wed Jan 05, 2011 4:07 pm

The Eventlog messages are the clue here.

When eValid says that the item at index 40 is not a button, but when you check that it actually IS a button, that is probably due to the time difference when eValid confirms the page is ready and when you are trying to typ into the field or click the button.

The adaptive search process makes one pass only...by the way.

So, eValid is right to point out the problem and throw an ERROR.

The solution will be (we don't see the script, so we are guessing on this) to add a synchronization step to confirm that the button is there for real, before attempting to click on it.

________________
The eValid Team
eValid
 
Posts: 2396
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA

Re: Automation of Sample Script

Postby pnegi » Wed Jan 05, 2011 5:17 pm

If there is provision in Evalid to provide some of the inputs given in recording session to be made variable argument, which can be provided at time of script start up.
pnegi
 
Posts: 4
Joined: Mon Dec 27, 2010 1:49 pm

Re: Automation of Sample Script

Postby eValid » Wed Jan 05, 2011 5:34 pm

pnegi wrote:If there is provision in eValid to provide some of the inputs given in recording session to be made variable argument, which can be provided at time of script start up.

Any recorded value can be converted into a $PARAMETER, and a value can be assigned to any $PARAMETER in a variety of ways.

The eValid string substitution facility is a way to pass parameters from between scripts -- available in both functional testing AND in server load creation -- is described in detail here:

http://www.e-Valid.com/Products/Documentation.9/Technical/strings.html

Here is a page that describes the properties of the parameters that appear in eValid LoadTest scripts:

http://www.e-Valid.com/Products/Documentation.9/Loading/evl.parameters.html

The eValid string substitution facility -- used in both functional testing AND in server load creation -- is described here:

http://www.e-Valid.com/Products/Documentation.9/Technical/strings.html

Here's a diagram of this process:

http://www.e-Valid.com/Products/Documentation.9/Support/script.expansion.html

_________________
The Support Team
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