QTP调用QC中的Action
各位大大!同事们写了自己模块的业务流Action,经理让我整合起来,就是说一次性把这些Action全调用了。
我看了下大概快100个Action了,而且我发现每次插入一条复用的Action,其调用的External Action也一起插入进来,变成我脚本中的External Action了-。-!
这样我的Action会很庞大,更要命的是我得一条条手动插进来-。-!
所以我想问有什么方法可以搜索QC中不同目录下的Action动态调用呢?从而摆脱手工插入。 给点思路也行-.-! 先谢谢各位了! 除非你用Function代替Action,这样不仅Action不大,而且也不用重复手动调用:lol
回复 2# 的帖子
我感觉用Function调无非还是使用QTP的RunAction方法,结果还是会把所有复用的Action插到我测试中变成External Action...如果不插入的话直接写 Runaction + Action name 又会出错,我查了查帮助,参见:
Note: Before you can use the RunAction statement in the Expert View for an external action, you must first call or copy the external action into your test by choosing Insert > Copy of Action or Call to Action. If the external action does not exist in your test, the RunAction statement is not recognized. For more information on copying or calling external actions, refer to the QuickTest Professional User's Guide.
你是怎么调的?能否举个例子?
页:
[1]