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

Scenarios

testgrinder service will be discontinued on January 31, 2025

A scenario is a unit of work for testgrinder. When you kick off a testgrinder run each scenario will be executed independently of other scenarios in the run.

In testgrinder related scenarios are grouped into scripts and edited together. The idea here is that you put scenarios testing a particular system feature or performing similar tasks together in one place. You may think of testgrinder scripts as analogous to files. If you ever export testgrinder project to an external git repository, you will see that testgrinder will export each script as a separate file.

You further organize related scripts into projects, optionally using folders to help manage projects with lots of scripts.

Here's an example of a script consisting of two scenarios:

Script: Assets
  
 	Scenario: Assets - Create Asset

   	Given I login to Maximo as User
      And I go to the Assets / Assets application
     
     When I click the 'New Asset' toolbar button
      And I enter 'Test Asset' in the description field of the Asset field
    
    Then I successfully save the record
     And I logout
  
 	Scenario: Assets - Actions - Change Status - Active

   	Given I login to Maximo as User
      And I go to the Assets / Assets application
      And I click the 'New Asset' toolbar button
      And I enter 'Test Asset' in the description field of the Asset field
      And I successfully save the record
      
     When I select action 'Change Status'
      And I select Active in the dropdown list for the 'New Status' field
      And I click the OK button
      
     Then I see the value ACTIVE in the Status field
      And I logout

When executing a run with this script, testgrinder will execute the two scenarios independently. Since scenarios are written as independent of each other, this enables testgrinder to run them independently thus greatly reducing the total run time.

PreviousWriting your first scenarioNextRun reports

Last updated 1 year ago

Was this helpful?