Contributions
- 630Views0likes1Comment
Re: reload NameMapping
Marsha_RThanks for Reply. I find myself one way to change the NameMapping during a Test by using a some Batch file and Python. That is a bit Complicated to explain, I remove a NM then Write a script in .bat File then terminate the TC and run it again after finishing test with ex-NM then return back all file in their place.1KViews1like1Comment- 1.4KViews0likes1Comment
Testexecute can not find Object
Hi, I am new in TestExecute. I run a very simple Project (just one click in textbox and write a word). So, when I run it in TestExecute I get this Error. But in TC it's work. I change the Property of process to File-Address but she didnot find it. Unable to find the following object when executing the Click command: Aliases.JTL_Wawi.WPFHost.WPFElementHost.HwndSource_AdornerDecorator.AdornerDecorator.Benutzername Reason The parent object was not found: NameMapping.Sys Tips The missing object could be absent during the test run. Check the screenshot on the Picture tab if the object existed. If the object existed, view and change its recognition attributes. If the object didn't exist, check if earlier test steps worked correctly. Learn more about possible causes of the error.Solved1KViews0likes2CommentsRe: TestComplete cannot find nested Popup menu, In neste popup menu.
Finally I write a script to Click on nested Menu that is not recognized with TC-Engine. def SelectContextMenueStrip(cls, Contain_0 = '', Contain_1 = ''): try: Index_0 = 0 Index_1 = 0 Delay(50) ContextMenuStrip = Aliases.JTL_Wawi.ContextMenuStrip Height = ContextMenuStrip.Height Width = ContextMenuStrip.Width Count = ContextMenuStrip.get_Items().Count IndividualHeight = Height / Count for Index_0 in range(0,Count,1): Item = ContextMenuStrip.GetItemAt(Width/2, IndividualHeight * Index_0 ) if Item != None: if ContextMenuStrip.GetItemAt(Width/2, IndividualHeight * Index_0 ).Text.OleValue == Contain_0: ContextMenuStrip.Click(Width/2, IndividualHeight * Index_0) if Contain_1 != '': ContextMenuStrip_1 = Aliases.JTL_Wawi.ContextMenuStrip.activeDropDowns_2.Item[0] Height_1 = ContextMenuStrip_1.Height Width_1 = ContextMenuStrip_1.Width Count_1 = ContextMenuStrip_1.get_Items().Count IndividualHeight_1 = Height_1 / Count_1 for Index_1 in range(0,Count_1,1): Item_1 = ContextMenuStrip_1.GetItemAt(Width_1/2, IndividualHeight_1 * Index_1 ) if Item_1 != None: if ContextMenuStrip_1.GetItemAt(Width_1/2, IndividualHeight_1 * Index_1 ).Text.OleValue == Contain_1: MouseX = ContextMenuStrip_1.Left MouseY = ContextMenuStrip_1.Top Sys.Desktop.MouseDown(VK_LBUTTON , MouseX + Width_1/2, MouseY + IndividualHeight_1 * Index_1) Sys.Desktop.MouseUp(VK_LBUTTON , MouseX + Width_1/2, MouseY + IndividualHeight_1 * Index_1) Index_1 += 1 Index_0 += 1 except Exception as exp: Log.Message('SelectContextMenueStrip - type:' + str(exp)) I use mouse position to click on desktop, Enjoy it 😉5.3KViews1like2Comments