Try OpenEdge Now
skip to main content
Online Help
Overview of ABLUnit testing framework : Reference : Add New Test Method wizard
 

Add New Test Method wizard

The Add New Test Method wizard enables you to add a test method to a test class (.cls) file when the file is open in ABL editor.
To access the wizard, select Source > Add Test Method from the context menu in ABL editor or from the main menu. You can also click Alt+Shift+L key sequence.
This option is enabled only when you have a test class (.cls) file open in ABL editor. This option is visible only when the current perspective is ABLUnit perspective or the class file is a part of ABLUnit faceted project.
The wizard has the following controls that you can use to add a test method to a .cls file:
Field name
Description
Method name
Specifies a name for the test method that you want to add to your required test class file.
Annotation
Specifies an annotation type for the test method from the drop-down menu. The annotation types are Test, Before, After, Setup, and TearDown.
Insertion position
Specifies the position in current test class file where you want to place the annotated test method.
Generate
Generates the annotated test method in your test class file.