JetBrains / JetBrains/http-request-in-editor-spec
Multiple response script handers
- Dominant language
- No language data
- Stars
- 152
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Is there any solution for multiple script handler. Like muliple stage test files
```js
//test-response.js
client.test('Request executed successfully', function () {
client.assert(response.status === 200, 'Response status is not 200');
});
```
```js
//other-test.js
client.test('Response content-type is json', function () {
var type = response.contentType.mimeType;
client.assert(type === 'application/json', 'Expected \'application/json\' but received \'' + type + '\'');
});
```
And the HTTP Request like
```http
GET https://httpbin.org/get
> test-response.js
> other-test.js
> {%
client.global.set('access_token',response.body.access_token);
%}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.