Controlling App Behavior in Cypress with Spies, Stubs, and Clocks
Learn to isolate your tests, mock network responses, and manipulate time in Cypress to build reliable and deterministic end-to-end test suites.
-
💬
ผู้สอน AI
ถามเกี่ยวกับบทเรียนใดก็ได้ แล้วรับคำตอบที่ชัดเจนทันที ทุกเมื่อ -
🕐
เริ่มเมื่อไรก็ได้
ไม่มีตารางหรือเดดไลน์ — เรียนตามจังหวะของคุณ เมื่อไรก็ได้ -
🌐
เป็นภาษาไทย
บทเรียน แบบฝึกหัด และใบรับรอง — ทั้งหมดเป็นภาษาของคุณอย่างครบถ้วน
เกี่ยวกับคอร์สนี้
Writing reliable end-to-end tests often requires controlling external dependencies, network latency, and time-sensitive application behavior. This text-based course guides you through the foundational concepts of test isolation in Cypress, teaching you how to prevent flaky tests by mastering mock data and timing control.
You will progress from understanding core testing terminology to actively manipulating application behavior. By reading clear explanations and studying real-world code snippets, you will gain the skills to mock API responses, spy on function calls, and control JavaScript clocks to test time-dependent features with absolute confidence.
What you'll learn:
- Understand the core differences between spies, stubs, and mocks in test automation
- Implement stubs to force specific code paths and control application behavior
- Track function execution and verify arguments using Cypress spies
- Manipulate application time and test delayed actions using Cypress clock commands
- Combine stubs with network interception patterns for robust integration testing
- Practice writing clean, deterministic test scripts that avoid common timing pitfalls
The course begins with essential definitions of test doubles, ensuring you grasp the fundamentals before diving into implementation. You will then progress through practical, written scenarios that demonstrate how to intercept network traffic, mock complex application states, and control time-sensitive UI components.
This course is designed for QA engineers, frontend developers, and beginners to test automation who want to write more stable Cypress tests. No advanced testing experience is required, though a basic familiarity with JavaScript and Cypress fundamentals will help you get the most out of the material.
Start writing deterministic, flake-free Cypress tests today.
สิ่งที่คุณจะได้รับ
-
📜
ใบประกาศนียบัตร
เพิ่มในโปรไฟล์ LinkedIn ของคุณ -
💬
ติวเตอร์ AI ส่วนตัว
ติดขัดในบทเรียน? ถามติวเตอร์ในตัวของคุณได้ทุกอย่าง ทุกเวลา -
🎧
รวมเวอร์ชันเสียง
เรียนได้ทุกที่ ไม่ต้องดูจอ -
♾️
เข้าถึงตลอดชีพ
กลับมาเรียนได้ตลอด ไม่มีหมดอายุ -
📱
โทรศัพท์หรือคอมพิวเตอร์
ใช้งานได้ทุกที่ ทุกอุปกรณ์ -
💸
คืนเงิน 14 วัน
ไม่ต้องอธิบาย -
⚡
กระชับและตรงประเด็น
2 ชม. 54 นาที เนื้อหาเชิงปฏิบัติ
รีวิว
ยังไม่มีรีวิว — เป็นคนแรกที่แชร์ประสบการณ์
ผู้เรียนคนอื่นเรียน
💼 พร้อมสำหรับงาน
🎓 มีใบรับรอง
การทดสอบระบบอัตโนมัติด้วย Python โดยใช้ Pytest
ใบรับรอง
ลงมือทำ
45 €
→
🏆 ยอดนิยมมากที่สุด
🎓 มีใบรับรอง
การทดสอบอัตโนมัติสำหรับ Angular ด้วย Protractor, TypeScript และ Cucumber
ใบรับรอง
ลงมือทำ
45 €
→
🏆 ยอดนิยมมากที่สุด
🎓 มีใบรับรอง
พื้นฐานการทดสอบอัตโนมัติด้วย Selenium และ TestNG
ใบรับรอง
ลงมือทำ
45 €
→
🎓 มีใบรับรอง
ทดสอบเว็บอัตโนมัติด้วย Selenium WebDriver และ C#
ใบรับรอง
ลงมือทำ
45 €
→
คำถามที่พบบ่อย
ฉันต้องใช้อะไรในการเรียนคอร์สนี้? +
แค่โทรศัพท์หรือคอมพิวเตอร์ที่มีอินเทอร์เน็ต ไม่ต้องติดตั้งหรือใช้อุปกรณ์พิเศษ
ฉันชำระเงินอย่างไร? +
ผ่านบัตรด้วย Stripe เราไม่เก็บข้อมูลบัตร — Stripe จัดการอย่างปลอดภัย
ฉันขอคืนเงินได้ไหม? +
ใช่ — คืนเงินเต็มจำนวนใน 14 วัน ไม่ต้องอธิบาย
ฉันมีสิทธิ์เข้าถึงนานเท่าไร? +
ตลอดไป เมื่อซื้อแล้วคอร์สเป็นของคุณ กลับมาเรียนได้ตลอด
ฉันจะได้ใบประกาศนียบัตรไหม? +
ได้ เมื่อเรียนจบจะได้รับใบประกาศนียบัตรที่เพิ่มในโปรไฟล์ LinkedIn ได้
ออกแบบสำหรับผู้เรียนใน
เทคโนโลยี
ดีไซน์
การเงิน
การตลาด
สาธารณสุข
การศึกษา
ธุรกิจการบริการ
อุตสาหกรรม
×2
เติมครั้งเดียว จ่ายครึ่งเดียว
เพิ่ม 90 € → รับเครดิต 200 เครดิต ทำให้แต่ละหลักสูตรมีราคาประมาณ 11,25 € เครดิตไม่มีวันหมดอายุ
90 €
200 เครดิต
11,25 € / คอร์ส
คุ้มที่สุด
230 €
550 เครดิต
10,45 € / คอร์ส
460 €
1200 เครดิต
9,58 € / คอร์ส
เครดิตใช้ได้กับทุกคอร์สและไม่หมดอายุ