Writing your first scenario

testgrinder service will be discontinued on January 31, 2025

This short guide covers the first few steps that you may take to start wring testgrinder scenarios. Here's an example of creating a project, adding a script to it, and wring the first (albeit simplistic) scenario.

To write your first scenario you will need to create a project and add a script to it. To create a project, click on the Projects dropdown in the testgrinder header and then choose Create Project. Give your project a name and click Ok to create it. Please refer to the animated image above for an example.

Once the project editor opens, you may add the first script. To do that, right click the project root folder and choose New and then Script. Give the script a name. This will open the feature editor and you may start writing your first scenario.

Each feature may start with the Script: line where you describe what the script is for. Once that's done, write Scenario: on the next line and enter the scenario description. Below Scenario: you write the actual steps. Here's the scenario shown in the example:

Script: My First Feature
  
  Scenario: My First Scenario
    
    Given I login to Maximo as Administrator
      And I go to the Work Orders / Work Order Tracking application
      And I logout

You may choose to leave off Script: and the Scenario: lines if you think the script steps are self explanatory. Later on, when you write more elaborate scripts you may find Script: and Scenario: lines helpful, especially the latter as it lets you have multiple scenarios in the same script.

Last updated