Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2022
3,276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.08 KB | None | 0 0
  1.  
  2. Deniss-Air:qaframework-bdd-tests juliet$ npm run refapp2OpenConceptLab
  3.  
  4. > openmrs-contrib-qaframework@0.1.0 refapp2OpenConceptLab /Users/juliet/Desktop/openmrs-contrib-qaframework/qaframework-bdd-tests
  5. > mvn test -Dcucumber.filter.tags='@selenium and @openConceptLab'
  6.  
  7. [INFO] Scanning for projects...
  8. [WARNING]
  9. [WARNING] Some problems were encountered while building the effective model for org.openmrs.contrib:qaframework-bdd-tests:jar:1.0-SNAPSHOT
  10. [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 183, column 21
  11. [WARNING]
  12. [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  13. [WARNING]
  14. [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  15. [WARNING]
  16. [INFO]
  17. [INFO] -------------< org.openmrs.contrib:qaframework-bdd-tests >--------------
  18. [INFO] Building qaframework-bdd-tests 1.0-SNAPSHOT
  19. [INFO] --------------------------------[ jar ]---------------------------------
  20. [INFO]
  21. [INFO] --- frontend-maven-plugin:1.11.3:install-node-and-npm (install node and npm) @ qaframework-bdd-tests ---
  22. [INFO] Node v15.8.0 is already installed.
  23. [INFO]
  24. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ qaframework-bdd-tests ---
  25. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  26. [INFO] skip non existing resourceDirectory /Users/juliet/Desktop/openmrs-contrib-qaframework/qaframework-bdd-tests/src/main/resources
  27. [INFO]
  28. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ qaframework-bdd-tests ---
  29. [INFO] Nothing to compile - all classes are up to date
  30. [INFO]
  31. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ qaframework-bdd-tests ---
  32. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  33. [INFO] Copying 53 resources
  34. [INFO]
  35. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ qaframework-bdd-tests ---
  36. [INFO] Nothing to compile - all classes are up to date
  37. [INFO]
  38. [INFO] --- maven-antrun-plugin:1.8:run (make-mac-chromedriver-executable) @ qaframework-bdd-tests ---
  39. [INFO] Executing tasks
  40.  
  41. main:
  42. [INFO] Executed tasks
  43. [INFO]
  44. [INFO] --- maven-antrun-plugin:1.8:run (make-linux-chromedriver-executable) @ qaframework-bdd-tests ---
  45. [INFO] Executing tasks
  46.  
  47. main:
  48. [INFO] Executed tasks
  49. [INFO]
  50. [INFO] --- maven-antrun-plugin:1.8:run (make-windows-chromedriver-executable) @ qaframework-bdd-tests ---
  51. [INFO] Executing tasks
  52.  
  53. main:
  54. [INFO] Executed tasks
  55. [INFO]
  56. [INFO] --- maven-antrun-plugin:1.8:run (make-mac-firefoxdriver-executable) @ qaframework-bdd-tests ---
  57. [INFO] Executing tasks
  58.  
  59. main:
  60. [INFO] Executed tasks
  61. [INFO]
  62. [INFO] --- maven-antrun-plugin:1.8:run (make-linux-firefoxdriver-executable) @ qaframework-bdd-tests ---
  63. [INFO] Executing tasks
  64.  
  65. main:
  66. [INFO] Executed tasks
  67. [INFO]
  68. [INFO] --- maven-antrun-plugin:1.8:run (make-windows-firefoxdriver-executable) @ qaframework-bdd-tests ---
  69. [INFO] Executing tasks
  70.  
  71. main:
  72. [INFO] Executed tasks
  73. [INFO]
  74. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ qaframework-bdd-tests ---
  75. [INFO] Surefire report directory: /Users/juliet/Desktop/openmrs-contrib-qaframework/qaframework-bdd-tests/target/surefire-reports
  76.  
  77. -------------------------------------------------------
  78. T E S T S
  79. -------------------------------------------------------
  80. Running org.openmrs.contrib.qaframework.RunTest
  81. Running locally...
  82. log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
  83. log4j:WARN Please initialize the log4j system properly.
  84. 1643841689656 geckodriver INFO Listening on 127.0.0.1:28303
  85. 1643841690214 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-foreground" "-no-remote" "-profile" "/var/folders/fg/gzbqmc0d0qz0nwq3k8qkc5f80000gn/T/rust_mozprofile797ash"
  86. 1643841692274 Marionette INFO Marionette enabled
  87. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  88. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  89. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /var/folders/fg/gzbqmc0d0qz0nwq3k8qkc5f80000gn/T/rust_mozprofile797ash/search.json.mozlz4", (void 0)))
  90. console.error: BackgroundUpdate:
  91. _reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 243" data: no]
  92. 1643841697507 Marionette INFO Listening on port 56795
  93. 1643841697625 RemoteAgent WARN TLS certificate errors will be ignored for this session
  94. Feb 03, 2022 1:41:37 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  95. INFO: Detected dialect: W3C
  96. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  97. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  98. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  99. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  100. JavaScript error: https://qa-refapp.op1643841723612 Marionette WARN Ignoring event 'DOMContentLoaded' because document has an invalid readyState of 'complete'.
  101. enmrs.org/openmrs/ms/uiframework/resource/uicommons/scripts/jquery-ui-1.9.2.custom.min.js?cache=1643813999744, line 2: TypeError: t is null
  102. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  103. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  104. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  105. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  106. 1643841875858 Marionette INFO Stopped listening on port 56795
  107. Running locally...
  108. 1643841876113 geckodriver INFO Listening on 127.0.0.1:48589
  109. 1643841876204 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-foreground" "-no-remote" "-profile" "/var/folders/fg/gzbqmc0d0qz0nwq3k8qkc5f80000gn/T/rust_mozprofileF8nyqR"
  110. 1643841877212 Marionette INFO Marionette enabled
  111. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  112. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  113. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /var/folders/fg/gzbqmc0d0qz0nwq3k8qkc5f80000gn/T/rust_mozprofileF8nyqR/search.json.mozlz4", (void 0)))
  114. console.error: BackgroundUpdate:
  115. _reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 243" data: no]
  116. 1643841879796 Marionette INFO Listening on port 57144
  117. 1643841879820 RemoteAgent WARN TLS certificate errors will be ignored for this session
  118. Feb 03, 2022 1:44:39 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  119. INFO: Detected dialect: W3C
  120. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  121. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  122. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  123. console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://qa-refapp.openmrs.org"
  124. 1643841896956 Marionette INFO Stopped listening on port 57144
  125.  
  126. ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
  127.  
  128. Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 211.695 sec <<< FAILURE!
  129. OCL MANAGEMENT(OCL Subscription module) Time elapsed: 209.774 sec <<< ERROR!
  130. java.lang.NoClassDefFoundError: org.openqa.selenium.WebDriverException
  131. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:603)
  132. at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:362)
  133. at org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(RemoteWebDriver.java:456)
  134. at org.openqa.selenium.By$ByXPath.findElements(By.java:389)
  135. at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:320)
  136. at org.openmrs.contrib.qaframework.automation.Steps.textExists(Steps.java:66)
  137. at org.openmrs.contrib.qaframework.automation.OpenConceptLabSteps.systemLoadsOpenConceptLabSuccessPage(OpenConceptLabSteps.java:94)
  138. at ✽.the system loads Open Concept Lab Success page(file:///Users/juliet/Desktop/openmrs-contrib-qaframework/qaframework-bdd-tests/src/test/resources/features/refapp-2.x/16-openConceptLab/openConceptLab.feature:18)
  139.  
  140. OCL MANAGEMENT(OCL Subscription module) Time elapsed: 209.807 sec <<< ERROR!
  141. java.lang.NoClassDefFoundError: org.openqa.selenium.WebDriverException
  142. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:603)
  143. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:639)
  144. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:643)
  145. at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:479)
  146. at org.openmrs.contrib.qaframework.automation.Steps.quit(Steps.java:53)
  147. at org.openmrs.contrib.qaframework.automation.OpenConceptLabSteps.destroy(OpenConceptLabSteps.java:44)
  148.  
  149.  
  150. Results :
  151.  
  152. Tests in error:
  153. OCL MANAGEMENT(OCL Subscription module): org.openqa.selenium.WebDriverException
  154. OCL MANAGEMENT(OCL Subscription module): org.openqa.selenium.WebDriverException
  155.  
  156. Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
  157.  
  158. [INFO] ------------------------------------------------------------------------
  159. [INFO] BUILD FAILURE
  160. [INFO] ------------------------------------------------------------------------
  161. [INFO] Total time: 03:38 min
  162. [INFO] Finished at: 2022-02-03T01:44:58+03:00
  163. [INFO] ------------------------------------------------------------------------
  164. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project qaframework-bdd-tests: There are test failures.
  165. [ERROR]
  166. [ERROR] Please refer to /Users/juliet/Desktop/openmrs-contrib-qaframework/qaframework-bdd-tests/target/surefire-reports for the individual test results.
  167. [ERROR] -> [Help 1]
  168. [ERROR]
  169. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  170. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  171. [ERROR]
  172. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  173. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  174. npm ERR! code ELIFECYCLE
  175. npm ERR! errno 1
  176. npm ERR! openmrs-contrib-qaframework@0.1.0 refapp2OpenConceptLab: `mvn test -Dcucumber.filter.tags='@selenium and @openConceptLab'`
  177. npm ERR! Exit status 1
  178. npm ERR!
  179. npm ERR! Failed at the openmrs-contrib-qaframework@0.1.0 refapp2OpenConceptLab script.
  180. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  181. npm WARN Local package.json exists, but node_modules missing, did you mean to install?
  182.  
  183. npm ERR! A complete log of this run can be found in:
  184. npm ERR! /Users/juliet/.npm/_logs/2022-02-02T22_44_58_635Z-debug.log
  185. Deniss-Air:qaframework-bdd-tests juliet$
  186.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement