|
我在运行脚本的时候报“找不到对象的屏幕点”的错误,不知道有没有人遇到过类似的错误,怎么解决?
源代码:
...
RootTestObject root = getRootTestObject();
Subitem subitem = atDescendant(".class", "Html.INPUT.text",".id","queryForm:instanceId");
TestObject[] tos = root.find(subitem);
TextGuiTestObject tto = new TextGuiTestObject(tos[0]);
tto.setText("11111");
...
错误信息:
exception_context = 在“TextGuiTestObject(Ref:RemoteProxyReference{testContext:9cf7000ec6fa, objectId:3050, testObjectClass:TextGuiTestObject})”上调用了 setText()。
exception_name = com.rational.test.ft.UnsupportedActionException
exception_message = 找不到对象的屏幕点
script_name = TestAll
script_id = TestAll.java
line_number = 76
exception_stack = at com.rational.test.ft.domain.html.HtmlGuiProxy.noScreenPointFoundForAction(HtmlGuiProxy.java:2031)
at com.rational.test.ft.domain.html.HtmlGuiProxy.click(HtmlGuiProxy.java:172)
at com.rational.test.ft.domain.html.HtmlGuiProxy.click(HtmlGuiProxy.java:147)
------------------------------
at com.rational.test.ft.domain.ProxyUtilities$SetTextFromGlassRunnable.send(ProxyUtilities.java:250)
------------------------------
at com.rational.test.ft.object.interfaces.TextGuiTestObject.setText(TextGuiTestObject.java:97)
at TestAll.testMain(TestAll.java:76)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952) |
|