Contributions
confused about mechanism of window naming
as I'm understanding things, you can use window naming to access a window like so: Sys.Process("Shop").Window("WndClassName","Austreus Shop Management - Master Item") is this correct? I have several questions: 1. multiple windows may have identical window class name. So how does testcomplete know which window to call? in every application run, the window index and window class name may also change. the only thing that won't change is the window caption. I'm confused. Does this mean we have to edit window class name or index for every application run (not test run, but application run). 2. How do I determine the constant part of window class name so I can apply the wildcard Thank you very much.24KViews0likes1Commenthow smartbear determine object tree hierarchy
I want to know how smartbear generate the object tree hierarchy? you know, this UI component is a child of that component, but parent of these components. and sometimes the the same component may have different parent on different run and perhaps a different name. also, what's the difference between name mapping and alias? thanks24KViews0likes1CommentSys.process("firefox").Exists
in my script unit, I want to check whether firefox is initiated or not by using Sys.process("firefox").Exists. basically the if..else logic is to tell testcomplete to launch firefox if exists=false and if not, then check whether there's a window pointing to a certain url. if(Sys.Process("firefox").Exists == false) { //Runs the "firefox" tested application. TestedApps.firefox.Run(); } else if(Sys.Process("firefox").Page("http://www.global-erp-solution.com*").Exists == false) { //Opens the specified page in a browser. The URL can hold either an absolute or a relative path to the page. The "Make Page object a child of the browser process" option should be turned on. Sys.Process("firefox").ToUrl("www.global-erp-solution.com"); } the test fails at the very first line. I don;t get it. shouldn't the execution resume to running firefox in the event firefox is not yet opened? but why do I get failed test instead?17KViews0likes3Commentsproblem testing web app
I tried accessing this : www.global-erp-solution.com. Username and password are both jakarta. I recorded a keyword test from login page, after logged in, go to Master --> Master Item. I tried to capture the grid by clicking around it and ended the test. When opening the namemapping to see the namemapping generated, I tried to find the grid object (in my case, the name is something like panelUiJqgridBdiv) and right click it to highlight in it screen, I got "underlying object doesn't exist". What's the problem? thanks27KViews0likes5Comments