Skip to content

This projects contains a recipe for writing jmeter WebDriverSampler in Intellij IDE and at the same time produce code that cam be easily used directly in jmeter

Notifications You must be signed in to change notification settings

gabrielstar/jmeter_web_driver_sampler_intellij

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

jmeter_web_driver_sampler_intellij

This projects contains a recipe for writing jmeter WebDriverSampler directly in Intellij IDE

You can develop sampler in IDE and make sure it is fully transferable to Jmeter.

Contents:

resources/
        wds.jmx - jmeter scenario
        wds_jmeter.groovy - version of WDS sampler for copy-paste to jmeter
  src/
        wds.groovy - jmeter sampler with necessary mocks allowing to use IntelliJ IDE (or any other)
        convert.groovy - converter to clean up wds.groovy to a version understandable by jmeter
        chromedriver.exe - browser driver used in this repo (update to your browser version)

Usage

in JMeter:
  1. Checkout this repo
  2. Copy chromedriver to your JMETER_HOME/bin directory
  3. Open wds.jmx scenario in jmeter and run.
in IntelliJ:
  1. Download zip to a folder. Unpack.
  2. In IDE click New -> Project -> From Exisiting Souces. Pick your folder.
  3. Keep clicking next until .. Source folders screen.
  4. Unmark resources directory as source folders. Keep clicking next until SDK selection screen.
  5. in SDK page make sure JDK 1.8 is chosen. Click on "+" button to your right and groovy folder to class path.
  6. Click Next and Finish.
  7. Open wds.groovy. Set Groovy SDK when prompted.
  8. Run wds.groovy. You are all set! See my video for more.

How to make it work together ?

See my video here: https://youtu.be/ppkYbeYeBUk You can follow my video to build the solution from scratch on your machine.

Or read my article on medium: https://medium.com/@gabriel.starczewski/jmeter-web-driver-sampler-how-to-develop-it-with-ide-a50f6e228c51?source=friends_link&sk=acdd96f7ace3dbb6245c3e290e381c55

About

This projects contains a recipe for writing jmeter WebDriverSampler in Intellij IDE and at the same time produce code that cam be easily used directly in jmeter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages