# Not clear to me how to create a sequence of tests

**URL:** <https://community.postman.com/t/not-clear-to-me-how-to-create-a-sequence-of-tests/1029>\
**Category:** Help Hub\
**Created:** [February 22, 2018, 8:25pm UTC](https://community.postman.com/t/not-clear-to-me-how-to-create-a-sequence-of-tests/1029 "2018-02-22T20:25:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhutten](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bhutten/32/360_2.png) [@bhutten](https://community.postman.com/u/bhutten)\
**Post date:** [February 22, 2018, 8:25pm UTC](https://community.postman.com/t/not-clear-to-me-how-to-create-a-sequence-of-tests/1029/1 "2018-02-22T20:25:43Z")

</div>

Hi: I have what seems to me to be a common need, but I can’t figure out a simple way to do it in Postman. Specifically, I want to execute a series of requests against my backend, taking data from earlier tests and passing it to later tests. ie:

1. Request entity A. Make a copy as A2. Modify some of the resulting A data.
2. Post the modified entity A, check the result.
3. Delete modified entity A
4. Save entity A2, restoring the original state of the database.

The above lets me test my GET, PUT, DELETE, POST operations in sequence, but in order to do it in Postman I have code in 4 different requests that writes environment variables to pass the data between requests. There’s no simple way to see all that code at once. Am I missing something or is this just how Postman works?

Apologies if this is a stupid question - perhaps I’ve missed something very obvious, or am doing something wrong.

- bill

---

<div class="post-metadata">

**Author:** ![shamasis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shamasis/32/53_2.png) [@shamasis](https://community.postman.com/u/shamasis)\
**Post date:** [February 26, 2018, 9:45pm UTC](https://community.postman.com/t/not-clear-to-me-how-to-create-a-sequence-of-tests/1029/2 "2018-02-26T21:45:56Z")

</div>

Hey - that’s definitely not a stupid question. You can use Postman variables to store data in one script and access it in next ones.

More about variables:  
[https://www.getpostman.com/docs/postman/environments\_and\_globals/variables](https://www.getpostman.com/docs/postman/environments_and_globals/variables)

One blog post around chaining your requests:

> **[Extracting Data from Responses and Chaining Requests | Postman Blog](https://blog.postman.com/extracting-data-from-responses-and-chaining-requests/)**
>
> Update: If you want to dig deeper into chaining requests, check out our related post called How to Make Money Using Postman:...
