Test Action Library
The Test Action Library is where you store predefined Group Actions and Objects for GUI Functional and Browser Performance scenarios. You can create a GUI Functional test or a Browser Performance Test by dragging and dropping predefined Actions into a Test Scenario. This scriptless testing approach is the preferred method for testers who do not want to write scripts manually.
For more information about how to create Actions and Objects, see Creating Scriptless GUI Functional Tests.
What are Objects, Actions, and Group Actions?
- Actions are user interactions such as "click", "select", or "type". The Test Action Library does not contain Actions because they are a fixed set that cannot be edited. For the full list of Actions, see Taurus Actions for GUI Functional Testing.
- Group Actions are your custom sets of test actions that commonly occur together in your test scenarios. For example, you can define a Group Action that contains the common sequence of Actions of going to the login page, typing user name and password, and clicking submit.
- Group Actions are shared with your workspace.
- You manage your Group Actions in the Test Action Library.
- Objects are the GUI elements of the application under test, such as buttons or text fields, to which you apply test actions.
- Objects are defined by one or more locators. If the first locator is not found, BlazeMeter tries the other locators. Edit the object to reorder the priority of its locators.
- BlazeMeter generates default names for new Objects based on their locators. If an Object name already exists, BlazeMeter appends an incrementally numbered suffix, such as "
Object [CSS: input[name="q"]; Name: q](2)
". - Objects are shared with your workspace.
- You manage Objects in the Test Action Library.
How to Edit Shared Objects, Actions, and Group Actions?
You cannot edit Actions because they are a fixed set.
Before editing Group Actions or Objects, you want to identify where these shared resources are used, so you can estimate the impact of your changes:
- Go to the Test Action Library.
- Search the Test Action Library for specific Group Actions or Objects
- Click the Filter button to only show rows that fulfil criteria such as Type, Created or Updated date range, Created by user, Updated by user, Created from URL, or Test Name.
- Click the table headings to sort the table by criteria such as Name, Type, Base URL, Usage (in how many tests is this shared Object or Group being used?), Created date, Created by user, or Last Updated date.
- Expand the Group Action or Object to see more details.
- For each Group Action, you can view the contained Actions and their default values.
- For each Object, you see a screenshot and its locator, so you can easily recognize it.
- For all entries, you see the list of affected scenarios that use this Group Action or Object.
To edit an Object:
- Find and expand the Object in the Test Action Library.
- Open a scenario that uses the Object in the Scenario Editor.
-
Edit the Object locators.
You have the following options:
- Replace the Object:
- Enable the Object Picker .
- Switch to the application under test in the same browser.
- Select a UI element to create an object or to reuse an existing object from the library.
- Update Object locators:
- Open the Object dropdown.
- Hover the pointer over the Object and click Edit. The Edit Object dialog opens.
- Edit the object's locators manually.Inside the Edit Object Dialog, enable the Object Picker , switch to the application under test, and select a UI element to update existing locators quickly.
- Replace the Object:
- Debug-run your test to verify that your changes work.
- If the Object is used in more than one scenario, debug-run the other scenarios as well to verify the changes.
To edit a Group Action:
- Find and expand the Group Action in the Test Action Library.
- Open a scenario that uses the Group Action.
- Edit the Group Action in the Scenario Editor.
The changes are saved locally. - Debug-run your test to verify that your changes work.
- (Optional) Click Override Group Action.
BlazeMeter saves your changes to the Test Action Library and updates the Group in other tests that reuse it.
How to Delete an Object or Group Action?
The Delete button is only available for Objects and Group Actions that are not used in any scenarios.
- Find and expand the item in the Test Action Library.
- If the Usage value is larger than zero, open each scenario in the Scenario Editor and remove the item.
- As soon as the Usage value for the item is zero, the Delete button becomes available in the Test Action Library.