Forum Discussion

sebastiany's avatar
sebastiany
New Contributor
13 years ago

migrating a project from my PC to a virtual machine does not recognize any script




Hello everyone, I have the following problem. I have recorded a serie of scripts in "script" mode, on my work PC a few month ago.





Since that time to now the project was growing so we decide to migrate the entire project to a virtual machina (identical Windows 7 with aero and screen resolution). But when I tried to run some scripts none of them seems to work.





So I recorded again some steps to see why testcomplete give me that pop up error "error on Colum XX row XX" or always was looking for the object, and the first difference was this, the Testing variable numer was different:





               Second Record Virtual machine               First Record on my PC

testing := Aliases.Testing5;                                          //Testing3;





Then I recorded another script, a longer one, to see how the tool assign the properties:





testing := Aliases.Testing3;

tfPrincipal := testing.fPrincipal;

tfPrincipal.rbMenuPrincipal.rbpCompras.rgbComprobantesCompra.TRibbonLargeButtonControl.Click(33, 30);

anulaciondeComprobantesProveedores := MDIClient.AnulaciondeComprobantesProveedores1;



AS YOU CAN SEE, BESIDES THE "TestingX" variable, the las line is different.





testing := Aliases.Testing5;

tfPrincipal := testing.fPrincipal;

tfPrincipal.rbMenuPrincipal.rbpCompras.rgbComprobantesCompra.TRibbonLargeButtonControl.Click(32, 18);

anulaciondeComprobantesProveedores := tfPrincipal.MDIClient.AnulaciondeComprobantesProveedores;




Please could you let me understand why migrating to anothe machine, in this case a virtual machine, the object assign is different or why the recorded scripts does not work?



There ir a chance to fix it?



Thank you!