You need to sign in to do that
Don't have an account?
mani tool
Methods defined as TestMethod do not support Web service callouts : code covergae error
im creating custom object and fields using metadata api, and im getting below error:
Methods defined as TestMethod do not support Web service callouts.
how to solve this
Methods defined as TestMethod do not support Web service callouts.
how to solve this
First in your class set
if(!Test.isRunnningTest()){
... YOUR HTTP CODE
}
then set mock response in your test class by using