Recall & Review
beginner
What is a variable in Postman flows?
A variable in Postman flows is a named storage that holds data values which can be used and changed during the execution of the flow.
Click to reveal answer
beginner
How do you assign a value to a variable in a Postman flow?
You assign a value to a variable by using the 'Set Variable' block, specifying the variable name and the value you want to store.
Click to reveal answer
intermediate
What happens if you assign a new value to an existing variable in a Postman flow?
The existing variable's value is updated to the new value, replacing the old one for the rest of the flow execution.
Click to reveal answer
beginner
Why is variable assignment important in Postman flows?
Variable assignment allows you to store and reuse data dynamically, making your tests flexible and able to handle different scenarios.
Click to reveal answer
intermediate
Can variables assigned in one block be used in another block in Postman flows?
Yes, variables assigned in one block can be accessed and used in other blocks within the same flow, enabling data sharing across steps.
Click to reveal answer
In Postman flows, which block is used to assign a value to a variable?
✗ Incorrect
The 'Set Variable' block is specifically designed to assign or update values of variables in Postman flows.
What happens if you assign a value to a variable that already exists in a Postman flow?
✗ Incorrect
Assigning a new value to an existing variable updates its value for the rest of the flow.
Can variables assigned in one block be accessed in another block within the same Postman flow?
✗ Incorrect
Variables assigned in one block are accessible in other blocks within the same flow, enabling data sharing.
Why should you use variables in Postman flows?
✗ Incorrect
Variables help store data that can be reused and changed, making tests flexible and dynamic.
Which of the following is NOT a correct way to assign a variable in Postman flows?
✗ Incorrect
Typing a variable name in a request URL without assignment does not assign a value; you must use 'Set Variable' or scripts to assign.
Explain how variable assignment works in Postman flows and why it is useful.
Think about how you store and reuse information while running a test step by step.
You got /5 concepts.
Describe a simple example where you assign a variable in one block and use it in another block in a Postman flow.
Imagine passing a note from one friend to another to remember something important.
You got /3 concepts.