51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 35938|回复: 52
打印 上一主题 下一主题

[原创] QTP的Test参数以及顶级Action参数的使用

[复制链接]
  • TA的每日心情
    奋斗
    2022-7-13 15:22
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    1#
    发表于 2007-5-17 10:07:05 | 显示全部楼层
    Dim qtApp ,pDefColl,pDef ,rtParams,rtParam
    Set qtApp = CreateObject("QuickTest.Application")
    qtApp.Launch
    qtApp.Visible = True
    qtApp.Open "C:\Test1"
    Set pDefColl = qtApp.Test.ParameterDefinitions
    cnt = pDefColl.Count
    Indx = 1
    While Indx <= cnt
        Set pDef = pDefColl.Item(Indx)
        Indx = Indx + 1
    Wend
    Set rtParams = pDefColl.GetParameters()
    Set rtParam = rtParams.Item("InParam1")
    rtParam.Value = "songfun"
    qtApp.Test.Run , True, rtParams
    MsgBox rtParams.Item("OutParam1").Value  


    这块比较难理解,能告诉我那里能找到相关的材料?
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-13 02:54 , Processed in 0.063444 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表