Комментарии:
Good video, however, I think it's very important to get your tests to fail before assuming the positive test is enough.
ОтветитьThanks for info which you have shared and very well explained
ОтветитьHi,
All your videos are very helpful..
Can we compare the collection response with CSV data file?
I want to compare string from response with CSV data e.g.
this is my response
{ "testId": 11,
"testCode": "BBHYMUNI",
"testName": "API test postman user",
}
{
} ........
I have CSV file with testId,testCode and testName
How I can compare the response for multiple testname?
I am able to compare testCode with following SNIPPET but testName is not working with same code
var jsonData = pm.response.json();
pm.test("Your test name", function () {
pm.expect(jsonData[data.index].testCode).to.eql(data.testCode);
})
So please suggest how can I compare string
Thank you for making API testing look so simple. In real world testing is this what we do when we say API testing or is there more to it, I mean advanced ways of testing the API?
ОтветитьCould you please take any web application and show some real time test cases or scenarios...also can you plz tell if this tutorial we can explain in interviews
ОтветитьHow to solve Internal server error
Ответитьcan we import these test cases in word or excel file?
ОтветитьGood one.
ОтветитьVery Nicely and with simplicity explained the use of Tests tab of postman, Liked it!! --Keep Rocking!
ОтветитьHi ,When I using tiny schema valdation then getting error -ReferenceError: jsonData is not defined
ОтветитьHello, I am new to api testing and I tried test cases. I am getting this format when I click on 'Status Code is 200' from the snippet - pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
But you were getting completely different code snippet. Can you please help me on this how you got yours.
How to sync postman and alm?
ОтветитьIs there any way to validate x-total-count header value through code snippet? Which snippet should we use for header validations?
ОтветитьI am getting error message jsonData is undefined and my snippet is different from the one you show.
Snippet:
var schema = {
"items": {
"type": "boolean"
}
};
var data1 = [true, false];
var data2 = [true, 123];
pm.test('Schema is valid', function() {
pm.expect(tv4.validate(data1, schema)).to.be.true;
pm.expect(tv4.validate(data2, schema)).to.be.true;
});
Your awesome. I’m a beginner and was struggling to write test condition. Your video clarified all my doubts. Great job bro.
Ответитьsimply superb.
ОтветитьVery informative video!! Thanks!!
ОтветитьThis was without a doubt one of the best video's I've seen on Postman... Subbing!
ОтветитьI am unable to connect MS SQL database with script in free version of POSTMAN. please suggest
Ответить👏 good explanation for beginners
Ответитьany idea about POST or PUT. how do we pass the parameter at run time? put more lite on code snippet
ОтветитьAt the run time which environment it will pick. can we make the environment dynamic at run time?
ОтветитьHow to open console in windown 10 ?
ОтветитьJust Awesome
ОтветитьHi Pramod, thanks for uploading this tutorial. This was very helpful to me.
Quick question...
In the portion where you explained how to test the value of a particular key in the response body.
tests["User ID should be "] = jsonData.userId === 1;
For such a test, say, if we have a lot of values to be validated. Then it'll be difficult to compare with a hard-coded value.
So my question is, is it possible for me to do this comparison from some file (csv, txt etc) where I can store the values and provide the path to the file? Something like,
tests["User ID should be "] = jsonData.userId === <datafile>.<value>;
Appreciate your help.
Hi Pramod...This is really very helpful.
But I want to know more about the writing the test cases as I am doing API testing first time.
i want to learn how to write test cases .
very nice !!!
Ответитьhi. do you have lessons about newman? cli companion for postman
ОтветитьReally grateful for the uploads,as not many tutorials are available on Postman Tests !! Crisp and clear.
ОтветитьHi Pramod...This is really very helpful.
But I want to know more about the writing the test cases as I am doing API testing first time.
Please share more videos on advanced test case design.
please make next videos please
Ответитьhello boss you are just awesome. Can I please get your contact details?? need help.I started using postman and working on api project and doing api testing 1st time and get confused how to write test cases. kind regards mahesh joshi
Ответить