My opened window from a button click close immediately
I am trying to click on a button inside a popup that will open a window to browse files, but when TestComplete click the button when running the Keyword Test, what happen is the following: the popup containing the button clicked close (as it should) and the window to browse files open and close immediately. I am trying to do this in a python script that is executed in the Keyword Test. I tried ClickButton, Click, DoubleClick, but it all do the same. The button opening the window is in WPF. If someone have an idea to keep the window open when it is opened by testcomplete, I would be thankful.Solved39Views0likes4CommentsConnecting to a SQL Server database using Integrated Security from JavaScript
I have a BDD test. One of the step definitions connects to SQL Server database and fetches some data. I use JavaScript. This the JavaScript code I have. The connection used Integrated Security, so no need to give user id and password var connection=ADO.CreateADOConnection(); connection.ConnectionString="Provider=SQLOLEDB;Data Source=<datasource>;Initial Catalog=<database>;Integrated Security=SSPI"; connection.Open(); connection.Open() is throwing up a message box asking for user id and password. See the attached screenshot. The above connection string works fine with Database Tables (Stores=>DbTable). See the attached screenshot. Does anyone has code sample to connect to SQL database using integration security.20Views0likes1CommentHow to add external files to a project?
Hi everyone, I'm new to TestComplete and currently struggling with something that I believe should be fairly straightforward. I’m trying to add a test-data folder within my TestComplete project and include a JSON file in it. However, when I attempt to create a new file, I only see options for default project items (events, stores, scenarios, etc.), and there doesn’t seem to be an option to add external files like JSON directly. The workaround I’ve found is to add the file through Windows Explorer, and then from TestComplete use the add existing item option to place the file under the test-data folder, but I would expect there to be a way to create the file directly in TestComplete. What is the correct approach for including external files in specific project locations? Is there a better way to manage these files within TestComplete? Thanks for any insights!Solved63Views0likes10CommentsRuntimeErrors after upgrading to 15.68.8.7
Hello, I recently upgraded to the latest version of TestComplete, and unfortunately, I'm experiencing issues. I'm still facing a RuntimeError originating from TestComplete's native functions (I'm using it with Python scripts). The errors occur with functions like Log.Message, Log.AppendFolder, and others. However, the problem is quite random, as it's not always the same line of code that fails. As a result, I'm unable to execute any tests at the moment and will need to downgrade to the previous version. Is anyone facing this problem as well?127Views1like8CommentsName 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?885Views0likes14CommentsTestComplete cannot find chrome webdriver
Hello, I am trying to get TestComplete to run headless tests. I am following this guidehttps://support.smartbear.com/testcomplete/docs/app-testing/web/supported-browsers/headless.html#localand I am running into the issue that TestComplete cannot download/see the needed WebDriver. This is the JavaScript used in the guide. function Test_Chrome_Headless() { var server = "localhost"; var capabilities = { "browserName": "chrome", "screenResolution": "1920x1080" }; var url = "myurl"; Browsers.RemoteItem(server, capabilities).Run(url); } I downloaded the chrome driver manually and created the path as shown above. But even with the driver in the correct location he cannot seem to open it. When I try to open the driver myself, it works. Does anyone have an idea what I am doing wrong? Kind regards, Luuk577Views0likes4CommentsVideo recording of Text Execution
Hello to everyone! I installed the VideoRecorder Extension and the last version of VLC Media Player. When I try to record a test execution in the log tab the following sentence appears: "Unable to start video recording. The VLC recorder is not installed." Why does this message appear? I uninstalled and installed again VLC but it continues to appear. How could I solve this problem? Thanks in advance to everyoneSolved1.1KViews0likes8CommentsClickItem not selecting the proper item from a dropdown
I am working with TestComplete for the first time, evaluating it for ease of use for our organization. I'm a tester, not a developer I tried recording a test that fills out a form including a dropdown list. The code generated by a record as JavaScript shows as browser.pageLeaveHomePageGc.framePtifrmtgtframe.formW3lvLeaveTranG.selectGDerivedW3lvDescr500.ClickItem("Vacation"); However, when I play it back, it just clicked on the first (sometimes second) item in the dropdown list, not the item that I recorded selecting. There are a large number of items in the dropdown list (20+) Is there a different sort of command that would select the correct item? I tried recording as script and recording as keyword, but still got the same result41Views0likes5Comments