Unstable test results during automation testing
I dont know how to put it. We have setup a final builder which is setting up our web/client environment and then starts test completes and runs the execution. But somehow there is always a different result. Sometimes it passes and other time it doesn, when i try to run it (by starting it manually) it works. I dont know what would be the cause of this.75Views0likes8CommentsTestComplete with Word document
Hello, I have a TestComplete script that takes a screenshot at each event and saves the '.png' images in a specified folder. I am trying to achieve a similar result now, but I would like to save/store the screenshots in a Word document, which would be much easier to share with management. Also, is there any way to transfer TestComplete test logs to a Word document?33Views0likes2CommentsParametrising just one step while using BDD does not work for me
Hello everyone, my issue is: Im trying to run tests using BDD and javascript I got a step Then <user> is present in the results: | user | | User1 | | User2 | I manage to do this for scenario outline but now I want to achieve this for a single step... what am I doing wrong?Solved47Views0likes3CommentsOpening the current active "EDGE" browser window and using that object instead of closing browser
Hey all, So I am attempting to save some time by attempting to open the current "EDGE" browser window, and landing on the active tab and just use that object to execute other code, but I am having lots of issues and I can't seem to figure it out. So currently, this is what I have: Given("We open the current browser window", function () { var edgeBrowser = Browsers.Item("EDGE"); // Run the browser which attaches to an existing instance if already open edgeBrowser.Run(); // Get the current browser window var browserWindow = Sys.Browser("EDGE").BrowserWindow(0); if (browserWindow.Exists) { // Activate and then maximize the browser window browserWindow.Activate(); browserWindow.Maximize(); Log.Message("Microsoft Edge window has been activated and maximized."); } else { Log.Warning("Unable to find the Microsoft Edge window."); } }); Outputting "Browsers.Item("EDGE")", I can see that Microsoft Edge is detectable: I can also see that I do have an active "EDGE" object: For some reason, when I execute that code, it opens up a new "Internet Explorer" window and I don't want that, I just want it to open the current active browser and use the active tab that it lands on.Solved396Views0likes5CommentsExecute Scenario from AfterFeature function
I was trying to call a specific scenario from a specific Feature file. And it looks like the listed Scenario is not getting executed. The scenario is related to deleting everything that is created inside the test cases. It needs to open up the browser and execute the code, same as the normal Scenario. Have a look at the code here: AfterFeature(function (feature){ // Perform some action after executing a feature file, for example: for (i = 0; i < Features.Count; i++) { var name = Features.Item(i).Name; // Check the feature name if (name.indexOf("TeardownFeature") >= 0) { // Features.Item(i).Run(); NOT WORKING // Iterate through scenarios for (j = 0; j < Features.Item(i).Scenarios.Count; j++) { var scenarioName = Features.Item(i).Scenarios.Item(j).Name; // Check the scenario name if (scenarioName.indexOf(feature.Name) >= 0) // I gave same scenario name as exiting feature Features.Item(i).Scenarios.Item(j).Run(); // NOT WORKING } } } })Solved892Views0likes18CommentsHow to get the name of the current feature in AfterFeature or any other function
Hi All, I have a requirement where I need to fetch the name of the feature in AfterFeature function. The name can be found using Features.Items(index).Name property, but my feature files run in sequence. Giving the index means, the name will always be same for the subsequent feature files. For example if I give index 0 ,Features.Items(0).Name in AfterFeature function, the name of the first feature file will be found for rest of the features as well. Is there a way I could get the name of the current feature file that just ran before the AfterFeature function? Thanks537Views0likes1CommentSelenium/Cucumber Integration
Hello, We do automation with Test Complete for one of our applications and we have another application where we use Selenium, Java and Cucumber so I wonder if it would be possible to import the existent Selenium/Java/Cucumber test cases to Test Complete. Any input would be greatly appreciated. Thank you!Solved303Views0likes2CommentsNo failure count in Execution Summary though the tests have been failed
Hi, I am usingStopOnError_OnStopTest(Sender) handler that runs if test encounters any Log.Error while running. I need to export summary of the failed results when the test fails so I am using Log.SaveResultsAs in the handler. The handler is critical as we are using it to switch to next features if current features fail. Now the problem is despite of failed tests, the exported summary is showing 0 Failed count. Please check attachment. My QA department is not approving this and want to see correct fail count in summary. Please note that the On error property in project settings is set to Stop current item so that the test stops running and executes handler. Thanks254Views0likes3CommentsTest Complete on different machines taking different time to find objects
Hi everyone, My colleague and I are using Test Complete on our different test machines. The test complete he has installed on his machine takes much less time to find objects especially windows dialog and any swing dialog etc, while mine test complete takes ages. Is there anything in project config that might cause this ? Thanks156Views0likes1CommentRegex to verify a string
Hi, I have a below function. The regEx is intended to match the string for example: "2023-09-07 11:20:15 error description" and it uses '.' to include some text between time and error description. But, I don't know how to use variables in regEx like DateTime[0] and DateTime[1] have been used here. When I run this script it throws regEx using invalid flags. Please note the text area has multiline entries. I also wanted to know if getText() and wText() supports any indexing to get a string at particular index or line. That would be an easier alternative than using regEx. function TestErrorExample(error) { var DateTime = CurrDateTime(); var date = DateTime[0]; var time = DateTime[2]; var regEx = "/DateTime[0].DateTime[2].+(error)"; var findE; textArea = textArea(); text = textArea.getText(); if ( findE = new RegExp(regEx, text) ) { Log.Checkpoint( "Passed"); } else { Log.Error("Failed"); } } Thanks.Solved388Views0likes5Comments