mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
447 stars 107 forks source link

Getting error while executing script in Opentest #501

Closed Pathakvinita closed 2 years ago

Pathakvinita commented 3 years ago

Hi, I'm trying to execute one script of navigate to keyword but while executing that script, chrome is not getting opened and every time I m getting one error as "runOneSession" method failed. Can anyone help me to solve this issue. Chrome version and chromedriver version is same.

Thanks in advance

ERROR: java.lang.Exception: Failed executing test /Login-test, segment 1 at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2287) at org.getopentest.base.TestActor.runOneSession(TestActor.java:3087) at org.getopentest.base.TestActor.runOneSession(TestActor.java:3123) at org.getopentest.Main.main(Main.java:20) Caused by: java.lang.RuntimeException: There was an error while executing action no. 1 (org.getopentest.selenium.NavigateTo) in segment 1 of test /Login-test. The action definition was: { "action": "org.getopentest.selenium.NavigateTo", "args": { "url": "https://opensource-demo.orangehrmlive.com/" }, "description": "Navigate to GitHub" } at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2245) ... 3 more Caused by: java.lang.RuntimeException: Failed executing action org.getopentest.selenium.NavigateTo with arguments {"url":"https://opensource-demo.orangehrmlive.com/"} at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1860) at org.getopentest.base.TestActor.executeTestSegment(TestActor.java:2182) ... 3 more Caused by: java.lang.RuntimeException: org.openqa.selenium.WebDriverException: unknown error: Failed to create Chrome process. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'LIN60015509', ip: '192.168.43.141', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_92' Driver info: driver.version: ChromeDriver remote stacktrace: Backtrace: Ordinal0 [0x003F5843+2512963] Ordinal0 [0x0038EED1+2092753] Ordinal0 [0x00291F48+1056584] Ordinal0 [0x002AC296+1163926] Ordinal0 [0x002A990F+1153295] Ordinal0 [0x002D994F+1349967] Ordinal0 [0x002D95BA+1349050] Ordinal0 [0x002D54BB+1332411] Ordinal0 [0x002B1D14+1187092] Ordinal0 [0x002B2B79+1190777] GetHandleVerifier [0x00570C56+1501718] GetHandleVerifier [0x0061E97F+2213695] GetHandleVerifier [0x00478C92+485970] GetHandleVerifier [0x00477D59+482073] Ordinal0 [0x0039471D+2115357] Ordinal0 [0x00398678+2131576] Ordinal0 [0x003987B2+2131890] Ordinal0 [0x003A1971+2169201] BaseThreadInitThunk [0x770CFA29+25] RtlGetAppContainerNamedObjectPath [0x77417A7E+286] RtlGetAppContainerNamedObjectPath [0x77417A4E+238]

at org.getopentest.base.TestActor.executeActionByClassName(TestActor.java:1662)
at org.getopentest.base.TestActor.executeActionByDef(TestActor.java:1744)
... 4 more

Caused by: org.openqa.selenium.WebDriverException: unknown error: Failed to create Chrome process. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'LIN60015509', ip: '192.168.43.141', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_92' Driver info: driver.version: ChromeDriver remote stacktrace: Backtrace: Ordinal0 [0x003F5843+2512963] Ordinal0 [0x0038EED1+2092753] Ordinal0 [0x00291F48+1056584] Ordinal0 [0x002AC296+1163926] Ordinal0 [0x002A990F+1153295] Ordinal0 [0x002D994F+1349967] Ordinal0 [0x002D95BA+1349050] Ordinal0 [0x002D54BB+1332411] Ordinal0 [0x002B1D14+1187092] Ordinal0 [0x002B2B79+1190777] GetHandleVerifier [0x00570C56+1501718] GetHandleVerifier [0x0061E97F+2213695] GetHandleVerifier [0x00478C92+485970] GetHandleVerifier [0x00477D59+482073] Ordinal0 [0x0039471D+2115357] Ordinal0 [0x00398678+2131576] Ordinal0 [0x003987B2+2131890] Ordinal0 [0x003A1971+2169201] BaseThreadInitThunk [0x770CFA29+25] RtlGetAppContainerNamedObjectPath [0x77417A7E+286] RtlGetAppContainerNamedObjectPath [0x77417A4E+238]

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 org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
at org.getopentest.selenium.core.SeleniumHelper.createDriver(SeleniumHelper.java:87)
at org.getopentest.selenium.core.SeleniumHelper.getDriver(SeleniumHelper.java:227)
at org.getopentest.selenium.core.SeleniumTestAction.initialize(SeleniumTestAction.java:216)
at org.getopentest.base.TestActor.executeAction(TestActor.java:1479)
at org.getopentest.base.TestActor.executeActionByClassName(TestActor.java:1639)
... 5 more

ERROR: The "runOneSession" method failed

ERROR: java.lang.NullPointerException at org.getopentest.selenium.core.SeleniumTestAction$1.update(SeleniumTestAction.java:203) at java.util.Observable.notifyObservers(Observable.java:159) at org.getopentest.base.TestActor.runOneSession(TestActor.java:3112) at org.getopentest.base.TestActor.runOneSession(TestActor.java:3123) at org.getopentest.Main.main(Main.java:20)

adrianth commented 3 years ago

Google selenium failed to create Chrome process and you'll find some possible causes for this error and solutions. Basically, the error message is telling you that the Chrome WebDriver cannot launch the Chrome browser, which could be because of a variety of reasons. The issue is pretty well documented on Stack Overflow and other online sources.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.