LoadAndRunAction方法的使用
上一篇 /
下一篇 2010-12-24 00:26:35
/ 个人分类:QTP/UFT
脚本运行到该步骤时,调用其他脚本中的action并运行
/J*U%J{&y;e7YD0可以使用条件语句动态的调用不同的外部action
NWc x*]v0当运行该步骤时,才会加载该action,而不是当打开测试时,因此
:fr~Bs`.TZ,N0被调用的action不会在以下地方显示
L]9pY y$|0Qtp的setting的resources里
{|-R%yY+FE!W0Testflow里
6Q%a
pH7Z0Missing Resources里
'TLL3fuS/CAY!V0Qc的测试资源模块的附件选项卡(这个有点不解)
Ioh5KH0R!n0- 因为是在运行时才加载action,而不是像call to existing action那样会打开一个action。所以在运行过程中对性能会有所影响
- During a run session, you can view the actions
that are run using the LoadAndRunAction statement. As an action begins to
run, the action name is displayed in theLoadAndRunActionCalls section of the Action toolbar in the Keyword View and in the
Expert View. The called actions remain listed in the toolbar until the end
of the run session, at which point they are cleared from the list.
- At the end of a run session, all of the actions
that were dynamically loaded are unloaded. In the Test Results window, you
can view the steps that ran during the run session.
语法:51Testing软件测试网? hC%ewHF
LoadAndRunAction(TestPath, ActionName, [Iteration], [Parameters])
"QZ!] j.\#S{4fby0TestPath相对路径/绝对路径/QC中的路径
+\[uCM|(s'S0ActionName:action的名称51Testing软件测试网#N1G,F Lq+y*w/z
Iteration:循环的设置:oneIteration或0(Default)51Testing软件测试网'A$p&U