TestComplete basics

Contents
Introduction
Recording the simplest Web UI test
Browser change
Capture tested object properties
Log.Message()
Delay()
Add TestedApp
hasp
Repositioning of windows
Import scripts from other projects
Similar articles

Introduction

TestComplete is a functional automated testing platform developed by SmartBear Software is a company known for such products as Soap UI . Swagger, the Zephyr plugin for Jira and others.

TestComplete gives testers the ability to create automated tests for applications Microsoft Windows , Web , Android and iOS. Tests can be written, scripted, or created manually using keyword-driven operations. It is used for automatic reproduction and logging of errors.

The runner test for TestComplete is called TestExecute and can be installed separately. from TestComplete.

TestComplete contains three modules:

Each module contains functionality for creating automated tests on the specified platform.

TestComplete is used to test many different types of applications, including the Web, Windows, etc. Android, iOS, WPF, HTML5, Flash, Flex, Silverlight, .NET VCL and Java . It automates functional testing and server testing, such as database testing.

TestComplete is used to create and automate many different types of software tests. Creating a test to record and playback records the tester performing manual testing, and It allows you to reproduce it and maintain it over and over again as an automatic test.

Recorded tests can be modified later by testers to create new tests or improve existing tests. a large number of use cases.

Main characteristics

Supported types of testing

Supported scripting languages

Supported applications

Supports all 32-bit and 64-bit Windows applications.

Enhanced support, access to internal facilities, methods and properties for the following purposes:

Recording the simplest test

Not creating a project in advance.

Press. RECORD TEST

Select the name of the project and select Keyword testlike

Select project name, location and type of test to record TestComplete Image from www.andreyolegovich.ru
TestComplete - Project Name

Choose. Web and the type of browser. Specify the URL and click Record

TestComplete image from www.andreyolegovich.ru
TestComplete

In this test, we will check the website page. www.andreyolegovich.ru Software testing → How to learn

TestComplete image from www.andreyolegovich.ru
Screenshot.
www.andreyolegovich.ru

Press on. Various courses

TestComplete image from www.andreyolegovich.ru
Screenshot.
www.andreyolegovich.ru

Hover over the header. Where to study for the profession of a software tester

In the Quick Checkpoints drop-down menu, select contentText = …

TestComplete image from www.andreyolegovich.ru
Screenshot.
www.andreyolegovich.ru

Stop recording.

TestComplete image from www.andreyolegovich.ru
TestComplete

Examine this wound test.

TestComplete image from www.andreyolegovich.ru
TestComplete

Run the test by pressing on Run

TestComplete image from www.andreyolegovich.ru
TestComplete

Learn about Keyword Test Log

Keyword Test Log TestComplete Image from www.andreyolegovich.ru
TestComplete

Browser change

Select the browser in which you want to perform the test can be double-clicked Run Browser

Select the desired browser from the list

Selection of browser Run Browser TestComplete image from the website www.andreyolegovich.ru
Select the TestComplete browser

Capture tested object properties

By default, TestComplete saves the usual screenshots. Consider the calculator screen from the article «Windows calculator testing»

To open a screenshot in Visualizer Frame, double-click on it.

Normal screenshot of TestComplete image from www.andreyolegovich.ru
No access to facilities
Regular screenshot of the calculator

To save not only screenshots but also properties of objects in these screenshots, you need to enable the option Capture tested object properties.

Using this option can slow down productivity.

Move in. Tools → Current Project Properties

Capture tested object properties TestComplete image from www.andreyolegovich.ru
Tools. Current Project Properties

Move in. Visualizer → Capture images and turn on Capture tested object properties

Capture tested object properties TestComplete image from www.andreyolegovich.ru
Visualizer. Capture tested object properties

Now you can get the properties of the object directly from the screenshot in Visualizer Frame.

Write down a new test and double-click on any screen

Screenshot of Capture tested object properties TestComplete image from www.andreyolegovich.ru
We have access to facilities.
Screenshot of calculator with preserved properties

If the images still do not find objects, try ticking the box. Update into Test Visualizer and restart the test.

Banner image

Log.Message()

Example

Log.Message(num)

Delay()

Example

Delay(1000)

Add TestedApp

If in TestedApps you need to add an additional application to the tab TestedApps right-click and select Add → New Item…

If no app has been added at all, then click Right button on the project name and select Add → New Item… → Create Project Item → TestedApps

hasp

Example

"C:\Program Files (x86)\SmartBear\TestComplete 15\x64\Bin\TestComplete.exe" /hasp

Repositioning of windows

To move windows, for example, Workspace, Project Explorer, Object Browser need to be in the menu Tools include Docking Allowed

Tools → Docking Allowed

Then you need to pinch the mouse and move the window until the indicators of available positions appear.

Docking windows in TestComplete image from www.andreyolegovich.ru
We have access to facilities.
Screenshot of calculator with preserved properties

You have to choose one of the provisions. In addition to the screenshots, central position and additional options on the side. Look closely at the screen when you are Move the window.

Import scripts from other projects

Script → Add → Existing Item…

A script from another project or simple directory can be added by clicking right-button Script press Add, Existing Item… select the right script and press Open

man

For clarity, scripts can be decomposed by subdirectories inside Script

When importing, they should be added as if there were no subdirectories. They're all inside. Script

man

If a script is added test_metadata.py - in the directory.

\Script\Visualizer\test_metadata_py

A file will appear. test_metadata.py.tcVis a in the directory Script file Script.tcScript There's going to be a record of a sluggish script. More on the file. Script.tcScript Other files used by TestComplete You can read it in the article. «TestComplete files»

Article author: Andrei Olegovich

Related articles
TestComplete
Basics
Testing
Automation

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: