学习RFT来自网络
2010-06-08 23:22
417 查看
Is it possible to set programmatically RFT playback delays accessible from "Windows > Preferences > Functional Test > Playback > Mouse Delays" menu ?
1.
- before every GUI action RFT waits 1 sec. (or the other time you choose)
2.
time for replay will be twice longer
3.
RFT waits 1 sec.
verify with HTML Static text
check whether "No Records Found" message or set of records availability in the screen. Normally we have check the object with its property. But in this case no objects available( like label)
how to check this text?
If you have mapped the Browser object then try like this...
if(errorObject == null){
getObject(to[i],text);
}
}
return errorObject;
}
For the above method you have to pass Browser Object initially as the Object and the string as the error text.
[/code]
1.
setOption (IOptionName.DEALY_BEFORE_GUI_ACTION, 1.0)
- before every GUI action RFT waits 1 sec. (or the other time you choose)
2.
setOption(IOptionName.TIME_MULTIPLIER, 2)
time for replay will be twice longer
3.
sleep(2.0)
RFT waits 1 sec.
verify with HTML Static text
check whether "No Records Found" message or set of records availability in the screen. Normally we have check the object with its property. But in this case no objects available( like label)
how to check this text?
If you have mapped the Browser object then try like this...
public TestObject getObject(TestObject browserObject, String text){ TestObject errorObject = null; TestObject[] to = browserObject.getChildren(); for(int i=0;i<to.length;i++){ if(to[i].getProperty(".text").toString().equals(text)){ errorObject = to[i]; break; }
if(errorObject == null){
getObject(to[i],text);
}
}
return errorObject;
}
For the above method you have to pass Browser Object initially as the Object and the string as the error text.
[/code]
相关文章推荐
- VC中的CString类用法,来自网络,自己学习用
- 经验来自学习之应用网络处理
- Elasticsearch概述、ES概念、什么是搜索、全文检索、Elasticsearch功能(来自网络+学习资料)
- 图形、游戏物理 学习、开发、工具(来自网络的很多免费的好资源 )
- 转来自百度知道里的:学习网络安全的小结(心得体会)
- mybatis学习笔记 (部分资源来自网络)
- 咨询顾问是怎样炼成的(来自网络,用于分享与学习)
- Python网络爬虫的学习(1)URI与URL
- 神经网络学习备忘录
- 无限互联iOS学习资料之UI高级(网络与多线程)视频教程
- Android学习--WIFI网络操作初步
- 工作流调度系统介绍,常见工作流调度系统对比,azkaban与Oozie对比,Azkaban介绍与特性(来自学习笔记)
- [推荐] 发现了一个很好的linux在线 网络学习平台
- 【跨站关】网络信息安全攻防学习平台跨站过关的彩蛋
- 深度学习 - 循环神经网络RNN
- 加入开发人员网络计划,获得来自Sun专家的技术协助
- 安卓学习笔记---Android网络传输中必用的两个加密算法:MD5 和 RSA
- 干货|吴恩达Coursera课程教你学习神经网络<二>!
- Linux学习记录—用户_用户组_权限_网络互连
- 如何从零开始开发一款嵌入式产品(20年的嵌入式经验分享学习,来自STM32神舟系列开发板设计师的总结)