我正在尝试从VBS文件执行下面的OTA代码,以便在测试集中执行每个测试
但是我收到一个错误,ActiveX组件无法在步骤
创建对象设置Scheduler = theTestSet.StartExecution("")
我的系统详情:
操作系统:Windows 7专业版 系统类型:64位操作系统 ALM版本:12.0
代码:
设置ALMConnection = CreateObject(" TDAPIOLE80.TDConnection")
'连接到服务器 ALMConnection.InitConnectionEx" http://alm.zebra.com/qcbin"
'验证用户身份 ALMConnection.Login" uk1346"," aJanuary $ 2018"
'连接到项目 ALMConnection.Connect" ZEBRA_PROJECTS"," Zebra_Global_Projects"
设置TSetFact = ALMConnection.TestSetFactory
设置tsTreeMgr = ALMConnection.TestSetTreeManager
nPath =" Root \" &安培;修剪(" Automation \ Automation Dry Run")
设置tsFolder = tsTreeMgr.NodeByPath(nPath)
如果(tsFolder什么都没有)那么
MSGBOX"找不到文件夹"
否则
MSGBOX"找到文件夹"
结束如果
设置tsList = tsFolder.FindTestSets(" Dry Run")
如果tsList.Count> 0然后
MSGBOX" FindTestSets找到了多个测试集"
ElseIf tsList.Count< 1然后
MSGBOX" FindTestSets:未找到测试集"
结束如果
设置测试集= tsList.Item(1)
MSGBOX theTestSet.ID ' 设置Scheduler = theTestSet.StartExecution("")
Scheduler.RunAllLocally = True
Scheduler.Run
设置execStatus = Scheduler.ExecutionStatus
MSGBOX execStatus
设置ALMConnection = Nothing