zoukankan      html  css  js  c++  java
  • QTP的tsr对象库文件转换成XML

    Function exportTsrToXml(tsrFilePath,xmlFilePath)
        Dim autoRepository
        
        Set autoRepository = CreateObject("Mercury.ObjectRepositoryUtil") '创建ORAOM对象
        
        If Not fso.FileExists(tsrFilePath) Then '如果tsr文件不存在
            MsgBox "Error:Missed the ObjectRepository file !",48,"Export tsr to xls"
            WScript.Quit
        Else'否则导出为xml文件
            autoRepository.ExportToXML "H:\Repository\2Obj_2d.tsr",xmlFilePath
            Set autoRepository = Nothing    
        End If
    End Function

  • 相关阅读:
    测试管理工具
    测试用例--zy
    测试计划和测试用例
    测试用例
    软件测试基础
    异步任务 ---- django-celery
    图片验证码接口
    测试作业
    数据库原理
    HTTPS原理
  • 原文地址:https://www.cnblogs.com/zhangfei/p/2618111.html
Copyright © 2011-2022 走看看