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) |