Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- opensource@opensource-OptiPlex-3010:~/qadev/openmrs-contrib-qaframework$ mvn clean test
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------< org.openmrs.contrib:qaframework >-------------------
- [INFO] Building OpenMRS QA Framework 1.0-SNAPSHOT
- [INFO] --------------------------------[ jar ]---------------------------------
- [INFO]
- [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ qaframework ---
- [INFO] Deleting /home/opensource/qadev/openmrs-contrib-qaframework/target
- [INFO]
- [INFO] --- maven-java-formatter-plugin:0.4:format (default) @ qaframework ---
- [INFO] Using 'UTF-8' encoding to format source files.
- [INFO] Number of files to be formatted: 11
- [INFO] Successfully formatted: 0 file(s)
- [INFO] Fail to format : 0 file(s)
- [INFO] Skipped : 11 file(s)
- [INFO] Approximate time taken: 8s
- [INFO]
- [INFO] --- frontend-maven-plugin:1.9.1:install-node-and-npm (install node and npm) @ qaframework ---
- [INFO] Node v15.8.0 is already installed.
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ qaframework ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory /home/opensource/qadev/openmrs-contrib-qaframework/src/main/resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ qaframework ---
- [INFO] No sources to compile
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ qaframework ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 28 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ qaframework ---
- [INFO] Changes detected - recompiling the module!
- [INFO] Compiling 11 source files to /home/opensource/qadev/openmrs-contrib-qaframework/target/test-classes
- [INFO]
- [INFO] --- maven-antrun-plugin:1.8:run (make-mac-chromedriver-executable) @ qaframework ---
- [INFO] Executing tasks
- main:
- [INFO] Executed tasks
- [INFO]
- [INFO] --- maven-antrun-plugin:1.8:run (make-linux-chromedriver-executable) @ qaframework ---
- [INFO] Executing tasks
- main:
- [INFO] Executed tasks
- [INFO]
- [INFO] --- maven-antrun-plugin:1.8:run (make-mac-firefoxdriver-executable) @ qaframework ---
- [INFO] Executing tasks
- main:
- [INFO] Executed tasks
- [INFO]
- [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ qaframework ---
- [INFO] Surefire report directory: /home/opensource/qadev/openmrs-contrib-qaframework/target/surefire-reports
- -------------------------------------------------------
- T E S T S
- -------------------------------------------------------
- Running org.openmrs.contrib.qaframework.RunTest
- Running locally...
- log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
- log4j:WARN Please initialize the log4j system properly.
- Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 4749
- Only local connections are allowed.
- Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
- ChromeDriver was started successfully.
- Mar 02, 2021 1:05:22 PM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- Running locally...
- Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 6131
- Only local connections are allowed.
- Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
- ChromeDriver was started successfully.
- Mar 02, 2021 1:06:17 PM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 150.842 sec <<< FAILURE!
- Add No known allergies(Allergies Management) Time elapsed: 99.163 sec <<< ERROR!
- java.lang.IllegalArgumentException: Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
- at jakarta.ws.rs.WebApplicationException.validate(WebApplicationException.java:269)
- at jakarta.ws.rs.ServerErrorException.<init>(ServerErrorException.java:74)
- at org.openmrs.uitestframework.test.TestBase.goToLoginPage(TestBase.java:231)
- at org.openmrs.contrib.qaframework.automation.Steps.configuredUserLogin(Steps.java:60)
- at org.openmrs.contrib.qaframework.automation.AllergiesSteps.loadJohnDashboard(AllergiesSteps.java:23)
- at ✽.a user logs in, searches John and visits his dashboard(file:///home/opensource/qadev/openmrs-contrib-qaframework/src/test/resources/features/11-allergy/allergies.feature:4)
- Remove No known allergies(Allergies Management) Time elapsed: 37.76 sec <<< ERROR!
- java.lang.IllegalArgumentException: Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
- at jakarta.ws.rs.WebApplicationException.validate(WebApplicationException.java:269)
- at jakarta.ws.rs.ServerErrorException.<init>(ServerErrorException.java:74)
- at org.openmrs.uitestframework.test.TestBase.goToLoginPage(TestBase.java:231)
- at org.openmrs.contrib.qaframework.automation.Steps.configuredUserLogin(Steps.java:60)
- at org.openmrs.contrib.qaframework.automation.AllergiesSteps.loadJohnDashboard(AllergiesSteps.java:23)
- at ✽.a user logs in, searches John and visits his dashboard(file:///home/opensource/qadev/openmrs-contrib-qaframework/src/test/resources/features/11-allergy/allergies.feature:4)
- Results :
- Tests in error:
- Add No known allergies(Allergies Management): Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
- Remove No known allergies(Allergies Management): Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 03:58 min
- [INFO] Finished at: 2021-03-02T13:06:25+03:00
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project qaframework: There are test failures.
- [ERROR]
- [ERROR] Please refer to /home/opensource/qadev/openmrs-contrib-qaframework/target/surefire-reports for the individual test results.
- [ERROR] -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- opensource@opensource-OptiPlex-3010:~/qadev/openmrs-contrib-qaframework$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement