For Programmers: Free Programming Magazines  


Home > Archive > Software Testing > October 2005 > QARun scripting for fields with dynamic names









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author QARun scripting for fields with dynamic names
amitsreedharan@gmail.com

2005-10-14, 3:59 am

Hi,

The application that i am trying to automate using QARun is based on
java. The text boxes,
radio buttons, check boxes etc do have any particular name associated
to it, instead the name for it gets generated each time the page loads
which usually is a "i" suffixed by a 13 digit variabvle number.

See html code below for a text box.

<input TYPE="text" name="i1129271833647" title="" tabindex="1"
onchange=" javascript:refreshAction('i1129271833647
')"
class="oeValueNode" style="" value="" maxlength="9"/>


here 'i1129271833647" is the name which changes each time the page is
loaded. Inorder to solve this, I have mapped the object with 4GL as
i????????????? and then recording X and Y co-ordinates. Even the class
name is not unique.

Is there any other solution to this so that we would be able to create
a script in QARun which would require less changes as the position of
the items
change.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com