Professional Documents
Culture Documents
2021-12-17
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf
Table of contents
1 Overview .....................................................................................................................................1
2 Create a Project ..........................................................................................................................2
3 Configure the Project Environment ..............................................................................................3
4 Create a Test Unit .......................................................................................................................6
5 Create a Test Table .....................................................................................................................6
6 Create a Test Case .....................................................................................................................7
7 Build a Test Unit ........................................................................................................................10
8 Configure a Test Unit in CANoe .................................................................................................11
9 Contacts....................................................................................................................................14
1 Overview
This Support Note describes how to create a Test Unit with vTESTstudio and how to configure it into
a CANoe configuration.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 1
Creating a Project in vTESTstudio
2 Create a Project
1. Open vTESTstudio.
2. Click New Project in the File menu.
The New Project dialog appears.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 2
Creating a Project in vTESTstudio
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 3
Creating a Project in vTESTstudio
1. Start the CANoe configuration in which you want to use the Test Units from
your vTESTstudio project.
2. Open the project configuration under Home | Configuration.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 4
Creating a Project in vTESTstudio
5. Select the Build tab. Choose the output path in which the Test Units shall be
created.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 5
Creating a Project in vTESTstudio
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 6
Creating a Project in vTESTstudio
The new Test Table is created now. A Test Table tab opens automatically.
4. Select Test Case and press <Enter> . The Test Case appears in the Test Tree.
5. Select Test Case name (e.g. TestCase_Example) and other general Test
Case settings according to your requirements.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 7
Creating a Project in vTESTstudio
Test Scenario When the signal Velocity has a value of 100, the signal LockState has to have a
value of 1. The test should set the signal Velocity to the value of 100 and check
that the signal LockState is set to a value of 1 within 200 ms.
Test Implemen- In this example the State Change command is used to implement this scenario.
tation This command contains a Set – Wait – Check sequence.
1. Make sure that the Test Table is still open.
2. Select the new Test Table tab e.g. TestTable_Example.vtt.
3. Click on Command… and type state.
The autocomplete function of vTESTstudio opens a context menu.
4. Double click State Change.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 8
Creating a Project in vTESTstudio
To see all available commands, go to menu Test Table | Test Commands. Please
note that the Test Commands window might be docked at any side of the screen or
floating outside of vTESTstudio.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 9
Creating a Project in vTESTstudio
In the vTESTstudio select Home | Build All Test Units from the context menu or
<F6>.
An executable Test Unit with file format VTUEXE is now generated in the folder
which was defined in Project|Configuration… | Build (see Chapter 3, step 6).
The Output window shows the results of the built Test Unit. Errors or warnings are
displayed here if the build was not successful.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 10
Creating a Project in vTESTstudio
1. Open the CANoe configuration from which the system environment was
imported to vTESTstudio.
2. Select Test | Test Setup | Test Configurations.
A new window Test Configurations for Test Units opens now.
3. Click Add Test Configuration icon.
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 11
Creating a Project in vTESTstudio
4. Select the Add Test Unit icon in the test configuration window.
5. Select the executable test unit according to the output path of the
vTESTstudio (see Chapter 7, step 2).
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 12
Creating a Project in vTESTstudio
7. When the test execution is finished, click the Open Test Report Icon to view
the resulting test report.
Test Report
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 13
Creating a Project in vTESTstudio
9 Contacts
Please find the contacts of Vector Informatik GmbH and all subsidiaries worldwide via:
https://www.vector.com/int/en/company/contacts/
SN-IND-1-027_Creating_a_Project_in_vTESTstudio.pdf 14