function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Phuc Huynh 1Phuc Huynh 1 

How to insert and use records from external object in @testSetup?

Hi All,
Can you help me how to  write Test Class for External object Data?
I have some class use data from exteral object for logic code. I saw that someone use mockrequest.
http://grahambarnard.com/development/2016/02/08/mocking-external-objects/
But i need to query records into my classes it's not working with the same solution. How to insert and use records external object in @testSetup?
Please help me about this case.