Passing feature file/scenario tags at runtime when building with Jenkins

Hi @Aleks

Please try out the following steps and see if this is what you want:

  1. Define a Global Variable whose values are tags.
  2. Write a test case with the runFeatureFolderWithTags keyword whose tags parameter is the Global Variable defined in step 1.
  3. Add this test case to a test suite and execute it from Jenkins. Override the Global Variable by your desired scenario tags with -g_XXX, for example, -g_userName="admin".

Read more about running Cucumber feature files.

Jass

1 Like