JetBrains / JetBrains/http-request-in-editor-spec

Multiple response script handers

Open
#12 1 comment 1 reaction 0 assignees View on GitHub
Follow Youtrack Issue
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.