I'm using QTP on window based application with.NET properties.

In my application whenever I add a "New customer name" it gets added
at the end of the row.

Recording Mode: While recording I've generated the script to "Create
new customer" and edit the same but QTP recording the whole script by
row number.
Below is the script for better understanding

SwfWindow("").SwfWindow("").SwfTable("").SelectRow "0"
SwfWindow(““).SwfWindow(““).SwfTable(““).ExpandRow "0"
SwfWindow(““).SwfWindow(““).SwfTable(““).ActivateRow "0;18"
SwfWindow(““).SwfWindow(““).SwfTable(““).SelectRow "0;18"
SwfWindow(““).SwfWindow(““).SwfTable(““).ExpandRow "0;18"
SwfWindow(““).SwfWindow(““).SwfTable(““).ActivateRow "0;18;5"
SwfWindow(““).SwfWindow(““).SwfTable(““).SelectRow "0;18;5"


Requirement for run mode:

I've set the data parameter to auto generate the new customer for each
iteration. But my problem here is that after creating a new customer
from data, QTP is always clicking on the same recorded row. Whereas I
want QTP to click always on the last name of the row.

Can anyone help me to understand how can I set my script to click on
the last value of the row. Few people have suggested me before to use
regular expression but my requirement here is that QTP should not only
recognized but it should also click and edit the last value in the
row.

Please do not hesitate to ask again, if I am not very clear in my
question .

Many thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to