Run your first test
Prerequisites
- Have Java 8 or higher installed.
- Install Eclipse or IntelliJ editor.
- Download and extract review from here.
- Install ChromeDriver on your machine and make sure it's is in the PATH.
Tip
On Mac and Linux, place the chromedriver executable in /usr/local/bin folder so Eclipse and IntelliJ can find it.
- Install Maven. You can download the Maven binary Zip file from here
- Follow the installation instructions from here to add it to the PATH.
Run the existing demo app
- Get the code:
- Option 1: Create a new maven project in your IDE and use the
de.retest:recheck-web-archetype
archetype as project prototype. - Option 2:
- Run
mvn archetype:generate -Dfilter=de.retest:
and follow the interactive mode. - Then import the created folder in your IDE as maven project
- Run
- You more information in the recheck-web-archetype github project.
- Option 1: Create a new maven project in your IDE and use the
- Run the test
- In Eclipse: Right click on the Project (or anywhere in the code) > Run As > JUnit Test
- In Command line, run the following Maven command:
mvn test
-
After you run one set of tests, you now have verified that the Golden Master is correct. Run the same test but change
loginFormUrl
insrc/test/java/my/test/util/DemoApp.java
to: https://assets.retest.org/demos/app/demo-app.html.This version of the demo app has some visual bugs so you can see how it all works.static public String loginFormUrl() throws MalformedURLException { return "https://assets.retest.org/demos/app/demo-app.html"; }
-
Start review and start exploring your report
- You find it in your project folder under this path
./target/test-classes/retest/recheck/tests.report
.
- You find it in your project folder under this path