Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Help me in writingTest class for Batch apex

I created Batch apex to send emails to owners of the lead based on certain conditions. I have to write a test class to test gov limits.

Thanks in advance

share|improve this question
    
What have you tried so far? Are there any specific problems you are encountering? –  Lex Feb 6 '13 at 9:32
    
I haven't write anything.Give me an idea to test.I'm new to batch apex.Thanks –  Raghu Feb 6 '13 at 9:49
    
possible duplicate of Please help me testing following batch apex.Thanks –  Jesse Altman Feb 6 '13 at 13:05
    
Please read the FAQ on how to write a post. Pay particular attention to the section on "What not to ask" please. salesforce.stackexchange.com/faq. –  Peter Feb 6 '13 at 16:17
add comment

closed as not a real question by Jesse Altman, Peter, Peter Knolle, Ryan Guest, eyescream Feb 6 '13 at 19:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

I suggest you read this documentation from Salesforce.com related to Batch Apex. http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm

There is an example for testing batch apex in that page which can help you.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.