Parameterization is the process in which you replace hard coded values in test logic with symbolic variables, whose values are set in different scopes. accelQ supports multi-level Parameter hierarchy.
Parameterization promotes modularity and reusability, ensuring long term maintainability of test assets. In accelQ, you can parameterize data at a Statement level in the Action logic or at a Step level in the Scenario.
Parameterization, using Action Parameters is a key concept in developing data driven test scenarios.
Table below describes various types of Parameters supported in accelQ.
Type
|
Use Case
|
Example(s)
|
Where to Define
|
Applicable In
|
Global Parameters
|
- Defined at Project level.
- Used to represent data that is relatively static at the test application level, but may change occasionally.
- Supports variable data for data environments.
|
|
- Defined in Resource Tab under Navigator
|
- Action Logic
- Scenario Parameter Overriding
- Context Init URL
|
Action Parameter
|
- Promotes Data Driven Testing.
- Values are set in the “Test Cases” belonging to the Scenario where the Action is used as a Step.
- Allows Data Type and Data List to specify permissible values
|
- “Origin” for “Search Flights” Action
|
- Action Level, Parameters Tab
|
|
Local Parameter
|
- Created as part of internal Action logic.
- Useful to process information between multiple statements inside the logic of a given Action
|
- Iteration index for a loop
- “expected price” calculated inside Action logic
|
- Created from statements within Action logic
|
- Logic Editor of an Action
|
Run Parameter
|
- Allows user to supply data at the time of execution.
- Used when data value needs to be fixed at Test Run level.
- It is a “global” parameter applicable for the given Test Run
|
- DB User name and Password for the test application
|
- Value is set in Run modal while kicking off test run.
- Configuration of the Parameter is defined in the Resources Tab under Navigator.
|
- Scenario Parameter Overriding
|
Comments
0 comments
Please sign in to leave a comment.