Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.
Test.loadData not working

User-added image

User-added image

I am getting the above error, How can I solve and what is the issue?
3 answers
  1. Jan 23, 2019, 4:25 AM
    Hi,

    It seems, you already have a class with name 'Test'. Could you delete that and try saving this 'LoadData' class ?

    Thanks,

    Govindaraj.S
  2. Jan 23, 2019, 5:25 AM

    Looks like you have an apex class with the name  "Test" that is causing an issue so 

    1. Delete the apex class name "Test"
    2. and use this code

    List<sObject> ls = System.Test.loadData(Account.sObjectType, 'TestLoadData');

     
0/9000