我的地盘我做主! 博客:http://tester2test.cnblogs.com/   msn:win_soft@163.com

QTP脚本示例

上一篇 / 下一篇  2007-04-09 07:27:14 / 个人分类:其他

例如,以下语句指示 QuickTest 选中 Itinerary 网页上的所有复选框:

}h{!_KQl0

Set MyDescription = Description.Create() 51Testing软件测试网?T'\j6k

MyDescription("html tag").Value = "INPUT" 51Testing软件测试网P8| X q:?

MyDescription("type").Value = "checkbox"

[ s~[M |(_)Qt0

Set Checkboxes = Browser("Itinerary").Page("Itinerary").ChildObjects(MyDescription) 51Testing软件测试网\3Z%?lZw

NoOfChildObjs = Checkboxes.Count 51Testing软件测试网T\@P&J5|)A

For Counter=0 to NoOfChildObjs-1 51Testing软件测试网tJ*qD)d'Lg

Checkboxes(Counter).Set "ON" 51Testing软件测试网vS!CJ a4G%|7Gk

Next 51Testing软件测试网*Tx0Y g0B#| a

51Testing软件测试网d:A\ bD*o0sf
51Testing软件测试网~V8NM*{7C9Gx+u
测试者家园 2006-08-01 15:35 发表评论

%O l;Z[E&^W8[4q0
.G)F6@_.A'vU!p9y0Link URL: http://www.cnblogs.com/tester2test/archive/2006/08/01/465083.html

TAG:

 

评分:0

我来说两句

日历

« 2023-04-16  
      1
2345678
9101112131415
16171819202122
23242526272829
30      

数据统计

  • 访问量: 254693
  • 日志数: 689
  • 建立时间: 2006-12-05
  • 更新时间: 2009-04-15

RSS订阅

Open Toolbar