无需多次登录即可验证令牌
Validate token without login multiple times
在我的脚本中,我执行了两个步骤,
第 1 步:登录应用程序
第 2 步:验证 CSV 文件中的优惠券代码。
问题陈述:当我在 URL 上输入优惠券代码时,它 return 我想得到以下值,我想如果优惠券代码 return 我无效,那么它应该验证下一个优惠券代码无需切换回重新登录。
{"Valid"} for Valid Token Code
{"InValid"} for Invalid Token Code
测试计划:
CSV 文件:
- 根据您的测试场景移动您的 CSV Data Set Config to be a child of the
Validate Coupon Code
request. Amend Sharing Mode 设置
- 将您的
Generate Bearer Token
放在 Once Only Controller, this way it will be executed only once per thread (virtual user), during the first iteration of the Thread Group 下,随后的迭代将被跳过
在我的脚本中,我执行了两个步骤,
第 1 步:登录应用程序 第 2 步:验证 CSV 文件中的优惠券代码。
问题陈述:当我在 URL 上输入优惠券代码时,它 return 我想得到以下值,我想如果优惠券代码 return 我无效,那么它应该验证下一个优惠券代码无需切换回重新登录。
{"Valid"} for Valid Token Code
{"InValid"} for Invalid Token Code
测试计划:
CSV 文件:
- 根据您的测试场景移动您的 CSV Data Set Config to be a child of the
Validate Coupon Code
request. Amend Sharing Mode 设置 - 将您的
Generate Bearer Token
放在 Once Only Controller, this way it will be executed only once per thread (virtual user), during the first iteration of the Thread Group 下,随后的迭代将被跳过