You need to sign in to do that
Don't have an account?

How to convertLead in testclass???
Hi does anyone have an example of converting a lead in a testmethod???
Lead l = new Lead( FirstName = 'TestShan', LastName = 'RazzTest', Email = 'haha@gmail.com'); insert l;
How would I convert it in code???
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_convertLead.htm?SearchType=Stem&Highlight=convert|converting|converts|converted|Converting|Convert|Converts