Contributions
Smart assertion - Allow updating the Smart Assertion without loosing what is already configured
For the Smart Assertion tool to be useful, it must be possible to update current values without losing what is already configured. Currently if a piece of data changes, you have to reload the whole response, which causes the loss of all the previous configuration. Moreover, this makes cloning completely useless because if we clone a test, the configured Smart Assertion doesn't work anymore. You need to reload everything. When you have a lot of elements in your JSON response, and you assert the values against a data source, it's a lot of wasting time redoing what you have already done previously.210Views0likes0CommentsObject in Name Mapping only using the first selector (Web application)
Hi, For a few days, I have multiples issues with TestComplete that is using only the first selector of the object in the Name Mapping. I have an object that has to 2 selectors. Sometimes, the first one is visible on the screen and some other times is the second one that is visible. When I run my keyword test and it's the second selector that I need, it fails and in the "Details" tab on the report log" you can see that TestComplete has only looked in the first selector. If I move up the second selector at the first position it worked but now the other keyword test won't work anymore. Can somebody help? Thank you! Katherine Added information: I've added the [not(@style="display: none;")] and it seems to resolve the issue but I'm style wondering why it returns an error. I read this in the TestComplete documentation regarding the selector: When locating the object, TestComplete will go through the specified selectors one after another in the order the Name Mapping editor lists them until it finds an object that matches the selector or until there are no more selectors left.Solved876Views0likes2CommentsRe: Remove the "improve your test performance" in test log
Thanks so much for this solution! I used the following step by steps doc to create the event handler and the code written byKitt. https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handlers/for-testcomplete-events.html1.7KViews0likes0CommentsRe: Remove the "improve your test performance" in test log
Just to let people know I have openned a case at SmartBear regarding this issue on July 29. The told be that this was an issue with the version 15.42 and they will let the dev team know about this problem. Hope it get fixed soon!1.7KViews1like0CommentsXPath - Cannot find the object (KeywordTest)
Hi, For several days, TestComplete often does not find several objects. I record a test and I run it and some objects are not found even if I put auto-wait or delay. In some cases, I've test my XPath in Chrome's console and my XPath works but when put in a selector of a mapping in TestComplete it doesn't work. Example : I'm trying to acces a button that have no id that I can use because it's auto-generated and it changes all the time. Here is a the part of the html that contains the button. You can se that the button has a class named "icon-show-datebooks" and it's included in a table that has an Id = "btnShowDatebooks" If I use the commande $x in chrome with the following XPath, chrome has no problem finding it. But TestComplete don't I have also tried in TestComplete the following Xpath to find the button include in the table that has an Id, but it doesn't work also (bit it works in the console of chrome) : //table[@id='btnShowDatebooks']//button I have tried also the full XPath created by Chrome and it doesn't work also : /html/body/div[1]/div/div[1]/div/table/tbody/tr/td[1]/table/tbody/tr/td[7]/table/tbody/tr[2]/td[2]/em/button The selectors in TestComplete : I don't know anymore want to do. If I cannot wrote XPath manually in the selectors of TestComplete, I'm in trouble. Help please! Thanks!876Views0likes4CommentsRe: XPath - Cannot find the object (KeywordTest)
Hi ebarbera In the last image, the ones with the index [7] are the ones created by TestComplete but they don't work. The index always changes so I cannot use them. It's the reason I need to add manually selectors that will always be the same. The error is changing depending of the selector. The one with the selectors generated by TestComplete is this one : Some of them with the selectors that I added manually (work in the console of Chrome with the "$x" command).You can see that the button as a border in red in the image on the right. Thanks853Views0likes2CommentsRe: TestcComplete does not find chrome browser with "Sys.WaitBrowser"
HInaveens33_ So the browser constants do work for the "Navigate" and "Run" methods but not for theSys.WaitBrowser !!! I should have think about that :-(. Because the other methods works with the constant I assumed it will work with the "WaitBrowser". Thanks for your reply !635Views1like0CommentsTestcComplete does not find chrome browser with "Sys.WaitBrowser"
Hi, I have a script that validate if the browser Exists and if true it calls the Navigate method and if not it call the Run method. My problem is : Even though the browser is already running, it always thinks that it's not. So the script calls the Run method. The funny thing is that afterward, the log has en entry saying "the browser is already running". I know !!! I've put a delay of 10 seconds and it doesn't change anything. This is the method : def ClickBoutonOkFiltres(): url = Project.Variables.navigate_url # Launch Chrome if it is not running if (Sys.WaitBrowser(btChrome, 10000).Exists): Browsers.Item[btChrome].Navigate(url) else: Browsers.Item[btChrome].Run(url) This is the message in the log afterward : Thanks !Solved648Views0likes2Comments