简体   繁体   中英

I want to Add my Automation framework created using selenium into JMeter

I want add my automation framework in JMeter to perform load and performance testing. I have created Jar file of the project but I don't know how to proceed further to perform load testing. Please assist me with this or any other suggestions.

The easiest way to create the load test from your Selenium test suite is just recording it via JMeter's HTTP(S) Test Script Recorder

  1. Configure JMeter for recording.

    • From main menu choose File -> Templates -> Recording -> Create
    • Expand Workbench -> HTTP(S) Test Script Recorder and click "Start"
  2. Configure Selenium tests to use JMeter as a proxy
  3. Run your Selenium tests (you can observe recorded requests under Test Plan -> Recording Controller )
  4. Perform correlation if required
  5. Add virtual users

There is an alternative solution which will allow you to avoid step 4, check out How to Convert Selenium Scripts into the JMX Converter for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM