Micro Focus QTP (UFT) Forums
How to capture/parameterize ID's created on the server side that QTP does not capture - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to capture/parameterize ID's created on the server side that QTP does not capture (/Thread-How-to-capture-parameterize-ID-s-created-on-the-server-side-that-QTP-does-not-capture)



How to capture/parameterize ID's created on the server side that QTP does not capture - rdwaram - 10-16-2009

Hello,

Here is the scenario:

Recording of the script:

1. I create an object. Example: (Library).
2. Library on the server side has an artifactID. 12345.
3. Later on in the script i select a set of books from a list and ADD to the Library Object.

End Recording.

Issue:
Before the replaying the script (i am deleting the existing LIBRARY object so the script can create if for me. So the the scirpt create the LIBRARY object, now it has a new artifactID 99999.

When i proceed to the next step to add books to the library, the script is still pointing to add books to artifactID 12345.

Any ideas on how i can have the script to recognize and capture the new create object and its artifactid?

thanks in advance for your patience.
rd


RE: How to capture/parameterize ID's created on the server side that QTP does not capture - jsknight1969 - 10-17-2009

Sounds to me like the '12345' might be in the object respository. you will probably have to us DP to identify the new object or use regular expressions to set the object to be more "generic" and allow a change in the id.