Utility for running Webdriver tests out of HP LoadRunner scripts allowing you to do performance tests with PhantomJS
- run
./gradlew build - place
actions/bin/actionsdirectory containing the compiled webdriver scripts together withcore/build/libs/LRWebdriverBridge-core-1.0.jarinto directory of your HP LoadRunner test script - add LRWebdriverBridge-core-1.0.jar as extra file to a HP LoadRunner Java Record-Replay test script
- Import LRWebdriverBridge
Note: LRWebdriverBridge uses the PhantomJS driver so you need to install PhantomJS on the machine where LRWebdriverBridge will be called.
Also note that running PhantomJS scripts directly should be possible with LRWebdriverBridge (RunnerMode.NATIVE) but is currently untested.
The most simpliest call of the library would be something like this:
LRWebdriverBridge.getInstance().execute("actions.SimpleExampleAction", RunnerMode.WEBDRIVER_API);
For more examples have a look at example/vugen/LRWebdriverBridgeTest which also shows how to register listeners and actually measure time and how to pass parameters to webdriver scripts.
More documentation will follow eventually.