Multiple workspaces help set up your mabl environment for independent teams within the organization. With the mabl workspaces copy
command, you can copy existing tests from one workspace to another, saving you time and effort.
To run this command, you must have an owner role in both the source and destination workspace.
mabl workspaces copy
Run the mabl workspaces copy
command to add a copy of the following components from a source workspace to a destination workspace:
- Tests
- Flows
- Snippets
- DataTables
- File uploads
If the destination workspace already contains components, such as tests or flows, with the same name, a new copy of that component is made during the process.
If you don't see the data immediately, please refresh the page.
Options
Option | Details |
--from | ID of the workspace from which to copy. This option is required. |
--to | ID of the workspace the data will be copied into. This option is required. |
--include-defaults | Include default link crawler and visit home page tests when copying. The default value is false. |
--included-tests |
IDs of tests to include with the copy. If empty, all tests will be copied. Note: Only DataTables and file uploads that are associated with the included tests will be migrated to the destination workspace. This option does not restrict the migration of flows and snippets. It is not possible to limit the migration to a specific set of flows or snippets. |
--excluded-tests | IDs of tests to exclude from the copy. If a test is in both the include and exclude list, it will be excluded. |
To obtain workspace IDs for the source workspace and destination workspace, run the following command: mabl workspaces list
Examples
# Copy over all components excluding default tests
mabl workspaces copy --from <source-workspace-id> --to <destination-workspace-id
# Copy over all flows, snippets, DataTables, and file uploads and a specific group of tests
mabl workspaces copy --from <source-workspace-id> --to <destination-workspace-id> --included-tests <test-id-1> <test-id-2> <test-id-3>
# Copy over all flows, snippets, DataTables, and file uploads and exclude specific tests
mabl workspaces copy --from <source-workspace-id> --to <destination-workspace-id> --excluded-tests <test-id-1> <test-id-2> <test-id-3>
- Branching and version information for tests and flows is not copied during the process.
- Copying plans, applications, environments, and credentials is currently not supported.
- All flows and snippets copy over to the destination workspace. There is no ability to limit the migration for these components to specific items, such as a specific flow or set of flows.
If any of the previous limitations are important for your team, please let us know in the mabl Product Portal.