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
RajeevlsHydRajeevlsHyd 

Test Class for VF page

I have a VF page .. no controller class, I want to write  a test class for it, not getting idea... any suggestions :

 

 

souvik9086souvik9086

Test Classes are for Apex Controllers and Apex Triggers.You cannot write test class for Visualforce page. If any trigger is calling through your VF page then you can write test class for that trigger.

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

TwanTwan

If you want to test VF Page (ie the UI) , you need some external tool like this one : http://docs.seleniumhq.org/