Add condition to execute specific test cases

Hi Madhurya,

As @HelioGuilherme66 suggested using tags is the best option (it’s what tags are for)

Simply add a tag prod1 to all the tests that apply to prod1 and likewise prod2 to tests that apply to prod2

  • Tests that only apply to prod1 will only have a prod1 tag
  • Tests that only apply to prod2 will only have a prod2 tag
  • Tests that only apply to both prod1 and prod2 will have both prod1 and prod2 tags

I understand it’ll take a while to add the tags to all your existing test cases so i’ll also suggest you consider future proofing the task a little and and take note of the current version of both products and the version number as part of the product tag so that as you go forward you can select test cases specific to a version you are testing as I demonstrated in this post

Dave.

1 Like