Среда выполнения Graphene не инициализирована - PullRequest
0 голосов
/ 02 августа 2020
• 1000 *

Вот код git для воспроизведения проблемы https://github.com/jagdeepjain/webdriver-arquillian-test

  ~/git/webdriver-arquillian-test   master  mvn clean test
.
.
.
.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Aug 02, 2020 5:55:20 PM org.jboss.arquillian.drone.impl.DroneTestEnricher ensureInjectionPointPrepared
WARNING: Injection point DronePointImpl{droneClass=class org.openqa.selenium.remote.RemoteWebDriver, annotations=[@org.jboss.arquillian.drone.api.annotation.Drone()], lifecycle=CLASS} was not prepared yet. It will be prepared now, but it's recommended that all drones with class lifecycle are prepared in @BeforeClass by the DroneLifecycleManager!
Aug 02, 2020 5:55:20 PM org.jboss.arquillian.drone.impl.DroneTestEnricher ensureInjectionPointPrepared
WARNING: Injection point DronePointImpl{droneClass=class org.openqa.selenium.remote.RemoteWebDriver, annotations=[@org.jboss.arquillian.drone.api.annotation.Drone()], lifecycle=CLASS} was not prepared yet. It will be prepared now, but it's recommended that all drones with class lifecycle are prepared in @BeforeClass by the DroneLifecycleManager!
Aug 02, 2020 5:55:20 PM org.jboss.arquillian.drone.impl.DroneTestEnricher ensureInjectionPointPrepared
WARNING: Injection point DronePointImpl{droneClass=class org.openqa.selenium.remote.RemoteWebDriver, annotations=[@org.jboss.arquillian.drone.api.annotation.Drone()], lifecycle=CLASS} was not prepared yet. It will be prepared now, but it's recommended that all drones with class lifecycle are prepared in @BeforeClass by the DroneLifecycleManager!
Aug 02, 2020 5:55:20 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Aug 02, 2020 5:55:20 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Aug 02, 2020 5:55:21 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 3.683 sec <<< FAILURE! - in TestSuite
f(org.jagdeep.example.arquillian.google.tests.GoogleTest2)  Time elapsed: 0.046 sec  <<< FAILURE!
java.lang.IllegalStateException: The Graphene runtime isn't initialized.
    at org.jagdeep.example.arquillian.google.tests.GoogleTest2.f(GoogleTest2.java:27)

f(org.jagdeep.example.arquillian.google.tests.GoogleTest3)  Time elapsed: 0.047 sec  <<< FAILURE!
java.lang.IllegalStateException: The Graphene runtime isn't initialized.
    at org.jagdeep.example.arquillian.google.tests.GoogleTest3.f(GoogleTest3.java:27)

f(org.jagdeep.example.arquillian.google.tests.GoogleTest1)  Time elapsed: 0.047 sec  <<< FAILURE!
java.lang.IllegalStateException: The Graphene runtime isn't initialized.
    at org.jagdeep.example.arquillian.google.tests.GoogleTest1.f(GoogleTest1.java:27)


Results :

Failed tests:
  GoogleTest1>Arquillian.run:138->f:27 » IllegalState The Graphene runtime isn't...
  GoogleTest2>Arquillian.run:138->f:27 » IllegalState The Graphene runtime isn't...
  GoogleTest3>Arquillian.run:138->f:27 » IllegalState The Graphene runtime isn't...

Tests run: 3, Failures: 3, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.788 s
[INFO] Finished at: 2020-08-02T17:55:23+05:30
[INFO] Final Memory: 25M/250M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project arquillian-ui-test: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/jagdeepjain/git/webdriver-arquillian-test/test-output 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

Подробнее здесь https://github.com/arquillian/arquillian-core/issues/266

...