When testing C++ source code, you can use class code to create class objects. Since abstract classes cannot be instantiated, Controller Tester automatically generates instantiable class code.


  • On the left side of the [Class Factory view], you can see the classes included in the project and the class code for instantiating the class in a tree structure.
  • On the right side of the [Class Factory View], you can edit the class code and name in the [Class code] tab, and see the connected tests in the [Configuration] tab.

Toolbar menu of Class Factory view

Item Description
Save Save modification of the class code.
Expand All Expand all class tree in Class Factory view.
Collapse All Collapse all class tree in Class Factory view

Icon of Class Factory view

Icon Description
Class Class included in the project.
Abstract class Abstract class included in the project.
Mock object Mock object used in test.
Class code Class code that create class objects to use in tests.

Context menu of class

Item Description
Create Create a class code of the selected class.

Context menu of class code

Item Description
Delete Delete selected class codes.

Using class factory

You can use the class factory in two ways.

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

Thanks for your feedback.