testgrinder
Go to testgrinder
  • Overview
  • testgrinder uses
    • Testing
      • User Acceptance Testing
      • Change Testing
      • Regression Testing
      • Performance Testing
      • Stress Testing
    • Data management
      • Data verification
    • Configuration management
    • Training videos development
  • Getting Started
    • Video: Get Started with testgrinder
    • First steps
    • Example Scripts
    • Writing your first scenario
    • Scenarios
    • Run reports
  • Writing Scenarios
    • Anatomy of Maximo UI
      • Maximo login page
      • Start Center
      • Application Screen
      • Value lists
      • Advanced Search
      • Targeting fields with no labels
    • Finding the right steps
    • Step autocompletion
    • Scenarios vs Scenario Outlines
    • Snippets and Templates
      • testgrinder Templates Project
      • testgrinder Snippets Project
  • Examples
    • Interacting with electronic signature dialog
    • Automated granting of application access
    • Add a job plan
    • Add an item
    • Add an item to storeroom
  • Administration
    • Accessing Maximo behind a firewall
    • Managing User Access
    • Using Git to Back Up and Version Control testgrinder Projects
  • Self Managed Private Cloud (SMPC)
    • testgrinder SaaS vs testgrinder SMPC
    • Releases
      • Version 1.0.8
      • Version 1.0.0
    • testgrinder Architecture
    • testgrinder Configuration
      • Configuration Files
      • Database Stored Settings
    • Deployment Instructions
      • Prerequisites
      • Subscribing to testgrinder on AWS Marketplace
      • Virtual Private Cloud
      • Security Groups
      • S3 Buckets
      • IAM Roles
      • Key Pair
      • Launch tg-app
      • Finalize Configuration File .env
      • Finalizing Database Stored Settings
      • Minimal Deployment Complete
      • Install SSL Certificate
      • Force HTTP to HTTPS
      • External Database
      • Configure Auto Scaling Group
        • Target Groups
        • Load Balancers
        • Launch Template
        • Auto Scaling Group
        • Finalize Auto Scale Group Deployment
    • Test the Deployment
    • Monitoring
    • Backup and Restore Database
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

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.

PreviousExample ScriptsNextScenarios

Last updated 1 year ago

Was this helpful?