Vector CANoe

<< Click to Display Table of Contents >>

Navigation:  Integration with 3rd party tools >

Vector CANoe

The isystem.connect interface allows driving iSYSTEM Blue Boxes from almost any external application being used in the development labs. These external applications are typically test environments controlling the target microcontroller and acquiring specific data (memory content, register values, trace, profiler, code coverage) from the target microcontroller.

This document describes how to remotely drive iSYSTEM Blue Box from Vector CANoe Test Automation Module. As an alternative, the vTESTstudio integration is described as well.

.NET for C# test automation scenario is described.

 

Prerequisites

 

iSystem.Connect in Test Environment

CANoe setup

  1. Run “Test Environments for Test Modules”  under View/Test setup/

Integration-Vector-1

 

  1. Right-click on “Test Setup” and select “New Test Environment”

Integration-Vector-2

 

  1. Rename the test environment and save it to disk

Integration-Vector-3

 

  1. Right – click the test environment and select “Insert .NET test module”

Integration-Vector-4

 

  1. Under “Common” tab rename the .NET Test Module and select the test script file (extension .cs for C#).

Integration-Vector-5

 

  1. Under “Components” tab register the iSystem .NET library (IConnectCSLib.dll).  This library is valid for C# .NET scripts and could be downloaded from iSystem home page under :     http://isystem.com/download/winidea-testidea-apis

Integration-Vector-6-1

Integration-Vector-6-2

Warning40x40

iConnectCSLib.dll and native isystemConnect.dll must be copied to CANoe executables folder location (%CANoe_home%\Exec32) or to Windows system folder.

 

  1. Edit and prepare .cs script. Refer to a downloadable Canoe configuration package iSystem.Connect.Canoe.Example.Testunit.zip “iSystem.Connect.NET advanced CS sample” (file name testModules\AdvancedExample.cs), could be a good starting point for the script implementation.

Integration-Vector-7

 

  1. Run the simulation and test

Integration-Vector-8

 

Test results are visible in “Write Window”

8-1Integration-Vector-8

 

iSystem.Connect and vTESTstudio

In vTESTstudio, you can implement tests with the help of CAPL and C# files as well as in tabular and graphic forms. In so doing, the different test languages can be easily combined. The executable entity programmed in vTESTstudio is called a test unit. It comprises all files required for the test. A test unit created in vTESTstudio has the file extension *.VTUEXE. This can be configured and executed in CANoe.

 

CANoe setup

  1. Create a new vTESTstudio project

Integration-CANoe-1

 

  1. Create a new test unit

Integration-CANoe-2

 

  1. Add a C# file to the test unit

Integration-CANoe-3

Integration-CANoe-3-1

 

  1. Copy the .NET assembly iConnectCSLib.dll either to the vTESTstudio test unit folder next to the C# file or to one of its libraries.

 

  1. Add the .NET assembly iConnectCSLib.dll to the test unit.

Integration-CANoe-4

Integration-CANoe-4-1

Now the the functionality of the iConnectCSLib.dll is available within the C# file.

 

  1. Define test cases, test functions or functions within the C# file accessing the API of the iConnectCSLib.dll. Use the attribute [Export] to be able to call these functions in other test design languages as well, e.g. in the Test Table Editor.

Integration-CANoe-6

 

  1. Use the C# methods to define your test sequence - either in C# editor or in the Test Table Editor or in the Test Diagram Editor.

Integration-CANoe-7

 

  1. Build the executable test unit *.VTUEXE.

Integration-CANoe-8

 

Warning40x40

Vector CANoe with vTESTstudio integration sample is provided in the compressed archive iSystem.Connect.Canoe.Example.Testunit.zip