Example projects

HCL OneTest Embedded is provided with a range of example projects aimed at demonstrating most of the features of the product. You may use them to familiarize yourself with those features. Do not hesitate to review and manipulate the source files and scripts provided in these examples.

Most examples are designed to run directly with a default Configuration.

To access open an example project:

  1. From the Start page, click Examples on the left side of the page. This opens the Examples page.

  2. Click any of the example projects to open them in the product.

 

Example

Language

Description

BaseStation C

C/C++

Main sample project covering most test and runtime analysis features. This sample is used for the C and C++ tutorial.

BaseStation Java

Java

Main sample project covering most test and runtime analysis features. This sample is used for the Java tutorial.

Broadcast Server

C

A sample that demonstrates the use of System Testing for C with a single VT as a process, a double VT as a double process and a double VT as one multithreaded process.

Chained List

C++

This sample shows how to test chained lists with Component Test for C++.

ABWL Check Frequency

C

This sample demonstrates the Memory Profiling manual check feature for checking ABWL and MFWL errors. See Checking for ABWL and FMWL errors for more information.

Data Pool

C

This project shows how to incorporate data tables in .csv format in your tests. See Importing a Data Table (.csv File).

Enum Ada

Ada

A project that demonstrates Component Testing for Ada for testing enum types.

EuroDollarMidlet J2ME

Java

This sample shows how to use Component Testing for Java on J2ME (Java 2.0 Micro Edition) applications.

Generic Ada

Ada

A sample demonstrating how to test generic units in Ada. See Testing Generic Compilation Units.

Histogram Ada

Ada

This project demonstrates array handling and overriding ENVIRONMENT statements with Component Test for Ada.

Philosopher

C

A sample C application for Runtime Analysis in a multithreaded environment (Windows only)

Dinner Party

C++

A Component Testing for C++ sample application in a multithreaded environment with class inheritance (Windows only).

Shape

C++

A simple class inheritance example for Component Testing for C++.

Shape Ada

Ada

This example demonstrates Component Testing on object-oriented Ada.

Shared Library

C++

This sample demonstrates how to use shared library files in your applications. See Using shared libraries for more information.

Stack

C

A simple example project on a stack application for System Testing for C.

Stub Ada

Ada

A simple example project demonstrating the usage of stubs with Component Testing for Ada. See Stub simulation Ada.

Stub C

C

A simple example project demonstrating the usage of stubs with Component Testing for C. See Stub Simulation in C.

Task Ada

Ada

A simple example project demonstrating how to test Ada tasks with Component Testing for Ada.

Add

C

An extremely short example to help you to develop new TDPs.

Template Cpp

C++

An example of Component Testing for C++ on C++ templates

Testing Ada

Ada

This sample demonstrates how to test various variable types in Ada.

Testing C

C

This sample demonstrates how to test various variable types in C.

Test Suite Ada

Ada

Use this sample to validate any changes made to an Ada Target Deployment Port.

Test Suite C

C

Use this sample to validate any changes made to a C Target Deployment Port.