How to Create Custom Steps

Create Custom Steps for Java QAF

Step 1. Export your BDD test case from Test Recorder.

Step 2. Add the custom step as shown in the image below.

Syntax: Prefix + custom step name + variable (if required)

Example: Then display author name "AUTHOR_NAME"

Step 3. Provide the definition of above custom step in platform_name/ file as shown in the image below. You can utilize the parameter of method as per your requirement.


For different types of languages/frameworks file can be different but the steps remain similar.