Category: TestComplete

Building a Framework with TestComplete

February 1, 2023
This three part blog series (with videos) walks you through building a test automation framework using the Keyword testing functionality within TestComplete. Just tiny bit of code but pretty much everything using just keyword tests. This is about showing you how to build a structure that's easier to scale and maintain. It's about showing you how to avoid you projects turning into a plate of spaghetti. **Note:** * when we talk about 'keywords' we're talking about the feature in TestComplete allows you to build tests with this graphical icon based, drag and drop approach to building automated tests. The approach to building automated tests that SmartBear have confusingly called 'keyword testing'. This is not to be confused with the other...
Read more...

Integrating TestComplete with Azure DevOps – Pipeline Configuration

January 28, 2023
This is last part in our three part series on Integrating TestComplete with Azure DevOps. We've completed the preparation steps  and we're now ready to build that first pipeline. To get this integration working we need to configure a pipeline then. And that pipeline we'll configure as we go through these steps.. 1. Select the Pipeline menu option 2. Create a New pipeline with the Yaml or Classic editor 3. Configure the following “tasks” for the pipeline Get SourcesSelect the repository and branch that holds your TestComplete code Configure Get Sources for TestComplete Azure DevOps Integration Agent JobDefine the automation job that will run on the agent and select the agent pool Configure the Azure DevOps Agent steps for TestComplete...
Read more...

Integrating TestComplete with Azure DevOps – The Preparation Steps

January 18, 2023
In the first part to this three part series we looked at what an Integrated TestComplete Azure DevOps setup  looked like. We set the context in that blog post so that we're ready to look what we need to configure and prepare to get this integration working. We take you through the following 4 preparation steps: Creating your ADO Git Repository  Binding TestComplete to ADO  Linking your tests between TestComplete and ADO  Setting up your agent machine So this first step walks you through setting up a Git repository in your Azure DevOps project and show you how to commit your TestComplete project/code to this repository. We need our TestComplete code in our Azure Git repo as we'll build our...
Read more...

Integrating TestComplete with Azure DevOps

January 9, 2023
In this series of 3 posts we're walking you through the process of integrating TestComplete with Azure DevOps. In this post we walk you through the end-to-end process. In the 2nd post we show you how to set up, configure and prepare all the different components. Then in the 3rd post we talk you through constructing your first pipeline and integrating your TestComplete automation run into your release. The overall process looks like this: The core aspects of this setup being: Our TestComplete project is stored in an ADO Git repo. We map our TestComplete Test Items to ADO Test Cases. Pipeline is configured to execute tests on an agent Test results are fed back to an ADO test run...
Read more...

Fast Start TestComplete – Module 12: Debugging

April 30, 2018
As you’ve probably realised what’s underlying all of this automated test case development is code. Behind the scenes your Key Word tests are really code. The artifacts like projects files, checkpoints and name maps are all xml files. Ultimately you’re writing code to test code. And if there’s on thing code has it’s bugs. Yes you’re automated tests will have issues that you’ll need work on to debug. Which is why TestComplete has some debugging tools built in. So that’s what we’re about to look at in this module. We can break these tools down into three distinct areas…. the context sensitive menu in the Keyword test work space the debugger toolbar the debugger panels We’ll go through each of...
Read more...

Fast Start TestComplete – Module 11: Name Mapping

April 22, 2018
Probably the most critical aspect of any automation project is the ability to reliably identify the objects you need to interact with. Fail to identify the objects at all and you’re dead in the water. End up with unreliable identification and you’re probably in an even worse position. When it works some times and not others you’ll spend inordinate amounts of time trying to work out why tests have failed…. is it your scripts or is it a bug? You have to get to a point where you can reliably identify application objects every-time. In this module we’ll walk you through how you can approach this with TestComplete. Key to object identification in TestComplete is a feature called the Name...
Read more...

Fast Start TestComplete – Module 10: Test Logging

April 15, 2018
There’s no point in going to all this trouble of creating tests unless you can see the results of those test runs and see what’s passed or failed. Test logging in TestComplete is quite simple to get to grips with. Yet this logging capability provides a powerful way for you to easily navigate through mountains of test data that get generated as part of lots of test automation runs.     In this module we’ll look at * How test logs are organise and stored * What the test log window shows us * How to filter the logs to see what you need * Exporting logs in different formats * How we can add log messages to our scripts...
Read more...

Fast Start TestComplete – Module 9: Checkpoints and Stores

April 8, 2018
We covered Projects and Project Suites in our last module. Next up then we have Checkpoints and Stores. Checkpoints to check something at a point in our test execution. Stores to store things. Obvious really.   There’s no point in building out these projects and keyword tests if you don’t have some way of checking the expected results against the actual results you see. Check points do exactly that. You can think of check points as the manual testing equivalent of defining your expected results and then checking what actually happens against them. The result being either a pass or a fail.           The Stores component in TestComplete is linked in quite closely with check points....
Read more...

Fast Start TestComplete – Module 8: Projects and Project Suites

March 26, 2018
We’ve already come across the basic concepts of the Project Suite and the Project. Remember that one Project Suite is the container for multiple Projects. Beyond this though we find a few further levels in this hierarchy. A project can then contain multiple test cases. A a test case can have one or more test steps.   In the image below we see the top level project suite called ‘CalcProject Suite’. Under the ‘CalcProject Suite’ we find 4 projects.   CalcAPI, CalcDesktop, CalcMobile and CalcWeb are all projects contained within the single project suite. Then we can take the ‘CalcDesktop’ project and we can see that this project contains two test cases (Test1 and Test2).  Drilling further down we could...
Read more...

Fast Start TestComplete – Module 7: Creating Key Word Tests

March 19, 2018
Finally we get to the point where we can start looking at the creation of automated tests with Keyword Testing in TestComplete. We’ve looked at some of the key components like Managing Projects, Options and Settings. We’ve also seen how Objects, Properties and Methods are critical to the tests you write. All of these components and concepts are part of the foundation you need in order to start creating automated test cases. You have that foundation now. From here on in it’s all about creating tests.     You may or may not have figured out that you have two ways to create automated tests in TestComplete. Scripted (e.g. Python, VB, Java Script, etc) or Keyword graphical drag and drop....
Read more...