You need to sign in to do that
Don't have an account?
t.deepthi05
Standard action button
Hi,
Can we invoke standard action buttons dynamically in a test class.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi,
Can we invoke standard action buttons dynamically in a test class.
You can try the following:
Example :If you want to test the standard Account view:
Account account = [select id from Account limit 1];
ApexPages.StandardController sc= new ApexPages.StandardController(account);
sc.view();
All Answers
You can simply call the method you are invoking on an action button.
You can try the following:
Example :If you want to test the standard Account view:
Account account = [select id from Account limit 1];
ApexPages.StandardController sc= new ApexPages.StandardController(account);
sc.view();