Legacy Dev Forum Posts

 View Only

Sign Up

Salesforce Test class Errors

  • 1.  Salesforce Test class Errors

    Posted 06-05-2025 19:01

    edisonCrisostomo | 2022-05-08 04:22:52 UTC | #1

    I just installed "Genesys Cloud for Salesforce External Routing (Unmanaged)" and when i run the test class included on the package, it's throwing me multiple Errors.

    is there any step that needs to be done in order to fix those test class error? it doesn't seem to be normal to have test class included on a package fails at a fresh install.

    here are the test class error for reference.

    also one of the test method is looking for a "ER Queue" to be created. but there is not step mentioning the need to create that Queue on the installing manual

    |ExternalRoutingControllerTests|testProcessDeletedPSRsForLargeSize|System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingControllerTests.testProcessDeletedPSRsForLargeSize: line 54, column 1|

    ExternalRoutingDataServiceTests

    testGetMatchingPSR

    System.QueryException: List has no rows for assignment to SObject

    Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingDataServiceTests.init: line 11, column 1 Class.ExternalRoutingDataServiceTests.testGetMatchingPSR: line 33, column 1 | | ExternalRoutingDataServiceTests | testGetOpenMessagingIntegrationId | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingDataServiceTests.init: line 11, column 1 Class.ExternalRoutingDataServiceTests.testGetOpenMessagingIntegrationId: line 27, column 1 | | ExternalRoutingDeletionTests | testInvocableMethod | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingDeletionTests.testInvocableMethod: line 10, column 1 | | ExternalRoutingServiceTests | testDeletedPSRs | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingServiceTests.testDeletedPSRs: line 53, column 1 | | ExternalRoutingServiceTests | testDeletedPSRsNoConversationId | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingServiceTests.testDeletedPSRsNoConversationId: line 97, column 1 | | ExternalRoutingServiceTests | testRouteWorkToSFUserNotRoutableState | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.ExternalRoutingServiceTests.testRouteWorkToSFUserNotRoutableState: line 137, column 1 | | OpenMessageServiceTests | testCreate | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.OpenMessageServiceTests.testCreate: line 14, column 1 | | OpenMessageServiceTests | testCreateWithCustomAttributes | System.QueryException: List has no rows for assignment to SObject Stack Trace: Class.GenesysCloudTestHelper.getExternalRoutingQueue: line 17, column 1 Class.OpenMessageServiceTests.testCreateWithCustomAttributes: line 45, column 1 |


    system | 2022-06-08 04:23:14 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 14629