Unit Testing Samples

Applies to TestComplete 14.10, last modified on June 5, 2019

About

Unit Testing samples illustrate how you can create TestComplete unit tests for your applications. Each of these applications includes a custom class. The tests simply call certain methods of this class via a script.

These samples are a part of the additional sample package. To use them, download this package from support.smartbear.com/downloads/testcomplete/samples/ and install it.

After the installation is over, you can find the samples in the <TestComplete 14 Samples>\Desktop\Unit Testing folder.

Files

Microsoft C#

<TestComplete 14 Samples>\Desktop\Unit Testing\C#

TestComplete project suite

<TestComplete 14 Samples>\Desktop\Unit Testing\C#\TCProject

Microsoft Visual C++

<TestComplete 14 Samples>\Desktop\Unit Testing\MSVC

TestComplete project suite

<TestComplete 14 Samples>\Desktop\Unit Testing\MSVC\TCProject

Borland Delphi

<TestComplete 14 Samples>\Desktop\Unit Testing\Delphi

TestComplete project suite

<TestComplete 14 Samples>\Desktop\Unit Testing\Delphi\TCProject

Java Swing

<TestComplete 14 Samples>\Desktop\Unit Testing\Swing

TestComplete project suite

<TestComplete 14 Samples>\Desktop\Unit Testing\Swing\TCProject

To compile this example, run compile.bat kept in the example’s folder. To run the example, launch run.bat in this folder.

Note that to compile the example, you must have JDK v. 1.2 or later installed on your computer. Also, you may need to specify a path to javac.exe in the first line of compile.bat.

See Also

Samples and Tutorials
Unit Testing

Highlight search results