51Testing软件测试论坛

标题: SQAGetProperty 中Property的问题 [打印本页]

作者: tomqi    时间: 2004-11-3 13:21
标题: SQAGetProperty 中Property的问题
Sub Main
    Dim Result As Integer
    Dim sum as Variant

    StartApplication "C:\WINNT\system32\calc.exe"
   
    Window SetContext, "Caption=计算器", ""
    InputKeys "1{+}1{ENTER}"
   
    Result = SQAGetProperty ("Type=Label;ObjectIndex=1", "Text", sum)
    msgbox sum
   
    Window CloseWin, "", ""

End Sub


有人可以解释一下以上脚本中Result = SQAGetProperty ("Type=Label;ObjectIndex=1", "Text", sum)里面的“text"是什么意思吗
作者: pcl2004_27    时间: 2004-11-3 18:51
开发window程序的开发工具比如vb delphi vc等 你可以看到一些属性方法,这里的text就是你要取得这些开发工具中提供的属性之一。
作者: tomqi    时间: 2004-11-3 21:16
谢谢!




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