我有一个场景像检查一个网站的性能。脚本应该涵盖以下描述的场景。4个并行用户将打开网页(每个用户将在前一个用户之后5秒开始),每个用户将执行以下流程3次:在主页面上搜索产品如果找到,在搜索结果中查找产品,打开产品页面(如果没有找到,从另一个搜索开始)将产品添加到购物车检查产品已成功添加到购物车的确认消息每次用户执行流程时,它应该搜索不同的产品(如果不同的用户搜索相同的产品,这是可以的)。我在jmeter中记录了脚本,但在http请求中显示为
请提供建议
ryoqjall1#
4 parallel users will open the web page (each user will start 5 seconds after the previous user)
if found, open the product's page
check the confirmation message that the product has been added successfully to the cart
Each time the user executes the flow, it should search for a different product
1条答案
按热度按时间ryoqjall1#
4 parallel users will open the web page (each user will start 5 seconds after the previous user)
-线程组配置如下if found, open the product's page
-将负责打开产品页面并将其添加到购物车的HTTP请求采样器放在If Controller下check the confirmation message that the product has been added successfully to the cart
-查看响应AssertEach time the user executes the flow, it should search for a different product
-查看CSV数据集配置