#8. Read JSON From File| Add, Remove & Change Value of Field| Karate Framework - API Testing|

preview_player
Показать описание
#karateframework #karateapi #apitesting #testing #automationtesting #java #api #tester
We will learn the below topics

1. How to read JSON payload from a JSON file?
2. How to add a new field in JSON?
3. How to remove a key from JSON?
4. how to change the value of a key in JSON?
5. How to add keys with nested JSON Object and Arrays?

Рекомендации по теме
Комментарии
Автор

Nice Brother, Expecting more videos on response validations like Including conditional logic to execute steps in feature file, using javascript for assertions

sureshn
Автор

Hi Amod, how can we read xml payload from an external xml file and how can we add, remove and update value of a field?

Poojakumari-iobq
Автор

great videos man. I have one question
How to conditionally set the new field in your JSON using eval if or any conditional operator and karate.set

friendonymous
Автор

Thanks Amod for the lovely video. Have question on execution. If I have 5 steps validation and step 2 fails, karate does skip the remaining steps. Is there anyway to continue the flow even one of the steps fail? ( like soft assertion and hard assertion) Thanks

id
Автор

Nice one, Can we also have a read procedure for following scenarios.
Lets say i have a GET Route in another feature file from the GET response I want to capture the dynamic value for example the attribute is 'location'. So, In my current feature file How can i call and pass it to a POST as a request the location value?

raghuprasad