| || |
User (email@example.com) posted:
I am using WR 7 with the context sensitive recording method to test a
web site. The site uses ASP pages with the Crystal Reports smart
viewer to display reports. I have both the Active X and Web Test
options loaded in my WR. My problem is that I record my tests but
when they are played back, WR can't find the windows in question.
The windows that it can't seem to find are the report windows
themselves. Here is an example of a report window name:
"Check Report, created 05-08-2001 10-53-47 am - [BC WebTrack]-
Microsoft Internet Explorer"
Of course, the date/time stamp changes by each run. I have made a
function that will convert the date and time into the format that is
needed. This still doesn't work. If I try to record just the
selection of the window this line is put into the code:
win_activate ("Browser Main Window");
This command will work sometimes but eventually, the script will go
back to looking for the "Check Report" name. My question is, how do
I get WR to recognize the window every time? I have around 50
reports to build scripts for and this is keeping me from getting past
the first one.
Thanks for your help
PS If anyone would like my conversion function reply and I will post
Re: Please Help
User Richard Weber (firstname.lastname@example.org) posted:
You may need to use a regular expression in the label property of the
window. I would also recommend giving windows more meaningful names
"Check Report, created 05-08-2001 10-53-47 am - [BC WebTrack]- Microsoft
a more simple logical name would be just "Check Report"
So the GUI entry might look something like this with a regular expression:
label: "!Check Report, created .*- Microsoft Internet Explorer"