-
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 6 years, 2 months ago by
Shashank.
-
This discussion was modified 6 years ago by
Forcetalks.
-
This discussion was modified 6 years ago by
Forcetalks.
-
This discussion was modified 6 years, 2 months ago by
Log In to reply.
Popular Salesforce Blogs
![Account-based Marketing](https://images.forcetalks.com/wp-content/uploads/2020/10/13170915/Account-based-Marketing.jpg)
All About Account-based Marketing in Salesforce
Understanding Account-based Marketing Account-based showcasing may be a B2B showcasing technique that centers on particular clients or accounts and targets each as an advertisement of…
![Salesforce Training Program](https://images.forcetalks.com/wp-content/uploads/2022/01/20181723/Salesforce-Training-Program.jpg)
Best Salesforce Training Program In 2022
If you're seeking the best Salesforce training program to become a Salesforce developer in 2022, you've come to the correct place. Salesforce is a vast…
![Salesforce Lightning](https://images.forcetalks.com/wp-content/uploads/2020/04/16102235/Salesforce-Lightning.jpg)
Salesforce Lightning Object Creator & Lightning Flow Builder: 2 Amazing Tools To Play With!
By making use of the brand new introduction of the low code tools, Salesforce is encouraging businesses to modernize their applications with simplicity. Salesforce has…
Popular Salesforce Videos
5 Mind-Blowing New Salesforce Marketing Cloud Releases
The Statist worldwide marking survey reports- “Almost 4 billion world population is digitally active, and 2.14 of them are shopping online.” In this entire scenario,…
Learning Path and Pay Scale for Salesforce Profiles
Now it's high time to know about the Learning Path for the different Salesforce profiles. In this video, you also got to know about the…
Objects and Tabs in Salesforce
Watch this video to learn all about Objects and Tabs in Salesforce. If you have any doubts or concerns please let us know in the…