-
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 5 years, 11 months ago by Shashank.
- This discussion was modified 5 years, 9 months ago by Forcetalks.
- This discussion was modified 5 years, 9 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Automating Sales and Marketing for Small Businesses: Examples to Help You Get Started
Every small business springs up as the result of a great idea. At first, the idea and drive seem to be sufficient for keeping the…
What is Einstein GPT? World's First Generative AI for CRM
Introduction Meet Salesforce's Einstein GPT, a new addition to the ever-expanding array of chatbots with AI capabilities. The service stands out slightly from the competition…
Salesforce Single Org or Multi-Org – What is your Salesforce Architecture?
While setting up a Salesforce architecture or assessing the performance of an existing organization, the most perplexing question that haunts anyone is to decide between…
Popular Salesforce Videos
Trailblazer Moment - Investing in Canada's Future
Salesforce Ventures is excited to announce our Canada Trailblazer Fund, a $100 million fund to invest in Canadian startups and fuel cloud innovation and customer…
Dynamic Action in Salesforce | Salesforce Tutorial
In this video, we are going to talk all about dynamic actions in Salesforce. 00:00 Introduction 00:57 Work with Dynamic Action 05:05 Dynamic Actions in…
Salesforce Multifactor Authentication Webinar
An extra layer of security on your Salesforce org is always worth it. Learn how to safeguard your sensitive Salesforce account information from unauthorized access…