Forum Discussion
So, please be precise - some script has not been executed at all? Or it has been executed with the error mentioned above?
yes
it's came as per the screen shot..Test Cases are run but it couldn't click the Mentioned object(Object written by using Object spy).
- baxatob7 years agoCommunity Hero
What is that object? And can you provide how it was mapped - what properties were used?
- ramarajak7 years agoOccasional Contributor
Hi,
I Need Drag and Drop the Values on corresponding box on my Application means, I am Using Object Spy and Make use of that created the object
{{{var rowValue = Sys.Process("Designer").WPFObject("HwndSource: Chromelesswindow").WPFObject("Chromelesswindow").WPFObject("AdornerDecorator", "", 1).WPFObject("Border", "", 1).WPFObject("Grid", "", 1).WPFObject("DesignerTab").WPFObject("ControlDesigner", "", 1).WPFObject("Grid", "", 1).WPFObject("Border", "", 1).WPFObject("Grid", "", 1).WPFObject("TabControlDesigner").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("DatasetDesigner").WPFObject("DataSetControlUC").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("Grid", "", 2).WPFObject("Border", "", 2).WPFObject("DimensionList").WPFObject("ListBoxItem", "", 2);
aqUtils.Delay(5000);
rowValue.Drag(45, 9, 326, 289);}}and the above script is correct and works fine when runs in solo but in a group of test cases it may be fails to find object some times. but other lines of that that cases executed fine.
- tristaanogre7 years agoEsteemed Contributor
You are using a hardcoded 5 second delay... so... my suggestion (along with others) still stands. This may work JUST fine stand alone because the machine/application performance may be different due to multiple events and such. You should be using something more like WaitWPFObject to do a more dynamic wait for your component before interacting with it.
Related Content
- 12 months agosinis
Recent Discussions
Check PopupMenu exists
Solved2 days agomfoster711- 3 days agosimonaferrara
- 3 days agomacheshmeh