Micro Focus QTP (UFT) Forums
How to recognise Dynamic Value links and navigate - 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 recognise Dynamic Value links and navigate (/Thread-How-to-recognise-Dynamic-Value-links-and-navigate)



How to recognise Dynamic Value links and navigate - ramreddy - 06-21-2008

[attachment=69]Hi,

One of my tests which I am trying to automate has a table with data which has links,that data and its corresponding URL changes frequently
(For example when I recorded the test its was STPPC10& URL was http://fstst04.ffdc.sbc.com:8080/bvoip/servlet/PPCASSummary?nodename=STPPC10&v=1 and when I tried to run it value was was STPPC11) & URL http://fstst04.ffdc.sbc.com:8080/bvoip/servlet/PPCASSummary?nodename=STPPC11&v=1) .
I used getcelldata to capture data from the required cell and was successful but when I changed the cell value to check if it works if the data changes , the changed data STPPC11 was captured but it displays an error The "STPPC11" Link object was not found in the Object Repository.Check the Object Repository to confirm that the object exists or to find the correct name for the object.

Adding an attachment with application screen shot and the error message

Can someone help me on resolving this or if you know a better way to implement this

Thanks
Ram


RE: How to recognise Dynamic Value links and navigate - somisays - 06-21-2008

Hi,
Use Regular Expression for that Particular Object.
Go to Object Repository and Select that Particular object and go to text property and click on <#> and then you will get value configuration options and then select regular expression.
Then save the test and run again.

Hope it is going to workout let me know the outcome.


RE: How to recognise Dynamic Value links and navigate - sreekanth chilam - 06-23-2008

Hi ,

By above things,
1. link's innertext property ---> "STPPC10"
2. links Url property ---> "http://fstst04.ffdc.sbc.com:8080/bvoip/s...TPPC10&v=1"

you just apply regular exp for above two properties inorder to identify the above link.
1. link's innertext property ---> "STPPC.*"
2. links Url property ---> "http://fstst04.ffdc.sbc.com:8080/bvoip/s...TPPC.*"

and check the regular exp. checkbox .

I hope now onwards it will goes fine...


RE: How to recognise Dynamic Value links and navigate - ramreddy - 06-25-2008

Thanks Sridhar and sreekanth , was able to rectify it and works fine now!