Skip to main content
John Sturgeon (Self Employed) 님이 #Security에 질문했습니다
I'm not able to pass the test run for the #2 option on the SuperBadge Security.  The following is the error I'm getting  I'm at a loss as I've created everything that was required.  I've also uninstalled and re-installed the package.

 

Thanks in advance

 

How to debug an Apex Test #2
답변 2개
  1. 2021년 4월 1일 오전 9:17

    Hi john

    I had the problem of the test units failing. What I did to solve it was this:

     

    In the Apex Test Execution window, once your test fails, click the "developer console" button, it's to the right of the "select tests" button. A window will open and in the bottom left you'll see the yellow folders, it's a list of the files for the tests you've run. Click the + button to open a folder until you see file icons and "help a stranger" and "hug your mother." Now double click on one of those and they will open up in a new window above. There is a column "errors" and in that column script for your failed unit. Double click on that script and once again it expands in a small window to tell you exactly what is missing from your org. Make the adjustments and voila! it should pass ok.

     

     

    thanks.

0/9000