Advertisement
Guest User

Automated Tests

a guest
Mar 2nd, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.88 KB | None | 0 0
  1. opensource@opensource-OptiPlex-3010:~/qadev/openmrs-contrib-qaframework$ mvn clean test
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] ------------------< org.openmrs.contrib:qaframework >-------------------
  5. [INFO] Building OpenMRS QA Framework 1.0-SNAPSHOT
  6. [INFO] --------------------------------[ jar ]---------------------------------
  7. [INFO]
  8. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ qaframework ---
  9. [INFO] Deleting /home/opensource/qadev/openmrs-contrib-qaframework/target
  10. [INFO]
  11. [INFO] --- maven-java-formatter-plugin:0.4:format (default) @ qaframework ---
  12. [INFO] Using 'UTF-8' encoding to format source files.
  13. [INFO] Number of files to be formatted: 11
  14. [INFO] Successfully formatted: 0 file(s)
  15. [INFO] Fail to format        : 0 file(s)
  16. [INFO] Skipped               : 11 file(s)
  17. [INFO] Approximate time taken: 8s
  18. [INFO]
  19. [INFO] --- frontend-maven-plugin:1.9.1:install-node-and-npm (install node and npm) @ qaframework ---
  20. [INFO] Node v15.8.0 is already installed.
  21. [INFO]
  22. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ qaframework ---
  23. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  24. [INFO] skip non existing resourceDirectory /home/opensource/qadev/openmrs-contrib-qaframework/src/main/resources
  25. [INFO]
  26. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ qaframework ---
  27. [INFO] No sources to compile
  28. [INFO]
  29. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ qaframework ---
  30. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  31. [INFO] Copying 28 resources
  32. [INFO]
  33. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ qaframework ---
  34. [INFO] Changes detected - recompiling the module!
  35. [INFO] Compiling 11 source files to /home/opensource/qadev/openmrs-contrib-qaframework/target/test-classes
  36. [INFO]
  37. [INFO] --- maven-antrun-plugin:1.8:run (make-mac-chromedriver-executable) @ qaframework ---
  38. [INFO] Executing tasks
  39.  
  40. main:
  41. [INFO] Executed tasks
  42. [INFO]
  43. [INFO] --- maven-antrun-plugin:1.8:run (make-linux-chromedriver-executable) @ qaframework ---
  44. [INFO] Executing tasks
  45.  
  46. main:
  47. [INFO] Executed tasks
  48. [INFO]
  49. [INFO] --- maven-antrun-plugin:1.8:run (make-mac-firefoxdriver-executable) @ qaframework ---
  50. [INFO] Executing tasks
  51.  
  52. main:
  53. [INFO] Executed tasks
  54. [INFO]
  55. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ qaframework ---
  56. [INFO] Surefire report directory: /home/opensource/qadev/openmrs-contrib-qaframework/target/surefire-reports
  57.  
  58. -------------------------------------------------------
  59.  T E S T S
  60. -------------------------------------------------------
  61. Running org.openmrs.contrib.qaframework.RunTest
  62. Running locally...
  63. log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
  64. log4j:WARN Please initialize the log4j system properly.
  65. Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 4749
  66. Only local connections are allowed.
  67. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
  68. ChromeDriver was started successfully.
  69. Mar 02, 2021 1:05:22 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  70. INFO: Detected dialect: W3C
  71. Running locally...
  72. Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 6131
  73. Only local connections are allowed.
  74. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
  75. ChromeDriver was started successfully.
  76. Mar 02, 2021 1:06:17 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  77. INFO: Detected dialect: W3C
  78. Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 150.842 sec <<< FAILURE!
  79. Add No known allergies(Allergies Management)  Time elapsed: 99.163 sec  <<< ERROR!
  80. java.lang.IllegalArgumentException: Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
  81.     at jakarta.ws.rs.WebApplicationException.validate(WebApplicationException.java:269)
  82.     at jakarta.ws.rs.ServerErrorException.<init>(ServerErrorException.java:74)
  83.     at org.openmrs.uitestframework.test.TestBase.goToLoginPage(TestBase.java:231)
  84.     at org.openmrs.contrib.qaframework.automation.Steps.configuredUserLogin(Steps.java:60)
  85.     at org.openmrs.contrib.qaframework.automation.AllergiesSteps.loadJohnDashboard(AllergiesSteps.java:23)
  86.     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)
  87.  
  88. Remove No known allergies(Allergies Management)  Time elapsed: 37.76 sec  <<< ERROR!
  89. java.lang.IllegalArgumentException: Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
  90.     at jakarta.ws.rs.WebApplicationException.validate(WebApplicationException.java:269)
  91.     at jakarta.ws.rs.ServerErrorException.<init>(ServerErrorException.java:74)
  92.     at org.openmrs.uitestframework.test.TestBase.goToLoginPage(TestBase.java:231)
  93.     at org.openmrs.contrib.qaframework.automation.Steps.configuredUserLogin(Steps.java:60)
  94.     at org.openmrs.contrib.qaframework.automation.AllergiesSteps.loadJohnDashboard(AllergiesSteps.java:23)
  95.     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)
  96.  
  97.  
  98. Results :
  99.  
  100. Tests in error:
  101.   Add No known allergies(Allergies Management): Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
  102.   Remove No known allergies(Allergies Management): Status code of the supplied response [404] is not from the required status code family "SERVER_ERROR".
  103.  
  104. Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
  105.  
  106. [INFO] ------------------------------------------------------------------------
  107. [INFO] BUILD FAILURE
  108. [INFO] ------------------------------------------------------------------------
  109. [INFO] Total time:  03:58 min
  110. [INFO] Finished at: 2021-03-02T13:06:25+03:00
  111. [INFO] ------------------------------------------------------------------------
  112. [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.
  113. [ERROR]
  114. [ERROR] Please refer to /home/opensource/qadev/openmrs-contrib-qaframework/target/surefire-reports for the individual test results.
  115. [ERROR] -> [Help 1]
  116. [ERROR]
  117. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  118. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  119. [ERROR]
  120. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  121. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  122. opensource@opensource-OptiPlex-3010:~/qadev/openmrs-contrib-qaframework$
  123.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement