Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insookwa@automation:~/openmrs/openmrs-contrib-qaframework$ npm run refapp2MarkPatientDeceased
- > openmrs-contrib-qaframework@0.1.0 refapp2MarkPatientDeceased /home/insookwa/openmrs/openmrs-contrib-qaframework
- > mvn test -Dcucumber.filter.tags='@selenium and @markpatientdeceased'
- [INFO] Scanning for projects...
- [WARNING]
- [WARNING] Some problems were encountered while building the effective model for org.openmrs.contrib:qaframework:jar:1.0-SNAPSHOT
- [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 194, column 21
- [WARNING]
- [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
- [WARNING]
- [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
- [WARNING]
- [INFO]
- [INFO] ------------------< org.openmrs.contrib:qaframework >-------------------
- [INFO] Building OpenMRS QA Framework 1.0-SNAPSHOT
- [INFO] --------------------------------[ jar ]---------------------------------
- [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: 99
- [INFO] Successfully formatted: 0 file(s)
- [INFO] Fail to format : 0 file(s)
- [INFO] Skipped : 99 file(s)
- [INFO] Approximate time taken: 1s
- [INFO]
- [INFO] --- frontend-maven-plugin:1.11.3: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/insookwa/openmrs/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 47 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ qaframework ---
- [INFO] Nothing to compile - all classes are up to date
- [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-windows-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-antrun-plugin:1.8:run (make-linux-firefoxdriver-executable) @ qaframework ---
- [INFO] Executing tasks
- main:
- [INFO] Executed tasks
- [INFO]
- [INFO] --- maven-antrun-plugin:1.8:run (make-windows-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/insookwa/openmrs/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.
- 1636430267012 geckodriver INFO Listening on 127.0.0.1:3487
- 1636430267633 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofileGIS6T7"
- 1636430279806 Marionette INFO Marionette enabled
- 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)))
- 1636430291940 Marionette INFO Listening on port 45659
- 1636430292052 RemoteAgent WARN TLS certificate errors will be ignored for this session
- Nov 09, 2021 6:58:12 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- Running locally...
- 1636430293848 geckodriver INFO Listening on 127.0.0.1:8831
- 1636430293881 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofilexM5tu5"
- 1636430296884 Marionette INFO Marionette enabled
- 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)))
- 1636430300605 Marionette INFO Listening on port 34317
- 1636430301251 RemoteAgent WARN TLS certificate errors will be ignored for this session
- Nov 09, 2021 6:58:21 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- 1636430301295 Marionette INFO Stopped listening on port 34317
- 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]
- JavaScript error: resource:///modules/Interactions.jsm, line 201: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
- console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
- console.error: Region.jsm: "Error fetching region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
- console.error: Region.jsm: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 419))
- JavaScript error: resource://gre/modules/JSONFile.jsm, line 186: Error: Data is not ready.
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- 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]"
- 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]"
- 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]"
- 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]"
- 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]"
- console.warn: SearchService: "_init: abandoning init due to shutting down"
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- JavaScript error: , line 0: uncaught exception: 2147500036
- Running locally...
- 1636430304221 geckodriver INFO Listening on 127.0.0.1:26503
- 1636430304340 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofile4ApvfP"
- 1636430308135 Marionette INFO Marionette enabled
- 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)))
- 1636430311923 Marionette INFO Listening on port 37203
- 1636430311994 RemoteAgent WARN TLS certificate errors will be ignored for this session
- Nov 09, 2021 6:58:32 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- Running locally...
- 1636430312150 geckodriver INFO Listening on 127.0.0.1:27862
- 1636430312185 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofileBNlUxA"
- 1636430316991 Marionette INFO Marionette enabled
- 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)))
- 1636430321489 Marionette INFO Listening on port 33869
- 1636430321548 RemoteAgent WARN TLS certificate errors will be ignored for this session
- Nov 09, 2021 6:58:41 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- Running locally...
- 1636430321630 geckodriver INFO Listening on 127.0.0.1:6566
- 1636430321651 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofileGqRQko"
- 1636430327204 Marionette INFO Marionette enabled
- 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)))
- console.error: Region.jsm: "Error fetching region" (new AbortError("The operation was aborted. ", (void 0), 770))
- console.error: Region.jsm: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 419))
- 1636430336821 Marionette INFO Listening on port 35367
- 1636430336923 RemoteAgent WARN TLS certificate errors will be ignored for this session
- Nov 09, 2021 6:58:56 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- 1636430336958 Marionette INFO Stopped listening on port 35367
- 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]
- JavaScript error: resource:///modules/Interactions.jsm, line 201: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
- console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
- JavaScript error: resource://gre/modules/ExtensionSettingsStore.jsm, line 122: Error: The ExtensionSettingsStore was accessed before the initialize promise resolved.
- JavaScript error: resource://gre/modules/JSONFile.jsm, line 186: Error: Data is not ready.
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- 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]"
- console.erroJavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: 2147500036
- 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]"
- 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]"
- 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]"
- 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]"
- console.warn: SearchService: "_init: abandoning init due to shutting down"
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
- JavaScript error: , line 0: AbortError: A request was aborted, for example through a call to IDBTransaction.abort.
- JavaScript error: , line 0: AbortError: A request was aborted, for example through a call to IDBTransaction.abort.
- Running locally...
- 1636430341233 geckodriver INFO Listening on 127.0.0.1:8429
- 1636430341417 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofilePJKT22"
- 1636430344523 Marionette INFO Marionette enabled
- 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)))
- 1636430347975 Marionette INFO Listening on port 45593
- 1636430348068 RemoteAgent WARN TLS certificate errors will be ignored for this session
- Nov 09, 2021 6:59:09 AM org.openqa.selenium.remote.ProtocolHandshake createSession
- INFO: Detected dialect: W3C
- Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 86.603 sec <<< FAILURE!
- Creating causes of death concept(Mark Patient Deceased Test) Time elapsed: 47.417 sec <<< ERROR!
- io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
- at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
- at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
- at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
- at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
- at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
- at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
- at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
- at io.cucumber.core.runner.TestCase.run(TestCase.java:98)
- at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
- at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
- ... 42 more
- Caused by: java.lang.NullPointerException
- at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
- at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
- at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
- ... 47 more
- Creating causes of death concept(Mark Patient Deceased Test) Time elapsed: 47.429 sec <<< ERROR!
- io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
- at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
- at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
- at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
- at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
- at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
- at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
- at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
- at io.cucumber.core.runner.TestCase.run(TestCase.java:110)
- at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
- at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
- ... 42 more
- Caused by: java.lang.NullPointerException
- at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
- at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
- at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
- ... 47 more
- Marking a patient deceased(Mark Patient Deceased Test) Time elapsed: 37.058 sec <<< ERROR!
- io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
- at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
- at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
- at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
- at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
- at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
- at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
- at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
- at io.cucumber.core.runner.TestCase.run(TestCase.java:98)
- at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
- at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
- ... 42 more
- Caused by: java.lang.NullPointerException
- at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
- at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
- at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
- ... 47 more
- Marking a patient deceased(Mark Patient Deceased Test) Time elapsed: 37.06 sec <<< ERROR!
- io.cucumber.core.exception.CucumberException: Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:140)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.getInstance(ObjectFactoryServiceLoader.java:124)
- at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
- at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
- at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
- at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
- at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
- at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
- at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
- at io.cucumber.core.runner.TestCase.run(TestCase.java:110)
- at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
- at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
- at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
- at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
- at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
- at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
- at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
- at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at io.cucumber.core.runtime.ObjectFactoryServiceLoader$DefaultJavaObjectFactory.cacheNewInstance(ObjectFactoryServiceLoader.java:132)
- ... 42 more
- Caused by: java.lang.NullPointerException
- at org.openmrs.contrib.qaframework.helper.Page.<init>(Page.java:91)
- at org.openmrs.contrib.qaframework.page.MarkPatientDeceasedPage.<init>(MarkPatientDeceasedPage.java:77)
- at org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps.<init>(MarkPatientDeceasedSteps.java:18)
- ... 47 more
- Results :
- Tests in error:
- Creating causes of death concept(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- Creating causes of death concept(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- Marking a patient deceased(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- Marking a patient deceased(Mark Patient Deceased Test): Failed to instantiate class org.openmrs.contrib.qaframework.automation.MarkPatientDeceasedSteps
- Tests run: 4, Failures: 0, Errors: 4, Skipped: 0
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 01:43 min
- [INFO] Finished at: 2021-11-09T06:59:09+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/insookwa/openmrs/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
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! openmrs-contrib-qaframework@0.1.0 refapp2MarkPatientDeceased: `mvn test -Dcucumber.filter.tags='@selenium and @markpatientdeceased'`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the openmrs-contrib-qaframework@0.1.0 refapp2MarkPatientDeceased script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm WARN Local package.json exists, but node_modules missing, did you mean to install?
- npm ERR! A complete log of this run can be found in:
- npm ERR! /home/insookwa/.npm/_logs/2021-11-09T03_59_10_109Z-debug.log
- insookwa@automation:~/openmrs/openmrs-contrib-qaframework$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement