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



Hi, I want to pass a value in to Link object. For ex: I have a link where in which contains t..

Answer / 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

More QTP Interview Questions

How to Import data from a ".xls" file to Data table during Runtime.

1 Answers  


what are the main differences between keyword driven frame work and data driven frame work?

1 Answers   UHG,


we r conduction testing on a project USING QTP, regarding that project the object repository is full ? Till that project having objects that r not recognised by repository, then what wil you do? How we wil recogine remailning objects? Is it possible to maintain another shared(or)peraction repository? what is the maximum capcity of object repository? How the technical people decide this much object repository is enoughf for this project?

7 Answers   AppLabs, CGI,


What exactly a frame Work means?what are the different type of frameworks done in QTP?why the caption for QTP given as advanced keyword driven?

4 Answers   Satyam,


hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output INDIA ,using simple string how will u do? can any one tell really need full..

4 Answers   Mind Tree, Tech Mahindra,


What is the difference between functional spec. and Business requirement specification?

5 Answers  


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


How many types of trigger events are there in qtp?

0 Answers  


How to add a runtime parameter to a datasheet?

1 Answers   Crea,


how to prepared for first for the first interview?

0 Answers   Collabera,


does automation replace manual testing?

2 Answers  


What is repository parameters in QTP?how will we define that????what is unmapped & mapped repository parameters????????

1 Answers  


Categories