Try OpenEdge Now
skip to main content
Online Help
Overview of ABLUnit testing framework : Reference : Test case generation wizards : New ABLUnit Test Class wizard
 
New ABLUnit Test Class wizard
The New ABLUnit Test Class wizard allows you to create an ABLUnit test class. You can also select the class for which the test methods should be generated.
This wizard appears when you select File > New > ABLUnit > Test Case Class from main menu or from New > ABLUnit > Test Case Class from the context menu in the Project Explorer view.
The following controls are available in this wizard:
Field name
Description
Package root
(Required) Specifies a currently open project that will contain the class code, other project code, and any assembly references. Click Browse if you want to select a project other than the current one (the default value).
Package
Optionally, specifies a package name that will contain the class file, corresponding to a sub-folder of the package root. Click Browse or enter the folder path. A period (.) must separate each subfolder from its parent folder in the path name.
Class name
(Required) Specifies the name of the test case class. The name must begin with a letter; spaces and most non-alphanumeric characters are not allowed. The .cls extension is appended automatically.
Inherits
Optionally specifies another class in the current project as a super class from which the new class inherits state and behavior. Click Browse or enter the class path by typing. A period (.) must separate each node from its parent folder in the path name.
Note: The super class cannot be generic.
Which method stubs would you like to create?
Optionally, allows you to generate stubs for any of the following methods:
*Before - Adds a test method annotated using @Before to the test class
*After - Adds a test method annotated using @After to the test class.
*Setup - Adds a test method annotated using @Setup to the test class.
*TearDown - Adds a test method annotated using @TearDown to the test class.
Class to test
Specifies the class for which you want to create the ABLUnit test class. Click Browse to view all the available classes in the selected project or enter the class path by typing. A period (.) must separate each node from its parent folder in the path name.
Next
Displays the Select Methods page that lists all the methods in the selected class. On this page, you can select the methods for which you want the stubs to be generated.
Finish
Generates a test class with the selected test method stubs and opens it in the ABL Editor.