SlideShare a Scribd company logo
1 of 2
QTP Tutorial – 5: Passing Parameters between Actions <br />This short tutorial guides you to the process of passing parameters between Actions in <br />QTP. <br />Step-1: Create a test with the structure: Action1 on the top-level, Action2 embedded in Action1. <br />1) Open a new test.2) Go to Insert -> Call to New Action.3) Select the quot;
After the current stepquot;
 radio button.4) Click <OK>. The new action should be inserted into Action1.<br />Example:Action1Action2<br />Step-2: Define an input test parameter: <br />1) Go to Test -> Settings.2) Select the Parameters tab.3) Click the add button (+) for the Input parameters.4) Enter the following values:5) Name: TestParam6) Type: String7) Value: Hello8) Click <Apply> and <OK>.<br />Step-3: Define an input parameter for Action1: <br />1) Right-clicking on Action1 and select Action Properties.2) Select the Parameters tab.3) Click the add button (+) for the Input parameters.4) Enter the following values:5) Name: Action1Param6) Type: String7) Click <OK>.<br />Step-4: Parameterize the input action parameter in Action1: So that it pulls the value from the <br />parameter defined in the test settings. <br />1) Right-click on Action1 and select Action Call Properties.2) Select the Parameter Values tab.3) Click on the cell under the Value column for Action1Param. You will see a button on the right ofthe cell, click it.4) Select the quot;
Parameterquot;
 radio button. quot;
Test Parameterquot;
 should be selected by default.5) In the Name drop-down list, select quot;
TestParamquot;
, which matches the input parameter created inthe test settings.<br />Step-5: Repeat steps 3 and 4 for Action2: <br />1) Except name the input parameter Action2Param, and when parameterizing the input value, <br />select Action1Param from the Name drop-down list. <br />Step-6: In Action2 insert the following line using Expert View<br />msgbox Parameter(quot;
Action2Paramquot;
) <br />The above steps can be repeated if youwish to pass more Parameters <br />
Qtp passing parameters between actions

More Related Content

What's hot

ASP.NET MVC controllers
ASP.NET MVC controllersASP.NET MVC controllers
ASP.NET MVC controllers
Mahmoud Tolba
 
Digite - Test Management Training
Digite - Test Management TrainingDigite - Test Management Training
Digite - Test Management Training
Digite, Inc.
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )
Rajan Kandel
 

What's hot (20)

Qc runtime parameters_for_qtp_tests
Qc runtime parameters_for_qtp_testsQc runtime parameters_for_qtp_tests
Qc runtime parameters_for_qtp_tests
 
ASP.NET MVC controllers
ASP.NET MVC controllersASP.NET MVC controllers
ASP.NET MVC controllers
 
Var arg methods
Var arg methodsVar arg methods
Var arg methods
 
Test automation implementation strategy
Test automation implementation strategy Test automation implementation strategy
Test automation implementation strategy
 
Digite - Test Management Training
Digite - Test Management TrainingDigite - Test Management Training
Digite - Test Management Training
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based Testing
 
Exploratory Testing for Developers
Exploratory Testing for DevelopersExploratory Testing for Developers
Exploratory Testing for Developers
 
Fundamental test process
Fundamental test processFundamental test process
Fundamental test process
 
System Integration Testing
System Integration TestingSystem Integration Testing
System Integration Testing
 
Approval process
Approval processApproval process
Approval process
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )
 
Unit 4 testing
Unit 4 testingUnit 4 testing
Unit 4 testing
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
Ch23
Ch23Ch23
Ch23
 
QSpiders - Chapter 7 Debugging
QSpiders - Chapter 7 DebuggingQSpiders - Chapter 7 Debugging
QSpiders - Chapter 7 Debugging
 
MythBusters: Functional Testing Edition
MythBusters: Functional Testing EditionMythBusters: Functional Testing Edition
MythBusters: Functional Testing Edition
 
Tlc
TlcTlc
Tlc
 
Testing strategies
Testing strategiesTesting strategies
Testing strategies
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
 
Attribute MSA
Attribute MSA Attribute MSA
Attribute MSA
 

Similar to Qtp passing parameters between actions

qtp 9.2 features
qtp 9.2 featuresqtp 9.2 features
qtp 9.2 features
krishna3032
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anil
guest3373d3
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorial
guest37ae7f
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 

Similar to Qtp passing parameters between actions (20)

Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
qtp 9.2 features
qtp 9.2 featuresqtp 9.2 features
qtp 9.2 features
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anil
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorial
 
Query parameterization in ETL Validator
Query parameterization in ETL ValidatorQuery parameterization in ETL Validator
Query parameterization in ETL Validator
 
PEOPLESOFT PTF
PEOPLESOFT PTFPEOPLESOFT PTF
PEOPLESOFT PTF
 
Automation with bpt methodology
Automation with bpt methodologyAutomation with bpt methodology
Automation with bpt methodology
 
Qtp day 3
Qtp day 3Qtp day 3
Qtp day 3
 
Dakiry_qastandup_Olia Didyk_testdesign
Dakiry_qastandup_Olia Didyk_testdesignDakiry_qastandup_Olia Didyk_testdesign
Dakiry_qastandup_Olia Didyk_testdesign
 
chi square goodness of fit test (expected ratio) (procedure and output)
chi square goodness of fit test (expected ratio) (procedure and output)chi square goodness of fit test (expected ratio) (procedure and output)
chi square goodness of fit test (expected ratio) (procedure and output)
 
Hpalm
HpalmHpalm
Hpalm
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
Qtp Tutorials
Qtp TutorialsQtp Tutorials
Qtp Tutorials
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Advanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-ExcelAdvanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-Excel
 
Workshop unit test
Workshop   unit testWorkshop   unit test
Workshop unit test
 

More from Ramu Palanki

Qtp sample certification questions and answers
Qtp sample certification questions and answersQtp sample certification questions and answers
Qtp sample certification questions and answers
Ramu Palanki
 
Qtp realtime scripts
Qtp realtime scriptsQtp realtime scripts
Qtp realtime scripts
Ramu Palanki
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
Ramu Palanki
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
Ramu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
Ramu Palanki
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
Qtp complete guide for all
Qtp complete guide for allQtp complete guide for all
Qtp complete guide for all
Ramu Palanki
 
Qtp compare two xml files
Qtp compare two xml filesQtp compare two xml files
Qtp compare two xml files
Ramu Palanki
 
Qtp change excel cell color with condition
Qtp change excel cell color with conditionQtp change excel cell color with condition
Qtp change excel cell color with condition
Ramu Palanki
 
Qtp certification questions
Qtp certification questionsQtp certification questions
Qtp certification questions
Ramu Palanki
 
Qtp certification questions and tutorial
Qtp certification questions and tutorialQtp certification questions and tutorial
Qtp certification questions and tutorial
Ramu Palanki
 
Qtp certification questions2
Qtp certification questions2Qtp certification questions2
Qtp certification questions2
Ramu Palanki
 
Qtp automation estimation techniques
Qtp automation estimation techniquesQtp automation estimation techniques
Qtp automation estimation techniques
Ramu Palanki
 
Qtp 11 new enhacements in
Qtp 11 new enhacements inQtp 11 new enhacements in
Qtp 11 new enhacements in
Ramu Palanki
 
Qtp wsh scripts examples
Qtp wsh scripts examplesQtp wsh scripts examples
Qtp wsh scripts examples
Ramu Palanki
 

More from Ramu Palanki (20)

Qtp sample certification questions and answers
Qtp sample certification questions and answersQtp sample certification questions and answers
Qtp sample certification questions and answers
 
Qtp realtime scripts
Qtp realtime scriptsQtp realtime scripts
Qtp realtime scripts
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
 
Qtp presentation
Qtp presentationQtp presentation
Qtp presentation
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
Qtp complete guide for all
Qtp complete guide for allQtp complete guide for all
Qtp complete guide for all
 
Qtp compare two xml files
Qtp compare two xml filesQtp compare two xml files
Qtp compare two xml files
 
Qtp change excel cell color with condition
Qtp change excel cell color with conditionQtp change excel cell color with condition
Qtp change excel cell color with condition
 
Qtp certification questions
Qtp certification questionsQtp certification questions
Qtp certification questions
 
Qtp certification questions and tutorial
Qtp certification questions and tutorialQtp certification questions and tutorial
Qtp certification questions and tutorial
 
Qtp certification questions2
Qtp certification questions2Qtp certification questions2
Qtp certification questions2
 
Qtp best tutorial
Qtp best tutorialQtp best tutorial
Qtp best tutorial
 
Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
Qtp automation estimation techniques
Qtp automation estimation techniquesQtp automation estimation techniques
Qtp automation estimation techniques
 
Qtp 11 new enhacements in
Qtp 11 new enhacements inQtp 11 new enhacements in
Qtp 11 new enhacements in
 
Qtp sample resume
Qtp sample resumeQtp sample resume
Qtp sample resume
 
Qtp wsh scripts examples
Qtp wsh scripts examplesQtp wsh scripts examples
Qtp wsh scripts examples
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Qtp passing parameters between actions

  • 1. QTP Tutorial – 5: Passing Parameters between Actions <br />This short tutorial guides you to the process of passing parameters between Actions in <br />QTP. <br />Step-1: Create a test with the structure: Action1 on the top-level, Action2 embedded in Action1. <br />1) Open a new test.2) Go to Insert -> Call to New Action.3) Select the quot; After the current stepquot; radio button.4) Click <OK>. The new action should be inserted into Action1.<br />Example:Action1Action2<br />Step-2: Define an input test parameter: <br />1) Go to Test -> Settings.2) Select the Parameters tab.3) Click the add button (+) for the Input parameters.4) Enter the following values:5) Name: TestParam6) Type: String7) Value: Hello8) Click <Apply> and <OK>.<br />Step-3: Define an input parameter for Action1: <br />1) Right-clicking on Action1 and select Action Properties.2) Select the Parameters tab.3) Click the add button (+) for the Input parameters.4) Enter the following values:5) Name: Action1Param6) Type: String7) Click <OK>.<br />Step-4: Parameterize the input action parameter in Action1: So that it pulls the value from the <br />parameter defined in the test settings. <br />1) Right-click on Action1 and select Action Call Properties.2) Select the Parameter Values tab.3) Click on the cell under the Value column for Action1Param. You will see a button on the right ofthe cell, click it.4) Select the quot; Parameterquot; radio button. quot; Test Parameterquot; should be selected by default.5) In the Name drop-down list, select quot; TestParamquot; , which matches the input parameter created inthe test settings.<br />Step-5: Repeat steps 3 and 4 for Action2: <br />1) Except name the input parameter Action2Param, and when parameterizing the input value, <br />select Action1Param from the Name drop-down list. <br />Step-6: In Action2 insert the following line using Expert View<br />msgbox Parameter(quot; Action2Paramquot; ) <br />The above steps can be repeated if youwish to pass more Parameters <br />