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
How to run a test using quicktest professional (qtp)?
Can we record an application running on a remote machine using qtp?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
How do Parameterization and Data-Driving relate to each other in QTP?
What are the flaws in water fall model and how to overcome it?
What is smart identification in QTP?
Explain data driven framework?
How to get Traceability matrix from TD?
What are the differences between quicktest professional (qtp) and winrunner?
What are the types of object repository?
Hi,All How to create a link in excel sheet using qtp
what could go wrong with test automation?
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
Give the syntax to import/export xls into qtp.
what is clean sweep?