+ Start a Discussion
sevindusevindu 

Test.loadData not working

User-added image

User-added image
User-added image

I am getting the above error, How can I solve and what is the issue?
Best Answer chosen by sevindu
GovindarajGovindaraj
Hi,

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

Thanks,
Govindaraj.S

All Answers

GovindarajGovindaraj
Hi,

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

Thanks,
Govindaraj.S
This was selected as the best answer
Raj VakatiRaj Vakati
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');

 
sevindusevindu
Thanks