Forum Discussion

atariqharri's avatar
atariqharri
Occasional Contributor
3 years ago
Solved

Reusable Instructions

I want to define a set of instructions to create test data and I want to be able to parameterize these instructions so that I can create different data for different tests. How can I achieve this in ...
  • nmrao's avatar
    3 years ago

    Got you.

     

    In order to achieve that there are multiple ways.

    1. Create a library using one of the below approaches and call that library in the Setup Script

    a. write a class and methods

    b. use script library

    NOTE: one needs to be familiar with scripting / coding skills.

    2. Create a separate test case and ensure this test is disabled (so that it is not called when the test cases are executed). And call this test case in the setup script.

    I have noticed many in the forum to use this approach as it is easy to implement though I don't prefer/suggest this as it depends on another test case.