Parameterization using Environment Variables in GitHub Actions

Parameterization runs a test case automatically, multiple times with different input values. The simplest way to make tests more consistent and manageable is to parameterize them, that is, to replace hard-coded input values with parameters. 

Parameterization can be:

  • used to parameterize Test Plan, Environment, Browser, Email Targets, etc
  • to provide data to build.xml file at run time. 

To add variables to the repository, you can define the variable in Secrets tab and use them in the yaml file.  

An example is given below:

- name: Run build
        PLAN_NAME: ${{secrets.TESTPLAN}}

Note: You can access the variable in the build.xml as highlighted below. And, to make use of your variables as unencrypted, you can directly use them in the yml as highlighted below. For example, PLAN_NAME: Regression

Review Provar on G2
Documentation library

Other available resources

Looking for something different?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top