You need to sign in to do that
Don't have an account?
Sanjeev R 1
Code Coverage for Page refrence code
I have a class named "ctrlMultiClone"
and a constructor to this class as
private ApexPages.StandardController standardController;
public ctrlMultiClone(ApexPages.StandardController standardController)
{
this.standardController = standardController;
}
requesting to please guide how to get the code coverage for this part.
As I have a custom buttom on Opportunity page lagout that is using this class for Cloneing Opportunity with Custom related list..
All functionality working as desired execpt the code coveage part for the above code
Thanks in advace
Sanjeev
Check the below link.
https://developer.salesforce.com/forums?id=906F00000008y7QIAQ
Use below code:
Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.
Thanks Balaji and Anoop,
that worked...
but while cloning I m getting and error
System.DmlException: Insert failed. First exception on row 0; first error: INACTIVE_OWNER_OR_USER, operation performed with inactive user: []
this is due test Opportunity that I m picking is of Owner that is Inactive..
as this query
SELECT ID FROM Opportunity limit 1
is returning the first opportunity ID .... unfortunatly that is of a INACTIVE owner
Looking for a SQOL query that returns a single Opportunity ID from the database for an Active Owner