QTP 我进行了参数化,我想打印出每次参数化的取值,该怎么打印呢
答案:2 悬赏:40 手机版
解决时间 2021-11-29 13:06
- 提问者网友:遁入空寂
- 2021-11-29 01:11
QTP 我进行了参数化,我想打印出每次参数化的取值,该怎么打印呢
最佳答案
- 五星知识达人网友:千杯敬自由
- 2021-11-29 01:53
systemutil.Run "F:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set DataTable("username", dtGlobalSheet)
msgbox DataTable("username", dtGlobalSheet)'print is better
print DataTable("username", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set DataTable("passwd", dtGlobalSheet)
msgbox DataTable("passwd", dtGlobalSheet)'print is better
print DataTable("passwd", dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
Dialog("Login").WinEdit("Agent Name:").Set DataTable("username", dtGlobalSheet)
msgbox DataTable("username", dtGlobalSheet)'print is better
print DataTable("username", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set DataTable("passwd", dtGlobalSheet)
msgbox DataTable("passwd", dtGlobalSheet)'print is better
print DataTable("passwd", dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
全部回答
- 1楼网友:罪歌
- 2021-11-29 02:02
systemutil.Run "F:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
Dim username,passwd
set username=DataTable("Agent-name",dtGlobleSheet)
set passwd=DataTable("password",dtGlobleSheet)
Dialog("Login").WinEdit("Agent Name:").set username
msgbox username
Dialog("Login").WinEdit("Passwd:").set Passwd
msgbox passwd
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
Dim username,passwd
set username=DataTable("Agent-name",dtGlobleSheet)
set passwd=DataTable("password",dtGlobleSheet)
Dialog("Login").WinEdit("Agent Name:").set username
msgbox username
Dialog("Login").WinEdit("Passwd:").set Passwd
msgbox passwd
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯