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日 18: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