Closed DeChrish closed 4 years ago
mvn clean test -Dbobcat.config.contexts=chrome,ss007 ??
Hi,
"-D" is used to set system property in gradle not in maven
Please try to create maven profiles with required context and runmode values. Then use them in surefire plugin (where property name is bobcat.config.contexts
)
http://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html
You can also create maven property which can be set using '-D' and use it in surefire system properties
@Shaihuludus Thanks
How to use different contexts on runtime?
like, mvn clean test -Drunmode== -Dcontexts=