比如,通过Object Properties可以得到如下的语句:
Window SetTestContext, "Caption=Agile Advantage - Microsoft Internet Explorer", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=RightPane",""
Browser NewPage,"HTMLTitle=Select SubClass And Number",""
Result = ComboBoxVP (CompareProperties, "Type=ComboBox;Name=subClassId", "VP=Object Properties")
Window ResetTestContext, "", ""
那么,SQAGetProperty的语句就可以写成:
Window SetTestContext, "Caption=Agile Advantage - Microsoft Internet Explorer", ""
Window ResetTestContext, "", ""
Result=SQAGetProperty("Caption=Agile Advantage - Microsoft Internet Explorer;\;Type=HTMLFrame;HTMLId=RightPane;\;Type=ComboBox;Name=subClassId", "innerText", str1)