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...
  • Наука та технологія

КОМЕНТАРІ • 21

  • @naveenautomationlabs
    @naveenautomationlabs  Рік тому +4

    JSON Path Expressions practice urls:
    jsonpath.herokuapp.com/
    www.site24x7.com/tools/json-path-evaluator.html
    jsonpath.com/

  • @aayushpatel3360
    @aayushpatel3360 Рік тому

    New Learning as always when I see your Videos. Thanks!!!

  • @mohammedhashem2930
    @mohammedhashem2930 Рік тому

    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

  • @nurid5413
    @nurid5413 Рік тому

    Thank you Naveen!!!

  • @poacher2865
    @poacher2865 Рік тому +1

    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.

  • @bachudheeraj955
    @bachudheeraj955 Рік тому

    Thanks for the video . Can you please prepare one video in where to use practically in rest assured Automation

  • @anantabuddha4426
    @anantabuddha4426 5 місяців тому

    very good video for beginner

  • @naveenautomationlabs
    @naveenautomationlabs  Рік тому

    Document download link : academy.naveenautomationlabs.com/courses/apiquestions-63884896e4b04c9a8baa268b

  • @user-be5mq7oy3w
    @user-be5mq7oy3w 4 місяці тому

    very useful

  • @jay7606
    @jay7606 Рік тому

    Hello Naveen, I am not able to download the interview questions.Can you please help me? It keeps showing 404 error.

  • @poojasarwate5426
    @poojasarwate5426 Рік тому

    Hi Naveen, I am not able to download the interview questions.Can you please help me?

  • @jayantamandal9732
    @jayantamandal9732 Рік тому

    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

    • @Dk32285
      @Dk32285 Рік тому

      $..book.[?(@.id==2715)]

  • @hafusatadediran3337
    @hafusatadediran3337 Рік тому

    Hi Naveen, please I can I join your automation class from the start to learn?

  • @surreshr8916
    @surreshr8916 Рік тому

    Is playwright series is ended? I hope two more videos remains.???

  • @sivakumarmummidi6730
    @sivakumarmummidi6730 Рік тому

    While coding , please provide syntax to use this

  • @dreamsreality8319
    @dreamsreality8319 Рік тому

    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?

    • @naveenautomationlabs
      @naveenautomationlabs  Рік тому +4

      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.

  • @FactGuru2108
    @FactGuru2108 11 місяців тому

    Do you have API automation course including framework, CI/CD, GIT etc.

    • @naveenautomationlabs
      @naveenautomationlabs  11 місяців тому

      Yes you can take the paid course for this api syllabus. naveenautomationlabs.com/api-manual-automation-testing-regular-batch/

  • @yuvarajchandrasekhar2149
    @yuvarajchandrasekhar2149 5 місяців тому

    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.