| || |
Robot Object Identification Problem - DotNet
I am currently scripting against an application that is being build in C#. We have been beavering away fine in our scripting. Then after installing the latest build of the application, Robot started misbehaving. We have the .Net files required to allow Robot to recognise .Net objects already installed.
Below is an example of what is happening.
Scripts recorded on previous builds (and also on the latest build record long paths to objects (which we modify to be over multiple lines for easy reading). Eg.
Window SetContext, "Type=Form;Name=frmMain", ""
PushButton Click, "Type=Panel;Name=pnlPanes;\;Type=Control;Name=Inst rumentsPane;\;" _
+ "Type=Panel;Name=pnlControl;\;Type=Panel;Name=pnlC ontrolButtons;\;" _
Window SetContext, "Type=Form;Name=frmPaneContentSelection", ""
GenericObject Click, "Type=Panel;Name=pnlBackground;\;Type=Control;Name =seepingMenu1;\;" _
+ "Type=Control;Name=gridMain", "Coords=76,21"
These were playing back, but now with the latest build as soon as we start to try play back, the scripts fail because it can't find the objects. So we record to see how Robot is recognising the objects and get the following (for the same objects recorded with the code above)
Window SetContext, "Caption=**Program Name**", ""
PushButton Click, "Text=Display"
Window SetContext, "Caption=Menu", ""
GenericObject Click, "Class=WindowsForms.Window.8;ClassIndex=3", "Coords=109,25"
**Program Name** entered in place of the actual program name for confidentiality reasons.
I have spoken to the developers who say they have not changed the way they do there builds. I was thinking that maybe their application was over writing the robot files (dotNETSpy.dll and Interop.mscoree.dll) which are placed into the Windows\Assembly directory. But they have said no.
It would appear that the above situation only occurs, if you try to launch the application during playback.
I am wondering if anyone else has experienced this issue and found a solution.
If you have any ideas on this please let me know. Your help would be greatly appreciated. [img]images/icons/smile.gif[/img]
[ 06-15-2004, 01:17 PM: Message edited by: Cheekyboynz ]
Re: Robot Object Identification Problem - DotNet
sorry i cant help U but i will appreciate if U forword me any clues that help U eventually to understand and solve the .NET problem