简体   繁体   English

我想将使用 selenium 创建的自动化框架添加到 JMeter

[英]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.我想在 JMeter 中添加我的自动化框架来执行负载和性能测试。 I have created Jar file of the project but I don't know how to proceed further to perform load testing.我已经创建了项目的 Jar 文件,但我不知道如何进一步执行负载测试。 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创建您的Selenium测试套件负载测试最简单的方法是通过JMeter的只是记录的HTTP(S)测试脚本记录

  1. Configure JMeter for recording.配置 JMeter 进行记录。

    • From main menu choose File -> Templates -> Recording -> Create从主菜单中选择File -> Templates -> Recording -> Create
    • Expand Workbench -> HTTP(S) Test Script Recorder and click "Start"展开Workbench -> HTTP(S) Test Script Recorder并单击“开始”
  2. Configure Selenium tests to use JMeter as a proxy 配置 Selenium 测试以使用 JMeter 作为代理
  3. Run your Selenium tests (you can observe recorded requests under Test Plan -> Recording Controller )运行您的 Selenium 测试(您可以在 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.有一种替代解决方案可以让您避免第 4 步,请查看如何将 Selenium 脚本转换为 JMX 转换器以了解详细信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我将关键字用作 selenium 自动化的关键字驱动框架的 sendkeys 时,SendKeys 方法不起作用 - SendKeys method is not working when I am using keyword as sendkeys for keyword driven framework for selenium automation 当我使用 Selenium 自动化工具时,我的 Web 应用程序运行缓慢 - My web application running slowly when I was using Selenium automation tool Selenium Web自动化Java框架 - Selenium web automation java framework 使用 Maven 自动化 JMeter 测试 - Automation of JMeter tests using Maven Automation Framework-如何使用带有硒Java自动化测试的TestNG生成简单的表格形式的html报告 - Automation Framework - how to generate simple table form html reports using TestNG with selenium java automation tests 如果我不使用 selenium 服务器独立文件,是否需要 selenium 服务器来使用 selenium 客户端创建 selenium 自动化? - Is selenium server required to create selenium automation using selenium client if i am not using selenium server standalone file? 我如何在Jmeter中使用Junit测试(Selenium Webdriver) - How can i use my Junit test (selenium webdriver) with Jmeter 将我的对象存储库保存在selenium自动化测试框架中的最佳方法是什么 - What is the best way to keep my objects repository in selenium automation testing framework Selenium-创建UI驱动的自动化框架 - Selenium - Creating UI driven automation framework 使用我自己的框架执行Selenium Grid Execution - Selenium Grid Execution using my own framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM