Skip to navigation

Test an extension app

View as Markdown

The Developer Console testing tools enable you to verify that your extension app has been configured correctly. These types of test are available:

  • Integration tests: Confirm that Docusign can use the values supplied during extension app registration to obtain authorization, send requests to an external API or API proxy, and process the responses.
  • Functional tests: Confirm that the extension app works as expected when invoked from a Docusign envelope or workflow or from Agreement Manager. This type of test enables you to simulate the end user experience for an extension app.
  • App Center preview: Displays extension app details and images so that you can review them. This information will appear in the Docusign App Center after you’ve published the extension app. This feature does not exactly replicate the App Center display, but it enables you to confirm that the extension app details you provided in the extension app manifest have been applied correctly.

Test prerequisites

This table lists prerequisites for each type of test.

PrerequisiteRequired for integration testsRequired for functional testsRequired for App Center preview
Register an extension app.YesYesYes
Set up an API proxy if necessary.YesYesNo
Obtain an account with the authorization provider. You’ll need to supply these credentials for testing. The authorization provider is either the external service to which the extension app will send API requests, or an identity provider if you opt to use one for authorization.YesYesNo
Execute a successful connection test for the extension app.NoYesNo
Execute successful extension tests for each of the extension app’s extensions.NoYesNo

Test against different environments

While developing an extension app, you may need to test against multiple external service environments, such as a development environment, a test environment, and production.

Currently, extension app registration supports connection properties for a single external service environment. To switch between environments for testing, you can update the extension app registration when you want to switch environments, or you can maintain separate extension app registrations for each environment.

If you plan to make your extension app publicly available on the Docusign App Center, make sure that you have supplied production URLs in your extension app registration before you submit it for review.

Switch test environments by updating the extension app registration

If you want to use the same extension app registration for different test environments, complete these steps to switch environments:

  1. Update the extension app registration and change these environment-specific properties:

  2. After you update the extension app registration, the extension app is automatically reinstalled to your developer account, and you can proceed with running integration tests and functional tests.

Switch test environments by using separate extension app registrations

If you choose to maintain separate extension app registrations for each test environment, Docusign recommends naming each non-production version to reflect the environment with which it’s intended to be used.

To create an environment-specific copy of an extension app registration:

  1. On the Developer Console My Extension Apps page, select Download Manifest from the kebab menu of the extension app for which you want to create an environment-specific registration.

  2. Edit the downloaded file, and change these environment-specific properties:

    • Enter a unique value for the name property.
    • Connection settings: Update clientId, clientSecret, and authorization settings in the customConfig object. See Connection schema for details about these properties.
    • Action and capability settings: Update params.uri for each action and capability, which specifies the endpoint URL for requests to the external service. See Action schema for details.
  3. Select Create App in the upper right corner of the My Extension Apps page, and then select By editing the manifest.

  4. Under Have your own manifest? select the modified manifest file or drag and drop to upload it.

  5. Select Validate and correct any validation errors.

  6. Select Create App to save the registration.

  7. You can proceed with running integration tests and functional tests for the new environment-specific registration.

Next steps