postman-contract-test-generator icon indicating copy to clipboard operation
postman-contract-test-generator copied to clipboard

Having trouble getting started

Open tg970 opened this issue 2 years ago • 5 comments

Hi guys, this project appears to be a wonderful solution for validating our contracts on live APIs from OAS files. We're excited to test it out but having trouble getting started. Would it be possible to post a brief instruction list for how to use, or set up, our test suites? I can't seem to find the right combination of variables and actions to get the tests generated and ran. Any help you can provide is very much appreciated - thanks in advance!!

tg970 avatar Jul 22 '22 15:07 tg970

Same here. Any chance of getting some more detailed setup instructions @allenheltondev?

fmarkwong avatar Jan 05 '23 00:01 fmarkwong

Hi, same here. I'm looking for a way to generate my tests, but I couldn't find the explanation in the video or the readme. Thanks

msilesgap avatar Feb 06 '23 17:02 msilesgap

I am happy to help here. Can you all please tell me what you are seeing when you attempt to run it? What are the docs not providing to you and/or what is unclear?

allenheltondev avatar Feb 06 '23 18:02 allenheltondev

Hi @allenheltondev, I think I find what I need from this video, I think it's related https://www.postman.com/events/intergalactic/api-contract-testing/

but currently when running the collection (Generator) Contract Tests - OAS3 I'm getting the following error in the terminal TypeError: Cannot read properties of null (reading 'replace')

That happens in the Contract Tests folder, Get Test Request

msilesgap avatar Feb 08 '23 21:02 msilesgap

but currently when running the collection (Generator) Contract Tests - OAS3 I'm getting the following error in the terminal TypeError: Cannot read properties of null (reading 'replace')

I was having the same issue but adding the the x-api-key header and creating a new API Key to use fixed it for me. You might have to add it to every endpoint though.

npaganini avatar Apr 17 '23 20:04 npaganini