I would like to execute Selenesse test written in FItNesse when I launch maven (mvn clean install).
I'm using trinidad plug-in to run FitNesse basics tests and it's work fine.
But, if I want to launch selenesse test such as this :
| open | MyLink/login.php |
| pause | 5000|
| type; | UserName | ${login}|
| type; | Password | ${password}|
| click |//input[@type='submit']|
|waitForTextPresent|WSQC|
it's failed with this error message :
Slim Selenium Driver Could not invoke constructor for SlimSeleniumDriver[4]
This error is in the SetUp page of my Suite above "Slim Selenium Driver" :
!|Import |
|selenesse|
!|script|
|start|Slim Selenium Driver|${seleniumHost}|${seleniumPort}|${seleniumBrowser}|${baseURL}|
|setTimeoutSeconds|30|
If i launch the test from FItNesse wiki it's work fine, But from Maven i've got this issue. Does anyone have an idea ?
Hope my request is clear.
Thank you.
My first thought is some sort of classpath error. How are your !path variables defined? Is it possible that the !path entries in your wiki expect the Selenium jar files to be in a specific place, and maven is launching from a different starting point, thus affecting a relative path?
I'm not an expert a Maven, but I would also look at your maven project and make sure that the Selenium jar files are referenced there correctly.