İstanbul evden eve nakliyat Beylikd¨¹z¨¹ evden eve nakliyat Tuzla evden eve nakliyat
Tutorial-5 Passing Parameters between Actions
Delicious Bookmark this on Delicious
software testing genius

Tutorial-5 Passing Parameters between Actions

Welcome to “Software Testing Genius”. Subscribe to my RSS feed for latest content on Software Testing.

Tutorial-5 Passing Parameters between Actions

This short tutorial guides you to the process of passing parameters between Actions in QTP.

Step-1: Create a test with the structure: Action1 on the top-level, Action2 embedded in Action1.

1) Open a new test.
2) Go to Insert -> Call to New Action.
3) Select the "After the current step" radio button.
4) Click . The new action should be inserted into Action1.

Example:
Action1
Action2


Step-2:
Define an input test parameter:


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: TestParam
6) Type: String
7) Value: Hello

8) Click and .


Step-3:
Define

an input parameter for Action1:

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: Action1Param
6) Type: String
7) Click .


Step-4:
Parameterize the input action parameter in Action1:
So that it pulls the value from the parameter defined in the test settings.

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 of the cell, click it.
4) Select the "Parameter" radio button. "Test Parameter" should be selected by default.
5) In the Name drop-down list, select "TestParam", which matches the input parameter created in the test settings.


Step-5:
Repeat steps 3 and 4 for Action2:

1) Except name the input parameter Action2Param, and when parameterizing the input value, select Action1Param from the Name drop-down list.


Step-6:
In Action2 insert the following line using Expert View:


msgbox Parameter("Action2Param")

The above steps can be repeated if you wish to pass more Parameters.

Many More Tutorials on HP QTP 11.0

Study Material - HP QTP & QC Certification Exam

Study Material - HP LoadRunner Certification Exam

Study Material - IBM RFT Certification Exam

What Successful Testers say about the Quality of this website

If you want to keep track of further articles on Software Testing,
I suggest you to subscribe my
RSS feed
.

You can also Subscribe by E-mail
and get All New articles delivered directly to your Inbox.

Full Study Material for Popular Certification Exams:

Largest Database of Sample Papers - 1000+ Unique Questions for ISTQB Foundation Exam

ISTQB Foundation Exam - Full Crash Course for Download

ISTQB Advanced CTAL Test Analysts Exam - Full Crash Course for Download


ISTQB Advanced CTAL Test Manager Exam - Full Crash Course for Download


Study Material - ISTQB Certification Exam

Consolidated Study Material - Testing & QA


Most Popular Topics in Demand:

Practical Roadmap to QTP Certification

Practical Roadmap to CSTE Certification

General HR Interview Questions Common For All 

Tricky HR Interview Questions Common For All
 

Rehearsal of QTP in 1 Hr. -  Interview Questions

 

Comments :

comments ↓


Leave Your Comments: (*) Marked Fields are Mandatory

You can apply basic formatting to the text

Name *
 
Email Address *
 
Website
 
Speak your mind
characters
sex hikayeleri