我正在尝试执行VBS文件中的以下OTA代码,以执行测试集中的每个测试
但是我得到了一个错误: ActiveX组件无法在步骤中创建对象
设置调度程序= theTestSet.StartExecution("")
我的系统详细信息:
操作系统: Windows 7 Professional系统类型:64位操作系统ALM版本: 12.0
代码:
设置ALMConnection = CreateObject("TDAPIOLE80.TDConnection")
‘连接到服务器ALMConnection.InitConnectionEx "http://alm.zebra.com/qcbin“
‘验证用户ALMConnection.Login "uk1346",“a1月$2018”
‘连接到项目ALMConnection.Connect "ZEBRA_PROJECTS","Zebra_Global_Projects“
设置TSetFact = ALMConnection.TestSetFactory
设置tsTreeMgr = ALMConnection.TestSetTreeManager
nPath = "Root\“&Trim(”自动化\自动化演练“)
设置tsFolder = tsTreeMgr.NodeByPath(nPath)
如果(tsFolder为Nothing),则
MSGBOX“找不到文件夹”
否则
MSGBOX“找到文件夹”
结束If
设置tsList =tsFolder.FindTestSets(“预演”)
如果tsList.Count >0,则
MSGBOX "FindTestSets找到多个测试集“
ElseIf tsList.Count <1然后
MSGBOX "FindTestSets:未找到测试集“
结束If
设置theTestSet = tsList.Item(1)
MSGBOX‘Set theTestSet.ID = theTestSet.StartExecution("")
Scheduler.RunAllLocally =真
Scheduler.Run
设置execStatus = Scheduler.ExecutionStatus
MSGBOX execStatus
设置ALMConnection = Nothing
发布于 2018-06-07 17:42:01
运行“配置管理客户端注册”解决了我的问题:http://XXXX/qcbin/start_a.jsp?common=true
https://stackoverflow.com/questions/50725910
复制相似问题