{"action":"created","issue":{"url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/98","repository_url":"https://api.github.com/repos/apigee-127/swagger-test-templates","labels_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/98/comments","events_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/98/events","html_url":"https://github.com/apigee-127/swagger-test-templates/issues/98","id":131878518,"number":98,"title":"Generation of API sequence tests","user":{"login":"noahdietz","id":6644735,"avatar_url":"https://avatars.githubusercontent.com/u/6644735?v=3","gravatar_id":"","url":"https://api.github.com/users/noahdietz","html_url":"https://github.com/noahdietz","followers_url":"https://api.github.com/users/noahdietz/followers","following_url":"https://api.github.com/users/noahdietz/following{/other_user}","gists_url":"https://api.github.com/users/noahdietz/gists{/gist_id}","starred_url":"https://api.github.com/users/noahdietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahdietz/subscriptions","organizations_url":"https://api.github.com/users/noahdietz/orgs","repos_url":"https://api.github.com/users/noahdietz/repos","events_url":"https://api.github.com/users/noahdietz/events{/privacy}","received_events_url":"https://api.github.com/users/noahdietz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apigee-127/swagger-test-templates/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"noahdietz","id":6644735,"avatar_url":"https://avatars.githubusercontent.com/u/6644735?v=3","gravatar_id":"","url":"https://api.github.com/users/noahdietz","html_url":"https://github.com/noahdietz","followers_url":"https://api.github.com/users/noahdietz/followers","following_url":"https://api.github.com/users/noahdietz/following{/other_user}","gists_url":"https://api.github.com/users/noahdietz/gists{/gist_id}","starred_url":"https://api.github.com/users/noahdietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahdietz/subscriptions","organizations_url":"https://api.github.com/users/noahdietz/orgs","repos_url":"https://api.github.com/users/noahdietz/repos","events_url":"https://api.github.com/users/noahdietz/events{/privacy}","received_events_url":"https://api.github.com/users/noahdietz/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-02-06T17:31:16Z","updated_at":"2016-04-17T01:00:24Z","closed_at":null,"body":"I want to add an option that provides the ability to create tests containing a sequence of API calls. A common design paradigm in REST APIs is CRUD (Create, Retrieve, Update and Delete). As such, it is important to test these sequences (or ones specified by the developer) to ensure the core use case is operational.\r\n\r\nThis is not limited to CRUD, but will be configurable by providing a sequence object at test generation.\r\nBelow is an example of the proposed option, for the CRUD sequence, identified by the name 'seq1':\r\n```js\r\ntestGen(swagger, {\r\n      testModule: 'supertest',\r\n      assertionFormat: 'should',\r\n      pathName: [],\r\n      sequences: {\r\n        'seq1': [\r\n          { path: '/user',\r\n            op: 'POST' },\r\n          { path: '/user/{id}',\r\n            op: 'GET' },\r\n          { path: '/user/{id}',\r\n            op: 'PUT' },\r\n          { path: '/user/{id}',\r\n            op: 'DELETE' }\r\n        ]\r\n    }\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/comments/210933474","html_url":"https://github.com/apigee-127/swagger-test-templates/issues/98#issuecomment-210933474","issue_url":"https://api.github.com/repos/apigee-127/swagger-test-templates/issues/98","id":210933474,"user":{"login":"0x1mason","id":4587515,"avatar_url":"https://avatars.githubusercontent.com/u/4587515?v=3","gravatar_id":"","url":"https://api.github.com/users/0x1mason","html_url":"https://github.com/0x1mason","followers_url":"https://api.github.com/users/0x1mason/followers","following_url":"https://api.github.com/users/0x1mason/following{/other_user}","gists_url":"https://api.github.com/users/0x1mason/gists{/gist_id}","starred_url":"https://api.github.com/users/0x1mason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x1mason/subscriptions","organizations_url":"https://api.github.com/users/0x1mason/orgs","repos_url":"https://api.github.com/users/0x1mason/repos","events_url":"https://api.github.com/users/0x1mason/events{/privacy}","received_events_url":"https://api.github.com/users/0x1mason/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T01:00:24Z","updated_at":"2016-04-17T01:00:24Z","body":"@noahdietz Does this include the ability to \"build\" on data obtained in a previous test? E.g., I want to \r\n1. Get `/foo/users?name=0x1mason` <== returns userId\r\n2. Get `/foo/{userId}/info` <== cherry pick firstName from response body\r\n3. etc"}}