Why parameterization in qtp
By this we can execute the test with multiple rows of test data. After Adding Environment variables we can export them by clicking on export button. Using load variables and values from external file operation, we can specify external environment variable. What type of data can be sent from one action to another We can send only below data types from one action to another. String 2. Boolean 3. Date 4. Number 5. Password 9. How to send data from one action to another.. We can use multiple techniques for this.
Using Action Parameters: We can send values between actions but in order to perform this the action should be called from anothr action. Using Environment Parameters: The environment variables are global and we can create the environment variables and store the values in runtime. So we can directly access the values from one action to another without calling it.
Using Data table parameters: The data table parameters are useful to store and retrieve values. We can store the values of one action and retrieve the same values from another action in runtime without calling an action from another. What type of data can be send between Actions This process of providing different input values through external parameters is called as parameterization.
This Micro Focus UFT tutorial demonstrates how to do parameterization to log in successfully to flight reservation application. You may be wondering why take the Herculean effort to automate this simple scenario.
In this example, we will restrict to just 3 of possible 8 combinations. To achieve this, you can either copy the six steps or give different data values that are in fact something you would do manually, or you can use Parametrization. Value Configuration Dialog Box Opens. Currently, the value is set to a Constant. Click on Parameter Radio Button. QTP assigns a default name to this parameter. You can enter more values for this parameter.
Enables us to view the current values of each step containing the selected value. For each step, we can choose whether or not to parameterize the value and if so, which parameterization options is required to be used. Enables us to parameterize all occurrences of the selected value throughout the action.
We set our parameterization preferences one time and the same options are applied to all occurrences of the value.
We can choose the preferences for parameterization in a way similar to the process used for an individual step. The parameterization options for the step are displayed on the right. By default, the value is parameterized as a Data Table variable. Accept the default parameterization settings or set the parameterization options you want to apply to this step.
Repeat step previous for each relevant step. He is M. Honours and is a part of the STG team since inception. See author's posts.
0コメント