Micro Focus QTP (UFT) Forums
HELP! How do I use Respository Parameters? - 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: HELP! How do I use Respository Parameters? (/Thread-HELP-How-do-I-use-Respository-Parameters)



HELP! How do I use Respository Parameters? - hezviz - 06-19-2008

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