Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP! How do I use Respository Parameters?
#1
Not Solved Question 
I am a new user of QTP. I want to be able to set a global repository parameter for the browser and page information (in red below)as these objects change with every new build and I use them in everytest and/or function for my UI.

My question is 2-fold:
1. I have the help instructions on how to setup the repository parameters- - in the OR I have them called BrowserName and PageTitle respectively. now how do I call them into each of my tests

2. How do I get the updated values from each build into the OR parameter? Do I have to do it manually, or is there a way to programmatically retrieve these values?

Sample Code:
Code:
With[color=#FF0000] Browser("QoSExecutive").Page("QoSExecutive")[/color].WebButton("Add").Click
    .WebEdit("ctl00$ctl00$MainContentPlaceHo").Set mySrchValue

    .WebEdit("ctl00$ctl00$MainContentPlaceHo").Output CheckPoint("ctl00$ctl00$MainContentPlaceHo_2")
    .WebEdit("ctl00$ctl00$MainContentPlaceHo_2").Set DataTable("Switch_BSC",dtGlobalSheet)
    .WebEdit("ctl00$ctl00$MainContentPlaceHo_3").Set DataTable("RTP_Address",dtGlobalSheet)
    .WebEdit("ctl00$ctl00$MainContentPlaceHo_4").Set DataTable("Port_number",dtGlobalSheet)

    DataTable.Value ("SearchValue",dtGlobalSheet) = DataTable("newSrchValue",dtGlobalSheet)

    .WebEdit("ctl00$ctl00$MainContentPlaceHo").Output (CheckPoint("ctl00$ctl00$MainContentPlaceHo"))
    .WebButton("Insert").Click

    .Link("RTP Information").Click
    .Frame("Frame").WebRadioGroup("SearchType").Select "5"
End With
Reply


Messages In This Thread
HELP! How do I use Respository Parameters? - by hezviz - 06-19-2008, 03:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Set data parameters Mik2s 1 1,480 03-07-2019, 10:18 PM
Last Post: supputuri
  Part of parameters missing when passing between actions skumar007 1 2,990 10-10-2014, 02:00 AM
Last Post: skumar007
  Launching .exe file with parameters magnifyingone 1 3,152 08-28-2014, 06:39 PM
Last Post: dplank
  Need Help Understanding Parameters alex228015 0 2,285 03-18-2014, 12:30 AM
Last Post: alex228015
  New Test Parameters VenkataBonu 6 9,792 12-10-2013, 09:11 AM
Last Post: cflow

Forum Jump:


Users browsing this thread: 1 Guest(s)