Testcomplete not responding while trying to commit a Dialog (Win10 Desktop Application)
Dear community,
I hope you can help me with the following problem. (Excuse my english)
While trying to commit this Dialog, testcomplete does not respond anymore after the second
Aliases.Handwerk.ClientBackup.btnNext.Click();
The little dialog which appears within the Tested Application is mapped alright but i just cannot commit it. If i try to stop the test, Testcomplete says "stopping..." but does not respond anymore. Only if i manually commit the Dialog it carries on.
procedure Mandantensicherung; Var Obj: OleVariant; begin Aliases.Handwerk.MainForm.dxRibbon.ClickItem('[0]|Mandanten|Mandantensicherung'); Aliases.Handwerk.ClientBackup.btnNext.Click(); Aliases.Handwerk.ClientBackup.btnNext.Click(); Aliases.Handwerk.ClientBackup.LayoutControl.ed_TargetDir.TcxCustomInnerTextEdit.Keys('c:\temp'); Aliases.Handwerk.ClientBackup.LayoutControl.edHowToSave.ClickItem('ZIP-Archiv (Normal)'); Aliases.Handwerk.ClientBackup.btnNext.Click(); Delay(2000); Aliases.Handwerk.ClientBackup.btnNext.Click(); //At this Point Testcomplete does not respond anymore. If i manualy stop the test it says "stopping..." and stays like that. //I need to comit that "informations" Window somehow but not even the delay gets executed Delay(2000); //This ist the Object i am trying to commit Obj:=Sys.Process('Handwerk').Window('#32770', 'Informationen', 1); Obj.Keys('[Enter]'); end;
One last information which might be helpful:
- If i manually navigate through the Assistent until the Dialog with the 'ok' Button appears i can commit it by starting the following procedure within Testcomplete:
begin Obj:=Sys.Process('Handwerk').Window('#32770', 'Informationen', 1); Obj.Keys('[Enter]'); end;
2. If i do not use the Aliases.Handwerk.ClientBackup.btnNext.Click(); and instead use a tdxbarcontrol.click with coordinates the whole thing works fine. This procedure runs fine and commits the last Diaolog as it should. However i cannot work with coordinates as the test has to run on different clients with different screen resolution.
procedure Test14; var handwerk : OleVariant; var tdxBarControl,Obj : OleVariant; begin handwerk := Aliases.Handwerk; tdxBarControl := handwerk.ClientBackup.dxBarDockControl1.TdxBarControl; tdxBarControl.Click(184, 12); tdxBarControl.Click(184, 12); Obj:=Sys.Process('Handwerk').Window('#32770', 'Informationen', 1); Obj.Keys('[Enter]'); end;
edit: I also tried it with the mapped name, no differenz as the script does not seam to get to that point.