Virtual users simulating Real-browser interactions can be created with the new Selenium WebDriver option. While JMeter virtual users are simulating user activity by sending http requests, WebDriver virtual users are simulating real browser interactions.
Running real-browser virtual users along with regular JMeter virtual users allows to capture real-user experience performance metrics.
In OctoPerf, Selenium scripts cannot be used to generate load during your tests, their only purpose is to have a measure of the client/browser response time. The main reason for this is that selenium gets unreliable under load and response times would not be accurate anymore.
The Selenium IDE is perfectly suited for recording Selenium scripts. It allows to record browser user interactions directly within Firefox.
For more information explaining how to record or write Selenium scripts, please take a look at the Selenium documentation.
Create Virtual User: WebDriver¶
Simply enter the URLs you want your virtual user to visit:
You need to enter valid URLs and include the protocol (I.e. http://doc.octoperf.com).
Import Selenium Script¶
To import an existing selenium script, follow the procedure above to create a sample virtual user. Then, replace the generated script by your own Selenium WebDriver script.
Once the virtual user is created, the virtual user contains a WebDriver action with a sample Selenium script.
Scripts can be added, edited or removed. A Selenium Web Driver virtual user cannot mix WebDriver scripts with regular HTTP requests for performance reasons. More advanced examples are available on the Selenium Web Driver documentation page.