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
Sambit SoravSambit Sorav 

Regarding how to set session token and cookies in a mock callout class?

How can we set session token and cookie inside a mock callout class? Is it possible to set both the things together?
PriyaPriya (Salesforce Developers) 

Hi Akshay,

Kindly refer this article :- 
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_testing_httpcalloutmock.htm

Regards,

Priya Ranjan