NameMapping issues after IF Object statement returns false?
I submit a ticket through support already, but has anyone else seen an issue in 15.72 and 15.73 where a web test will fail with an "Unable to find the following object when executing the Click command:" error immediately following an IF Object statement that returns false? I am seeing this issue on two separate web test suites. If I use debugging to pause the test on the failing line, then right-click and "Highlight on screen" then continue, the test will work. If I just pause, then continue it will still fail. I moved that item above the IF Object statement and it works, but now the next one after the IF fails. In this image, the green item fails when by the pink item, but works when I moved it above the IF. Now the pink one fails. If I go back to 15.71, this does not happen.Solved96Views1like12CommentsTestComplete crashed the Test App when trying to add property of popuproot object
I have a dropdown, for which I need to add datacontext.Name property in the namemapping for combobox item, when trying to add this property from Edit Namemapping item, as soon as I click on the < button, to move property, the Test App hangs and finally crashes And I am never able to make it work. Any help on how to handle it would be highly appreciated.63Views0likes6CommentsUse variable inside other vars default value
My Base URL has been changing a few times, Going over every item inside the namemapping to change the IP address to the website takes a while. So I want to make my BaseURL inside the namemapping a variable. To do this I found it's not possible to concat inside the namemapping ^ This doesn't work. Then I thought lets just a var for each of the programs. However I quickly found out that works for the entire run but not when running individual tests because those vars don't get set. Is there any way to set the Default value with a variable and concat the appropriate link to it? This is my current namemapping: I want to set it like this or something similar: Using the vars with a default value to also be able to run each test individually for debugging.Solved65Views0likes6CommentsCan TestComplete Name Mapping Identify Multiple Web Elements?
I'm working with TestComplete and trying to use Name Mapping to identify multiple web elements that match a given selector. However, when I paste a selector that finds multiple elements in the Name Mapping object, TestComplete only identifies the first match. Is there a way to configure Name Mapping so that it can recognize and interact with all matching elements, rather than just the first one? Or do I need to use other functions like FindElements to find the elements I need?Solved84Views0likes6CommentsName Mapping not working on remote browser
The name mapping and test cases work fine on local browsers, but would complain about page or object not found when running headless remote browsers and in parallel testing. I have the following setup for browser name mapping: For headless setup I have: server = "localhost" capabilities = { "browserName": "chrome", "headless" : "true", "screenResolution": "1920x1080", "platform" : "Headless", "record_video": "true" } Browsers.RemoteItem[server, capabilities].Run(url) Is this the correct way to work with name mapping on headless browser?1KViews0likes15CommentsHow to simplify process of embedded module into two applications
I have a module would be embedded into two applications, app_A and app_B. app_A name mapping : NameMapping.Sys.app_A.MainForm.tableLayoutPanel.toolBarPanel app_B name mapping : NameMapping.Sys.app_B.MainForm.tableLayoutPanel.toolBarPanel How cloud I implement current auto testcases from app_A to app_B? Should I build a brand new name mapping for app_B? Is there other solution to simplify this process? Thanks for reply35Views0likes4Commentshow to get Object.Name without triggering element search
Hi guys, I know that this topic may sound a bit weird, but I have a very good reasons for it :) Here is my situation... I have a mapped element, containing an xpath, which I need to pass to a function as a parameter. The xpath alone, may not find an element! This is a critical point of my problem! The xpath is supposed to be used as a parameter in FindElements method. And because FindElements parameter requires xpath, I first need to extract the xpath from the mapped element. BTW, of course, I know that I can pass the xpath directly as a parameter. But I want all my xpaths stored in Name Mapping and not here or there in keyword/script modules. Therefore, I want to pass either mapped object or string value, representing the mapped/alias object. The problem is, that if the mapped element is used directly, as a parameter of function, during runtime, it always triggers the element search. But as I mentioned above, the xpath alone cannot find the element! So I decided to assign the mapped element via string constant (to avoid the search of element) and then convert the string back to object using Eval function. Eval correctly converts the string to object, but then, after calling Name property, it again tries to search the mapped element in UI, which, of course fails, not to mention takes long time. So, is there a way, how to get the xpath of a mapped element, without triggering element search? Thanks.Solved139Views0likes7CommentsClone Name Repo
Hi. I want to clone a name repository from one project suite to another and I want to clone keyword tests from one project suite to another. Then I want to go into cloned Project suite and change three characters in the url of objects with use of a wildcard ? Or *. Is that possible? TestComplete 15.x.x -todd221Views0likes2CommentsWarning messages in the test run log for improve performance
Hello, Recently I have updated all my nameMapping to use unique identifiers in the XPath and deleted all others that TC saved when recorded. So tipically I have only one selector for each object or element. When I ran the test it gave me the following warning almost for all the objects. You can improve the performance of the object search in the test. The NameMapping.Sys.browser.pageAuth.login_SignIn_Btn object can be found faster if you make //input[@type="submit"] the first selector in its selector list. And in the nameMapping for this object I see only one selector as I mentioned above. Still not sure why its throwing warning messages. Even when I click on Improve performance button in the log it just added an Empty selector, and even with that when I rerun the test it gave same message. One another thing is that the Extended Find column doesn't have any checkboxes. Is there something I missed in the settings or somewhere else TIA592Views1like3CommentsDevExpress htmlContentControl TilesView
Recently we started using DevExpress controls on our project. Mapping them is an unobvious task. Object Spy can't give me the required result. I've tried recording tests and it helped me in previous cases but not with the last. We have two types of panels shown below: Recording the tests gives me htmlContentControl.Click(107, 23); This approach obviously seems wrong to me. Because I want to click a text, not just a point of a given panel. Also, I need to check e.g. if it was selected. Has anyone some advice on how I should search for a proper container of these items?38Views0likes1Comment