How to Parameterize Object repository in QTP?
Answers were Sorted based on User's Feedback
Answer / kailash nath
1. Open Object repository manager
2. Manage Repository parameters
3. Click on "+" button
4. Add parameters
5. Click on "<#>" button against a property value to
configure the property value.
6. Save the shared OR
7. Map this OR with any action
8. Click on "Map repository parameters" under "Resources" tab
9. Select Action for which you already mapped shared OR
10. Click on "<#>" button under "Value" column
11. Click on "Parameter" radio button
12. Select parameter name and sheet name
12. Click on "OK" button
Now your parameter will be parametrized with shared OR.
cont - 9910900759
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / sai sankar
parametrization means transfering values or passing test
data values from one action to another action / one test to
another test. In Qtp we can parametrise datas by four
methods:
1. Action parametrisation(from one action to another action)
2.Data table (same as action but data table is used for
transfering datas)
3.Environment
4.Random Numbers
| Is This Answer Correct ? | 10 Yes | 5 No |
Answer / naaz
We can Parameterize the Object's properties of the OR. In
the QTP 9.1 we have 2 types of OR (i.e. Object Repository).
1. Local OR and 2. Shared OR. We cannot paramererize the
Shared OR's Object properties. But we can Paremeterize the
local OR's Object properties. We can use either Local
dataTable or Global dataTable to paremeterize it. We have
to select the datatable and then column name. We can use
regular Expressions also.
| Is This Answer Correct ? | 5 Yes | 7 No |
Answer / uday kumar_anem
In QTP 8.2, we can parameterize both the per-action OR and
shared OR.
For Per-Action OR, we can parameterize in both the global
sheet and local action sheets.
To do this, we can select the object in OR, and choose
parameter radio button in configure value dialog, and
choose global or current action sheet in parameter options.
If the OR is shared OR, here only global sheet option is
visible and current action sheet is disabled.
To parameterize the OR follow below navigation:
Open the OR by tools-OR or OR button -> Select the object
in OR or parent object -> Click parameter radio button and
click -> click on the parameter options button beside the
textbox ->select data table in parameter type list box ->
choose the data sheet type and choose column name in the
sheet
| Is This Answer Correct ? | 3 Yes | 6 No |
WHAT IS ENVIRONMENT VARIABLES?
7 Answers AZTEC, CTS, Ready Test Go,
is there any addin for remedy user application
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.
VM1 = "Invalid username or password. Please try again. " VM2 = "Email id is required.Password is required. " VM3 = "Email id is an invalid e-mail address.Password is required. " VM4 = "Password is required. " VM5 = "Email id is required. " VM6 = "Email id is an invalid e-mail address. " 'Rowcount of the Local sheet Rowcount = DataTable.GetSheet("Invalid login transactions").GetRowCount 'Valid emailid and Password Emailid = "test@iteamic.com" Password = "Password0" 'For i = 1 to Rowcount 'Parameterised Email_id Browser("Browser").Page ("Page").WebEdit("emailAddress").Set DataTable("Email_id", dtLocalSheet) EID = Browser("Browser").Page ("Page").WebEdit("emailAddress").GetRoProperty("value") 'Parameterised Password Browser("Browser").Page ("Page").WebEdit("password").Set DataTable("Password", dtLocalSheet) PWD = Browser("Browser").Page ("Page").WebEdit("password").GetROProperty("Value") If EID = Emailid And PWD = Password Then Reporter.ReportEvent micPass, "EID & PWD check", "Email id and Password is correct, One iteration of Invalid login attempts is not being executed" Else Browser("Browser").Page("Page").WebButton ("Sign-In").Click 'Output value exported to the local sheet Browser("Browser").Page ("Page_2").Output CheckPoint("Home page_Sign in") 'Storing the output value in a variable(OUTPUT OUTPUT = Datatable.GetSheet ("Invalid login transactions").Getparameter ("Validation_message_signin").value 'comparing the Variable Output and the Validation message for a given input If OUTPUT = VM1 Then Reporter.ReportEvent micPass, "VM1", "Invalid username or password. Please try again. " else if OUTPUT = VM2 Then Reporter.ReportEvent micPass, "VM2", "Email id is required.Password is required. " else if OUTPUT = VM3 Then Reporter.ReportEvent micPass, "VM3", "Email id is an invalid e-mail address.Password is required. " else if OUTPUT = VM4 Then Reporter.ReportEvent micPass, "VM4", "Password is required. " else if OUTPUT = VM5 Then Reporter.ReportEvent micPass, "VM5", "Email id is required. " else if OUTPUT = VM6 Then Reporter.ReportEvent micPass, "VM6", "Email id is an invalid e-mail address. " else Reporter.ReportEvent micFail, "EID & PWD check_FAIL", "Validation message checkpoint failed. The captured v msg is not required" End if End if I am getting syntax error saying "Expected 'End If'" at the last line, Why is this? Kindly explain...
I want to learn Advanced QTP, suggest me the best faculty in Hyderabad
I have the script like this: Browser("Login").Page ("Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. I got the value "DC3701737" in to a variable(Say x). Now if i want to pass the variable in to link object .. how? Browser("Login").Page("Application").Frame ("ScopeFrame").Link(x).Click Is it possible to pass any variable into a link object .. so, that the application will select that link automatically? If ur not able to understand, pls let me know.
What are the limitations in using Virtual objects?
How will you load few objects in Active Screen?
Can any body please tell me the steps of keyword driven framework of QTP.
HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?
What is difference between Recording time object identification and Run time (Execution) time.
CAN ANY ONE PLEASE EXPLAIN DIFFERENT TYPE OF FRAMEWORKS USED IN QTP?EXPLAIN EACH OF THEM?..POST TO VANILKUMAR_1981@YAHOO.CO.IN