wttech / bobcat

Bobcat is an automated testing framework for functional testing of web applications.
https://cognifide.github.io/bobcat/
Apache License 2.0
90 stars 40 forks source link

How to use different CONTEXTS on RUNTIME #417

Closed DeChrish closed 4 years ago

DeChrish commented 4 years ago

How to use different contexts on runtime?

like, mvn clean test -Drunmode== -Dcontexts=

DeChrish commented 4 years ago

mvn clean test -Dbobcat.config.contexts=chrome,ss007 ??

Shaihuludus commented 4 years ago

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

DeChrish commented 4 years ago

@Shaihuludus Thanks