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.68Views0likes8CommentsTestComplete 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?31Views0likes2CommentsParametrising 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.Solved381Views0likes5CommentsExecute 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 } } } })Solved888Views0likes18CommentsHow 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!Solved296Views0likes2CommentsNo 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. Thanks253Views0likes3CommentsTest 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 ? Thanks156Views0likes1CommentAdd support for Test Scenarios with Variables (e.g. BDD style) for users with Jira Cloud
We have users who have manual test scenarios, where there are steps to be repeated many times, but with different variables inserted and different results checked for, similar to, but more complex than the example below: Given a user navigates to OurApplication_login_screen When I enter Username as <username> and Password as <password> Then the Home_Screen should be displayed And the text Welcome <friendly_name> should be in the header Examples |username | password | friendly_name | |username1 | password_1 | User One | |username2 | password_2 | User Two | |username3 | password_3 | User Three | Apparently Zephyr Enterprise supports tracking these types of scenarios only if customers are using an on-prem version of Jira, but not if using Jira Cloud. We'd like this capability added/expanded for users of Jira Cloud (as we're NOT going to go back to hosting Jira on-prem!).