You need to sign in to do that
Don't have an account?
Soundar Rajan Ponpandi
Test Class Cover for sample class ?
Hi,
Can you cover a test class for this sample class
Regards,
Soundar.
Can you cover a test class for this sample class
/* Description : Generate PDF in Sales order Details Page. */ public with sharing class GD_SalesOrderPrintableView { public string so_Id = apexpages.currentpage().getparameters().get('id'); public List<GD_Order_Line_Item__c> accList{get;set;} public List<GD_Address__c> addList{get;set;} set<id> accId = New set<id>(); public GD_SalesOrderPrintableView (ApexPages.StandardController controller){ accList = [select id,name ,GD_Unit_Price__c,GD_Total_Amount_Formula__c, GD_Quantity__c,GD_Item__r.name, GD_Vat__c, GD_Discount__c from GD_Order_Line_Item__c where GD_Sales_Order__c =: so_Id]; GD_Order__c so = [select id,name from GD_Order__c where id =:so_Id]; string acc = so.GD_Account__c; system.debug('Account Name ++ ' + acc); addList = [select id,name,GD_Type__c from GD_Address__c where id =:acc and GD_Type__c = 'BILL_TO' Limit 1]; } }
Regards,
Soundar.
Were you getting any errors while running the test class?? For writing the test class you will have to give all the values so that you can cover all the lines and all the possible scenarios.
I hope this helps.
Regards,
Anutej
Hearty thanks for your response.
here is my Test class it's showing no method passing to the test class.
Regards,
Soundar.