FeatureFuel
1

In Test, how does one send custom GET request that is not the specific request the test is for?

Source: Kong/insomnia#6519 · opened by @davehouser1
I need my test to do the following:

1) perform a const response = await insomnia.send() for the request I am testing
2) Construct and send another request differnet from the request test. But every time I try to do this it fails



I get a failed to find request
I can only assume that I am using insomnia.send() incorrectly.
Is there a way to send a different request in a test? if so how?

EDIT: Well I hacked a solution together, this is the only way I could get this to work by using a new Promise with http module and parsing the data manually. The following code works and will print out the response payload, and also an attribute from the payload from console. Is there an easier way to do this??

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests