Hi,

I want to pass a value in to Link object.
For ex:

I have a link where in which contains the value
like "DC4463219(Active)".
Whenever i will execute the script this value "DC4463219
(Active)" will get changed.

I got the value DC4463219(Active) from the link and stored
that value in variable "ACTUAL".

If i want to select the same link again, while recording
the value DC4463219(Active) will be recorded in object
repository. So, that it will not work for the next cycle of
execution as the value will get changed everytime as i
mentioned above.

I want to pass that Acutal value in to link object. The
script is as follows:

Actual Script when recording:

Browser("Web Login").Page("Application").Frame
("ScopeFrame").Link(DC4463219(Active)".Click

But now instead of this DC4463219(Active) i want to pass a
variable where i have the same value.

I tried to execute the script
Browser("Web Login").Page("Application").Frame
("ScopeFrame").Link(Actual).Click
But it is displaying the error message as that the value
which we got from Actual is not existing in Object
repository. So,i made the link object as regular expression.

Even it is displaying the same message as mentioned above.

If you are not able to understand, feel free to contact me
with nbabu11@gmail.com

Answer Posted / tvs ramakrishna chowdary

hello balu ur problem get solved by regular expression
----------------------------------------------------------
1)Go to Object Repository
2)Select Link Object
3)In the object properties pane(right side of window)
4)select text property of link
5)in the value portion select the configure value button
6)change the constant value DC4463219(Active)
with .*(Active)
7)select the checkbox Regular expression
8)click ok
9)close object repository
now u run ur script...I am sure it will work fine...

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the features of quick test pro(qtp)?

581


Explain about the quicktest professional (qtp) automation object model?

570


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

1518


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1680


Can we record using all the modes in a single script? Explanation with example is appreciated

1392






What are the methods used in UFT to handle exceptions or run-time errors?

652


Approach for Installation,comaptibility,system testing

1710


What is contained in the object repository?

619


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1509


Explain different checkpoints in qtp.

723


What is keyword driven framework?

622


What is the parameterization? Give one example?

594


explain how to write vb script in qtp?when will you write own script?

1859


How to use Environment parameterization? Explain with an example.

1482


How to analyzing test results using quicktest professional?

574