Skip to content

How i can get featureset name from step/scenario? #1098

Closed Answered by jenisys
TkachevAlex asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, the correct command line is: behave @smoke.featureset (by using AT-files that contains the features that you like to run).

Currently, you can not determine „smoke“ from the featureset-file.
My suggestion is to use either

  • an environment variable or
  • a Userdata parameter

to pass this information (if you really need it during the test run).

NOTE:
But you need to decide what you do, if two AT-files are used (for example) or additional feature-files are provided on the command-line next to the AT-file.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TkachevAlex
Comment options

@jenisys
Comment options

Answer selected by jenisys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants