You need to sign in to do that
Don't have an account?
siva kumar 201
Regarding the task "Test automation logic" in apex specialist super badge.
Can anyone help me to pass the challenge "Test automation logic" in apex specialist super badge. I got the code coverage of 100% but it throws the error as " Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.LimitException: Too many DML statements: 151. "
Thank you.
There was an unexpected error in your org which is preventing this assessment check from completing: System.LimitException: Too many DML statements: 151. "
Thank you.
You have to use Test.startTest() and Test.stopTest() by using this you have to refresh your governor limits.
Number of DML statements : 150
For Detail on this you have to go through the below link :
http://salesforce.stackexchange.com/questions/80949/when-to-use-test-starttest
Thanks,
Raghavendra Reddy.D