Activity Forums Salesforce® Discussions When creating a test callout for POST method, Is it necessary to set values of setHeader, setBody?

  • PRANAV

    Member
    March 23, 2018 at 2:08 pm

    Hi Kapil,

    Yes, you need to set the fake response via setBody with all the related fields and setHeader() act as key value pair that Sets the contents of the request header so that 75% of the code must have test coverage.

    Hope this helps you.

     

  • Parul

    Member
    September 18, 2018 at 7:43 pm

    Yes, we have to get the fake responsive via setBody with all the related files and setHeader() act as key-value pair that sets the contents of the request header so that 75% of code must have test coverage.

     

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos