Contributions
How to get the values which are dynamicall generated
Hi, In our application, the information is dynamically generated that is stored as Label in TestComplete. Everytime the information will change, it will be stored as label, i have to map the object and write in the script for every label. I want that to be general so that it captures all the labels that are dynmaicaaly generated. I do not know how to capture the information that are dynamically generated. Please find the below script. if(X.HwndSource_Window.Window.PrintStatusUserControl.btnError.Visible) { Listerror=(X.HwndSource_Window.Window.PrintQueueUserControl.MaintenanceWarning.lstError.ListBoxItem.Label.WPFControlText); Log.Message("List Error is" +Listerror); Listerror2=(X.HwndSource_Window.Window.PrintQueueUserControl.MaintenanceWarning.lstError.ListBoxItem_1.Label.WPFControlText); Log.Message("List Error2 is" +Listerror2); } Thanks and regards, Anitha17KViews0likes1Commenthow to check for different parameters
Hi, I am automating a printer application where in, No of copies and no of pages will get updated, but sometimes the application doesn't work and the no of pages and no of copies are not getting updated. I want to stop the execution when the no of copies and no of pages are not getting updated. Right now, I have put the logic like till printing grid visiblility becomes false it has to wait for so many milliseconds. When no of pages and no of copies are not updating that grid will be visible and testcomplete runs in infinite loop. Please let me know when no of copies and no of pages have stopped updating in the application, test execution should stop and error message should be shown. Please let me know how this can be done. Please let me know as soon as possible as it is very urgent. Please find the code below, in which I am waiting till that grid is visible, When no of copies and no of pages are totally completed, the grid becomes unvisible. while(X.HwndSource_Window.Window.PrintQueueUserControl.btnPrintingGrid.Visible) { Delay(3000); pagesprinted =X.HwndSource_Window.Window.PrintingJobDetailsUserControl.txtSheetsPrinted.get_Text; Log.Message("Sheets printed are" + pagesprinted); copiesprinted =X.HwndSource_Window.Window.PrintingJobDetailsUserControl.txtCopiesPrinted.get_Text; Log.Message("Copiesprinted are" + copiesprinted); Delay(3000); pagesprinted =X.HwndSource_Window.Window.PrintingJobDetailsUserControl.txtSheetsPrinted.get_Text; Log.Message("Sheets printed are" + pagesprinted); copiesprinted =X.HwndSource_Window.Window.PrintingJobDetailsUserControl.txtCopiesPrinted.get_Text; Log.Message("Copiesprinted are" + copiesprinted); runtime =Aliases.X.HwndSource_Window.Window.PrintingJobDetailsUserControl.txtRunTime.get_Text; Log.Message("Run time updated is" + runtime); Jobstate =X.HwndSource_Window.Window.PrintingJobDetailsUserControl.txtJobState.get_Text; Log.Message("Job state is" + Jobstate); }26KViews0likes1Comment- 793Views0likes0Comments
How to map objects all at once from application
Hi, I aPlease let me know how to map all the objects at once. Right now I am using the Map object from screen and doing it for each object. Please let me know how it can be done for Whole application at once. Thanks and regards, Anitha16KViews0likes3Comments