Contributions
Headless test not working
We are looking into running our scripts with headless web browser. I followed the instructions on the smartbear website. https://support.smartbear.com/testcomplete/docs/app-testing/web/supported-browsers/headless.html My first simple test is to open a page and fill in some fields and click a button, see the code below (actual url and login details are replaced in the code below): The test code works well when we use Browsers.Item but it does not quite work with Browsers.RemoteItem for us. Once the URL is opened it fails to recognize the page elements.: I am not sure that it is supposed to say "local browser" or something else in the log. Interestingly the code above, which I assume is for headless browsers only, works if I happen to have chrome open and the url I'm testing is opened. This is as if the test still runs in a non-headless mode. The chrome version is:Version 102.0.5005.115 (Official Build) (32-bit) The webdriver underC:\ProgramData\SmartBear\WebDrivers\chrome seems to be the latest stable version: Ultimately we plan to run our scripts/keyword tests using TestExecute. Any help/guidance would be appreciated.1.1KViews0likes2CommentsVisualizer and source control
We recently added our test complete projects and as suggested in my other question I turned off "bind visualizer frames to SCC". I am not sure what are the best practices with regard to working with SCC. I still have two issues. Issue #1. When I try to add a new mapping and the NameMapping is not checked out the application tells me that "to perform the action I need to check out the MameMapping item". I click ok and I get an error stating that a png tile is not found in my workspace or I don't have a permission to access it. The error popup lists many different png files and a NameMapping.tcNM is also listed. I can only click OK and nothing happens. When I go back to the project explorer I can manually check out the NameMapping by right clicking and selecting check out for edit under source control. Then I get a confirmation dialog with all the png and .tcNM files listed. Once I check those files out I can add a new mapping Why doesn't the application know automatically what needs to be checked out when I simply want to add a new mapping? Do I always have to check out the NameMapping manually before I try to add a new mapping? Issue #2 Even with"bind visualizer frames to SCC" turned off I am still getting those png files checked out automatically. I am guessing that slows SCC interactions too. Should the references to them be removed and what's the best way to do that? What's the best practice to handle this? Do I need to have "collect test visualizer data" options set to off even when the "bind visualizer to scc" is not checked?493Views0likes0CommentsRe: Test complete - team foundation integration
I think that helped. The source control operations seem a bit faster too.Thank you very much. I have a follow up question. Is there a way to change the default lock from "unchanged - keep any existing lock" to "check out - prevent other users from checking out and checking in"? I could not find any option to do that. I see lock options when I check out a file using right click menu option (unchanged is always preselected) but when I simply start typing and click ok to allow a check out I do not get prompted for the lock type. I'm assuming it's the "Unchanged - Keep any existing lock"599Views0likes1CommentTest complete - team foundation integration
I have a question about the integration with team foundation server. We recently added our test complete project to source control. Initially all worked somewhat well but slow. Recently I've been working on a few scripts (.js) and I noticed some unexpected activity. We also use visual studio to track other projects unrelated to test complete in team foundation server. Under pending changes there (in VS) I can also see what's happening with test complete checkouts. I have one .js file where if I right click on it in TC and select "check out for edit" it gets checked out. I see an exclamation mark next to the file. If instead of checking it out first I just start typing in the file before I check it out I get a message asking me to check out the file first. This is expected, but when I click OK I get an error message about the .js.tcVis file missing or not having enough permissions. The file actually exists in my local file system and it is not set to read only. That's one thing. Once I have that .js file checked out, or try to add a new one and then check it in I notice that the whole check in takes very long time/freezes. When I switch to VS' pending changes I see whole bunch of other .tcVis files that are tied to unrelated tests (including keyword tests) getting checked out with [add] action. This does not make any sense to me. What is happening and is this by design?Solved633Views0likes3Comments- 777Views0likes1Comment
Mobile testing - VisibleOnScreen property
Hello, I am still new to the TestComplete.I'm in a process of scripting a test for our mobile application and it's been working relatively well up to this point. I am stuck on one of the screens of our application where there are several checkboxes and some of them need to be selected. All of them are mapped and show as mapped when I use the object spy. The checkboxes also show the VisibleOnScreen property as true in the object spy, but when I run the script and check the value of the VisibleOnScreen for the same elements the property is set to false. I cant click()/touch() them. I had this working on another screen with checkboxes without any issues. For what it's worth the checkboxes seem to be reused on more than one screen (based on the mapped name). They work on one screen but not the other.Any ideas? Artur WSolved791Views0likes3Comments