Parameters are everywhere, we can use them anywhere for a lot of purposes.
In this article, we will be familiar with the different types of parameters and where they can be used.
HTML parameters VS JS Parameters
Testim allows you to define HTML parameters and JS parameters.
- HTML Parameters - allows you to refer to HTML Elements in your app by simply selecting them in your page.
Where can you use Parameters
- Pass to JS Step - You can use parameters in any custom JS Step - custom action, custom validation, custom wait for or custom condition.
- Pass to a Group - You can pass parameters to a group to allow reuse inside a group.
- Pass to a Test - You can pass parameters to a test. This is great for setting dynamic/random values. You can pass via the CLI or from one Test to another.
- Export (out) parameters - A value which was generated inside a step, can be used later in other steps, either in the same test, or tests depended on this test (see Test Plan).
- Data driven - Run your test against multiple data sets of parameters.