ads

Wednesday, 29 August 2018

Cover the test coverage for getURL method

 To cover the test coverage for getURLmethod,         use Test.setCurrentPage(Page.PageName).


 Test.setCurrentPage(Page.PageName) will help you to cover the codes which makes use   of ApexPages.currentPage().getUrl().

No comments:

Post a Comment