Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.

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. – Peter Feb 6 '13 at 16:17

I suggest you read this documentation from related to Batch Apex.

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

share|improve this answer

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