Suites and Tests will only run properly when debug query parameter is used.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Suites and Tests will only run properly when debug query parameter is used.

FitNesse mailing list
FitNesse + Xebium (Java) + Selenium

 

 `MySuite?suite` fails
`MySuite?suite&debug` launches browser and runs the suite

 

 Same for tests: `MyTest?test` fails, but `MyTest?test&debug` works.
 

 First error received on "start browser" step is:
 __EXCEPTION__:java.lang.NoClassDefFoundError: org/apache/commons/exec/DaemonExecutor
 

 After that, all steps fail with NPE.

 

 My pom uses:
 <selenium.version>2.52.0</selenium.version>
<fitnesse.version>20161106</fitnesse.version>

 

 Tried with:

 !pom pom.xml@runtime
 

 And with:
 !pom pom.xml
 

 Both result in `...\.m2\repository\org\apache\commons\commons-exec\1.1\commons-exec-1.1.jar` being in classpath. I tried adding v1.3 to my pom and classpath never updated - still used v1.1.

 

 Please advise!

 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Suites and Tests will only run properly when debug query parameter is used.

FitNesse mailing list
I downgraded fitnesse to the Xebium version and upgraded the minor version of selenium:
 <selenium.version>2.53.1</selenium.version>
<fitnesse.version>20151230</fitnesse.version>


Now my error has changed to:
 __EXCEPTION__:java.lang.NoClassDefFoundError: org/apache/commons/exec/Executor

 commons-exec is now reporting as v1.3:
 [INFO] +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.53.1:compile
[INFO] |  +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.1:compile
[INFO] |  |  +- org.apache.httpcomponents:httpcore:jar:4.4.3:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] |  +- org.apache.commons:commons-exec:jar:1.3:compile


I am at a loss as to why only debug works. Any assistance would be much appreciated.

Thank you,
Derek

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Suites and Tests will only run properly when debug query parameter is used.

FitNesse mailing list
In reply to this post by FitNesse mailing list
I downgraded fitnesse to the Xebium version and upgraded selenium's minor version:
 <selenium.version>2.53.1</selenium.version>
<fitnesse.version>20151230</fitnesse.version>

 
The commons-exec dependency is now showing as v1.3:
 [INFO] +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.53.1:compile
[INFO] |  +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.1:compile
[INFO] |  |  +- org.apache.httpcomponents:httpcore:jar:4.4.3:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] |  +- org.apache.commons:commons-exec:jar:1.3:compile


Still fails without debug, but with a new error:
 __EXCEPTION__:java.lang.NoClassDefFoundError: org/apache/commons/exec/Executor

Any assistance would be appreciated.

Thank you,
-Derek
 


Loading...