Forum Discussion

elenavivequi's avatar
elenavivequi
New Contributor
13 years ago

Ignore Dynamic URL in Data loop

Question:


How can I
make objects on a page ignore the dynamic URL? I’ve followed steps from the
Ignore Query String instructions, but I have not been successful.




Problem:


I’m creating
a Functional Web test using an automated keyword test and no script.


I’m testing
a website written in ASP.NET and JavaScript.


I’m trying
to make objects I select from my test URL independent.


On several different
pages, there are recurring check boxes and text boxes that I want to use.


I’m testing
a website that stores several different users, and the URL stores the ‘user
codes’ for each one at the end of the address.


This
creates a problem when I select ‘on-screen objects’ and put my tested objects
into a data loop.


My
TestComplete keyword test associates the URL with the object, making it crash
when I try to reuse the object for a different user.


 


Example:



  • User ‘5555’ gets http://example.net/empdetail.asp?pid=000&sid=001&loc=42&user=5555


  • I record an automated keyword
    test selecting name text boxes and check boxes


  • TestComplete associates the URL
    (including user=’5555’) with each of these objects


  • Test produces ‘object not found’
    error when I try to run through a data loop with different users