51Testing软件测试论坛

标题: QTP中如何对单选框参数化 [打印本页]

作者: 星之魂    时间: 2009-7-2 11:07
标题: QTP中如何对单选框参数化
飞机订票系统时,我想把Sevice Class参数化,即可以选择经济舱、商业舱和头等舱,但执行后报错,错误如下:
Cannot identify the specified item of the servClass object. Confirm that the specified item is included in the object's item collection.

请问如何对单选框进行参数化,即可以任意选择单选框中的一个?
作者: zhou840401    时间: 2009-7-2 12:24
你是要达到随机选择一个是吧
那大可以用一个随机数
先弄一下1-3的随机数,然后,根据随机数的值,不同的值,分别对应一个选项就行了.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2