How to send Auto Response Messages

Overview:

Auto response will be sent based on received message and the message will be seen in the chat box and action will be done in back-end respectively. Contacts can subscribe and unsubscribe to notification.

1.Depending on the received message either Promo or NOC or both Notification List can be Selected or deselected.
2.Related record will be created with received value.
3.A message will be displayed in the chat box with the value received.

Note:
Follow the unit test scripts to test the functionalities by sending json to the following url.
URL : /services/apexrest/smsRequest

 

Case-1(Subscribe-NOC)

Case-2(Subscribe-Promo)
Case-3(UnSubscribe-All)
Case-4(Subscribe-all)
Case-5(Unsubscribe-promo)
Case-6(Unsubscribe-NOC)
Case-7(Unknown)

Smoke Test:

SL#

Use Cases Steps to test Test Cases Expected result

Actual Result

1

Subscribe Below are the received values: ANI:’+1768531097’, NotificationList:’Promo’, action :’Subscribe’ After receiving the values Promo notification list gets activated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox should be active in the record detail page of the contact 2.related records should be created in the history table. 3.Message is displayed in the chat box Promo checkbox of the contact got activated and a related record got created while showing the message in the chat box
Below are the received values: ANI:’+17685310975′, NotificationList:’NOC’’. action:’Subscribe’ After receiving the values NOC notification list gets activated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.NOC checkbox should be active in the record detail page of the contact 2. related records should be created in the history table 3.Message is displayed in the chat box

NOC checkbox of the contact got activated and a related record got created while showing the message in the chat box

Below are the received values: ANI:’+17685310975′, NotificationList:’All’, action:’Subscribe’ After receiving the values NOC notification list and Promo notification list gets activated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox and NOC checkbox should be active in the record detail page of the contact. 2. related records should be created in the history  table 3.Message is displayed in the chat box.

Promo and NOC checkbox of the contact got activated and a related record got created while showing the message in the chat box

2

Un-subscribe

Below are the received values: ANI:’+17685310975′, NotificationList:’Promo’,

action:’UnSubscribe’

After receiving the values Promo notification list gets deactivated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox should get deactivated in the contact record detail page 2. related records should be created in the history table. 3.Message is displayed in the chat box.

Promo checkbox of the contact got deactivated and a related record got created while showing the message in the chat box

Below are the received values: ANI:’+17685310975′, NotificationList:’NOC’,

action:’UnSubscribe’

After receiving the values NOC notification list gets deactivated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.NOC checkbox should get deactivated in the contact record detail page. 2 related records should be created in the history table. 3.Message is displayed in the chat box.

NOC checkbox of the contact got deactivated and a related record got created while showing the message in the chat box

Below are the received values: ANI:’+18594840447′, NotificationList:’All’,

action:’UnSubscribe’

After receiving the values Promo notification list and NOC notification list gets deactivated in the contact record page of the contact that contains the received number and a message gets inserted into the message history table. 1.Promo checkbox and NOC checkbox should get deactivated. 2. related records should be created in the history table. 3.Message is displayed in the chat box.

Promo and NOC checkbox of the contact got deactivated and a related record got created while showing the message in the chat box

3

Unknown Below are the received values: ANI:’+18594840447′, NotificationList:’Unknown’’, action:’Subscribe/unSubscribe’ After receiving the values history table record will be created 1 related records should be created in history table

Only related record got created