To run tests in a target environment using Controller Tester RTV Target Plug-in, you need to enter information about the target environment as with Controller Tester Target Plug-in. Using information about the target environment entered by the user, Controller Tester builds a test harness in RTV server and run in the target environment. Target log collector can get the test results automatically.
The target environment can be set in the project properties page or in the new RTV target test project wizard.

Target environment settings.

Target environment settings are divided into basic information and detailed settings.
RTV target project don’t need to enter the basic information.

After entering the basic information, detailed settings that require input are displayed.

Target environment detailed settings

Target environment detailed settings are divided into the analysis, build, run, and etc.

Category Description
Analysis The toolchain information is displayed, and in the case of a target test project, the target compiler related settings required for analysis are displayed.
Build The settings for building the test software are displayed.
Run Settings for running tests and getting results in the target environment are displayed.
etc. Other settings are displayed. (Program entry point, etc.)

Required settings for each category are indicated in red. Depending on whether the required settings for each category are entered or not, the behavior when clicking the [Run] button is different as shown below.

Required settings completed category Description
None Test run impossible
Analysis If you click [Run], it overwrites the original source code with the test code. To perform the test, the user must manually build and run the test.
Analysis, Build If you click [Run], it builds the test code. To perform the test, the user has to manually run the test on the target.
Analysis, Build, Run Automatically run tests in the target environment.

Target environment detailed settings – Build

Enter a build script path of RTV server into build script area. After entering the build script path, Controller Tester checks validity of the path. If the path is invalid, build script area is displayed in red and if vaild, it is displayed in black.

Target environment detailed settings – Run

Run setting is divided into batch script area and log interface area. Controller Tester checks validity of batch script area as with build script area. Informations to get results of RTV target test from target environment is entered in log interface area.

Batch script area

Enter a batch script path of RTV server into batch script area as with build script area.

Log interface area

The log interface area is a setting to record test result from target environment. The followings are how to get target log into Target Log Collector.

  • File
  • Socket communication (TCP, UDP)
  • Serial communication (UART)

To allow target log collector to get test results during recoding the results in file, you modify a path in log interface into %SMITH_HOME%/targetLogCollector/scan/log/%file_name%.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.