Great Video! I can't seem to get the testConvertLead to success. It gives me the following error: System.AssertException: Assertion Failed: Same value: null and a Stack Trace of: Class.ConvertLeadApexTest.testConvertLead: line 41, column 1... Any idea on what is causing this? Only my apex test is not wroking. It works perfects in the sandbox! Thanks again!!
My Test Class is failing. Line 41, column 1 on the testConvertLead and Line 93, column 1 on the testConvertLeadWithoutOpportunity. However, when I ran the normal Apex Class in my Sandbox, it converted the Lead without any issue. Any ideas how to resolve this? I only have 72%
Hello, first of all thank you for this. This is a really great help especially for an admin like me with no coding experience. I am trying it now but during the testing of the Apex test class I am getting an error saying assertion failed same value: null on line 103 and 47. Can you help? Ot would be greatly appreciated.
Does running this action also take into account of the Lead field mapping and sync the fields accordingly? Or do I have to do that separately in my flow?
With regards to the test class and replacing the converted status. I think the same needs to be done on 2 different places for the "Status" when the Test Lead gets created, right? Here you have "Open - Not Contacted". If we do not have this status as a Lead Status in our ORG, this will also need to be replaced, correct? Lines 9 & 70 in the Test Class code.
Great Video! I can't seem to get the testConvertLead to success. It gives me the following error: System.AssertException: Assertion Failed: Same value: null and a Stack Trace of: Class.ConvertLeadApexTest.testConvertLead: line 41, column 1... Any idea on what is causing this? Only my apex test is not wroking. It works perfects in the sandbox! Thanks again!!
My Test Class is failing. Line 41, column 1 on the testConvertLead and Line 93, column 1 on the testConvertLeadWithoutOpportunity. However, when I ran the normal Apex Class in my Sandbox, it converted the Lead without any issue. Any ideas how to resolve this? I only have 72%
Hi could you show how you created the lookup component
Hello, first of all thank you for this. This is a really great help especially for an admin like me with no coding experience. I am trying it now but during the testing of the Apex test class I am getting an error saying assertion failed same value: null on line 103 and 47. Can you help? Ot would be greatly appreciated.
Does running this action also take into account of the Lead field mapping and sync the fields accordingly? Or do I have to do that separately in my flow?
I just tested in my Sandbox environment, and the lead field mapping is considered.
@shonuff8848 good to know, thanks!
With regards to the test class and replacing the converted status. I think the same needs to be done on 2 different places for the "Status" when the Test Lead gets created, right? Here you have "Open - Not Contacted". If we do not have this status as a Lead Status in our ORG, this will also need to be replaced, correct? Lines 9 & 70 in the Test Class code.
Yeah that’s right. You’ll also need to make sure the test class populates any fields required by validation rules in order to pass.
@@nickfrates maybe this is why my test class keeps failing?