Tool to launch Selenium IDE HTML files tests
npm install moonwalker> Tool to launch Selenium IDE HTML files tests
Moonwalker is a tool to execute Selenium IDE tests aka.Selenese tests.
``shell`
npm install moonwalker --save
- reporters
- launcher
#### reporters
type: Objectmoonwalker.reporters.junit
Is an object that contains the available reporters that could be used in Moonwalker, now by default we have added the junit reporter.
To call the junit reporter you just need to call
#### launcher
type: Function
Is the function that will read and execute the Selenese tests. The following section explains the arguments needed to execute it properly.
##### Arguments
###### filepaths
type: Array
Required
This array is an array with the paths to all the Selenese test files.
Example:
`js`
[ 'path/to/my/selenese/tests/test1', 'path/to/my/selenese/tests/test2' ]
###### options
type: Object
Required
This configuration object is used to setup the environment where the test will be executed and needs at least...
- selenium ObjectString
- The host where is running the Selenium Server. Number
- The port where is running the Selenium Server. Array
- desiredCapabilities
- The desired capabilities where you want to execute the tests.
Example:
`js`
{
selenium: {
host: 'localhost',
port: 4444
},
desiredCapabilities: [
{ browserName: 'chrome' }
]
}
##### reporter
type: function
Required
The reporter is a function that will log the info messages and that could perform especial actions to report the result of the tests.
See reporters section for more information.
##### done
type: function
Required
The done function is a function that will be executed when all the tests are executed.
#### Default Options
In this example, the default options are used to compile two simple templates.
`js``
moonwalker.launcher( ['path/to/selenese/tests/test1'],
{
selenium: {
host: 'localhost',
port: 4444
},
desiredCapabilities: [
{
browserName: 'firefox'
}
]
},
moonwalker.reporters.junit('path/to/reports/junit_report.xml'),
function (){
console.log('Tests finished');
});
* 0.1.1: First release.