Contributions
is there a method to check if a testing application is busy?
In my testing application, i can giving instructions to create a large file, and later using it for comparison using files.compare. However, because the file is large, i don't know how to delay my script until the large file is finished being created. Is there a method or anything that can detect whether my application is "busy" so I can add the delay?14KViews0likes1Commentis there a method to detect whether a file is in use?
I open use the files comparison method to see if two files matches. However, sometimes one of the files are in use by my testing application, and I get thrown an error by testcomplete? I have a workaround which i just introduce an arbitrary delay, but i would like to know if there is a way to detect whether a file is in use or not. Thanks, Justin13KViews0likes2CommentsRe: I have two dialog boxes with the same title, how do I reference the right one?
Thank you, this is very helpful. I was also able to solve the problem by referencing to the message boxby it's full name: Sys["Process"]("OptPCS")["Window"]("#32770", "Create siteplan table", 1)["Window"]("Button", "OK", 1)["Click"]()1.1KViews0likes0CommentsI have two dialog boxes with the same title, how do I reference the right one?
Hi, please see the attachment. I am testing a program that has both "Create siteplan plan" as the dialog box title. In the screenshot, the small dialog box comes up within the background dialog box. I want TC to click OK on the button. This is who I would do it in the script: Aliases["OptPCS"]["dlgCreateSiteplanTable"]["btnOK"]["ClickButton"](); If I run this command, I will get an error message "the object does not exist". I'm sure it's because it is looking for the OK button in the background dialog box, which doesn't have an OK button to click. The background dialog box is also not active, the small one is. Given all this, how do I reference the small dialog box? Is there a way to reference it by some PID, or a maybe a child dialog box? Thanks, Justin10KViews0likes2CommentsRe: "the window was destroyed during method execution" on open dialog box
Upon converting my keyword text to a script, I see it OpenFile method is being called: optpcs["dlgOpen"]["OpenFile"]("C:\\TTS\\TestCases\\Testing\\SitePlan\\Asset_Siteplan_Csv.csv", "All Files (*.*)"); I have tried removing the "All Files" argument in the method. This prevents that dropdown from being selected during playback, but I still get that window was destroyed message regardless. When you say zip up my project file, do you mean all the files that are specified in the attached image?1.5KViews0likes0Comments"the window was destroyed during method execution" on open dialog box
Hi, I have a open file dialog box like the one in the attachment. I am recording an action to call up that dialog box, type in a file name and click on ok. However, when I replay the recording, the ok button is never pressed. Furthermore, the "files of type" drop down box is selected even though I never touched it in the recording. Looking at the log results in testcomplete, I see an error that says the window was destroyed during method execution. How do I get testcomplete to click on the actual button, and not prompt this error message? Thanks, Justin14KViews0likes4Comments