postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 839 forks source link

Jump from test assertions in runner result to exact line in test scripts of the request #9651

Open fsamwel opened 3 years ago

fsamwel commented 3 years ago

Is your feature request related to a problem? Please describe. If I run a test with many folders, requests and tests (validations) then going from the runner result to that request and that specific testscript is now not as easy as can be. The only way I can see is pointing the mouse over the path to see the path to the request and then use the sidebar to find the request. Next finding the test within the Tests-script is just manually scrolling through till I find it, which takes a lot of time.

Also when I send one request then I find the tests that fail in the Test Results tab. If I need to check or correct the testscript, then I have to manually scroll through the testscript to find it.

Describe the solution you'd like

  1. Add a clickable link in the Runner results view from a request-result to open that request in a new tab

Better: when clicking from Runner result to open that request, open that request with the response and test script results from the Runner.

Even better: enable to toggle a test result (in the Runner results view) to open the test script and allow to modify the script, save that script and rerun the modified test (script) on the (stored) response for that test step.

  1. Make the test result line in the Test Results tab link to the appropriate test (pm.test("test name...", function () { ...} ) in the Tests tab.
malvikach commented 1 year ago

Hi @fsamwel,

Thanks for your feedback. Glad to inform you that in the recent release (Postman version 10.12.0) we have addressed some of the concerns you mentioned:

ezgif com-optimize (3)

We hope that this helps in your workflows.

We are evaluating the feasibility of introducing 'the ability to make the test result line in the Test Results tab link to the appropriate test (pm.test("test name...", function () { ...} ) in the Tests tab' and I will leave this issue open to track the same. Will update you when I have any news on this. If you like to talk to me over a call about this or any other feedback you have, please use my calendly link and set up some time or drop me a note at malvika.chaudhary@postman.com.

Please Note: The Postman version update is being rolled out, you will get it in the next 2-3 days if you haven't already.

Thanks again for your feedback. We really appreciate it.

Cheers! Malvika