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. Examples

Automated granting of application access

testgrinder service will be discontinued on January 31, 2025

This article provides an example of how to grant a user group access to several applications with one scenario outline.

The example grants access to all 43 HSE (part of the Health, Safety, and Environment Maximo add-on) to MAXADMIN user group.

You could write a single scenario that accomplishes the task, but it will end up being very long with a lot of repeating steps, once for each of the 43 applications. Instead, in a case like this where the steps are the same for each application and the only thing that changes is the application name, a Scenario Outline is a better option.

A Scenario Outline allows you to substitute variable parts of the scenario with parameters enclosed in angular brackets like so – <parameter>. Then at the end of the Scenario Outline, you supply the Examples table with a row for each execution of the Scenario Outline. The top row in the table is the header listing parameter names used in the Scenario Outline. On each following row, you list the values for each parameter to be used for that particular execution.

For the task at hand, here’s how the script looks:

Scenario Outline: Grant MAXADMIN access to HSE applications
 
 Given I login to Maximo as 'Administrator'
   And I go to the Security / Security Groups application
   And I enter '=MAXADMIN' in the 'Group' filter in the 'Groups' table
   And I initiate search in the 'Groups' table
   And I select the 'Applications' tab
   And I enter '<Application>' in the 'Description' filter in the 'Applications' table
   And I initiate search in the 'Applications' table
    
  When I click the 'Grant Listed Options for This Application' button in the 'Options for <Application>' table
   And I see the 'Grant listed options for <Application> for this security group?' system message
   And I click the 'OK' button
 
  Then I successfully save the record
   And I logout

Examples:
   | Application                        |
   | Action Tracking (HSE)              |
   | Asset List (HSE)                   |
   | Assets (HSE)                       |
   | Audit and Survey (HSE)             |
   | Benefits and Losses (HSE)          |
   | Certifications (HSE)               |
   | Condition for Work (HSE)           |
   | Defects (HSE)                      |
   | Hazards (HSE)                      |
   | Improvements (HSE)                 |
   | Incidents (HSE)                    |
   | Investigations (HSE)               |
   | Item Master (HSE)                  |
   | Job Plans (HSE)                    |    
   | Location Profile (HSE)             |
   | Locations (HSE)                    |
   | Lock Out / Tag Out Plan (HSE)      |
   | MOC (HSE)                          |
   | MOC Requests (HSE)                 |
   | Operating Policies (HSE)           |
   | Operating Procedures (HSE)         |
   | Operator Log (HSE)                 |
   | Operator Tasks (HSE)               |
   | Organizations (HSE)                |
   | People (HSE)                       |
   | Permit and Certificate Types (HSE) |
   | Permit to Work (HSE)               |
   | Precautions (HSE)                  | 
   | Preventive Maintenance (HSE)       |
   | Prioritization Matrix (HSE)        |  
   | Purchase Orders (HSE)              |
   | Purchase Requisitions (HSE)        |
   | Qualifications (HSE)               |
   | Quick Reporting (HSE)              |
   | Regulatory Compliance (HSE)        |
   | Risk Assessment (HSE)              |
   | Risk Matrix (HSE)                  |
   | Routes (HSE)                       |
   | Service Requests (HSE)             |
   | Solutions (HSE)                    |
   | Standard Action Groups (HSE)       |
   | Standard Actions (HSE)             |
   | Work Order Tracking (HSE)          |
PreviousInteracting with electronic signature dialogNextAdd a job plan

Last updated 1 year ago

Was this helpful?