Skip to content

Latest commit

 

History

History
65 lines (65 loc) · 2.35 KB

README.md

File metadata and controls

65 lines (65 loc) · 2.35 KB

ExercisePESimulator

To run the tests we need to install the Java 8 SDK and the Maven version 3.6.1.
The Selenium integration to Java is set by the pom.xml and the drivers are on the root of the project.
If the enviornement is set it can run on a Unix and Windows systems.
To execute in a IDE set the it to run as a TestNG.
In the command line run it with Maven:
mvn clean install


For tests the user test1 was created.
login: [email protected]
pwd: 123qweasd

To run the simulator test, and since I don't use the portal API to prepare the test, we need to set on the project pom file variables:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-surefire-plugin
<configuration>
<systemPropertyVariables>
(...)
<user.name>test1</user.name>
<user.mail>[email protected]</user.mail>
<user.pwd>123qweasd</user.pwd>
(...)
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>


Java 8u211
https://www.java.com/pt_BR/download/

Maven 3.6.1
http://maven.apache.org/download.cgi

Selenium Java 3.141.59
https://www.seleniumhq.org/
Download

Geckodriver 0.24.0
https://github.com/mozilla/geckodriver/releases

ChromeDriver 75.0.3770.90
https://chromedriver.storage.googleapis.com/index.html?path=75.0.3770.90/


Parameters


If none of the parameters are passed, by default it will run with Firefox and NO gui (headless).

browser: firefox/chrome
gui: yes/no

Examples

mvn clean install -Dbrowser=chrome

mvn clean install -Dgui=yes

mvn clean install -browser=chrome -Dgui=yes


Run Test or Suite


Run Suite (class):
mvn clean install -Dtest=className

Run Test (method):
mvn clean install -Dtest=className#methodName

Just compile and run no tests:
mvn clean install -DskipTests