function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tommytxtommytx 

How to test Apex code that is activated by the reciept of an email with leads..

I am using the basic Class that everyone is familiar with that allows you to send an email to SalesForce, and the Apex code will strip out the lead from the incoming email based on rules and insert the lead into my Sales Force Data Base.

You can view the actual code that I am using at the below URL:

http://force-salesforce.blogspot.com/2011/10/how-to-unit-test-recieving-email-in.html

 

When I run a simple class in the Apex Developer Console,, I can run it over and over and use debug commands to see the results in the logs.. to determine if all is well....

 

Problem is I do not know how to activate this special class over and over to check the results... I know I can contine to send the same email over and over to see the results inserted into the data base but my question is how do I trap the logs to see if each step is working along the way.....

 

Any suggestions would be appreciated....