End-to-End Web Testing with Cypress: Explore techniques for automated frontend web testing with Cypress and JavaScript
暫譯: 使用 Cypress 進行端到端的網頁測試:探索使用 Cypress 和 JavaScript 進行自動化前端網頁測試的技術

Mwaura, Waweru

  • 出版商: Packt Publishing
  • 出版日期: 2021-01-29
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 183921385X
  • ISBN-13: 9781839213854
  • 相關分類: JavaScript
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Get to grips with the Cypress framework and learn how to best implement end-to-end automation testing with JavaScript with the help of expert tips, best practices, and real-world testing examples

Key Features

  • Write your first end-to-end test and find out how to modernize your testing environment
  • Execute test-driven web development and cross-browser testing using Cypress
  • Discover the advantages of using Cypress over Selenium and refactor testing for modern web apps

Book Description

Cypress is a modern test automation framework for web-based frontend apps. Learning Cypress will help you overcome the shortcomings of conventional testing solutions such as dependency graph problems, the steep learning curve in setting up end-to-end testing packages, and difficulties in writing explicit time waits for your tests.

In End-to-End Web Testing with Cypress, you'll learn how to use different Cypress tools, including time travel, snapshots, errors, and console output, to write fail-safe and non-flaky tests. You'll discover techniques for performing test-driven development (TDD) with Cypress and write cross-browser tests for your web applications. As you advance, you'll implement tests for a sample application and work with a variety of tools and features within the Cypress ecosystem. Finally, this Cypress book will help you grasp advanced testing concepts such as visual testing and networking.

By the end of this book, you'll have the skills you need to be able to set up Cypress for any web app and understand how to use it to its full potential.

What you will learn

  • Get to grips with Cypress and understand its advantages over Selenium
  • Explore common Cypress commands, tools, and techniques for writing complete tests for web apps
  • Set up and configure Cypress for cross-browser testing
  • Understand how to work with elements and animation to write non-flaky tests
  • Discover techniques for implementing and handling navigation requests in tests
  • Implement visual regression tests with Applitools eyes

Who this book is for

This book is for automation testing professionals, software and web testers, and frontend web developers who have intermediate-level JavaScript and beginner-level test automation knowledge, as well as for complete beginners who are looking to get started with Cypress and learn how it works. You'll also find this book useful if you are a Selenium tester who wants to migrate to Cypress and leverage its capabilities. An intermediate-level understanding of JavaScript programming and beginner-level knowledge of web testing are required.

商品描述(中文翻譯)

掌握Cypress框架,學習如何利用專家提示、最佳實踐和實際測試範例,最佳化使用JavaScript進行端到端自動化測試

主要特點


  • 撰寫您的第一個端到端測試,了解如何現代化您的測試環境

  • 使用Cypress執行測試驅動的網頁開發和跨瀏覽器測試

  • 發現使用Cypress相對於Selenium的優勢,並為現代網頁應用重構測試

書籍描述

Cypress是一個現代化的網頁前端應用測試自動化框架。學習Cypress將幫助您克服傳統測試解決方案的缺點,例如依賴圖問題、設置端到端測試包的陡峭學習曲線,以及為測試編寫明確的時間等待的困難。

在《使用Cypress進行端到端網頁測試》中,您將學習如何使用不同的Cypress工具,包括時間旅行、快照、錯誤和控制台輸出,來撰寫安全且不易失敗的測試。您將發現使用Cypress進行測試驅動開發(TDD)的方法,並為您的網頁應用撰寫跨瀏覽器測試。隨著進步,您將為一個範例應用實施測試,並在Cypress生態系統中使用各種工具和功能。最後,這本Cypress書籍將幫助您掌握高級測試概念,例如視覺測試和網絡測試。

在本書結束時,您將具備設置Cypress以適用於任何網頁應用的技能,並了解如何充分利用它的潛力。

您將學到什麼


  • 掌握Cypress並了解其相對於Selenium的優勢

  • 探索常見的Cypress命令、工具和撰寫完整網頁應用測試的技術

  • 設置和配置Cypress以進行跨瀏覽器測試

  • 了解如何處理元素和動畫以撰寫不易失敗的測試

  • 發現在測試中實施和處理導航請求的技術

  • 使用Applitools eyes實施視覺回歸測試

本書適合誰

本書適合自動化測試專業人士、軟體和網頁測試人員,以及具有中級JavaScript和初級測試自動化知識的前端網頁開發人員,同時也適合希望開始使用Cypress並了解其運作方式的完全初學者。如果您是希望轉移到Cypress並利用其能力的Selenium測試人員,這本書也將對您有幫助。需要具備中級JavaScript編程理解和初級網頁測試知識。

作者簡介

Waweru Mwaura is a full-stack software engineer and QA automation professional with good experience of working on the JavaScript tech stack.

作者簡介(中文翻譯)

Waweru Mwaura 是一位全端軟體工程師及 QA 自動化專業人士,擁有在 JavaScript 技術棧上工作的豐富經驗。

目錄大綱

Table of Contents

  1. Installing and Setting up Cypress
  2. Differences between Selenium WebDriver and Cypress
  3. Working with Cypress Command Line Tools
  4. Writing Your first Test
  5. Debugging Cypress Tests
  6. Writing Cypress Tests Using TDD Approach
  7. Understanding Element Interaction in Cypress
  8. Understanding Variables and Aliases in Cypress
  9. Advanced Uses of Cypress Test Runner
  10. Exercises: Navigation and Network Requests
  11. Exercise: Stubbing and Spying XHR requests
  12. Visual Testing in Cypress

目錄大綱(中文翻譯)

Table of Contents


  1. Installing and Setting up Cypress

  2. Differences between Selenium WebDriver and Cypress

  3. Working with Cypress Command Line Tools

  4. Writing Your first Test

  5. Debugging Cypress Tests

  6. Writing Cypress Tests Using TDD Approach

  7. Understanding Element Interaction in Cypress

  8. Understanding Variables and Aliases in Cypress

  9. Advanced Uses of Cypress Test Runner

  10. Exercises: Navigation and Network Requests

  11. Exercise: Stubbing and Spying XHR requests

  12. Visual Testing in Cypress