Hi Team,
I am using latest cucumber maven dependencies in my project. When i am trying to call multiple scenarios in tags(CucumberOptions),im getting an error as "Type mismatch:Cannot convert String[] to String", i have also googled it, but found no solution.Please help me out im stuck here:
import io.cucumber.testng.AbstractTestNGCucumberTests;
import io.cucumber.testng.CucumberOptions;
@CucumberOptions(
dryRun=false,
strict=true,
monochrome=true,
features= {"src/test/resources/"},
glue = {"com.qtpselenium.cucumber"},
plugin= { "pretty",
"html:target/site/cucumber-html",
"json:target/cucumber1.json"},
tags= { "@BookHotel", "@shop" }
)
Instructor
Ashish Thakur Replied on 19/06/2020
For which line its showing error?
For this one- tags= { "@BookHotel", "@shop" }
Instructor
Ashish Thakur Replied on 23/06/2020
For this one- tags= { "@BookHotel,@shop" }
Try this