After you have created a Test Data set for one test, you may want to use the same data in other tests, or share this data with users in your Workspace, or in other Workspaces.
Create Shared Folders
A Workspace administrator uploads a common set of test data as spreadsheets, and shares them with users across a Workspace.
First the admin creates multiple named Shared Folders to help users identify relevant test data.
- Prepare spreadsheets with Test data: The column names will become the test parameter names, the rows contain the test data.
- Save the spreadsheets in CSV format.
- Log on as a Workspace Administrator.
- Click Settings, Workspace, Shared Folders.
- To create a new Shared Folder, click Plus, give the new folder a name (without spaces), and press Enter.
- Click a folder to open it.
- Drag and drop the CSV files from your local machine onto the drop area, or click to browse to file to upload.
The files are uploaded and become available to Workspace users.
Attach CSVs from Shared Folders to a Test
After the Shared Folder and its contents are ready, users can attach shared test data to tests.
- Open a test and go to the Configuration tab.
- Click the Test Data button.
- Click Plus, and then select Attach... CSV File fromShared Folders.
The Shared Folders window opens. - Select the desired folders so that a checkmark appears, then click Accept to use the selected test parameters in your test definition.
Note: You cannot edit column names in the Test Data pane when the CSV file is loaded from Shared Folders. The column names are used as parameter names.
To stop using shared test data, return to the Shared Folders window, and deselect the shared folder. The test data remains available for other users of this workspace.
Unshare Test Data
To prevent everyone from using a shared data set (for example, because it is outdated), return to the Shared Folders window, and deselect the shared folder. Then click the delete button to remove the test data for everyone in the Workspace.
Warning: After you delete a shared test data folder, tests that are still using this data will no longer run.
Manage Shared Data Entities
Import and Export Data Entities
You can share data entities within the current workspace, or export and import them into another workspace.
Share a Data Entity Within a Workspace
After you have created test data for a test, optionally, save the data entities to share them with users of this Workspace. You can open a saved test data entity in any test with test data support in the same workspace.
The saved data entity contains copies of all test parameters. After saving a data entity, it is no longer linked to the original test, this means, if you regenerate the original test's synthetic data, the saved data remains unchanged.
Opening a saved test data entity overwrites current test parameters and settings in a test.
Note: CSV files and files from Shared Folders are not included in the saved data entity yet; for now please export them separately.
- Open a test and go to the Configuration tab.
- Click the Test Data button.
- Click the ellipsis menu and select Save to Workspace.
The Save Test Data Entity window opens. - Define the Test Data Entity Name and click Save.
By default, the data entity is saved under the original test's name. It is, however, a best practice to rename data entities so that users can identify which data entities are relevant to them. - Open a test where you want to load the data entity, and go to the Configuration tab.
- Click the Test Data button.
- Click the ellipsis menu and select Load From Workspace.
- Select a test data entity and click Open.
Important: Opening a test data entity overwrites all current test parameters and settings in the test.
Export Data Entities to Other Workspaces
You can export a data entity as a zip file to your local computer, and import it into any test with test data support in another workspace. The zip file contains all test parameters, attached CSV files, and CSV files from shared folders.
Tip: You can export data entities to make a backup as a file.
- Open the source test and go to the Configuration tab.
- Click the Test Data button.
- Click the ellipsis menu and select Export to File.
- Define the Test Data Entity Name and click Export.
You download the data entity as a ZIP file. - Open the target test and go to the Configuration tab.
- Click the Test Data button.
- Click the ellipsis menu and select Import.
- Select the exported ZIP file and Click Open.
Important: Importing a test data entity overwrites all current test parameters and settings in the test.
After the import, you can remove test parameters that you don't need, and add new test parameters to the test.
Import Shared Folders
When importing a data entity, BlazeMeter can only re-establish the identity of shared CSV files if files with the same names exist in the Shared Folders.
- Export the data entity from the source Workspace.
- Work with the administrator of the target Workspace to recreate the Shared Folder and upload the CSV files from the source Workspace.
- Go to the target Workspace and open a test.
- Click the Test Data button and click the Plus button.
- Select Import Data Entity From Exported File.
- Select the exported ZIP file and Click Open.
Important: Importing a test data entity overwrites all current test parameters and settings in the test.
Importing TDM Find & Reserve data
When importing and exporting backed-up data entities into their original workspace, BlazeMeter can restore the TDM Connection. The TDM Connection cannot, however, be imported into another Workspace. A Workspace Administrator has to recreate the TDM Connection before the import.
- Export the data entity from the source Workspace.
- Expand the ZIP file.
- Open the included tdm_connections.txt file.
- Send the file to the administrator of the target Workspace with the request to recreate the TDM connection.
- Verify that the TDM Connection was created.
- Import the data entity into the target Workspace.
Preview Shared Test Data
Each Test Data Entity appears as a tab in the Data Settings / Iteration settings preview.
Delete a Shared Data Entity
- Open a test and go to the Configuration tab.
- Click the Test Data button.
- Click the ellipsis menu and select Manage Data Entities.
- The Manage Data Entities window opens and lists available data entities.
- Click Delete to remove the test data entity from all tests.
0 Comments