Task 8 #1853
-
codes for task 8 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @kushal can you give me SS of which tasks code are you asking? or request name? |
Beta Was this translation helpful? Give feedback.
-
i was finding this code // Parse the JSON response // Get the actorName from the response body // Set the actorName as a collection variable // Log the actorName to the console for verification |
Beta Was this translation helpful? Give feedback.
i was finding this code
// Parse the JSON response
var responseJson = pm.response.json();
// Get the actorName from the response body
var actorName = responseJson.data.actorName;
// Set the actorName as a collection variable
pm.collectionVariables.set("favoriteActor", actorName);
// Log the actorName to the console for verification
console.log("favoriteActor set to: " + actorName);