6. [skillcheck] Set "favoriteActor" as a collection variable using scripting | AssertionError: Fix: Save actorName value from response to variable named favoriteActor: expected 'async function fetchActors() { \r\n …' to match /pm\.collectionVariables\.set\(["']favou?riteActor["'
]/
#2896
Answered
by
aslams2020
utkarshcse2026
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
aslams2020
Oct 31, 2024
Replies: 2 comments 1 reply
-
in the Skill Check request. Please include the script -
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MastanSayyad
-
Thanks it's already resolved by me :-)
…On Thu, 31 Oct, 2024, 2:44 pm Sayyad Aslam, ***@***.***> wrote:
in the *Skill Check request*. Please include the script -
// 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);
—
Reply to this email directly, view it on GitHub
<#2896 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4YVB7J7WPHI6S4E5FWRLDDZ6HYGDAVCNFSM6AAAAABQ5BHHSGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJQHEZDENA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in the Skill Check request. Please include the script -