thanks! your video pointed me to where my json schema was messed up. dumb mistake on my part just needed to walk through it and your video highlighted right where my mistake was.
Awesome information but more focus on zooming part in next video thanks :) Also it will be great if you show same validation in rest assured in another video.
How do you validate the actual schema though? Like lets say the developer set a field as number when it should be string and no one caught it. How can QA catch it?
do we always need to hit our service via postman to validate it against json schema? for that our service should be working end to end always. or we can just use json request response and can validate it against json schema with out hitting our service?
Hi, the schema of my response body is dynamic i.e... Sometimes response body is {"address": xyz street, "zip code": 12345, "city": ABCD}. Sometimes it's {"address": xyz street, "zip code": 12345}. How can i code"required" in the Tests in such a scenario. Thanks
Hi I have one sample json file which is around 400 line using java program developed avro schema and registered it in our company source it generated endpoint url..using that validatig in postman with the sample json data file I am getting following error can any one please help me out this is the first time I am working on this schema.. I need help ASAP "error_code": 42203, "message": "Conversion of JSON to Avro failed: Failed to convert JSON to Avro: Expected field name not found: CostCentreReplicationBulkRequest" }
Hi, please let me know if we can form the json path by referring values in data file .. for example: var jsonData = pm.response.json(); pm.test("Enterprise of servers is an object", () => { pm.expect(jsonData.Result.enterprises.siebel).to.be.an("object"); }); Here i want the value siebel to come from datafile in json format (added to collection runner)
I am able to implement what you have explained in the video............but this logic is not checking for case sensitivity......for eg in the schema if I am defining a field in camel casing but the response which is coming there the field is in lower caps then it should error out.........but it is not erroring out.......can you please help me here in implementing case sensitivity?
Is there any way to see what caused the failure . Like for example , in failure I want a message to be displayed that the failure is due to 'id' expected string , actual data type is number
As far i remember library in postman like tv4 validator gives you these kind of errors, or you can write some custom message after assertion that will also serve the purpose
Hi, I have 790 lines of JSON Schema and I am getting an error in the POSTMAN console as "Invalid Schema: Invalid type: null (expected string)" It is very difficult to find out for which line the error is coming, so Is there any way to get it?
Hi, i want to validate json via logic apps what schema to pass, lets say i dont want to accept any schema that miss one of the field like name, How to achieve this
I'm unable to cause my test to fail. I've tried changing the property name in the schema and also purposely changing the call so that it will not return 200. In both cases, the test still passes. Any suggestions?
thanks! your video pointed me to where my json schema was messed up. dumb mistake on my part just needed to walk through it and your video highlighted right where my mistake was.
Thanks for the awesome feedback
I liked the Video and Thanks for making this it helps me a lot!!
but please give in updated version!
Awesome information but more focus on zooming part in next video thanks :)
Also it will be great if you show same validation in rest assured in another video.
Great Simple explanation json schema validation
Кто от Ксендзова? Привеет)) Автору мерси за видео, частично помогло
Thanks for your work! Well done!
How do you validate the actual schema though? Like lets say the developer set a field as number when it should be string and no one caught it. How can QA catch it?
Thanks for easy explanation, it really helped. I tired and getting error {} ,
Nice Video. Thanks for sharing.
Thanks for the awesome feedback ❤️ it
do we always need to hit our service via postman to validate it against json schema? for that our service should be working end to end always. or we can just use json request response and can validate it against json schema with out hitting our service?
Really awesome video. Thanks dude for sharing this info :)
it is useful to me. Thanks lots
Glad you liked it, Do Share with your Friends
Thanks for insightful video session. Kudos.
Thanks for this. You are so kind sharing this content!
Glad you enjoyed it!
Hi, the schema of my response body is dynamic i.e... Sometimes response body is
{"address": xyz street, "zip code": 12345, "city": ABCD}.
Sometimes it's
{"address": xyz street, "zip code": 12345}.
How can i code"required" in the Tests in such a scenario. Thanks
There was an error in evaluating the test script: SyntaxError: Unexpected token ':' schma valiation in postman
Schema is hardcoded in test script. Can we save the schema in external Json file and read that file in test scripts?
very usefull video !
Thanks a lot for the feedback, shot us email at contact@thetestingacademy.com
Thank you for this
My pleasure!
Must Elaborate more regarding schema
Check more video for advance stuff
There is error in my generated JSON schema that I generated from the tool. Could you please help me out ? Many thanks!
Hi I have one sample json file which is around 400 line using java program developed avro schema and registered it in our company source it generated endpoint url..using that validatig in postman with the sample json data file I am getting following error can any one please help me out this is the first time I am working on this schema.. I need help ASAP
"error_code": 42203,
"message": "Conversion of JSON to Avro failed: Failed to convert JSON to Avro: Expected field name not found: CostCentreReplicationBulkRequest"
}
Hi ,
How to send Json data for post request with Invalid Escape character (\) in string like Ptl
ao.s in postaman
Will upload soon
Hi i have a issue, not able to validate with hyphen eg - "maxmemory-reserved": "200", i m etting error as reserved not defined
pm.expect(jsonData.value[indexProject].properties.redisConfiguration.maxmemory-reserved).equal(pm.environment.get("xxxx"));
How to validate no of website links sending as a file in json schema and validate??
Hi, please let me know if we can form the json path by referring values in data file .. for example:
var jsonData = pm.response.json();
pm.test("Enterprise of servers is an object", () => {
pm.expect(jsonData.Result.enterprises.siebel).to.be.an("object");
});
Here i want the value siebel to come from datafile in json format (added to collection runner)
I have similar query. Did you get any solution?
I am able to implement what you have explained in the video............but this logic is not checking for case sensitivity......for eg in the schema if I am defining a field in camel casing but the response which is coming there the field is in lower caps then it should error out.........but it is not erroring out.......can you please help me here in implementing case sensitivity?
Email me at contact@thetestingacademy.com
The Testing Academy I have already emailed yesterday......please take a look
@@TheTestingAcademy I have dropped 2 mails to you and also listed out the issue here but still no reply from your end.........please take a look
It'd be good if you "Zoomin" on important areas , the screen is too tiny even for my laptop.
Try HD mode
Sir how can we get the body from the payload please explain that in one video.
can you teach request chaning in api .
Content is good, it can be better if the font is large, specially the scripting area, it's hardly readable.
Releasing a new amd more advance video on jaon schema, thanks for the awesome feedback
Is there any way to see what caused the failure . Like for example , in failure I want a message to be displayed that the failure is due to 'id' expected string , actual data type is number
As far i remember library in postman like tv4 validator gives you these kind of errors, or you can write some custom message after assertion that will also serve the purpose
How to validate request/response schema validation based on Swagger/Open API
Can you provide the test script which you written
Nice tutorial...please make font size big..
Thanks for the awesome feedback ❤️
Hi, I have 790 lines of JSON Schema and I am getting an error in the POSTMAN console as "Invalid Schema: Invalid type: null (expected string)"
It is very difficult to find out for which line the error is coming, so Is there any way to get it?
There are two json schema validators ajv and tiny validators, try ajv
@@TheTestingAcademy Thanks Its is working but still, it is not showing the line number.
Thank you brother
Hi, i want to validate json via logic apps what schema to pass, lets say i dont want to accept any schema that miss one of the field like name,
How to achieve this
You can use the required in the schema
How will we know at what line it is failing ?
Can you make video for schema validations for input request
Use same concept in pre-request and then if validation is pass then save it to env variable and import to postman Body.
It's really helpful. Can u a video when collection is checkout from git . Basically how to use git repo with postman collection
Thats an amazing idea, will try to do it.
I'm unable to cause my test to fail. I've tried changing the property name in the schema and also purposely changing the call so that it will not return 200. In both cases, the test still passes. Any suggestions?
Can you contact me on Facebook, I will help m.me/scrolltest
How can I do schema validation when response body is dynamic? Please help
You need to check what all fields are dynamic, soke structure will be statix which you xan Validate
Make video with Apidog.
Json schema validation UI option selection got changed ,I am trying my end Tiny validation
Its Same
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;
});
I want to automate this process in java, can anyone suggest?
Same process, just find the correct Libraries
Hi, My test is getting failed, Could you please help me out..
Mail me at contact@thetestingacademy.com
720 p par bhi videos mein clarity nahi hai....
Font is very small ,unable to follow
Use HD feature
My test is failing
Send me the code at contact@thetestingacademy.com
👍🦸