-
Notifications
You must be signed in to change notification settings - Fork 15
Dynamic variable declaration
Dynamic variable defination let's user define variable that can replaced at run time from test data excel sheet, system properties or from environment variable. The purpose of having this feature helps users to write tests that can run parallely with different test inputs and to write test steps that refer inputs from previous test step run.
example:
| Step | Target | Action | Input | Overrides |
|---|---|---|---|---|
| navigate to page | goto | {{app}} |
Let say you have above example excel test that has a step to navigate to a page. you can directly put a url under input column where it says '{{app}}', But that means your test step is bound to that url which doesn't give you much flexiablity to change the url easily without manually open the excel sheet and change it to a different url value. Dynamic variable reference helps you to easily change any input value from different input sources. Below section explains how many test data input source that the framework is reading from and there priority heirarchy.
There can be different source where you can define key -> value pair to be used in your test. List of source you can have test data references:
- System properties
- Environment variable
- d-default excel sheet
- d- excel sheet