google搜索 站内搜索                 软件测试门户 | 软件测试培训 | 文章资料精选 | 软件测试论坛 | 测试解决方案 | 软件测试博客 | 测试招聘求职 
打印

[求助] 我用通配符定义了个无所谓名字的窗口,robot怎么不识别啊?

我用通配符定义了个无所谓名字的窗口,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))

里面当然不是这样写的,只是把主要的贴了下,请高手帮忙看看,怎么才能识别出窗口,拿出要用的值那?

TOP

高手快现身吧

TOP

已经发现问题了,是前面的数组定义的不准确

TOP

 
当前时区 GMT+8, 现在时间是 2008-12-5 17:17Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹