Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to parameterize a link object/element in QTP
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Please give me a hint how to parameterize a link element in QTP...As we can parameterize 'WebEdit' element/object ,can we parameterize 'Link' element/object and how can we????
I am doing recored and play and want to parameterize through keyword view and data table...
I will be very thankful to u
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
HI galstar,

You can parameterize the Link object, but we have to use the Descriptive Program or "SetToProperty" in order to work with that.

Descriptive Program:
'in the global sheet Create column with name as "LinkName" and enter your Link names in that column.
Now try to work with Link.
Code:
Browser("").Page("").Link("name:="& Datatable("LinkName",dtglobalsheet).Highlight


SetToProperty:
Browser("").Page("").Link("ORLink").SetToProperty "name",Datatable("LinkName",dtglobalsheet)
Browser("").Page("").Link("ORLink").Highlight

Please let me know if you need any more information on this.
Thanks,
SUpputuri
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
Thanks for the solution but as i am doing record and play,So it is not working error message that object is not in repository is getting populated..But through this i got an idea and change the 'Name' propery of that link element through keyword view..Now it is working.. Smile
Thanku so much Dear
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Instead, you can do parameterization in text Field in Object Repository.

Goto Object Repository --> Select Link Object --> Description Properties --> Text Value --> Value Configuration Window opens --> Select 'Parameter' --> enter a name --> Select Ok.

Now you can see a column created with a name you entered in Global Data Sheet.

Add as many link values as needed and do the needed parameterization.

Your script will iterated for each entered Link names in Global Sheet.

Suppose if you enter 10 Link names as Parameters, your script will run 10 times, each time it uses corresponding row Link name.

Hope this helps...Let me know, for any more queries.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to parameterize keywords in QTP kamalteja 1 1,864 12-20-2014, 09:49 PM
Last Post: supputuri
  How to use "IconInfor" Element in QTP venkatbatchu 1 2,243 01-05-2011, 05:28 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)