how do pass parameters from one action to another action
Answer Posted / aarati borse
Whatever Ravi has mentioned it is true...
Practically we can do like this..
Here I am using Action Parameters...
REquirement in Flight Reservation Apps is
Name by which user is getting logged in by same name a new
order also should get inserted..
1)Record for login window.
2)Rename the action as login_name
3)Pass the op value in action parameters as "agent_name"
4)By using Getro property fetch the agent name value and
store it in parameter agent name itself.
code willbe
parameter("agent_name")=window("FR").........winedit("Agent
Name").getroproperty"text"
5)save the test.
6)Now record for the insert order in new test
and make changes as follow
Window("FR").winedit("Name").set parameter("agent_name")
7)Make this action reuasable and rename it as insert_name
8)Save all changes in the test.
9)Move to first test again that is in login_name action
10)Keep ur cursor at end and call the existing action i.e
insert_name.
11)In expert view u will get the statement as
RunAction "insert_agent",oneIteration
we need to add as
RunAction "insert_agent",oneIteration ,parameter
("agent_name")
12)save d changes again..
13)now run login_name action
It will work...
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)
How many types of object repository in qtp?
any body can you help me what is the script to automate an comand promt
can u please explain what is the exact difference between qtp8.2 and 9.0
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
What is the difference between shared and local object repository?
What are the views available in quicktest professional (qtp)?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
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
what is the difference between IE & Netscape in web testing on a log in page
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
What are the challenges you faced during you entire life automation ?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
Both static and dynamic arrays are handled by the vb script. Is it true?