Part 5 - Important JSON Path Expressions - API Testing Interview Questions & Answers
Вставка
- Опубліковано 8 вер 2022
- Part 5 - Important JSON Path Expressions - API Testing Interview Questions & Answers
Document download link : academy.naveenautomationlabs....
Schedule a meeting in case of any queries/guidance/counselling:
calendly.com/naveenautomation...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
ua-cam.com/users/Naveen%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/9FrG-KzGlvxjNmQ1
Naveen AutomationLabs Paid Courses:
GIT Hub Course:
naveenautomationlabs.com/gitc...
Java & Selenium:
naveenautomationlabs.com/sele...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomationlabs.com/manu... - Наука та технологія
JSON Path Expressions practice urls:
jsonpath.herokuapp.com/
www.site24x7.com/tools/json-path-evaluator.html
jsonpath.com/
New Learning as always when I see your Videos. Thanks!!!
Naveen hats off to you for doing great job I appreciate your clear concert each and every topics way of teaching and presentation it’s mind blowing thanks hashem
Thank you Naveen!!!
The tricky part is unlike ui xpaths where you can go to parent node by /.. here in jsonpath it’s not possible.
However there is some work around where you can utilise query string.
Naveen please do create a video for doing that scenario that will be real time challenge when using jsonpath.
Thanks for the video . Can you please prepare one video in where to use practically in rest assured Automation
very good video for beginner
Document download link : academy.naveenautomationlabs.com/courses/apiquestions-63884896e4b04c9a8baa268b
very useful
Hello Naveen, I am not able to download the interview questions.Can you please help me? It keeps showing 404 error.
Hi Naveen, I am not able to download the interview questions.Can you please help me?
Thanks a Lot.It is of great help.
If we have print the jsonObject of the book whose id=2715 how to handle that scenario please
$..book.[?(@.id==2715)]
Hi Naveen, please I can I join your automation class from the start to learn?
Is playwright series is ended? I hope two more videos remains.???
While coding , please provide syntax to use this
Hi Naveen,
In recent interview I got asked:
How will I automate 3 api components in which 2nd component is dependent on third component’s response and that is not ready yet. What will be the answer to this?
In a situation where you need to automate tests for API components, but one of the components isn't ready yet, you have several options:
Mock the third component's response: If you know what the response of the third component will look like, you can create a mock of that response. This allows you to develop and test the second component as if the third component were already completed. There are many libraries and tools available for mocking APIs, such as WireMock, Mockito for Java, or Nock for Node.js.
Use Contract Testing: This is a technique for checking that services (such as an API provider and a client) can communicate with each other. For instance, Pact provides this type of testing to guarantee that services can communicate with each other in the way they expect.
Create a stub for the third component: Similar to mocking, but instead of just returning a pre-defined response, a stub could also contain some logic. It could simulate the behavior of the third component.
Use Feature Flags or Toggles: These allow the parts of the application that are not ready yet to be hidden or deactivated. This way, you can test the system without the third component, and when it is ready, you just enable the feature flag.
Test the components in isolation: Instead of testing them together, test what you can now, and test the interaction later when all components are ready.
Once the third component is ready, you should replace the mock or stub with the actual component and re-run your tests to ensure everything works as expected. This strategy allows you to continue developing and testing other parts of the system without being blocked by a component that's not yet ready.
Do you have API automation course including framework, CI/CD, GIT etc.
Yes you can take the paid course for this api syllabus. naveenautomationlabs.com/api-manual-automation-testing-regular-batch/
Hi Naveen,
when I try to use this expression "
List abc = vdifstatus.getList("$[?(@.status=='active' &&@.gender=='male')].name");"
it is failing with the error
"java.lang.IllegalArgumentException: Invalid JSON expression:
Script1.groovy: 1: Unexpected input: ' $[?' @ line 1, column 29.
$[?(@.status=='active' &&@.gender=='male')].name
^
1 error"
My Question comes hear-- when I run in JSON path online validator it is working fine but the same when use in script (i.e. RestAssured) it is throwing an error.