-
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 ago by
Shashank.
-
This discussion was modified 6 years, 10 months ago by
Forcetalks.
-
This discussion was modified 6 years, 10 months ago by
Forcetalks.
-
This discussion was modified 7 years ago by
Log In to reply.
Popular Salesforce Blogs
Eligibility Requirements and Examination Process – Salesforce Developer Certification Course
The Salesforce Developer certification is a necessary credential that bestows the necessary skills and knowledge of designing custom-made applications and analytics while being aided by…
Salesforce Boosts its Marketing Cloud with Partnership with AI and Google
The Salesforce CRM is extremely customizable by design. A Salesforce development company provides CRM solutions for different customer requirements across a lot of industry domains.…
A Trip to the World of Salesforce Einstein Analytics
Hello Everyone, Welcome to the World of Analytics. Here we begins a trip to the world of Analytics. What's about Analytics? In the glowing era…
Popular Salesforce Videos
Getting your Customer on Track with Salesforce
Hear from Jonathan Gardner, Head of CRM Development First Group, and Lee Holsgrove, Client Adviser IBM as they discuss First Group's transformation bringing together a…
Web to Case Functionality in Salesforce | All You Need to Know
This video discusses the functionality of Web to Case in Salesforce, which allows website users to submit inquiries or information that can be converted into…
Salesforce Field Service: Complex Work and Routing | AblyPro Webinar
Salesforce Field Service is a powerful tool designed to help businesses manage complex field service workflows and optimize their routing processes. With Salesforce Field Service,…