Information Systems vs. Information Technology (IS vs. IT)
January 21, 2025
Article
Recommended experience
Intermediate level
Basic JavaScript skills.
Basic Cypress knowledge, including writing and running test cases.
Recommended experience
Intermediate level
Basic JavaScript skills.
Basic Cypress knowledge, including writing and running test cases.
Set up Cypress for end-to-end testing.
Implement data-driven testing with JSON files and random test data selection.
Intercept and mock API responses to simulate backend behaviors.
Add to your LinkedIn profile
February 2025
Only available on desktop
In this 1-hour project, you will build a Cypress test suite for data-driven testing by injecting JSON test data and intercepting API requests to mock responses. This enhances automation by making tests flexible and scalable. You will set up a Cypress project, configure JSON files, use the data to fill input forms, implement data-driven tests, and mock API responses to validate application behavior with real-world data. By completing this project, you will improve your test automation skills. This project is ideal for testers with basic JavaScript and Cypress knowledge. You should have Node.js, npm, and a code editor like VS Code.
In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:
Learners will install and set up Cypress, create JSON files for test data, and store them properly. These files will be used to dynamically inject data into test cases, enabling data-driven testing.
Learners will write a Cypress test to retrieve data from a JSON file, input it into a web form, and assert that the correct values are used during execution.
Learners will implement a method to randomly select a JSON file from a directory and use its data for testing, ensuring diverse test coverage with varying input values.
Learners will use Cypress to intercept API requests, handle delays, and inspect responses to verify that the application processes and handles API data correctly .
Learners will intercept and mock API requests in Cypress, modify responses, and validate application behavior to ensure it processes data correctly with mocked APIs .
Basic JavaScript skills.
Basic Cypress knowledge, including writing and running test cases.
The Coursera Project Network is a select group of instructors who have demonstrated expertise in specific tools or skills through their industry experience or academic backgrounds in the topics of their projects. If you're interested in becoming a project instructor and creating Guided Projects to help millions of learners around the world, please apply today at teach.coursera.org.
Skill-based, hands-on learning
Practice new skills by completing job-related tasks.
Expert guidance
Follow along with pre-recorded videos from experts using a unique side-by-side interface.
No downloads or installation required
Access the tools and resources you need in a pre-configured cloud workspace.
Available only on desktop
This Guided Project is designed for laptops or desktop computers with a reliable Internet connection, not mobile devices.
Coursera Project Network
Course
Coursera Project Network
Course
Coursera Project Network
Course
LearnQuest
Specialization
Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Earn a degree from world-class universities - 100% online
Upskill your employees to excel in the digital economy
By purchasing a Guided Project, you'll get everything you need to complete the Guided Project including access to a cloud desktop workspace through your web browser that contains the files and software you need to get started, plus step-by-step video instruction from a subject matter expert.
Because your workspace contains a cloud desktop that is sized for a laptop or desktop computer, Guided Projects are not available on your mobile device.
Guided Project instructors are subject matter experts who have experience in the skill, tool or domain of their project and are passionate about sharing their knowledge to impact millions of learners around the world.
You can download and keep any of your created files from the Guided Project. To do so, you can use the “File Browser” feature while you are accessing your cloud desktop.
Guided Projects are not eligible for refunds. See our full refund policy.
Financial aid is not available for Guided Projects.
Auditing is not available for Guided Projects.
At the top of the page, you can press on the experience level for this Guided Project to view any knowledge prerequisites. For every level of Guided Project, your instructor will walk you through step-by-step.
Yes, everything you need to complete your Guided Project will be available in a cloud desktop that is available in your browser.
You'll learn by doing through completing tasks in a split-screen environment directly in your browser. On the left side of the screen, you'll complete the task in your workspace. On the right side of the screen, you'll watch an instructor walk you through the project, step-by-step.