How to run Arquillian tests with IntelliJ IDEA and Wildfly Swarm - intellij-idea

I try to follow how-to guide at
https://howto.wildfly-swarm.io/v/2017.5.0/test-in-container/
They wrote:
Since Arquillian is simply an integration with JUnit, you can run your
test by using Maven or your IDE:
When I run the DatasourcesIT#testIt from IDEA with
Arquillian Junit Manual container configuration
or with plain Junit
I got failed test.
org.junit.ComparisonFailure:
Expected :Found the datasource
Actual :
But this test works when I run mvn verify
Why?
May be I missed something in Arquillian Junit Manual container configuration?
I don't add something in manual configuration.
Edit 1
Add logs, but these are very similar.
Maven log:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.wildfly.swarm.howto.datasources.DatasourcesIT
May 04, 2017 9:49:11 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPermanentFileStorage readStore
INFO: Reused session store is not available at /home/ar/.drone-webdriver-session-store, a new one will be created.
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: /home/ar/projects/github/wildfly-swarm-howto/use-a-bom/target/drone-phantomjs
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 21610
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=21610, --webdriver-logfile=/home/ar/projects/github/wildfly-swarm-howto/use-a-bom/phantomjsdriver.log]
May 04, 2017 9:49:12 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2017-05-04T18:49:13.840Z] GhostDriver - Main - running on port 21610
[INFO - 2017-05-04T18:49:14.138Z] Session [5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[INFO - 2017-05-04T18:49:14.138Z] Session [5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf] - page.customHeaders: - {}
[INFO - 2017-05-04T18:49:14.138Z] Session [5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2017-05-04T18:49:14.138Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 5e5f4a70-30fa-11e7-bf4c-6fea2c273ecf
[INFO - 2017-05-04T18:49:14.709Z] ShutdownReqHand - _handle - About to shutdown
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.181 sec - in org.wildfly.swarm.howto.datasources.DatasourcesIT
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
IDEA log:
/usr/lib/jvm/java-8-oracle/bin/java -Dphantomjs.binary.version=2.1.1 -Didea.test.cyclic.buffer.size=1048576 -javaagent:/opt/Jetbrains/idea-IU-171.4073.17/lib/idea_rt.jar=44397:/opt/Jetbrains/idea-IU-171.4073.17/bin -Dfile.encoding=UTF-8 -classpath /opt/Jetbrains/idea-IU-171.4073.17/lib/idea_rt.jar:/opt/Jetbrains/idea-IU-171.4073.17/plugins/junit/lib/junit-rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/ar/projects/github/wildfly-swarm-howto/use-a-bom/target/test-classes:/home/ar/projects/github/wildfly-swarm-howto/use-a-bom/target/classes:/home/ar/.m2/repository/com/h2database/h2/1.4.187/h2-1.4.187.jar:/home/ar/.m2/repository/org/wildfly/swarm/jaxrs/2017.6.0-SNAPSHOT/jaxrs-2017.6.0-20170504.101939-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/container/2017.6.0-SNAPSHOT/container-2017.6.0-20170504.101836-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/spi/2017.6.0-SNAPSHOT/spi-2017.6.0-20170504.101825-7.jar:/home/ar/.m2/repository/org/jboss/jandex/2.0.2.Final/jandex-2.0.2.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/bootstrap/2017.6.0-SNAPSHOT/bootstrap-2017.6.0-20170504.101815-7.jar:/home/ar/.m2/repository/org/jboss/modules/jboss-modules/1.5.2.Final/jboss-modules-1.5.2.Final.jar:/home/ar/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar:/home/ar/.m2/repository/org/wildfly/swarm/config-api/1.0.3.Final/config-api-1.0.3.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/config-api-runtime/1.0.3.Final/config-api-runtime-1.0.3.Final.jar:/home/ar/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/logging/2017.6.0-SNAPSHOT/logging-2017.6.0-20170504.101843-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/undertow/2017.6.0-SNAPSHOT/undertow-2017.6.0-20170504.101921-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/io/2017.6.0-SNAPSHOT/io-2017.6.0-20170504.101850-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/ee/2017.6.0-SNAPSHOT/ee-2017.6.0-20170504.101908-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/naming/2017.6.0-SNAPSHOT/naming-2017.6.0-20170504.101902-7.jar:/home/ar/.m2/repository/org/jboss/spec/javax/enterprise/concurrent/jboss-concurrency-api_1.0_spec/1.0.0.Final/jboss-concurrency-api_1.0_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.2_spec/1.0.0.Final/jboss-interceptors-api_1.2_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/1.0.7.Final/jboss-el-api_3.0_spec-1.0.7.Final.jar:/home/ar/.m2/repository/org/glassfish/javax.el-impl/3.0.1-b08-jbossorg-1/javax.el-impl-3.0.1-b08-jbossorg-1.jar:/home/ar/.m2/repository/org/wildfly/swarm/request-controller/2017.6.0-SNAPSHOT/request-controller-2017.6.0-20170504.101913-7.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-jboss/2.0.0-alpha-9/shrinkwrap-descriptors-api-jboss-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-jboss/2.0.0-alpha-9/shrinkwrap-descriptors-impl-jboss-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-javaee/2.0.0-alpha-9/shrinkwrap-descriptors-api-javaee-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-api-base/2.0.0-alpha-9/shrinkwrap-descriptors-api-base-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-javaee/2.0.0-alpha-9/shrinkwrap-descriptors-impl-javaee-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-base/2.0.0-alpha-9/shrinkwrap-descriptors-impl-base-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/spec/javax/servlet/jboss-servlet-api_3.1_spec/1.0.0.Final/jboss-servlet-api_3.1_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/websocket/jboss-websocket-api_1.1_spec/1.1.1.Final/jboss-websocket-api_1.1_spec-1.1.1.Final.jar:/home/ar/.m2/repository/io/undertow/undertow-servlet/1.4.11.Final/undertow-servlet-1.4.11.Final.jar:/home/ar/.m2/repository/io/undertow/undertow-core/1.4.11.Final/undertow-core-1.4.11.Final.jar:/home/ar/.m2/repository/org/jboss/xnio/xnio-api/3.3.6.Final/xnio-api-3.3.6.Final.jar:/home/ar/.m2/repository/org/jboss/xnio/xnio-nio/3.3.6.Final/xnio-nio-3.3.6.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/security/2017.6.0-SNAPSHOT/security-2017.6.0-20170504.101926-7.jar:/home/ar/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.2_spec/1.0.0.Final/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/jaxrs-cdi/2017.6.0-SNAPSHOT/jaxrs-cdi-2017.6.0-20170504.101931-7.jar:/home/ar/.m2/repository/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.jar:/home/ar/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.0_spec/1.0.0.Final/jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar:/home/ar/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.4/jackson-core-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.4/jackson-annotations-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.4/jackson-databind-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.7.4/jackson-jaxrs-json-provider-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.7.4/jackson-jaxrs-base-2.7.4.jar:/home/ar/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.7.4/jackson-module-jaxb-annotations-2.7.4.jar:/home/ar/.m2/repository/org/wildfly/swarm/meta-spi/2017.6.0-SNAPSHOT/meta-spi-2017.6.0-20170504.101820-7.jar:/home/ar/.m2/repository/org/wildfly/swarm/datasources/2017.6.0-SNAPSHOT/datasources-2017.6.0-20170504.093822-6.jar:/home/ar/.m2/repository/org/wildfly/swarm/jca/2017.6.0-SNAPSHOT/jca-2017.6.0-20170504.093815-6.jar:/home/ar/.m2/repository/org/wildfly/swarm/connector/2017.6.0-SNAPSHOT/connector-2017.6.0-20170504.093806-6.jar:/home/ar/.m2/repository/org/jboss/spec/javax/resource/jboss-connector-api_1.7_spec/1.0.0.Final/jboss-connector-api_1.7_spec-1.0.0.Final.jar:/home/ar/.m2/repository/org/wildfly/swarm/transactions/2017.6.0-SNAPSHOT/transactions-2017.6.0-20170504.093739-6.jar:/home/ar/.m2/repository/org/jboss/narayana/jts/narayana-jts-idlj/5.3.3.Final/narayana-jts-idlj-5.3.3.Final.jar:/home/ar/.m2/repository/org/jboss/openjdk-orb/openjdk-orb/8.0.4.Final/openjdk-orb-8.0.4.Final.jar:/home/ar/.m2/repository/org/jboss/ironjacamar/ironjacamar-jdbc/1.3.4.Final/ironjacamar-jdbc-1.3.4.Final.jar:/home/ar/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.0.Final/jboss-transaction-api_1.2_spec-1.0.0.Final.jar:/home/ar/.m2/repository/junit/junit/4.11/junit-4.11.jar:/home/ar/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/ar/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-container/1.1.12.Final/arquillian-junit-container-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-core/1.1.12.Final/arquillian-junit-core-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/test/arquillian-test-api/1.1.12.Final/arquillian-test-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/core/arquillian-core-api/1.1.12.Final/arquillian-core-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/test/arquillian-test-spi/1.1.12.Final/arquillian-test-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/core/arquillian-core-spi/1.1.12.Final/arquillian-core-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-api/1.1.12.Final/arquillian-container-test-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-api/1.2.6/shrinkwrap-api-1.2.6.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-spi/1.1.12.Final/arquillian-container-test-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-spi/1.1.12.Final/arquillian-container-spi-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/core/arquillian-core-impl-base/1.1.12.Final/arquillian-core-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/test/arquillian-test-impl-base/1.1.12.Final/arquillian-test-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-impl-base/1.1.12.Final/arquillian-container-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/config/arquillian-config-api/1.1.12.Final/arquillian-config-api-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/config/arquillian-config-impl-base/1.1.12.Final/arquillian-config-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-spi/2.0.0-alpha-9/shrinkwrap-descriptors-spi-2.0.0-alpha-9.jar:/home/ar/.m2/repository/org/jboss/arquillian/container/arquillian-container-test-impl-base/1.1.12.Final/arquillian-container-test-impl-base-1.1.12.Final.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.2.6/shrinkwrap-impl-base-1.2.6.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-spi/1.2.6/shrinkwrap-spi-1.2.6.jar:/home/ar/.m2/repository/org/jboss/arquillian/graphene/graphene-webdriver-api/2.1.0.Alpha2/graphene-webdriver-api-2.1.0.Alpha2.jar:/home/ar/.m2/repository/org/jboss/arquillian/graphene/graphene-webdriver-spi/2.1.0.Alpha2/graphene-webdriver-spi-2.1.0.Alpha2.jar:/home/ar/.m2/repository/org/jboss/arquillian/graphene/graphene-webdriver-impl/2.1.0.Alpha2/graphene-webdriver-impl-2.1.0.Alpha2.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-impl/2.0.1.Final/arquillian-drone-impl-2.0.1.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-configuration/2.0.1.Final/arquillian-drone-configuration-2.0.1.Final.jar:/home/ar/.m2/repository/cglib/cglib/2.2.2/cglib-2.2.2.jar:/home/ar/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar:/home/ar/.m2/repository/org/objenesis/objenesis/1.2/objenesis-1.2.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-api/2.0.1.Final/arquillian-drone-api-2.0.1.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-spi/2.0.1.Final/arquillian-drone-spi-2.0.1.Final.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-drone-webdriver/2.0.1.Final/arquillian-drone-webdriver-2.0.1.Final.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-api/2.53.1/selenium-api-2.53.1.jar:/home/ar/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar:/home/ar/.m2/repository/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-support/2.53.1/selenium-support-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/2.53.1/selenium-chrome-driver-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver/2.53.1/selenium-firefox-driver-2.53.1.jar:/home/ar/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/ar/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-ie-driver/2.53.1/selenium-ie-driver-2.53.1.jar:/home/ar/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar:/home/ar/.m2/repository/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/2.53.1/selenium-remote-driver-2.53.1.jar:/home/ar/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar:/home/ar/.m2/repository/org/apache/httpcomponents/httpclient/4.5.1/httpclient-4.5.1.jar:/home/ar/.m2/repository/org/apache/httpcomponents/httpcore/4.4.3/httpcore-4.4.3.jar:/home/ar/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/ar/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/htmlunit-driver/2.20/htmlunit-driver-2.20.jar:/home/ar/.m2/repository/net/sourceforge/htmlunit/htmlunit/2.20/htmlunit-2.20.jar:/home/ar/.m2/repository/xalan/xalan/2.7.2/xalan-2.7.2.jar:/home/ar/.m2/repository/xalan/serializer/2.7.2/serializer-2.7.2.jar:/home/ar/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/home/ar/.m2/repository/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar:/home/ar/.m2/repository/net/sourceforge/htmlunit/htmlunit-core-js/2.17/htmlunit-core-js-2.17.jar:/home/ar/.m2/repository/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar:/home/ar/.m2/repository/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar:/home/ar/.m2/repository/net/sourceforge/nekohtml/nekohtml/1.9.22/nekohtml-1.9.22.jar:/home/ar/.m2/repository/net/sourceforge/cssparser/cssparser/0.9.18/cssparser-0.9.18.jar:/home/ar/.m2/repository/org/w3c/css/sac/1.3/sac-1.3.jar:/home/ar/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.2.15.v20160210/websocket-client-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/jetty-util/9.2.15.v20160210/jetty-util-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/jetty-io/9.2.15.v20160210/jetty-io-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.2.15.v20160210/websocket-common-9.2.15.v20160210.jar:/home/ar/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.2.15.v20160210/websocket-api-9.2.15.v20160210.jar:/home/ar/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/ar/.m2/repository/com/opera/operadriver/1.5/operadriver-1.5.jar:/home/ar/.m2/repository/com/opera/operalaunchers/1.1/operalaunchers-1.1.jar:/home/ar/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar:/home/ar/.m2/repository/commons-jxpath/commons-jxpath/1.3/commons-jxpath-1.3.jar:/home/ar/.m2/repository/org/ini4j/ini4j/0.5.2/ini4j-0.5.2.jar:/home/ar/.m2/repository/org/jboss/arquillian/extension/arquillian-phantom-driver/1.2.1.Final/arquillian-phantom-driver-1.2.1.Final.jar:/home/ar/.m2/repository/com/codeborne/phantomjsdriver/1.2.1/phantomjsdriver-1.2.1.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api/2.2.4/shrinkwrap-resolver-api-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi/2.2.4/shrinkwrap-resolver-spi-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api-maven/2.2.4/shrinkwrap-resolver-api-maven-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi-maven/2.2.4/shrinkwrap-resolver-spi-maven-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-api-maven-archive/2.2.4/shrinkwrap-resolver-api-maven-archive-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-impl-maven/2.2.4/shrinkwrap-resolver-impl-maven-2.2.4.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-api/1.0.0.v20140518/aether-api-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-impl/1.0.0.v20140518/aether-impl-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-spi/1.0.0.v20140518/aether-spi-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-connector-basic/1.0.0.v20140518/aether-connector-basic-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/eclipse/aether/aether-transport-wagon/1.0.0.v20140518/aether-transport-wagon-1.0.0.v20140518.jar:/home/ar/.m2/repository/org/apache/maven/maven-aether-provider/3.2.5/maven-aether-provider-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-model/3.2.5/maven-model-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-model-builder/3.2.5/maven-model-builder-3.2.5.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-repository-metadata/3.2.5/maven-repository-metadata-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-settings/3.2.5/maven-settings-3.2.5.jar:/home/ar/.m2/repository/org/apache/maven/maven-settings-builder/3.2.5/maven-settings-builder-3.2.5.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar:/home/ar/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar:/home/ar/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-provider-api/2.6/wagon-provider-api-2.6.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-file/2.6/wagon-file-2.6.jar:/home/ar/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/2.6/wagon-http-lightweight-2.6.jar:/home/ar/.m2/repository/org/apache/maven/wagon/wagon-http-shared/2.6/wagon-http-shared-2.6.jar:/home/ar/.m2/repository/org/jsoup/jsoup/1.7.2/jsoup-1.7.2.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-impl-maven-archive/2.2.4/shrinkwrap-resolver-impl-maven-archive-2.2.4.jar:/home/ar/.m2/repository/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-spi-maven-archive/2.2.4/shrinkwrap-resolver-spi-maven-archive-2.2.4.jar:/home/ar/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.plexus/0.3.0.M1/org.eclipse.sisu.plexus-0.3.0.M1.jar:/home/ar/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar:/home/ar/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar:/home/ar/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/home/ar/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.0.M1/org.eclipse.sisu.inject-0.3.0.M1.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.3/plexus-compiler-javac-2.3.jar:/home/ar/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.3/plexus-compiler-api-2.3.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-java/2.53.1/selenium-java-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/2.53.1/selenium-edge-driver-2.53.1.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-safari-driver/2.53.1/selenium-safari-driver-2.53.1.jar:/home/ar/.m2/repository/io/netty/netty/3.5.7.Final/netty-3.5.7.Final.jar:/home/ar/.m2/repository/org/seleniumhq/selenium/selenium-leg-rc/2.53.1/selenium-leg-rc-2.53.1.jar com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 org.wildfly.swarm.howto.datasources.DatasourcesIT,testIt
May 04, 2017 9:53:16 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPermanentFileStorage readStore
INFO: Reused session store is not available at /home/ar/.drone-webdriver-session-store, a new one will be created.
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: /home/ar/projects/github/wildfly-swarm-howto/target/drone-phantomjs
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 32428
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=32428, --webdriver-logfile=/home/ar/projects/github/wildfly-swarm-howto/phantomjsdriver.log]
May 04, 2017 9:53:16 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2017-05-04T18:53:19.786Z] GhostDriver - Main - running on port 32428
[INFO - 2017-05-04T18:53:20.249Z] Session [f1110070-30fa-11e7-af39-4f2ca589d1f5] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[INFO - 2017-05-04T18:53:20.250Z] Session [f1110070-30fa-11e7-af39-4f2ca589d1f5] - page.customHeaders: - {}
[INFO - 2017-05-04T18:53:20.250Z] Session [f1110070-30fa-11e7-af39-4f2ca589d1f5] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2017-05-04T18:53:20.250Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: f1110070-30fa-11e7-af39-4f2ca589d1f5
[INFO - 2017-05-04T18:53:21.149Z] ShutdownReqHand - _handle - About to shutdown
org.junit.ComparisonFailure:
Expected :Found the datasource
Actual :

The issue is that this particular example has modified the wildfly-swarm-plugin to start in the pre integration test phase: https://github.com/wildfly-swarm/wildfly-swarm-howto/blob/master/create-a-datasource/pom.xml#L102
When you run mvn verify on the command line the pre integration test phase will start WildFly Swarm before the test is executed.
If you wanted to run the test in the IDE, you would either need to start the project first, such as with mvn wildfly-swarm:run, or create a different unit test that essentially creates the WildFly Swarm container for the test.

Related

Timed out connecting to Chrome, giving up error - EC2 instance jenkins running selenium tests

I'm receiving the following error when trying to run my selenium tests through an ec2 instance using Jenkins.
Running the tests locally works fine.
The output of the logs:
[[1;34mINFO[m] -------------------------------------------------------
[[1;34mINFO[m] T E S T S
[[1;34mINFO[m] -------------------------------------------------------
[[1;34mINFO[m] Running [1mTestSuite[m
[main] INFO com.DefaultTest - BeforeClass start
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 106.0.5249.61 (resolved driver for Chrome 106)
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /var/lib/jenkins/.cache/selenium/chromedriver/linux64/106.0.5249.61/chromedriver
Starting ChromeDriver 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249#{#569}) on port 42525
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Oct 11, 2022 11:13:53 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Oct 11, 2022 11:13:55 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find an exact match for CDP version 106, so returning the closest version found: a no-op implementation
Oct 11, 2022 11:13:55 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
INFO: Unable to find CDP implementation matching 106.
Oct 11, 2022 11:13:55 PM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3
WARNING: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to `org.seleniumhq.selenium:selenium-devtools-v86:4.1.3` where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's.
[main] INFO com.page.MainApp - URL: data:,
[main] INFO com.DefaultTest - AfterClass start
[main] INFO com.DefaultTest - BeforeClass start
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 106.0.5249.61 (resolved driver for Chrome 106)
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /var/lib/jenkins/.cache/selenium/chromedriver/linux64/106.0.5249.61/chromedriver
Starting ChromeDriver 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249#{#569}) on port 50463
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[1665530123.403][WARNING]: Timed out connecting to Chrome, retrying...
[1665530132.591][WARNING]: Timed out connecting to Chrome, retrying...
[1665530149.634][WARNING]: Timed out connecting to Chrome, giving up.
[1665530156.893][WARNING]: Timed out connecting to Chrome, retrying...
[1665530166.364][WARNING]: Timed out connecting to Chrome, retrying...
[1665530186.944][WARNING]: Timed out connecting to Chrome, giving up.
Build timed out (after 3 minutes). Marking the build as failed.
[[1;34mINFO[m]
[[1;34mINFO[m] Results:
[[1;34mINFO[m]
[[1;34mINFO[m] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[[1;34mINFO[m]
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] [1;31mBUILD FAILURE[m
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] Total time: 03:07 min
[[1;34mINFO[m] Finished at: 2022-10-11T23:16:40Z
I'm not sure how to resolve this.
I have google chrome and chromedriver on the same version (v106).
I've attempted adding countless arguments that people have suggested, but still can't get it to run successfully

Run Selenium server with a webdriver

~/tests > uname -a
Linux ghopper-K52F 4.10.0-40-generic #44-Ubuntu SMP Thu Nov 9 14:49:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
~/tests > ls -al
total 37404
drwxrwxr-x 2 ghopper ghopper 4096 ноя 23 22:05 .
drwxr-xr-x 33 ghopper ghopper 4096 ноя 24 10:53 ..
-rwxr-xr-x 1 ghopper ghopper 8799120 ноя 23 10:51 chromedriver
-rwxrwxr-x 1 ghopper ghopper 7194178 окт 31 22:15 geckodriver
-rw-rw-r-- 1 ghopper ghopper 22234765 ноя 23 10:52 selenium-server-standalone-3.7.1.jar
~/tests > apt list --installed | grep openjdk
openjdk-9-jre-headless/zesty,now 9~b161-1 amd64 [installed]
I want to start the server with chromedriver
~/tests > java -jar -Dwebdriver.chrome.driver=chromedriver selenium-server-standalone-3.7.1.jar
2017-11-24 11:12:16.560:INFO::main: Logging initialized #3822ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-11-24 11:12:18.501:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-11-24 11:12:18.577:WARN:osjs.SecurityHandler:main: ServletContext#o.s.j.s.ServletContextHandler#58a9760d{/,null,STARTING} has uncovered http methods for path: /
2017-11-24 11:12:18.587:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler#58a9760d{/,null,AVAILABLE}
2017-11-24 11:12:18.662:INFO:osjs.AbstractConnector:main: Started ServerConnector#66a17408{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-11-24 11:12:18.663:INFO:osjs.Server:main: Started #5924ms
As we can see, there is not any mention about the webdriver.
All my tests were failed and the browser didn't run at all. I got the log snippet in the server's console:
Starting ChromeDriver 2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8) on port 8315
Only local connections are allowed.
And the test's issue:
./vendor/bin/phpunit -v -c tests/phpunit.xml tests/src/Selenium/LoginTest.php
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.22-0ubuntu0.17.04.1
Configuration: /home/ghopper/work/***/tests/phpunit.xml
ESSSS
Time: 12.19 seconds, Memory: 6.00MB
There was 1 error:
1) Package\Test\Selenium\LoginTest::testUnauthorizedRandomPage
PHPUnit_Extensions_Selenium2TestCase_WebDriverException:
/home/ghopper/work/***/vendor/phpunit/phpunit selenium/PHPUnit/Extensions/Selenium2TestCase/Driver.php:165
/home/ghopper/work/***/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/Driver.php:71
/home/ghopper/work/***/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/SessionStrategy/Isolated.php:67
/home/ghopper/work/***/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/SessionStrategy/Shared.php:79
/home/ghopper/work/***/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:246
/home/ghopper/work/***/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:287
/home/ghopper/work/***/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:264
--
There were 4 skipped tests:
...
The questions:
Why Selenium runs without the webdriver.
How to debug the server? Where is the error and its cause?
How to check java and its environment?
P.S. I do the same things on an another PC and all works fine for me. I think the problem is in environment, not in the server's config.
~/tests > sudo apt-get purge openjdk-9-jre-headless
~/tests > sudo apt install openjdk-8-jre-headless
~/tests > java -jar -Dwebdriver.chrome.driver=chromedriver selenium-server-standalone-3.7.1.jar
12:48:44.839 INFO - Selenium build info: version: '3.7.1', revision: '8a0099a'
12:48:44.841 INFO - Launching a standalone Selenium Server
2017-11-24 12:48:44.885:INFO::main: Logging initialized #534ms to org.seleniumhq.jetty9.util.log.StdErrLog
12:48:45.006 INFO - Driver class not found: com.opera.core.systems.OperaDriver
12:48:45.099 INFO - Driver provider class org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities {browserName: internet explorer, ensureCleanSession: true, platform: WINDOWS, version: }
does not match the current platform LINUX
12:48:45.099 INFO - Driver provider class org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities {browserName: MicrosoftEdge, platform: WINDOWS, version: }
does not match the current platform LINUX
12:48:45.100 INFO - Driver provider class org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities {browserName: safari, platform: MAC, version: } does not match the current platform LINUX
12:48:45.226 INFO - Using the passthrough mode handler
2017-11-24 12:48:45.280:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-11-24 12:48:45.347:WARN:osjs.SecurityHandler:main: ServletContext#o.s.j.s.ServletContextHandler#30a3107a{/,null,STARTING} has uncovered http methods for path: /
2017-11-24 12:48:45.365:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler#30a3107a{/,null,AVAILABLE}
2017-11-24 12:48:45.414:INFO:osjs.AbstractConnector:main: Started ServerConnector#56c57463{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-11-24 12:48:45.414:INFO:osjs.Server:main: Started #1063ms
12:48:45.414 INFO - Selenium Server is up and running
Now everything works fine! Thank you )

cannot register a node (VM) with selenium grid 2 hub (physical machine)

I al trying to register a node which is a VM with windows 7 on a hub that sits on a physical machine windows 7 also.
My server starts succesfully on port 4444.
I run this command to register the node :
This is what i get from my node console :
C:\grid>java -jar selenium-server-standalone-2.35.0.jar -role node -hub http://
hubip:4444/grid/register -browser browserName=firefox,platform=WINDOWS -
rowser browserName=chrome,platform=WINDOWS -browser "browserName=internet explo
er,platform=WINDOWS" -remoteHost nodeip:4444
26 sept. 2013 11:28:40 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid node
26 sept. 2013 11:28:40 org.openqa.grid.common.RegistrationRequest addCapability
romString
INFO: Adding browserName=firefox,platform=WINDOWS
26 sept. 2013 11:28:40 org.openqa.grid.common.RegistrationRequest addCapability
romString
INFO: Adding browserName=chrome,platform=WINDOWS
26 sept. 2013 11:28:40 org.openqa.grid.common.RegistrationRequest addCapability
romString
INFO: Adding browserName=internet explorer,platform=WINDOWS
11:28:41.375 INFO - Java: Sun Microsystems Inc. 20.13-b02
11:28:41.375 INFO - OS: Windows 7 6.1 x86
11:28:41.375 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d
11:28:41.531 INFO - RemoteWebDriver instances should connect to: ://127.0.0
1:5555/wd/hub
11:28:41.531 INFO - Version Jetty/5.1.x
11:28:41.531 INFO - Started HttpContext[/selenium-server/driver,/selenium-serve
/driver]
11:28:41.531 INFO - Started HttpContext[/selenium-server,/selenium-server]
11:28:41.531 INFO - Started HttpContext[/,/]
11:28:41.546 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#111a3
4
11:28:41.546 INFO - Started HttpContext[/wd,/wd]
11:28:41.546 INFO - Started SocketListener on 0.0.0.0:5555
11:28:41.546 INFO - Started org.openqa.jetty.jetty.Server#a9ae05
11:28:41.546 INFO - using the json request : {"class":"org.openqa.grid.common.R
gistrationRequest","capabilities":[{"seleniumProtocol":"WebDriver","platform":"
INDOWS","browserName":"firefox"},{"seleniumProtocol":"WebDriver","platform":"WI
DOWS","browserName":"chrome"},{"seleniumProtocol":"WebDriver","platform":"WINDO
S","browserName":"internet explorer"}],"configuration":{"port":5555,"host":"10.
128.120","hubHost":"192.168.1.110","registerCycle":5000,
"hub":"://hubip:4444/grid/register","url":"nodeip:4444","remoteHost":"
nodeip:4444","register":true,"proxy":"org.openqa.grid.selenium.proxy.Defau
tRemoteProxy","maxSession":5,"browser":"browserName=firefox,platform=WINDOWS","
ole":"node","hubPort":4444}}
11:28:41.546 INFO - Starting auto register thread. Will try to register every 5
00 ms.
11:28:41.546 INFO - Registering the node to hub :://hubip:4444/grid
register
11:29:56.910 INFO - Registering the node to hub :://hubip:4444/grid
register
11:31:12.274 INFO - Registering the node to hub :://hubip:4444/grid
register
11:32:27.684 INFO - Registering the node to hub :://hubip:4444/grid
register
11:33:43.204 INFO - Registering the node to hub :://hubip:4444/grid
register
11:34:58.599 INFO - Registering the node to hub :://hubip:4444/grid
register
--- the node keeps trying to register but the registration is refused.
Here is what i get from the hub console :
Avertissement: Unregistering the node. It's been down for 60113 milliseconds.
sept. 26, 2013 12:00:04 PM org.openqa.grid.internal.Registry removeIfPresent
Avertissement: Proxy 'nodeip:4444 time out : 300000' was prev
iously registered. Cleaning up any stale test sessions.
sept. 26, 2013 12:00:07 PM org.openqa.grid.internal.BaseRemoteProxy <init>
Avertissement: Max instance not specified. Using default = 1 instance
sept. 26, 2013 12:00:07 PM org.openqa.grid.internal.BaseRemoteProxy <init>
Avertissement: Max instance not specified. Using default = 1 instance
sept. 26, 2013 12:00:07 PM org.openqa.grid.internal.BaseRemoteProxy <init>
Avertissement: Max instance not specified. Using default = 1 instance
sept. 26, 2013 12:00:13 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isA
live
Avertissement: Failed to check status of node: Connection to nodeip
:4444 refused
sept. 26, 2013 12:00:19 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isA
live
Avertissement: Failed to check status of node: Connection to nodeip
:4444 refused
sept. 26, 2013 12:00:19 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy onE
vent
Avertissement: Marking the node as down. Cannot reach the node for 2 tries.
sept. 26, 2013 12:00:25 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isA
live
Avertissement: Failed to check status of node: Connection to nodeip
:4444 refusedsept. 26, 2013 12:00:31 PM

PHPUnit + Selenium 2.35 = BadMethodCallException

My English is not so good. Sorry.
I have:
PHPUnit 3.7.24
Selenium 2.35.0
I am starting selenium server:
java -jar /usr/local/bin/selenium-server-standalone-2.35.0.jar
Output:
04.09.2013 13:51:15 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
13:51:25.373 INFO - Java: Sun Microsystems Inc. 20.45-b01
13:51:25.374 INFO - OS: Linux 3.8.0-29-generic i386
13:51:25.388 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d
13:51:25.542 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
13:51:25.543 INFO - Version Jetty/5.1.x
13:51:25.544 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
13:51:25.545 INFO - Started HttpContext[/selenium-server,/selenium-server]
13:51:25.546 INFO - Started HttpContext[/,/]
13:51:25.567 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#dda25b
13:51:25.567 INFO - Started HttpContext[/wd,/wd]
13:51:25.571 INFO - Started SocketListener on 0.0.0.0:4444
13:51:25.577 INFO - Started org.openqa.jetty.jetty.Server#b61fd1
My simple test:
public function testTitle()
{
$this->url('/');
$this->assertEquals('My title.', $this->title());
}
Next, run phpunit test with command:
phpunit --debug functional/MainPageTest.php
Output:
PHPUnit 3.7.24 by Sebastian Bergmann.
Configuration read from /home/demyan112rv/www/boo/protected/tests/phpunit.xml
Starting test 'MainPageTest::testTitle'.
E
Time: 17.59 seconds, Memory: 2.75Mb
There was 1 error:
1) MainPageTest::testTitle
PHP Warning: include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory in /home/demyan112rv/www/yii/YiiBase.php on line 421
PHP Warning: include(): Failed opening 'PHPUnit_Extensions_Story_TestCase.php' for inclusion (include_path='.:/home/demyan112rv/www/boo/protected/helpers:/home/demyan112rv/www/boo/protected/widgets:/home/demyan112rv/www/boo/protected/extensions/mail:/home/demyan112rv/www/boo/protected/services:/home/demyan112rv/www/boo/protected/components:/home/demyan112rv/www/boo/protected/models:/usr/share/php:/usr/share/pear') in /home/demyan112rv/www/yii/YiiBase.php on line 421
BadMethodCallException: The command http://localhost:4444/wd/hub/session/url is not recognized by the server.
/home/demyan112rv/www/yii/test/CWeb2TestCase.php:60
/home/demyan112rv/www/boo/protected/tests/functional/MainPageTest.php:11
/home/demyan112rv/www/boo/protected/tests/functional/MainPageTest.php:11
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
And in this time in selenium server a have next output:
13:55:39.438 INFO - Executing: [new session: {browserName=firefox}] at URL: /session)
13:55:39.452 INFO - Creating a new session for Capabilities [{browserName=firefox}]
13:55:56.642 INFO - Done: /session
I have error "BadMethodCallException: The command http:/ /localhost:4444/wd/hub/session/url is not recognized by the server.". This bug fixed for 2.35 in this link , but i have 2.35 and i have this error.
How to fix this problem?
Solution (i don't may answer on my question, because my rating is less than 10.
$ whereis phpunit
phpunit: /usr/bin/phpunit /usr/bin/X11/phpunit /usr/local/bin/phpunit
I have 3 path to phphunit. I don't know, it's normal or no.
When i changed command from:
phpunit --debug functional/MainPageTest.php
to
/usr/bin/phpunit --debug functional/MainPageTest.php
it's working!!!
if you have setUp your browser launch method i.e
function setUp()
{
$this->setBrowser("*firefox");
$this->setBrowserUrl("http://www.google.com/");
}
your function should look like this
public function testTitle()
{
$this->open('/');
$this->assertEquals('My title.', $this->title());
}
I've changed $this -> url('/'); to $this -> open('/');
please try now.

Configure tomcat 7 in intellij

I'm trying to configure tomcat 7 with intellij 12 but with no success.
If I run the catalina.sh startup script from command line, tomcat starts properly and I can see tomcat homepage.
If I run tomcat from Intellij, I get the following stacktrace (from intellijs log-file):
2013-03-20 21:11:48,631 [1065007] DEBUG - .util.AbstractConnectorCommand -
javax.management.InstanceNotFoundException: Catalina:type=Server at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:668)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1442)
at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:75)
..............
Looks like it cannot find any instance of tomcat.
I do not get any errors in the output log in intellij, and no errors when configuring tomcat in intellij.
Output-log:
/Library/Tomcat/bin/catalina.sh run
Mar 20, 2013 9:11:48 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: /Users/rana/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 20, 2013 9:11:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 482 ms
Mar 20, 2013 9:11:48 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 20, 2013 9:11:48 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 20, 2013 9:11:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 20, 2013 9:11:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 37 ms
Connected to server
Mar 20, 2013 9:11:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.37/webapps/manager
Does anyone know why this is happening?