Skip to content

Assembly Manager API

The AssemblyManager is a C# library for controlling the devices of an Assembly during test execution with CANoe. This page is the reference for its public interface. For how to integrate the library into your test environment, see the Assembly Manager workflow.

Public Interfaces

The AssemblyManager provides functionality to control your Assembly during test execution.

💡 Tip: Each PowerOn... and PowerOff... method has a corresponding PowerOn...AndVerify() or PowerOff...AndVerify() variant, which performs the action and verifies its success.

Method Description Parameters Return Type
PowerOnAssembly() Powers on all Assembly devices. None void
PowerOffAssembly() Powers off all Assembly devices. None void
PowerOnBoard(string name = null, int? id = null) Power on vHaaS Assembly board. name (optional) - Name of the board
id (optional) - ID of the device
void
PowerOffBoard(string name = null, int? id = null) Power off vHaaS Assembly board. name (optional) - Name of the board
id (optional) - ID of the device
void
BoardPowerCycle(int waitDuration, string name = null, uint? id = null) Powercycle vHaaS Assembly board. waitDuration - Duration to wait between power on and power off [ms]
name (optional) - Name of the board
id (optional) - ID of the device
void
PowerOnDebugger(string name = null, int? id = null) Power on vHaaS Assembly Debugger. name (optional) - Name of the debugger
id (optional) - ID of the debugger
void
PowerOffDebugger(string name = null, int? id = null) Power off vHaaS Assembly Debugger. name (optional) - Name of the debugger
id (optional) - ID of the debugger
void
PowerOnGenericDevice(string name = null, int? id = null) Power on any generic vHaaS Assembly Device. name (optional) - Name of the device
id (optional) - ID of the device
void
PowerOffGenericDevice(string name = null, int? id = null) Power off any generic vHaaS Assembly Device. name (optional) - Name of the device
id (optional) - ID of the device
void
SetMuxConnection(uint mutually_exclusive_block_id = 0, uint active_connection_id = 0) Set multiplexer channel. mutually_exclusive_block_id - block ID
active_connection_id Active connection ID
void
Info methods
GetAssemblyOverview() Provides information about connected Assembly devices. None void
GetAssemblyHais() Gets all HAIs which are part of vHaaS assembly. None void
GetAssemblyDevices() Gets all vHaaS Assembly devices. None void

Example

/* Simple Testcase controlling an Assembly. */
public void TC_Example_TestCase()
{
  /* Switch the Board to ON. */
  AssemblyManager.PowerOnBoardAndVerify("S32K");

  ...

  /* Switch the multiplexer with ID = 0 to the dedicated connection 3. */
  uint mutually_exclusive_block_id = 0;
  uint active_connection_id = 3;
  AssemblyManager.SetMuxConnection(
    mutually_exclusive_block_id,
    active_connection_id
  );

  /* Power off the Assembly. */
  AssemblyManager.PowerOffAssembly();
}