+ Start a Discussion
Anju Alexander 5Anju Alexander 5 

Test class

Hi Pramod,

I am getting only 69% code coverage. And I am writing test class for a visual force page for the first time.
David "w00t!" LiuDavid "w00t!" Liu
Gotta post your code!

Here's what's probably happening:
  1. You aren't calling all the methods in your controller
  2. Your methods aren't completing because certain values are not populated correctly
  3. An error is happening in your page and no further tests are running
Bhawani SharmaBhawani Sharma
Make sure you are creating proper test data. 
Cover all the if else scenario by setting up controller variables from test class.

praveen murugesanpraveen murugesan
Anju,,

Can you post your code. then only we can help you.