Hot answers tagged

3

Don't focus too much on tooling. Tools will go out of fashion. Perhaps not this year, not in 2 years, but definitely a few times during your career life (provided you are not at the end of it, but have, say, 5+ year ahead). Here are some points along which you might want to explore: what an API is and what we're trying to achieve with it what problems web ...


2

I need to check if the “dna” contains at least 10 “Ngg” sites. That means if there are a minimum of 10 [acgt]gg sites (agg or cgg or tgg or ggg). How do I write a test for that? pm.test('length validation', function () { pm.expect((pm.response.json().dna.match(/[acgt]gg/g) || []).length).to.be.greaterThan(10) }); Is the following test for validating ...


2

I need to check if the “dna” contains at least 10 “Ngg” sites. That means if there are a minimum of 10 [acgt]gg sites (agg or cgg or tgg or ggg). How do I write a test for that? You need to first find all such occurences: resultArray = [...dna.matchAll(/[acgt]gg/g)] then you need to assert the length: pm.test('Number of occurences if equal or greater than ...


2

The answer depends on many other factors including the infrastructure. Even POST requests can create unwanted changes in production DB so GET is mostly the only safe method, investigate if this is the case for your product. Do you have a staging server where you do rest of the use cases (if you plan to use only POST and GET in production) What is your team ...


1

https://explore.postman.com/templates/1692/working-with-graphql This is a postman example , just click try with postman and it opens up postman with collection and everything set up You add test scripts as same like you do for rest api, there is no difference:


1

Update: Postman v8 is released just now with the fix : https://www.postman.com/downloads/ Now you can see the same web UI in postman desktop app also So you can do both question 1 and 2 through native app


1

I think there is an issue with postman native app : i tried saving to collection and the request is not showing up in collection but if i use postman web it shows correctly https://identity.getpostman.com/login Goto this dash board and check the collection , i will raise a bug Update Raised a bug: https://github.com/postmanlabs/postman-app-support/issues/...


Only top voted, non community-wiki answers of a minimum length are eligible