You need to sign in to do that
Don't have an account?

Yes or No - Do i need to create test class for page that has ONLY standard controller?
no extension controller, i only have standard controller.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
no extension controller, i only have standard controller.
You do not need to write a test class for this page.
You only need to test your apex code, and as you haven't written any, there is nothing for you to do.
All Answers
Hi,
Test classes are written for Apex controllers not for VF pages.
http://infallibletechie.blogspot.in/2012/05/unit-testing.html
Regards,
Magulan D
Salesforce.com certified Force.com Developer.
SFDC Blog
SFDC Site
If this post is your solution, kindly mark this as the solution and click Kudos.
yes do i have to test the controller of the page when im using standard controller?
Yes... You have to write test class for extensions, even though that class has standard controller.
Regards,
Magulan D
Salesforce.com certified Force.com Developer.
SFDC Blog
SFDC Site
If this post is your solution, kindly mark this as the solution and click Kudos.
Below is my simple VF with standard controller i did not create extension class for this VF... How can i create test class for this?
You do not need to write a test class for this page.
You only need to test your apex code, and as you haven't written any, there is nothing for you to do.
Thanks bob your answer accept as solution
Hi,
No need to write test class for standardController. You have to test classes for controllers and extensions not for standardController
Regards,
Magulan D
Salesforce.com certified Force.com Developer.
SFDC Blog
SFDC Site
If this post is your solution, kindly mark this as the solution and click Kudos.
It's simple,If you have not written any Apex what dont have anything to test.