I am having trouble understanding #1 how to paramaterize a
userid and password that I need to call in about 25
existing scripts. I need to know how to Create a Reuseable
action for 25 existing scripts that will call the exact
same userid and password? I need to know how to create a
Reuseable action and then have it called by existing
scripts being run in a batch.
Answers were Sorted based on User's Feedback
Answer / m.hemakumar
converting action into reusable action follow this
navigation
edit-action-action properties-Select resusable action check
box
RunAction "action Name",oneiteration,"userid
value","passwordvalue"
Note:
1)we have to define injput parameters in calling action
here calling action means actula action
called action is reusable action
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nagk24
first u have to parametriz from excel to datatable
datatable.importsheet"path of xl","sheetname in xl","action name in current test"
to get data from data table
dialog().winedit().set datatable("action name","clumn name")
later we can call dis action from any test
insert--->call to existing call
| Is This Answer Correct ? | 0 Yes | 0 No |
What is action split and the purpose of using this in qtp?
Can you tell me QTP is support for GIS(Geography Information System) Based Software.
what type of run time errors you get while you ar edoing rpg program?
What are the differences between quicktest professional (qtp) and winrunner?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
How many types of recording facility are available in quicktest professional (qtp)?
Using Object Repository is a advantage or disadvantage?
We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario
what is difference betweein qtp 9.0 and 9.2
What is object identification?
What is the latest version in QTP?
55 Answers Bharti, Polaris, US Technology,
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next