如何使用 Jmeter 相关性从下拉列表中选择随机帐户 [英] How to select random accounts from dropdown using Jmeter Correlation

查看:16
本文介绍了如何使用 Jmeter 相关性从下拉列表中选择随机帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在正则表达式的帮助下使用 Co-relation 设计了我的脚本.这里我的场景是登录,进入产品搜索屏幕,在那里随机选择一个帐户并选择一个产品模板并下订单.在这里,我通过为每个组选择提供的帐户来完成关联并为 5 个用户运行脚本.但我想为每个用户选择不同的帐户.可能第一次登录时他可能会选择帐户 1,第二次尝试时他可能会选择帐户 5,以此类推.如何随机选择这些帐户.此处附上脚本和 CSV 格式以供参考.

I have designed my script using Co-relation with the help of regular expression. Here my scenario is login, go to the product search screen, there selects an account randomly and selects a product template and place the order. Here I have done the co-relation and run the scripts for 5 users by selecting provided accounts for each group. But I want to select a different account for each user. Might for 1st login he might select account 1, the second attempt, he might select account5, like that, and so on. How to select these accounts randomly. Here attaching the script and CSV format for the reference.

项目 CSV Data_Set_Config

账户选择界面CSV 文件输入

推荐答案

您可以使用 Blaze Meter 的随机 CSV 数据集配置插件.它在这些情况下非常方便.几乎是必须的.您甚至可以在运行脚本之前测试您的 CSV.

You can use Blaze Meter's Random CSV Data Set Config plugin. It comes pretty handy in theese kind of situations. Almost a must have. You can even test your CSV before running the script.

https:///github.com/Blazemeter/jmeter-bzm-plugins/blob/master/random-csv-data-set/RandomCSVDataSetConfig.md

这是一个例子.

这篇关于如何使用 Jmeter 相关性从下拉列表中选择随机帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆