Rational Functional Tester for firefox 可能的问题
2008-02-03 14:54
429 查看
1. firefox could not get object's classname property:[b]
4. firefox can remember those values in text fields.
LCCAddressBookTasks.java
// ivan change for firefox: these values will display when typing them,
// the under text field will be hidden by these values.
[/b]
DWALiteNavigation.java:
// ivan change for firefox
// String sClass=switcher.getSelectedEditedMark().getProperty("className").toString();
String sClass=switcher.getSelectedEditedMark().getProperty("class").toString();
2. firefox could not get some object's ".text" property:
DWALiteNavigation.java:
// ivan change
// String sText = switcher.getHomeViewTab().getProperty(".text").toString();
String sText = "";
if (VisualReporter.gsVisualReporterTestBrowser.equalsIgnoreCase(VisualReporter.gsMozillaFirefox))
sText = switcher.getSelectedTabInner().getProperty("value").toString();
else
sText = switcher.getHomeViewTab().getProperty(".text").toString();
3. firefox status is still running when window is opened or tab is opened:
DWALiteMailTasks.java
// ivan change for firefox: tab is opened, but the status is still runnning.
// script will block by: browser_htmlBrowser().waitForExistence
// solution think: when click home tab(mail, contact) will make firefox status is back to complete.
// 1. get all tabs before the operations will be clicked, that will cause firefox alwarys run.
// 2. run those operations
// 3. click home tab.
// 4. get current all tabs, in order click them. the lastest tab will be selected tab.
// TestObject tcActiveForm = switcher.getSelectedView();
// liteMail.getSubject_Edit(tcActiveForm).setText(sSubject);
// liteMail.getRichTextEditorBody(tcActiveForm).setText(sMessage);
// liteMail.getTo(tcActiveForm).setText(sTO);
if (VisualReporter.gsVisualReporterTestBrowser.equalsIgnoreCase(VisualReporter.gsMozillaFirefox)) {
TestObject tos[] = switcher.getAllViewTabs();
TestObject tcActiveForm = switcher.getSelectedView();
liteMail.getSubject_Edit(tcActiveForm).setText(sSubject);
liteMail.getRichTextEditorBody(tcActiveForm).setText(sMessage);
liteMail.getTo(tcActiveForm).setText(sTO);
Webfuncs.selectLink(new WLink(tos[0]));
TestObject tos2[] = switcher.getAllViewTabs();
for(int i=1; i<tos2.length; i++)
Webfuncs.selectLink(new WLink(tos2[i]));
}
else {
....}
4. firefox can remember those values in text fields.
LCCAddressBookTasks.java
// ivan change for firefox: these values will display when typing them,
// the under text field will be hidden by these values.
[/b]
DWALiteNavigation.java:
// ivan change for firefox
// String sClass=switcher.getSelectedEditedMark().getProperty("className").toString();
String sClass=switcher.getSelectedEditedMark().getProperty("class").toString();
2. firefox could not get some object's ".text" property:
DWALiteNavigation.java:
// ivan change
// String sText = switcher.getHomeViewTab().getProperty(".text").toString();
String sText = "";
if (VisualReporter.gsVisualReporterTestBrowser.equalsIgnoreCase(VisualReporter.gsMozillaFirefox))
sText = switcher.getSelectedTabInner().getProperty("value").toString();
else
sText = switcher.getHomeViewTab().getProperty(".text").toString();
3. firefox status is still running when window is opened or tab is opened:
DWALiteMailTasks.java
// ivan change for firefox: tab is opened, but the status is still runnning.
// script will block by: browser_htmlBrowser().waitForExistence
// solution think: when click home tab(mail, contact) will make firefox status is back to complete.
// 1. get all tabs before the operations will be clicked, that will cause firefox alwarys run.
// 2. run those operations
// 3. click home tab.
// 4. get current all tabs, in order click them. the lastest tab will be selected tab.
// TestObject tcActiveForm = switcher.getSelectedView();
// liteMail.getSubject_Edit(tcActiveForm).setText(sSubject);
// liteMail.getRichTextEditorBody(tcActiveForm).setText(sMessage);
// liteMail.getTo(tcActiveForm).setText(sTO);
if (VisualReporter.gsVisualReporterTestBrowser.equalsIgnoreCase(VisualReporter.gsMozillaFirefox)) {
TestObject tos[] = switcher.getAllViewTabs();
TestObject tcActiveForm = switcher.getSelectedView();
liteMail.getSubject_Edit(tcActiveForm).setText(sSubject);
liteMail.getRichTextEditorBody(tcActiveForm).setText(sMessage);
liteMail.getTo(tcActiveForm).setText(sTO);
Webfuncs.selectLink(new WLink(tos[0]));
TestObject tos2[] = switcher.getAllViewTabs();
for(int i=1; i<tos2.length; i++)
Webfuncs.selectLink(new WLink(tos2[i]));
}
else {
....}
相关文章推荐
- Rational Functional Tester 对象文件(rftdef)合并
- 使用 XPath 在 Rational Functional Tester 中动态识别对象
- 使用 IBM Rational Tester for SOA Quality 在 Web 服务测试中添加元素和验证点 developerWorks
- Rational Functional Tester Proxy SDK 开发,第 2 部分: 使用 Proxy SDK 扩展 RFT 已支持 Java GUI 组件 Proxy 对象实现
- 扩展 Rational Functional Tester 的对象识别技术
- 安装builderRobot到Rational Functional Tester和Performance Tester
- 构建工具----gradle---可能遇到的问题----Could not reserve enough space for object heap
- Hello World,第 5 部分:Rational Functional Tester:创建健壮和可重用的自动功能测试
- 在 Rational Functional Tester 测试脚本中实现对时间的控制
- Rational Functional Tester 对象关系图
- Rational Functional Tester Proxy SDK 开发,第 3 部分: 使用 Proxy SDK 扩展 Java GUI 组件可捕获的验证数据
- 使用 IBM Rational Functional Tester: 了解和使用 TestObject.find 方法
- RationalFunctionalTester实践: 配置被测程序
- 构建工具----gradle---可能遇到的问题----Could not reserve enough space for object heap
- 通过命令行启动RFT(Rational Functional Tester)
- 通过扩展 Rational Functional Tester 对 Adobe Flex 或 Flash 应用程序进行测试
- RationalFunctionalTester实践: 测试脚本的录制
- nginx处理firefox的POST请求可能遇到的问题:小文件可以提交,大文件不能提交
- IE内核不能打开网页,firefox可以打开的问题的另一可能原因