Project for UI testing the Logistics application. The test is based on Selenium and is executed through Maven (installation required).
In order to run the test, execute the command mvn test -Dpage.url=<logistics_url>
, replacing <logistics_url> with the URL where the Logistics application is available. The command mvn test -Dpage.url=http://www.esign.com.br/logistics
, for example, executes the test against the instance of the application at http://www.esign.com.br/logistics.
The test opens the Chrome web browser and validates the Logistics application functionalities like it was an ordinary user, but in an automatic manner. If the page.url parameter was not defined, be sure the application is available on http://localhost:8080/logistics, the default URL.
You can also prevent the Chrome web browser from openning, by adding the option -Dheadless=true. In this scenario, everything happens in the background, you are not able to see the web application while the tests run.
Alternativelly, you can run the test with Docker. To test against a local instance of the Logistics application available on port 8080, for example, execute docker run --rm --name test --network host -e LOGISTICS_URL=http://localhost:8080/logistics esignbr/logistics-test-selenium
.