Skip to content

Instantly share code, notes, and snippets.

yarres / basic-webdriver-sampler.groovy
Created Aug 19, 2019
Basic chrome webdriver (Selenium) script for JMeter in Groovy
View basic-webdriver-sampler.groovy
import org.openqa.selenium.By;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import static*
import openqa.selenium.OutputType.*;
// Required to start counting time which will get reported at the end of this code.
View gist:f1e3a75dbd8e8010a4b77aa80340b7b3
class Experience {
* Epxerience is defined by pain and pleausure. We take into account the quality
* of the pleasure experiences, following J.S. Mill
* @param {Number} pain [description]
* @param {Number} pleasureQuantity [description]
* @param {Number} pleasureQuality [description]
* @return {Object}
constructor(pain, pleasureQuantity, pleasureQuality) {