Cypress.io: How to mock API response

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 35

  • @666aladdin
    @666aladdin 10 หลายเดือนก่อน

    i bought the course on Udemy . Its verrry well done . highly recommend it

  • @ravibx
    @ravibx 2 ปีที่แล้ว

    Literally you saved my a**. Excellent contents.

  • @faizalshaikh6559
    @faizalshaikh6559 4 ปีที่แล้ว +1

    hi i have a question, Can i use dynamic data in json reponse, for example few paramters are not fixed for me,.

    • @artembondar6577
      @artembondar6577  4 ปีที่แล้ว

      Yes, you can update your mock object with the data you need and set it as a route response again

  • @RoshanSingh-wb2pw
    @RoshanSingh-wb2pw 2 ปีที่แล้ว +1

    very useful. thanks artem

  • @tanner8291
    @tanner8291 2 ปีที่แล้ว

    This is going to help me do my current ticket this sprint at work 🤣

  • @shashankhegde1454
    @shashankhegde1454 4 ปีที่แล้ว

    How to set up this conduit application in my local machine

  • @martinanguiano3353
    @martinanguiano3353 ปีที่แล้ว

    How do you created your local server from scratch?, Ive seen many examples with locals, but none with comercials, can you do 1?

    • @artembondar6577
      @artembondar6577  ปีที่แล้ว

      That's an Angular application. Any angular app can be running on localhost

  • @kjleshem
    @kjleshem 4 ปีที่แล้ว +1

    thanks u realy make it simple for understanding

  • @danr4826
    @danr4826 3 ปีที่แล้ว

    @Artjem Bondar
    I've cloned the github repo ngx-cypress-test that's used in your udemy code and confirmed node js, npm and git are installed correctly. When I try to run npm install on the root folder I keep getting several errors such as:
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! While resolving: ngx-admin@4.0.1
    npm ERR! Found: @angular/common@8.2.14
    npm ERR! node_modules/@angular/common
    npm ERR! @angular/common@"^8.0.0" from the root project
    Any ideas what I could be doing wrong? Have been struggling with this, keeping me from working through some exercises.

  • @JhoanGarciaing
    @JhoanGarciaing 4 ปีที่แล้ว

    excellent, thank you very much, I have a question, is it possible to mockup a websocket?

    • @artembondar6577
      @artembondar6577  4 ปีที่แล้ว

      I am not sure. Cypress capability of mocking is limited or XHR calls

    • @Kpizzle1289
      @Kpizzle1289 4 ปีที่แล้ว

      @@artembondar6577 They've just releases route2, which is experimental, which allows you to mock Fetch and other request types now.

  • @firuzakasirova8303
    @firuzakasirova8303 3 ปีที่แล้ว

    Hello Artem, may I ask you inside your course you have Mocking API response , but may be you can to show us this process with Cypress BDD Mocking API response, I think your source looks good, but need more information with Cypress BDD mocking

  • @slavonnord3210
    @slavonnord3210 2 ปีที่แล้ว

    Артём подскажите,можно ли создать тесты вне папки integration?

  • @natalyruda8275
    @natalyruda8275 ปีที่แล้ว

    Привет Артем. Подскажите пожалуйста как можно получить полный курс что на платформе Юдеми на русском языке.

    • @artembondar6577
      @artembondar6577  ปีที่แล้ว

      Никак. Курс доступен только на английском

  • @gdd546
    @gdd546 3 ปีที่แล้ว

    Will there be a course on just API automation with cypress? Courses I've seen have just a small section on API testing with all the focus on UI automation. I really want to learn more on how to develop and maintain an API framework using cypress, advanced tests, real world examples, integrating excel or some form of dynamic data for requests, cucumber, CI tool etc. I have seen many people and companies are now moving towards API automation using cypress

    • @artembondar6577
      @artembondar6577  3 ปีที่แล้ว

      Cypress is not a framework for API automation so I don't recommend to do it. Cypress is great for UI functional automation and API capability is a useful feature that helps to manipulate data or set up test data for your test. If you need API testing, check the frameworks that are designed for it like Karate DSL or RestAssured.

  • @arunasavyasachi5617
    @arunasavyasachi5617 8 หลายเดือนก่อน

    Thank you so much!

  • @wilsonafs
    @wilsonafs 3 ปีที่แล้ว +1

    Thanks bro, this content is excellent

  • @nafisrahman5791
    @nafisrahman5791 2 ปีที่แล้ว

    why did he have to change from fixtures:tags.json into fixture:tag.json? the folder was called fixtures as far as I can see.

    • @mohammadmutaib2515
      @mohammadmutaib2515 ปีที่แล้ว

      The folder name is fixtures only, its the keyword within the intercept command that should read fixture.

  • @acthilina
    @acthilina 4 ปีที่แล้ว +1

    Amazing. Thank you

  • @Johnny-pt5jb
    @Johnny-pt5jb 4 ปีที่แล้ว

    Thanks for the excellent video. Can you make one for bypassing login UI?

    • @artembondar6577
      @artembondar6577  4 ปีที่แล้ว

      you can find this video in my Udemy class

  • @ViktoriaLukyanchuk
    @ViktoriaLukyanchuk 3 ปีที่แล้ว +1

    спассссибо!

  • @nadim.a4351
    @nadim.a4351 2 ปีที่แล้ว

    outdated