51Testing软件测试论坛
标题:
我用通配符定义了个无所谓名字的窗口,robot怎么不识别啊?
[打印本页]
作者:
carolynech
时间:
2007-9-14 13:12
标题:
我用通配符定义了个无所谓名字的窗口,robot怎么不识别啊?
我用通配符定义了个无所谓名字的窗口,robot怎么不识别啊?
function RMS_Err(wincap as string) as single
dim out as string
dim result as integer
Window SetContext, "Caption={ProGraphViewer*.tmp}", ""
Window SetContext, wincap, ""
Result=SQAGetpropertyasstring ("Class=AfxOleControl;ClassIndex=1","Text",out)
if out <>"" then
RMS_Err=val(getfield(out,4,","))
else
RMS_Err= 1000
end if
end function
win(2)= "Caption={ProGraphViewer*.tmp}"
call RMS_Err(win(2))
RMS(i)=RMS_Err(win(2))
里面当然不是这样写的,只是把主要的贴了下,请高手帮忙看看,怎么才能识别出窗口,拿出要用的值那?
作者:
carolynech
时间:
2007-9-14 16:09
高手快现身吧
作者:
carolynech
时间:
2007-9-14 18:43
已经发现问题了,是前面的数组定义的不准确
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2