What is the best pr...
 
Notifications
Clear all

What is the best practice to initialize a Visualforce page in a test class?

1 Posts
1 Users
0 Likes
83 Views
Tuan
 Tuan
(@shippertuan)
Noble Member
Joined: 7 months ago
Posts: 366
Topic starter  

What is the best practice to initialize a Visualforce page in a test class?

  • A . Use Test.setCurrentpage,MyTestPage;
  • B . Use Test.currentpage, getParameter, put (MyTestPage);
  • C . Use Test, setCurrentPage(Page.MyTestPage);
  • D . Use controller,currentPage, setPage (MyTestPage

Show Answer Hide Answer

Suggested Answer: C

   
Quote
Share: