Advertisement
Guest User

MARK PATIENT DECEASED TEST

a guest
Nov 8th, 2021
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 34.66 KB | None | 0 0
  1. insookwa@automation:~/openmrs/openmrs-contrib-qaframework$ npm run refapp2MarkPatientDeceased
  2.  
  3. > openmrs-contrib-qaframework@0.1.0 refapp2MarkPatientDeceased /home/insookwa/openmrs/openmrs-contrib-qaframework
  4. > mvn test -Dcucumber.filter.tags='@selenium and @markpatientdeceased'
  5.  
  6. [INFO] Scanning for projects...
  7. [WARNING]
  8. [WARNING] Some problems were encountered while building the effective model for org.openmrs.contrib:qaframework:jar:1.0-SNAPSHOT
  9. [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 194, column 21
  10. [WARNING]
  11. [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  12. [WARNING]
  13. [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  14. [WARNING]
  15. [INFO]
  16. [INFO] ------------------< org.openmrs.contrib:qaframework >-------------------
  17. [INFO] Building OpenMRS QA Framework 1.0-SNAPSHOT
  18. [INFO] --------------------------------[ jar ]---------------------------------
  19. [INFO]
  20. [INFO] --- maven-java-formatter-plugin:0.4:format (default) @ qaframework ---
  21. [INFO] Using 'UTF-8' encoding to format source files.
  22. [INFO] Number of files to be formatted: 99
  23. [INFO] Successfully formatted: 0 file(s)
  24. [INFO] Fail to format        : 0 file(s)
  25. [INFO] Skipped               : 99 file(s)
  26. [INFO] Approximate time taken: 1s
  27. [INFO]
  28. [INFO] --- frontend-maven-plugin:1.11.3:install-node-and-npm (install node and npm) @ qaframework ---
  29. [INFO] Node v15.8.0 is already installed.
  30. [INFO]
  31. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ qaframework ---
  32. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  33. [INFO] skip non existing resourceDirectory /home/insookwa/openmrs/openmrs-contrib-qaframework/src/main/resources
  34. [INFO]
  35. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ qaframework ---
  36. [INFO] No sources to compile
  37. [INFO]
  38. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ qaframework ---
  39. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  40. [INFO] Copying 47 resources
  41. [INFO]
  42. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ qaframework ---
  43. [INFO] Nothing to compile - all classes are up to date
  44. [INFO]
  45. [INFO] --- maven-antrun-plugin:1.8:run (make-mac-chromedriver-executable) @ qaframework ---
  46. [INFO] Executing tasks
  47.  
  48. main:
  49. [INFO] Executed tasks
  50. [INFO]
  51. [INFO] --- maven-antrun-plugin:1.8:run (make-linux-chromedriver-executable) @ qaframework ---
  52. [INFO] Executing tasks
  53.  
  54. main:
  55. [INFO] Executed tasks
  56. [INFO]
  57. [INFO] --- maven-antrun-plugin:1.8:run (make-windows-chromedriver-executable) @ qaframework ---
  58. [INFO] Executing tasks
  59.  
  60. main:
  61. [INFO] Executed tasks
  62. [INFO]
  63. [INFO] --- maven-antrun-plugin:1.8:run (make-mac-firefoxdriver-executable) @ qaframework ---
  64. [INFO] Executing tasks
  65.  
  66. main:
  67. [INFO] Executed tasks
  68. [INFO]
  69. [INFO] --- maven-antrun-plugin:1.8:run (make-linux-firefoxdriver-executable) @ qaframework ---
  70. [INFO] Executing tasks
  71.  
  72. main:
  73. [INFO] Executed tasks
  74. [INFO]
  75. [INFO] --- maven-antrun-plugin:1.8:run (make-windows-firefoxdriver-executable) @ qaframework ---
  76. [INFO] Executing tasks
  77.  
  78. main:
  79. [INFO] Executed tasks
  80. [INFO]
  81. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ qaframework ---
  82. [INFO] Surefire report directory: /home/insookwa/openmrs/openmrs-contrib-qaframework/target/surefire-reports
  83.  
  84. -------------------------------------------------------
  85.  T E S T S
  86. -------------------------------------------------------
  87. Running org.openmrs.contrib.qaframework.RunTest
  88. Running locally...
  89. log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
  90. log4j:WARN Please initialize the log4j system properly.
  91. 1636430267012   geckodriver INFO    Listening on 127.0.0.1:3487
  92. 1636430267633   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofileGIS6T7"
  93. 1636430279806   Marionette  INFO    Marionette enabled
  94. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofileGIS6T7/search.json.mozlz4", (void 0)))
  95. 1636430291940   Marionette  INFO    Listening on port 45659
  96. 1636430292052   RemoteAgent WARN    TLS certificate errors will be ignored for this session
  97. Nov 09, 2021 6:58:12 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  98. INFO: Detected dialect: W3C
  99. Running locally...
  100. 1636430293848   geckodriver INFO    Listening on 127.0.0.1:8831
  101. 1636430293881   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofilexM5tu5"
  102. 1636430296884   Marionette  INFO    Marionette enabled
  103. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofilexM5tu5/search.json.mozlz4", (void 0)))
  104. 1636430300605   Marionette  INFO    Listening on port 34317
  105. 1636430301251   RemoteAgent WARN    TLS certificate errors will be ignored for this session
  106. Nov 09, 2021 6:58:21 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  107. INFO: Detected dialect: W3C
  108. 1636430301295   Marionette  INFO    Stopped listening on port 34317
  109. JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 27: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver]
  110. JavaScript error: resource:///modules/Interactions.jsm, line 201: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
  111. console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
  112. console.error: Region.jsm: "Error fetching region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
  113. console.error: Region.jsm: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 419))
  114. JavaScript error: resource://gre/modules/JSONFile.jsm, line 186: Error: Data is not ready.
  115. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  116. console.error: "Could not load engine google@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  117. console.error: "Could not load engine amazondotcom@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  118. console.error: "Could not load engine wikipedia@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  119. console.error: "Could not load engine bing@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  120. console.error: "Could not load engine ddg@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  121. console.warn: SearchService: "_init: abandoning init due to shutting down"
  122. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  123. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  124. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  125. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  126. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  127. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  128. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  129. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  130. JavaScript error: , line 0: uncaught exception: 2147500036
  131. Running locally...
  132. 1636430304221   geckodriver INFO    Listening on 127.0.0.1:26503
  133. 1636430304340   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofile4ApvfP"
  134. 1636430308135   Marionette  INFO    Marionette enabled
  135. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofile4ApvfP/search.json.mozlz4", (void 0)))
  136. 1636430311923   Marionette  INFO    Listening on port 37203
  137. 1636430311994   RemoteAgent WARN    TLS certificate errors will be ignored for this session
  138. Nov 09, 2021 6:58:32 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  139. INFO: Detected dialect: W3C
  140. Running locally...
  141. 1636430312150   geckodriver INFO    Listening on 127.0.0.1:27862
  142. 1636430312185   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofileBNlUxA"
  143. 1636430316991   Marionette  INFO    Marionette enabled
  144. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofileBNlUxA/search.json.mozlz4", (void 0)))
  145. 1636430321489   Marionette  INFO    Listening on port 33869
  146. 1636430321548   RemoteAgent WARN    TLS certificate errors will be ignored for this session
  147. Nov 09, 2021 6:58:41 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  148. INFO: Detected dialect: W3C
  149. Running locally...
  150. 1636430321630   geckodriver INFO    Listening on 127.0.0.1:6566
  151. 1636430321651   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofileGqRQko"
  152. 1636430327204   Marionette  INFO    Marionette enabled
  153. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofileGqRQko/search.json.mozlz4", (void 0)))
  154. console.error: Region.jsm: "Error fetching region" (new AbortError("The operation was aborted. ", (void 0), 770))
  155. console.error: Region.jsm: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 419))
  156. 1636430336821   Marionette  INFO    Listening on port 35367
  157. 1636430336923   RemoteAgent WARN    TLS certificate errors will be ignored for this session
  158. Nov 09, 2021 6:58:56 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  159. INFO: Detected dialect: W3C
  160. 1636430336958   Marionette  INFO    Stopped listening on port 35367
  161. JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 27: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver]
  162. JavaScript error: resource:///modules/Interactions.jsm, line 201: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
  163. console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
  164. JavaScript error: resource://gre/modules/ExtensionSettingsStore.jsm, line 122: Error: The ExtensionSettingsStore was accessed before the initialize promise resolved.
  165. JavaScript error: resource://gre/modules/JSONFile.jsm, line 186: Error: Data is not ready.
  166. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  167. console.error: "Could not load engine google@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  168. console.erroJavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  169. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  170. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  171. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  172. JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
  173. r: "Could not load engine amazondotcom@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  174. console.error: "Could not load engine wikipedia@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  175. console.error: "Could not load engine bing@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  176. console.error: "Could not load engine ddg@search.mozilla.org: [Exception... \"AddonManager is not initialized\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: resource://gre/modules/AddonManager.jsm :: installBuiltinAddon :: line 2526\"  data: no]"
  177. console.warn: SearchService: "_init: abandoning init due to shutting down"
  178. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  179. console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
  180. JavaScript error: , line 0: AbortError: A request was aborted, for example through a call to IDBTransaction.abort.
  181. JavaScript error: , line 0: AbortError: A request was aborted, for example through a call to IDBTransaction.abort.
  182. Running locally...
  183. 1636430341233   geckodriver INFO    Listening on 127.0.0.1:8429
  184. 1636430341417   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofilePJKT22"
  185. 1636430344523   Marionette  INFO    Marionette enabled
  186. console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofilePJKT22/search.json.mozlz4", (void 0)))
  187. 1636430347975   Marionette  INFO    Listening on port 45593
  188. 1636430348068   RemoteAgent WARN    TLS certificate errors will be ignored for this session
  189. Nov 09, 2021 6:59:09 AM org.openqa.selenium.remote.ProtocolHandshake createSession
  190. INFO: Detected dialect: W3C
  191. Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 86.603 sec <<< FAILURE!
  192. Creating causes of death concept(Mark Patient Deceased Test)  Time elapsed: 47.417 sec  <<< ERROR!
  193. io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  194.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
  195.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
  196.     at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
  197.     at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
  198.     at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
  199.     at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
  200.     at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
  201.     at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
  202.     at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
  203.     at io.cucumber.core.runner.TestCase.run(TestCase.java:98)
  204.     at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
  205.     at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
  206.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
  207.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
  208.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  209.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  210.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  211.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  212.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  213.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  214.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  215.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
  216.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
  217.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  218.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  219.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  220.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  221.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  222.     at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
  223.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  224.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  225.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  226.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  227.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  228.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  229.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  230.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  231.     at java.lang.reflect.Method.invoke(Method.java:498)
  232.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  233.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  234.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  235.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  236.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  237. Caused by: java.lang.reflect.InvocationTargetException
  238.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  239.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  240.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  241.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  242.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
  243.     ... 42 more
  244. Caused by: java.lang.NullPointerException
  245.     at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
  246.     at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
  247.     at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
  248.     ... 47 more
  249.  
  250. Creating causes of death concept(Mark Patient Deceased Test)  Time elapsed: 47.429 sec  <<< ERROR!
  251. io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  252.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
  253.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
  254.     at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
  255.     at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
  256.     at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
  257.     at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
  258.     at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
  259.     at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
  260.     at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
  261.     at io.cucumber.core.runner.TestCase.run(TestCase.java:110)
  262.     at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
  263.     at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
  264.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
  265.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
  266.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  267.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  268.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  269.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  270.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  271.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  272.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  273.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
  274.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
  275.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  276.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  277.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  278.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  279.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  280.     at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
  281.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  282.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  283.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  284.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  285.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  286.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  287.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  288.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  289.     at java.lang.reflect.Method.invoke(Method.java:498)
  290.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  291.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  292.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  293.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  294.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  295. Caused by: java.lang.reflect.InvocationTargetException
  296.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  297.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  298.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  299.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  300.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
  301.     ... 42 more
  302. Caused by: java.lang.NullPointerException
  303.     at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
  304.     at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
  305.     at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
  306.     ... 47 more
  307.  
  308. Marking a patient deceased(Mark Patient Deceased Test)  Time elapsed: 37.058 sec  <<< ERROR!
  309. io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  310.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
  311.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
  312.     at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
  313.     at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
  314.     at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
  315.     at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
  316.     at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
  317.     at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
  318.     at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
  319.     at io.cucumber.core.runner.TestCase.run(TestCase.java:98)
  320.     at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
  321.     at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
  322.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
  323.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
  324.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  325.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  326.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  327.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  328.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  329.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  330.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  331.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
  332.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
  333.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  334.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  335.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  336.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  337.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  338.     at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
  339.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  340.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  341.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  342.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  343.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  344.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  345.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  346.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  347.     at java.lang.reflect.Method.invoke(Method.java:498)
  348.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  349.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  350.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  351.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  352.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  353. Caused by: java.lang.reflect.InvocationTargetException
  354.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  355.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  356.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  357.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  358.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
  359.     ... 42 more
  360. Caused by: java.lang.NullPointerException
  361.     at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
  362.     at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
  363.     at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
  364.     ... 47 more
  365.  
  366. Marking a patient deceased(Mark Patient Deceased Test)  Time elapsed: 37.06 sec  <<< ERROR!
  367. io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  368.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
  369.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
  370.     at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
  371.     at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
  372.     at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
  373.     at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
  374.     at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
  375.     at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
  376.     at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
  377.     at io.cucumber.core.runner.TestCase.run(TestCase.java:110)
  378.     at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
  379.     at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
  380.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
  381.     at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
  382.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  383.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  384.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  385.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  386.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  387.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  388.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  389.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
  390.     at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
  391.     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
  392.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
  393.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
  394.     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
  395.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
  396.     at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
  397.     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
  398.     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
  399.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  400.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  401.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  402.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  403.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  404.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  405.     at java.lang.reflect.Method.invoke(Method.java:498)
  406.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  407.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  408.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  409.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  410.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  411. Caused by: java.lang.reflect.InvocationTargetException
  412.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  413.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  414.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  415.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  416.     at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
  417.     ... 42 more
  418. Caused by: java.lang.NullPointerException
  419.     at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
  420.     at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
  421.     at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
  422.     ... 47 more
  423.  
  424.  
  425. Results :
  426.  
  427. Tests in error:
  428.   Creating causes of death concept(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  429.   Creating causes of death concept(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  430.   Marking a patient deceased(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  431.   Marking a patient deceased(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
  432.  
  433. Tests run: 4, Failures: 0, Errors: 4, Skipped: 0
  434.  
  435. [INFO] ------------------------------------------------------------------------
  436. [INFO] BUILD FAILURE
  437. [INFO] ------------------------------------------------------------------------
  438. [INFO] Total time:  01:43 min
  439. [INFO] Finished at: 2021-11-09T06:59:09+03:00
  440. [INFO] ------------------------------------------------------------------------
  441. [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.
  442. [ERROR]
  443. [ERROR] Please refer to /home/insookwa/openmrs/openmrs-contrib-qaframework/target/surefire-reports for the individual test results.
  444. [ERROR] -> [Help 1]
  445. [ERROR]
  446. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  447. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  448. [ERROR]
  449. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  450. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  451. npm ERR! code ELIFECYCLE
  452. npm ERR! errno 1
  453. npm ERR! openmrs-contrib-qaframework@0.1.0 refapp2MarkPatientDeceased: `mvn test -Dcucumber.filter.tags='@selenium and @markpatientdeceased'`
  454. npm ERR! Exit status 1
  455. npm ERR!
  456. npm ERR! Failed at the openmrs-contrib-qaframework@0.1.0 refapp2MarkPatientDeceased script.
  457. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  458. npm WARN Local package.json exists, but node_modules missing, did you mean to install?
  459.  
  460. npm ERR! A complete log of this run can be found in:
  461. npm ERR!     /home/insookwa/.npm/_logs/2021-11-09T03_59_10_109Z-debug.log
  462. insookwa@automation:~/openmrs/openmrs-contrib-qaframework$
  463.  
  464.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement