/selenium_tests

Collection of reusable Selenium patterns - originally hosted inside sergueik/selenium_java repository

Primary LanguageJava

Info

The project practices Java with selected Selenium test scenarios using the test practice sites:

and misc. standalone examples found on

Profiles

Project uses profiles to supports several browsers, possible to select through profile. The detauls browser is chrome.

mvm -P[chrome|edge|firefox] test

Project exercises writing the property file into the target directory with converting the environment variable TEST_PASSWORD into the property file entry:

export TEST_PASSWPORD='super secret'
mvn -Pproperties test
grep password target/classes/test.properties
password=super secret

Note: when not set, it will not become blank, but rather the literal expression used in the pom.xml

unset TEST_PASSWORD
mvn -Pproperties clean test
# if password is crucial for the test, the test will fail
grep password target/classes/test.properties
password=${env.TEST_PASSWORD}

Links

Author

Serguei Kouzmine