-
Poor code coverage for Salesforce Apex inbound email services test class.
Our requirement is to process incoming email from a particular email address and create a case. My class is working fine but the test class is very poor with a code coverage of just 10%. Can any one please help me. I have no trouble processing the emails but unable to succeed in the test class. Thank you!
Below is the typical template from our customer. I've to parse the email body and create case.
Service Call Notification
Test Facility Services
Assignment Information:
Call/Action # 1001
Call/Action Type/Status Repair Service/SITE VISIT FIELD REPAIR/Received
Service Center 021 - Central KMA / 100-143-4601
Attention TEST CORP
Customer Details:
Location Test Store 990
Street Address 1111 Test Lane; Ft. Wayne, AA 11111
Point of Contact Manager
Billing Address 5960 Castleway W Drive;Indianapolis,IN 46250
Billing Phone 111-223-4601
Service Call Details:
Severity HIGH
Service Test service
Product PREP EQUIPMENT
EquipNo: N/A
SerialNo: N/A
AssetNo: N/A
SymptomNotes Product is not working and needs assistance.
Service Requirements:
Service Window No Service window define
Start Date/Time 26 JUL 2018 16:07
Respond By N/A
Complete By 28 JUL 2018 16:07Special Instructions:
Please open the attached Acknowledge.html attachment and accept the service call with an ETA or reject with the appropriate reason.-
This discussion was modified 7 years, 3 months ago by
Shashank.
-
This discussion was modified 7 years, 1 month ago by
Forcetalks.
-
This discussion was modified 7 years, 1 month ago by
Forcetalks.
-
This discussion was modified 7 years, 3 months ago by
Log In to reply.
Popular Salesforce Blogs
Account Based Marketing With Salesforce – 4 Proven Strategies
Account-Based Marketing is ever-growing and a widely practiced B2B Sales and marketing technique that helps acquire potential companies as your clients with networking. The first…
Inserting Records in Account or (any other sObject) Through Postman in Salesforce
We are using postman from API testing and request management to hit API by get or post and received data in the form of JSON…
Meet Your On-Call Data Scientist Unit | Salesforce Developer Guide
We should Figure Out Why Those Margins Are Shrinking. Envision that you are the VP of activities for a significant car provider. You're answerable for…
Popular Salesforce Videos
Introduction to Flow in Salesforce
This informative video on flows in Salesforce contains the following topics:- 00:00 - Introduction 02:14 - Agenda 02:49 - Flow is Automation 03:35 - The…
Get a Salesforce Developer Job in 5 Steps | For Freshers | For Admins | For Non-SFDC People
In this video, We will be talking about some tips to get your first job as a Salesforce Developer. If you are a recent graduate,…
5 Salesforce Developer Interview Red Flags That’ll Likely Get You Rejected
These are some common interview red flags that’ll likely get you rejected for that dream Salesforce developer job. Start prepping accordingly! Watch this video and…