Skip to content

Run your first test

Prerequisites

  1. Have Java 8 or higher installed.
  2. Install Eclipse or IntelliJ editor.
  3. Download and extract review from here.
  4. 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.

  1. 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

  1. 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
    • You more information in the recheck-web-archetype github project.
  2. 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
  3. After you run one set of tests, you now have verified that the Golden Master is correct. Run the same test but change loginFormUrl in src/test/java/my/test/util/DemoApp.java to: https://assets.retest.org/demos/app/demo-app.html.

    static public String loginFormUrl() throws MalformedURLException {
            return "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.

  4. Start review and start exploring your report

    • You find it in your project folder under this path ./target/test-classes/retest/recheck/tests.report.