python - Run scenario with customized tags in behave framework -
how make selection of scenarios run using customized tags?
for eaxmple,the following feature file
feature:my example feature @test_name:sample @abc:1234 @sd:567 scenario: example scenario given name sample when name whensample name endsample i have multiple feature files , each feature file has many scenarios.scenario tags similar way mentioned above. trying run scenario
behave -t test_name --> run files behave -t abcd --> run specific scenario behave -t 1234 --> run specific scenario please suggest if there way it.
add tags scenarios @testtag1, @testtag2 shown below
feature: showing off behave @testtag1 scenario: run simple test given have behave installed when implement test behave test us! @testtag2 scenario: run simple test2 given have behave installed when implement test behave test us! @testtag1 scenario: run simple test3 given have behave installed when implement test behave test us! run command
behave --tags=testtag1 to test scenarios tag testtag1
Comments
Post a Comment