Email Tests

From Opentaps Wiki
Jump to navigationJump to search

Test 1: Owner of Emails

Actions

After configuring your email listener, setup an email address like "testing@mycompany.com", assign it to one of your users with the purpose "Owner of Received Emails" and another user as an "Other Email Address". Set up a contact with your email address. Now send an email to testing@mycompany.com from your email address.

Result

The email should be created in the system and associated with your contact as a Pending Activity. The user who is the "Owner of Received Emails" should be the Owner of the email (you can see this from the Pending Emails Screen or from the Activity Links screenlet on the View Email Screen.) The other users who are associated with testing@mycompany.com should also be associated with this email but not as the owner.

Test 2: Order ID Processed Correctly

Actions

Create a sales order. Let's say the order id is WS10000. Send an email to the email address you just set up with Order: WS10000

Result

The email should be tagged with order WS10000 and should show up as one of the "Related Emails" in the order view page.

Test 3: Case ID Processed Correctly

Actions

Now send an email with Case: DemoCase1

Result

This email should be associated with DemoCase1.

Test 4: Email order can be reassigned

Action

View the email. Change the order Id. Click [Update].

Result

Your email is now associated with a different order and can be seen on its "Related Emails" section.

Test 5: Email case can be reassigned

Action

View the email again. Change the case id. Click [Update].

Result

Your email is now associated with a different case.

Test 6: Reply email associates orders/case successfully

Action

Send a reply email to one of the above.

Result

The reply email should be associated with the case/order of the original email. If it is an order-related email, the reply email should also show up on the list in the "Related Emails" section of the order view.