Web based testing
User Lai Kok Cheong (email@example.com) posted:
I'm currently creating test scripts for Java servlets based
applications.Currently I was using Rational Robot version 2002.05.20.
i) Although I could manually add datapool support for the captured scripts,
the scripts would only works if the page does support repetitive call, i.e
login page. But for the case like registering a new user information it
ii) There reason for its failure is not due the the limitation of datapool
feature but the way the capture scripts works.It works by capturing the
event in x,y coordinates and also the screen layout.Let say I've a combobox
which will have a list of user name.If I register a new user the combobox
would append the new name on it.
The script will fail if the relative coordinate of the combobox was changed;
i.e the user name Alex is in the second row. When I added in Albert, the
Alex will be relocate to third row.
iii) The script would also failed if the page display dynamic data.i.e
welcome page which display the user name.If the datapool feature is used,
the script will failed at the second row of data ( assume that we edit the
datapool data so that the first row is the original captured data ) because
the assume page does not match with the output page ( because now tha page
contains a different name from the original capture one ).
iv) The Rational Robot GUI capture script only works for GUI based
applications and not web based applications. There is not way to test a
textfield to have a certain values nor hidden field should have a certain
Re: Web based testing
User DAVID MARSH (DAVID.MARSH@thales-cs.com.nospam) posted:
Read through the archives to cover most of your stuff, it is not a case of
work arounds but your basic approach. Record and playback is rarely
successful, you need to completely rethink your approach. I have covered
this before but here we go again.
Write your own functions to enter information. Start with each type of
control, write a function to enter stuff into, then build up your functions
into a big function for the entering of a whole client.
Now you have the other problem, when you enter an incorrect password do you
expect a pop up message? Finally keep clear of datapools do your own CSV
First Name, Surname, Age, Login, Password, match
Fred, Bloggs, 38, Fish, Chips, Right
Wilma, Rubble, 32, Chips, Fish, wrong
Then write a loop to go down each line of the csv file, using Getfield to
strip the elements out, finally something like
If match = "Wrong" Then
'check for the pop up
And use the built in command to add that to your test log.