解决了

在API请求,我生成动态ID与随机数学函数以及附加字符,这是测试数据的一部分设置为我的测试用例。现在我希望在API请求缓冲这个随机生成的ID(不是回应),这样我就能使用

  • 2023年7月7日
  • 1回复
  • 4的观点

Userlevel 5
徽章 + 2
  • 社区经理
  • 72回复

在API请求,我生成动态ID与随机数学函数以及附加字符,这是测试数据的一部分设置为我的测试用例。现在我希望在API请求缓冲这个随机生成的ID(不是回应),这样我就能使用this ID in Testing the application, how can I achieve this, please describe the steps ??

(最初要求和解决支持中心)

图标

最佳答案社区管理员2023年7月7日,37

select the request module,\u00a0<\/p>

in the API Test Toolbar, select 'Add',<\/p>

try 'dynamic list' or 'assistant' to see if the field you need to change is in there,<\/p>

if yes, select it and click 'Add'<\/p>

\u00a0<\/p>

In the testcase, you will see there is a new attribute you can edit now, so you can use it like any other module with the {B[]} syntax<\/p>","className":"post__content__best_answer"}">

查看原始

1回复

Userlevel 3
徽章 + 2

选择请求模块,

在API测试工具栏,选择“添加”,

尝试“动态列表”或“助理”字段是否需要变化,

如果有,选择它,然后单击“添加”

testcase,你会看到有一个新的属性你现在可以编辑,所以你可以使用它像任何其他模块{B[]}语法

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu
map