You need to sign in to do that
Don't have an account?
Peter Bölke
Testing ApexPages.currentPage().getParameters()
Hello,
how can i test following snippet?
Those line belong to custom controller extension für a file upload. This Upload can be accessed from any object in our saleforce environment. But mainly from Accounts.
thanks
Peter
how can i test following snippet?
if(ApexPages.currentPage().getParameters().get('aID') != null) { tempID = ApexPages.currentPage().getParameters().get('aID'); }else{ tempID = ApexPages.currentPage().getParameters().values()[1]; }It works fine with an AccounID,....but how can i test it with an ContactID or else?
Those line belong to custom controller extension für a file upload. This Upload can be accessed from any object in our saleforce environment. But mainly from Accounts.
thanks
Peter
If yes then you can use the following code in your test class
Let me know If you have any question.
All Answers
Its simple : pass the id value in URL like this
thanks
If yes then you can use the following code in your test class
Let me know If you have any question.