Loading...
Loading...
Loading...
The Genesys Cloud for Salesforce External Routing package contains unit tests that can fail in a sandbox org when certain test data is missing. The package includes the unit test only to satisfy the code coverage required for creating a package. You can change any aspect of the package, including which test data to use in the test code or the test code itself, at your own discretion.
When unit tests fail during deployment from a sandbox org, you can do the one of the following options:
You can either create new test data in your sandbox org or reuse the existing data as test data. Unit tests in the package need the following resources to exist in the sandbox org:
To create a Routing Configuration in Salesforce:
If the queue name you are using is different from what is specified in the getExternalRoutingQueue method of GenesysCloudTestHelper.cls, update the queue name in that file so that they match.
If you already have a queue that matches the configurations as described in <link>, you can specify the queue name to use for unit tests in the getExternalRoutingQueue method of GenesysCloudTestHelper.cls to match your queue.
You can check which unit tests are failing in your environment and modify those tests accordingly. The unit tests that can fail when test data is missing are as follows:
ExternalRoutingControllerTests.clsExternalRoutingDataServiceTests.clsExternalRoutingDeletionTests.clsExternalRoutingServiceTests,clsOpenMessageServiceTests.clsFor more information about the integration, see About Genesys Cloud for Salesforce.
Get user feedback about articles.