Updated on 2025-03-31 GMT+08:00

Test and Verification

The test scenario is a multimedia session between a customer and an agent, including customer access, queuing information query, message sending and receiving, customer satisfaction evaluation, and customer disconnection. The postman software is used to invoke the API Fabric API to simulate the third-party invoking scenario.

  1. Sign in to the system as a Common agent and commission the web channel in the AICC. The agent clicks Sign in to sign in, sets the status to Idle, and waits for customer access.
  2. Invoke the tokenByAkSk API to obtain the API Fabric authentication information on the customer side.

    Figure 1 Obtaining API Fabric token

  3. Invoke the applyToken API to obtain the CC-Messaging authentication information on the customer side.

    Figure 2 Obtaining applyToken

  4. Invoke the send API to send a connection setup message on the customer side. The message type (controlType) is CONNECT.

    Figure 3 Invoke the send API to send a connection setup request.

  5. Invoke the queryQueue API to query queuing information on the customer side. If the customer is not in the queuing status, it indicates that the customer is connected to an agent. The agent checks whether a customer is connected.

    Figure 4 Queuing information query
    Figure 5 Agent's view after a customer is connected to the system

  6. Invoke the poll API to poll messages of the agent on the customer side.

    Figure 6 Invoking the poll API to poll messages of an agent

  7. Invoke the send or sendAsync API to send messages to the agent on the customer side. The message type (controlType) is CHAT.

    Figure 7 Sending messages on the customer side
    Figure 8 Receiving customer's messages on the AICC side

  8. The agent replies to the customer. The customer obtains the message content from the agent by polling the poll API.

    Figure 9 Polling agent messages

  9. Query the satisfaction configuration on the customer side after the chat ends.

    Figure 10 Invoking the satisfaction configuration query API

  10. Invoke the saveSatisfaction API to save the satisfaction evaluations if the satisfaction survey function is enabled for the current channel.

    Figure 11 Invoking the API to submit satisfaction configuration

  11. Invoke the send or sendAsync API to send a disconnection message on the customer side. The message type (controlType) is DISCONNCET.

    Figure 12 Invoking the send API to send a disconnection message

  12. After the disconnection message is received, the agent is disconnected, the chat ends, and the agent is in the Idle status.

    Figure 13 Setting to idle