Test with Postman and Cypress
Joyce welcomes Dr. Gleb Bahmutov, PhD, Senior Director of Engineering at Mercari to this week's stream. Follow along, as they learn how to test APIs using Postman and test the frontend using Cypress. Previously the VP of Engineering at Cypress, Gleb is now one of the foremost instructors on Cypress technology.
0:00 Start
1:09 Intro
7:16 ICYMI
8:30 What are we doing today?
13:30 Fork the example application to write API and front-end tests
14:50 Run the example application
17:58 Use Interceptor to proxy network calls from browser to Postman
22:10 Write API tests in Postman
32:53 Run API tests in Postman
34:45 Install Cypress and configure baseUrl
37:45 Overview of spec.js file in cypress/integration/ directory
39:35 Use Cypress iframe command log to suggest user actions to replicate
42:00 Write Chai.js assertion based on previous user actions
52:25 Run Postman API tests as part of continuous integration pipeline using CircleCI
56:23 Configure CircleCI pipeline with Newman orb and running application locally
1:07:50 Run Cypress front-end tests on CircleCI and store artifacts
1:16:14 Debug Newman orb configuration settings in CircleCI (unsuccessfully)
1:20:40 Importance of artifacts for ongoing visibility and debugging during testing
1:23:00 Wrap up and shoutouts
Resources
- Example application code: https://github.com/bahmutov/live-example
- Example API tests: https://www.postman.com/devrel/workspace/devrel-re-public/collection/13191452-d7a22357-0bc9-4968-bc44-0060537d8d0e
- CircleCI Newman orb: https://circleci.com/developer/orbs/orb/postman/newman
- CircleCI Cypress orb: https://circleci.com/developer/orbs/orb/cypress-io/cypress
- Interceptor docs: https://learning.postman.com/docs/sending-requests/capturing-request-data/interceptor/
Видео Test with Postman and Cypress канала Postman
0:00 Start
1:09 Intro
7:16 ICYMI
8:30 What are we doing today?
13:30 Fork the example application to write API and front-end tests
14:50 Run the example application
17:58 Use Interceptor to proxy network calls from browser to Postman
22:10 Write API tests in Postman
32:53 Run API tests in Postman
34:45 Install Cypress and configure baseUrl
37:45 Overview of spec.js file in cypress/integration/ directory
39:35 Use Cypress iframe command log to suggest user actions to replicate
42:00 Write Chai.js assertion based on previous user actions
52:25 Run Postman API tests as part of continuous integration pipeline using CircleCI
56:23 Configure CircleCI pipeline with Newman orb and running application locally
1:07:50 Run Cypress front-end tests on CircleCI and store artifacts
1:16:14 Debug Newman orb configuration settings in CircleCI (unsuccessfully)
1:20:40 Importance of artifacts for ongoing visibility and debugging during testing
1:23:00 Wrap up and shoutouts
Resources
- Example application code: https://github.com/bahmutov/live-example
- Example API tests: https://www.postman.com/devrel/workspace/devrel-re-public/collection/13191452-d7a22357-0bc9-4968-bc44-0060537d8d0e
- CircleCI Newman orb: https://circleci.com/developer/orbs/orb/postman/newman
- CircleCI Cypress orb: https://circleci.com/developer/orbs/orb/cypress-io/cypress
- Interceptor docs: https://learning.postman.com/docs/sending-requests/capturing-request-data/interceptor/
Видео Test with Postman and Cypress канала Postman
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How to Contribute to Postman QuickstartsDebugging Collection Runs | Postman Level UpCollaboration and Governance for API Teams | Postman IntergalacticAPIs Supporting Athletes @specialolympics with Kendra Appleheimer | Postman #specialolympicsUnboxing What’s New in Postman v10 | Postman IntergalacticPostman Student Programs - Accelerate Your Software Development JourneyMoving Elements in Postman | Postman Level UpPostman Origin StoryMeta Verified, TikTok API, 4 Day Work Week and Starbucks Unionization | Breaking Changes RoundtablePlaying Monopoly With Live Nation & Ticketmaster #shortsExploring the Public APIs and the Public API NetworkExploring Zoom REST & GraphQL APIs With PostmanAdventure Game with WebSocketsEnable Two-Factor AuthenticationMy Journey with the Postman Student Community | Postman Student SummitHear Employee Love Working at PostmanEmulators as an Emerging Best Practice for API Providers: Steve Sfartz, Cisco DevNet | POST/CON 2019Discovering APIs | Postman EnterpriseExplore and Visualize data with the Withings APIDynamically create custom environments with codeAPI Governance | The Exploratory