解决了

使用{点击}作为测试用例参数只近工作

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

Userlevel 3
徽章 + 2
  • 社区负责人
  • 16日回复

你好,

我有一个屏幕,有很多单选按钮。我必须使用该屏幕在许多不同的情况下,所以我想让单选按钮的选择依赖于参数的测试用例。我将值设置为{tp [RADIOBUTTON1]}我在测试参数设置值RADIOBUTTON1 ={点击}。它的工作原理,但它成功地点击正确的单选按钮,我得到以下信息:
表达式的解析结果“{点击}”不能把“IVerificationValue”所需的类型。

谁知道如何以不同的方式解决这个问题?如果错误不来了,结果我很满意…

(最初解决支持中心)

图标

最佳答案社区管理员2023年7月7日,12:30

Hi,
I might suggest another solution for it:
Create an RTSB with business parameter\u00a0Radiobutton\u00a0<\/em>and ValueRange 1;2;3;4;..... and make use of conditions. If\u00a0Radiobutton<\/em>==\"1\" click on first button, and so on.<\/p>
\"//m.cfsri.com/shiftsync/product-forum-50/\"<\/figure>

\u00a0<\/p>","className":"post__content__best_answer"}">

查看原始

1回复

Userlevel 3
徽章 + 2

你好,
我建议你另一个解决方案:
创建一个RTSB与业务参数Radiobutton和ValueRange 1; 2; 3; 4, .....和使用条件。如果Radiobutton= = " 1 "点击第一个按钮,等等。

回复


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