Exporting an App Test Suite with the API
In TIBCO Flogo® flows you can add unit tests and combine those tests into a Test Suite. Using the TIBCO Cloud™ Integration API you can export a Test Suite for a Flogo app.
See Unit Testing in the TIBCO Flogo® Apps section of the help for additional details.
To export a Test Suite, you need the following:
- Subscription Locator — The Subscription Locator of the Organization you want to access. To find Subscription Locators for your organizations use the
GET /v1/userinfo
method to return a list of all of the organizations for your OAuth Token with their Subscription Locators. You can use 0 as the Subscription Locator for the organization that owns the OAuth token. - App ID — ID of the app to be accessed, which can be retrieved using the
GET /v1/subscriptions/{subscriptionLocator}/apps
method. This is the ID of the source app.
Use the GET /v1/subscriptions/{subscriptionLocator}/apps/{appId}/testsuite/export
method to export a Test Suite.
Role Requirements
- Admins can export a Test Suite for any app in their organization.
- Users can export a Test Suite for any app they own.
- Read-only users cannot export Test Suites for any apps.