logo-MindMajix
s
sri kanth

Posted on 19th July 2024|1149 views

0
votes

Methods Defined As Testmethod Do Not Support Web Service Callouts

How to resolve the error methods defined as testmethod do not support web service callouts?

1 answers
Answers
P
Sowjanya Kodiganti

Posted on 19th July 2024| views

You should call Test.setMock(...) within your test class once you have achieved the needed interfaces to stop this appropriate error message.

You should not require to utilize Test.isRunningTest() to examine your calls out and doing that can give you the code which is not stable.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number