Closed martinmineo closed 1 year ago
Hello,
You could get the tags from the system property you pass at runtime.
System.getProperty("cucumber.tags")
To check
System.out.println("Tags defined in runner -> " + Arrays.toString(CourgetteRunInfo.courgetteOptions().cucumberOptions().tags()));
System.out.println("Tags passed at runtime -> " + System.getProperty("cucumber.tags"));
Thank you! That worked.
Let me ask you something else. Is there a way to override the report title at runtime and send that information over slack?
I'd like to send that information here 👇
As you can see, I want to include more information in that message so it's clearer for the team when these messages are sent
You can use the following:
To pass a Test Id
to slack notifications at runtime:
-Dcourgette.slackTestId="Whatever information you want to add here"
To override the report title at runtime:
-Dcourgette.reportTitle="Your report title here"
thank you very much!!
You are doing a great job here
Hi! I hope you are doing well :) Some context first: In my test runner file, I have these Courgette and Cucumber options set
Check that the cucumberOption -> tags = "@wip"
Then, I run my tests through the terminal using
And when I get the tags in the code
I get "@wip" and not "@smoke" as I was expecting.
Note: I'm using Courgette version 6.8.0
Is there a way to get the overridden value of the tags?
Thanks!