1.

What Are Cucumber Tags? And Why Do We Use Them?

Answer»

Cucumber tags help in filtering the scenarios. We can tag the scenarios and then run them based on tags.

  1. We can add tags to scenarios with <@> symbol.
  2. We can USE the following command to run a cucumber tagged scenario.

cucumber FEATURES -t @<tag_name>

EXAMPLE: cucumber features -t @test

Cucumber tags help in filtering the scenarios. We can tag the scenarios and then run them based on tags.

cucumber features -t @<tag_name>

Example: cucumber features -t @test



Discussion

No Comment Found