Closed Naumansh closed 5 years ago
This is not how multiple tags need to be added. The correct approach from version 1.5.0 on is
-Dtags="@validLogin2 and @validLogin3"
If you want to run either the first or the second, you can do
-Dtags="@validLogin2 or @validLogin3"
because it uses Cucumber expressions.
Thanks man.
1- It is still not running with "-Dtags="@validLogin2 and @validLogin3" with above shared configuration. i.e <includeScenarioTags>${tags}</includeScenarioTags>
2- However if the above tag is removed. The scenarios starts to execute but below ugle logs are generated first.
Console Logs:
[INFO] Running TestSuite
[TestNG] [ERROR] No test suite found. Nothing to run
Usage:
Hi! You probably should ignore your TestSuite class in the failsafe options when invoking your test run.
I tried below but still getting same logs
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<executions>
<execution>
<id>Run parallel tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<threadCount>${threads}</threadCount>
<testFailureIgnore>true</testFailureIgnore>
<disableXmlReport>true</disableXmlReport>
<argLine>-Dfile.encoding=UTF-8</argLine>
<excludes>
<exclude>**/IT*.java</exclude>
<exclude>**/testng.xml</exclude>
</excludes>
</configuration>
</plugin>```
I know its not related to cucable but i would really appreciate your suggested solution on it.
Closing this as it is not related to Cucable.
I'm sorry but I am not an expert in testng. Maybe there's something here? https://stackoverflow.com/questions/50132094/no-test-suite-found-nothing-to-run-but-testng-xml-running-properly-from-eclip
mvn clean verify -Ddevice=chrome -Dtags=@validLogin2,@validLogin3
I have been using the above way to run tests using tags. Same is suggested by you in an older issue https://github.com/trivago/cucable-plugin/issues/41.
However when multiple tags are added, tests are not running without any error. Below is the snipped of config in pom.