hello,
I need to set cucumber rerun option, and I also need to use variable tags at the same time.
Somebody knows a way to do it ?
how to set this plugin option within CucumberKW.runFeatureFileWithTags() ?
I have no variable to pass this plugin option ?
, plugin=[“pretty”, “html:ReportsCucumber”,“json:ReportsCucumber/cucumber.json”, “rerun:ReportsCucumber/rerun_cucumber.txt”]
my code for the moment :
CucumberKW.runFeatureFileWithTags('Include/features/', 'not @skip and not @0_AvoidOnVersion'+ GlobalVariable.version + ' and (' +GlobalVariable.cucumberTagsSentence+ ')')
If I try to use the other way :
CucumberKW.runWithCucumberRunner(CucumberLauncher.class)
and class CucumberLauncher.groovy :
@RunWith(Cucumber.class)
@CucumberOptions( features=“Include/features/”
, glue=“”
, tags = ‘not @X_StaticTest and not @skip and not @0_AvoidOnVersion’+ GlobalVariable.version
, plugin=[“pretty”, “html:ReportsCucumber”,“json:ReportsCucumber/cucumber.json”, “rerun:ReportsCucumber/rerun_cucumber.txt”])
//@CucumberOptions(features=“Include/features/Test_Seb.feature”,glue=“”, plugin=[“pretty”, “html:ReportsCucumber”,“json:ReportsCucumber/cucumber.json”, “rerun:ReportsCucumber/rerun_cucumber.txt”])public class CucumberLauncher {
}
I get an error :
Multiple markers at this line
- Groovy:Expected ‘(not @X_StaticTest and not @skip and not @0_AvoidOnVersion + internal.GlobalVariable.version)’ to be an inline constant of type java.lang.String in @cucumber.api.
CucumberOptions