Welcome to the SmartBear TestComplete tutorial. TestComplete enables automated Testing across different platforms. Our experts have prepared a step-by-step tutorial which will help you in getting hands-on experience with TestComplete. So let's get started and get you acquainted with the testing basics.
In TestComplete, we have an option for record and playback test creation. We can record a manual test and can have it played back and maintain it as an automated test. GUI testing, Unit testing, Regression testing, Keyword testing are some of the testing types that this tool supports.
Take your career to next level in Testcomplete with HKR. Enroll now to get Testcomplete online training demo
Following are the capabilities of TestComplete,
Before going with the installation of TestComplete, we must ensure that our system is compatible to install the tool. Here are the recommended software requirements,
TestComplete 14.40 is the latest stable version released on March 31st, 2020.
TestComplete installation is straightforward. Go to Automated Software Testing and request for a trial version. Once you get access, download the installer file.
Run the installer file, and the installation wizard will pop up. Leave the default option enabled for 'Intelligent Add-on' and click on next. The next screen will show the default installation location, and you can change it if you want. Click on 'Install'.
Once the installation has done, you will show a welcome message asking to activate your license. Click on 'Start a 30-Day Trial'. Once the activation has finished, the TestComplete window will automatically open.
TestComplete provides a variety of testing approaches. Some of them are,
Unit Testing - when we want to test only a specific part of an application, we can create a unit test. We can even call internal methods of applications
Functional Testing - when we want to test the form in the customer's perspective, like check what the way does for each user action
White-Box Testing - we can use this when we want to test an application based on the access. This test has conducted with access no higher than the user
Regression testing - used to reuse a test on a project when changes have done to the code. We can compare the new results with the old ones
Parallel Testing - used to test multiple subcomponents of application in parallel. It has used to reduce time
Load Testing - used to put a predetermined load on the application and check its response. It will be used to identify any bottlenecks under certain conditions
In TestComplete, we can create tests in two ways,
Creating a test for a desktop application
We can create a test by recording the actions on the desktop application. We can record data input, item selection, etc. Open the TestComplete IDE, in the TestEngine toolbar, click on 'Test' and then click on 'Record' and later on 'Record Keyword Test'. Choose the desktop option.
The recording toolbar has opened, and the recording starts. You will have options to pause or stop the recording and add checkpoints. Open your application and perform actions. Once all the operations have shown on the application, stop the recording. It will create a new script routine where all the test actions have been saved.
Creating a test for web application
TestComplete supports testing of any web applications and provides support for HTML5, AJAX, ASP.NET, etc. If you do not have a web application to test, TestComplete provides a sample application. You can access the application through this http://services.smartbear.com/samples/TestComplete14/smartstore/
You have first to configure the web browser, i.e. add the SmartBear Test
Extension to your browser in which you will be performing the test. In the TestComplete IDE, click on Test > Record > Record Keyword Test.
Choose the web option, select the browser, and give the URL for your application. Enable 'Cross-platform web testing', if you want to record tests in a different browser or in a remote environment which is not supported by TestComplete directly. Click on 'Record'. Once the web application has opened, perform all the actions and stop the recording. All the commands recorded will be saved as a test.
Running the tests
Open TestComplete IDE. The tests created earlier will be shown in the project explorer. Right-click on your script and click on 'run'. The test starts running, and we will also get options for pausing and stopping. We can use the pause option for debugging the test to go through logs. We can use the stop option to stop the test before it has completed. If any errors have been encountered during the test run, TestComplete will stop the test run, and the related information has been stored in test logs.
If you have any doubts on TestComplete, then get them clarified from TestComplete Industry experts on our TestComplete Community!
How to analyze tests
All the operations performed during Testing are stored as logs. We can find the log file in the project explorer under Project Suite Logs > SmartStore Log. Each test run will generate a node, and the node icon represents the message type, i.e. successful, error, warning, etc. So, we can find the testing history for that project in the SmartStore Log. Once a test run has completed, the corresponding log will open automatically.
The log node contains the actions performed along with the time when it has performed, description, and might also contain images. The picture panel shows the expected screen that was captured during test recording and the actual screen captured during the Testing. There will be an option 'View Comparison Results' to compare both the images of a screen.
TestComplete offers native support through which we can automate a BDD workflow. It provides integrations for a lot of task management, version control, and CI tools. Major companies like Cisco, J.P. Morgan, Boeing, McAfee, etc. have been using TestComplete.
5th April | 08:00 AM