Skip to main content
Hello,

 

I am getting below error while executing test. Attaching code I am executing and error screen. Kindly help to resolve this.

 

While I tried to execute the code using Execute Anonymous Window, it returned expected output.Error executing Create Test Data for Apex Test challengeCode

 

Thanks in Advance!!

 

 
답변 3개
  1. 2021년 5월 29일 오후 6:49
    Hi Videen,

     

    ++ Surya.

     

    You should try using just < than sign. Because you have initialized the loop variable from 0. If you enter the numberofcontacts=2 , your code will create 3 contacts and that might be the problem here.
0/9000