天行健,君子以自强不息;地势坤,君子当厚德载物!

QTP关键技术(六) - 嵌套Action间的参数传递

上一篇 / 下一篇  2007-11-06 16:42:29 / 个人分类:转载

参数传递思路:
将Action1的输入参数InAction1传递给Action2的输入参数InAction2,
将Action2的输出参数OutAction2传递给Action1的输出参数OutAction1。
  
1)创建两个Action,嵌套关系,在关键字视图,拖动Action2到Action1下面有缩进的地方
 
2)右键Action1,选Action Properties,
在Input Parameters中添加参数InAction1,
在Output Parameters中添加参数OutAction1,点OK
 
3)右键Action2,选Action Properties,
在Input Parameters中添加参数InAction2,
在Output Parameters中添加参数OutAction2,点OK
 
4)在Action1和Action2间建立关联
右键Action2,选Action Call Properties,弹出Action Call Properties窗口;
 
选中InAction2的Value,弹出Value Configuration Options窗口;
在Parameter中共有四项可供选择,选择Test/Action parameter,
在Parent action parameters的parameter中选择Action1
同理,OutAction2的Store In值为OutAction1
 
以上的操作就是把输入值 通过Action1的输入参数,传递给Action2的输入参数进行使用,
然后Action2运行后,将输出参数通过Action1的输出参数传递出去。
这里只是对嵌套Action进行最基本的讲解,在实际使用当中还要灵活运用。
 

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1793137



TAG: 转载

 

评分:0

我来说两句

Open Toolbar