2011年4月8日

TestPartner脚本错误处理的例子

摘要: The following test script is an example of TestPartner as well as VBA error handling:Sub Main() On Error Resume Next Dim oe As TOnError Set oe = OnError("MyErrorFunction") ' Attach to Program Manager Window Window("Program Manager Window").Attach ' Try to perform the bitm 阅读全文

posted @ 2011-04-08 23:37 TIB 阅读(300) 评论(0) 推荐(0) 编辑

在TestPartner中创建Class Module扩展测试对象支持的方法和例子

摘要: TestPartner implements VBA (an object-oriented script language) as an automation client, and models the elements of an application under test as objects exposed to VBA. This is the purpose of using TPOSI objects and the TestPartner type library. The TestPartner type library defines the properties, m 阅读全文

posted @ 2011-04-08 18:13 TIB 阅读(300) 评论(0) 推荐(0) 编辑

在TestPartner中引用IE对象控制浏览器

摘要: The following example demonstrates how to set a reference to the Microsoft Internet Controls type library and use its objects, methods, and properties to manually code a test script that tests Internet Explorer.Create a new test script and name it AutomateIE.Click Tools>References. The References 阅读全文

posted @ 2011-04-08 17:34 TIB 阅读(285) 评论(0) 推荐(0) 编辑

导航