E2E Testing webapp

E2E Testing webapp

End-to-end testing for Asqatasun web application running locally, on the developer desktop.

Assumptions

Running E2E testing on webapp

cd testing-tools/E2E-testing-webapp
mvn test \
    -Dadmin.user=admin@asqatasun.org \
    -Dadmin.password=myAsqaPassword \
    -Dhost.location=http://localhost:8080/ \
    -Dfirefox.path=/opt/firefox/firefox \
    -Dgecko.path=/opt/geckodriver

Running one given functional test

Say you just want to debug the “login/logout” test , simply add the argument -Dtest= with the class name as value.

cd testing-tools/E2E-testing-webapp
mvn test \
    -Dadmin.user=admin@asqatasun.org \
    -Dadmin.password=myAsqaPassword \
    -Dhost.location=http://localhost:8080/ \
    -Dfirefox.path=/opt/firefox/firefox \
    -Dgecko.path=/opt/geckodriver \
    \
    -Dtest=LoginLogoutScenarioTest