An Action defines Input Parameters to keep data out of its logic. A Login to QBank Action, for example, defines Username and Password as parameters rather than hard-coding those values in its statements. This is parameterization: the logic states what to do, the data comes from outside.
When Actions are assembled as steps of a Scenario, the input parameters of all the steps become the input requirement of the Scenario. The Scenario is responsible for supplying a concrete value for every parameter at execution time.
Test Cases: the data side of a Scenario
You supply these values in Test Cases. A Test Case is one complete set of values for all the parameters the Scenario's steps need. Executing the Scenario means executing its Test Cases.
Because the logic and the data are separate, one Scenario can carry many Test Cases, each a different data permutation. This is data-driven testing: the same flow exercised against multiple data sets to cover different business rules and conditions.
Examples of Test Cases for a "Verify Funds Transfer" Scenario:
- Verify transfer with maximum transaction value
- Verify transfer to an external account
- Verify transfer with a future date
[Image placeholder: Test Cases grid of a Scenario showing multiple rows, columns grouped by step]
ACCELQ can also build Test Cases for you, in two ways. When a parameter's data source is a Data Type or Data List, Test Cases can be generated algorithmically for optimal coverage. With Autopilot, Test Cases are generated intelligently from the Scenario's logic, producing relevant data variations without manual permutation work. See Working with Test Cases in ACCELQ for generation and grid management.
Where parameter values come from
Test Cases are the default source of parameter values, but not the only one. A parameter can instead use a fixed value across all Test Cases, a centrally managed property, a value supplied at run time, or a value produced by a preceding step. See Configuring Parameter Sources in a Scenario for all the sources and how to configure them.
Comments
0 comments
Please sign in to leave a comment.