I'm using Rational Functional Tester version 7.0.1.1 along with the trial version of TestAdvantage for Windows Forms (IBM) 2007 vol. 3 CLR 2.0.
At times I have been able to successully run my automation script with no errors ... While other times I can not. The client application software being scripted has not been altered at all. Note - I have rebooted my computer each time to run my script ... and still same inconsistent results ... One time it will run successfully and the other time it will not, and give the following error message below.
The error message reads as follows:
exception_name = com.rational.test.ft.ObjectNotFoundException exception_message = Looking for [com.infragistics.rft.testobjects.UltraTreeTestObject(Name: ultraActionstree, Map: ultraActions)] - no plausible candidate was found. script_name = EV2007_Navigation_Performance1 script_id = EV2007_Navigation_Performance1.java line_number = 33 exception_stack = at com.rational.test.ft.object.interfaces.StatelessGuiSubitemTestObject.click(StatelessGuiSubitemTestObject.java:166)at EV2007_Navigation_Performance1.testMain(EV2007_Navigation_Performance1.java:33)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)
It almost seems as if the TestAdvantage proxy is losing the ability to recognize the following Infragistics object:
UltraTreeTestObject resources.EV2007_Navigation_Performance1Helper.ultraActionstree()
ultraActions: with default state. Name : ultraActions TabIndex : 2 Text : .class : Infragistics.Win.UltraWinTree.UltraTree .classIndex : 0
Any suggestions/help would be greatly appreciated.
Thank you in advance,
Tarik Hamad
Hi Tarik,
The issue you are facing means that RFT is not able to find the control (UltraActions) when you run your script the second time. If the application is an MDI application make sure you don't have more than one instance of the form that includes the UltraTree control. You can also try checking why the recognition is failing the second time by opening the object map by double clicking the test object in the "Script Explorer" and right click the tree test object and select "Update recogintion properties ..." (while the application is running) then you can check what are the recognition property that does not match. Send me a screen shot of that comparison. You can also update the recognition property in that window, this may fix the problem.
I hope this will help.
Regards,
Ammar
Hello,
Any follow-up on this?
I did an 'Update Recognition Properties', and everything was a 1-to-1 "Match".
I was told to modify my CustomObjRecProp.rftop file (it didn't contain TestAdvantage code) ... Which I did, but yet still receive the same exact error message.
Also Note - I am not sure what causes a successful run of the script. Initally, I thought rebooting my computer and running the script would result in a successful execution ... While 2nd attempts and beyond (non-reboot) would fail execution. That is NOT the case. It is inconsistent. The script fails execution after fresh reboot as well.
Tarik
Does this have anything to do with the TestAdvantage proxy and Infragistics controls? If not, why are you posting here? This is not IBM. I cannot see anything in your post that has to do with Infragistics. Go to the IBM website for RFT specific questions.
Hi,
I wanted to ask one question related to RFT 8.1.1 version and using web application which run on Java Runtime Environment (JRE 1.6 update 21) ...
First i was working with RFT 8.1.0 version with jre update 18 and same scripts were working fine but now that due to jre update 21 have updated RFT to 8.1.1 i am get the following error
Could not find a Frame.com.rational.test.ft.ObjectNotFoundException at com.rational.test.ft.object.interfaces.ClientTestObject.invokeProxy(ClientTestObject.java:338) at com.rational.test.ft.object.interfaces.TopLevelTestObject.maximize(TopLevelTestObject.java:166) at MC_Installations.testMain(MC_Installations.java:42) at LoadCulturalBatch.testMain(LoadCulturalBatch.java:59) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) at org.eclipse.core.launcher.Main.main(Main.java:30)
Please suggest me the solution what can i do in the Preference setting to make them stable as they were perfect in the previous version of RFT
Fatima
I don't think the issue is a recognition problem. Is it possible that the control is taking long time to appear (or load its data if that is applicable) this might be true as the successful run is inconsistence. Try adding the following line right before the line that throws the exception
sleep(5)
You can change the number of seconds to wait. You might also needs to check IBM Forums for similar issues (and possibly workarounds or solutions)