简体   繁体   English

jmeter自动创建用户/密码帐户

[英]jmeter auto create user/password account

I'm trying to use jmeter to simulate 500 usernames/passwords being created on a test site I have. 我正在尝试使用jmeter模拟在我拥有的测试站点上创建的500个用户名/密码。 The home page has 3 fields, username,email address, and password. 主页包含3个字段,用户名,电子邮件地址和密码。 How can I get jmeter to auto-fill those fields? 如何获得jmeter自动填充这些字段? The next question is can jmeter then go to the next page and fill in credit information for example? 下一个问题是jmeter,然后可以转到下一页并填写信用信息吗?

One thing to note here is JMeter is not like QTP / Selenium. 这里要注意的一件事是JMeter与QTP / Selenium不同。 It is not a pure functional testing tool. 它不是纯功能测试工具。 However, It can be used for functional testing when you know how to use it! 但是,如果您知道如何使用它,就可以将其用于功能测试!

For your question, 你的问题

  • Record the http requests for creating the user and entering the credit information. 记录用于创建用户和输入信用信息的http请求。 Check this for more information. 检查此以获取更多信息。 http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
  • Then update the recorded scripts to parameterize the username, password email etc 然后更新记录的脚本以参数化用户名,密码电子邮件等
  • Then you can update the loop count to rerun it again and again to create the data you want to create 然后,您可以更新循环计数以一次又一次地重新运行它以创建要创建的数据

JMeter is an excellent tool for performance testing, functional testing and for creating test data etc. JMeter是用于性能测试,功能测试以及创建测试数据等的出色工具。

JMeter has possibility to use either external pre-defined data or generate some random values. JMeter可以使用外部预定义数据或生成一些随机值。

To use existing username/password/email combinations there are following options: 要使用现有的用户名/密码/电子邮件组合,有以下选项:

In regards to "go to the next page", it is also possible given that you have a HTTP Cookie Manager 关于“转到下一页”,考虑到您有一个HTTP Cookie管理器 ,这也是可能的

Remember that JMeter acts on protocol level so you'll need to properly construct HTTP Requests. 请记住,JMeter在协议级别起作用,因此您需要正确地构造HTTP请求。

The best way to trace execution and visualize requests/responses is using View Results Tree listener. 跟踪执行并可视化请求/响应的最佳方法是使用“ 查看结果树”侦听器。

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

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