Modern Web Testing with TestCafe: Get to grips with end-to-end web testing with TestCafe and JavaScript
暫譯: 使用 TestCafe 進行現代網頁測試:掌握使用 TestCafe 和 JavaScript 的端對端網頁測試

Shpakovskyi, Dmytro

  • 出版商: Packt Publishing
  • 出版日期: 2020-09-30
  • 售價: $1,470
  • 貴賓價: 9.5$1,397
  • 語言: 英文
  • 頁數: 168
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1800200951
  • ISBN-13: 9781800200951
  • 相關分類: JavaScript
  • 海外代購書籍(需單獨結帳)

商品描述

Key Features

  • Build a proof-of-concept project to demonstrate your familiarity with TestCafe
  • Discover useful tips and best practices for building production-ready and fault-tolerant tests
  • Write clean and maintainable tests by refactoring your codebase using PageObject pattern

Book Description

TestCafe is an open source end-to-end testing framework that combines unmatched ease of use with advanced automation and robust built-in stability mechanisms. This book is a comprehensive, project-based introduction to TestCafe that will show you how to use the TestCafe framework and enable you to write fast and reliable tests; plus you'll have a proof of concept ready to demonstrate the practical potential of TestCafe.

You'll begin by learning how to write end-to-end web tests using the TestCafe syntax and features of the TestCafe framework. You'll then go from setting up the environment all the way through to writing production-ready tests. You'll also find out how to build a sample set of tests in a step-by-step manner and use TestCafe to log in to the website, verify the elements present on different pages, create/delete entities, and run custom JavaScript code. As you advance, you'll delve into several stages of refactoring that will take you through the showcase setup/teardown and PageObject patterns. While this test suite is relatively simple to build, it showcases some of the most prominent features of TestCafe. Finally, this TestCafe book will show you how the tests can be run on a free and simple-to-use website, without requiring you to build and deploy your own servers or backend services.

By the end of this book, you'll have learned how to write and enhance end-to-end tests with TestCafe to solve real-world problems and deliver results.

What you will learn

  • Understand the basic concepts of TestCafe and how it differs from classic Selenium
  • Find out how to set up a TestCafe test environment
  • Run TestCafe with command-line settings
  • Verify and execute TestCafe code in the browser
  • Automate end-to-end testing with TestCafe using expert techniques
  • Discover best practices in TestCafe development and learn about the future roadmap of TestCafe

Who this book is for

The book is for QA professionals, test engineers, software engineers, and test automation enthusiasts looking for hands-on guidance on learning about TestCafe. This book is also great for full-stack developers who want to learn more about new tools for testing their code. The book assumes a basic understanding of JavaScript, Node.js, HTML, CSS, and some simple Bash commands.

商品描述(中文翻譯)

#### 主要特點

- 建立一個概念驗證專案,以展示您對 TestCafe 的熟悉程度
- 發現構建生產就緒和容錯測試的有用提示和最佳實踐
- 通過使用 PageObject 模式重構您的代碼庫,撰寫乾淨且可維護的測試

#### 書籍描述

TestCafe 是一個開源的端到端測試框架,結合了無與倫比的易用性、高級自動化和強大的內建穩定性機制。本書是一本全面的、基於專案的 TestCafe 介紹,將向您展示如何使用 TestCafe 框架,並使您能夠撰寫快速且可靠的測試;此外,您將擁有一個概念驗證來展示 TestCafe 的實際潛力。

您將首先學習如何使用 TestCafe 語法和 TestCafe 框架的特性來撰寫端到端的網頁測試。接著,您將從設置環境開始,一直到撰寫生產就緒的測試。您還將逐步了解如何構建一組示範測試,並使用 TestCafe 登錄網站,驗證不同頁面上存在的元素,創建/刪除實體,並運行自定義的 JavaScript 代碼。隨著進展,您將深入幾個重構階段,這將帶您了解展示的設置/拆卸和 PageObject 模式。雖然這個測試套件相對簡單,但它展示了 TestCafe 的一些最顯著特徵。最後,本書將向您展示如何在一個免費且易於使用的網站上運行測試,而無需您構建和部署自己的伺服器或後端服務。

在本書結束時,您將學會如何使用 TestCafe 撰寫和增強端到端測試,以解決現實世界中的問題並交付結果。

#### 您將學到什麼

- 理解 TestCafe 的基本概念及其與經典 Selenium 的區別
- 瞭解如何設置 TestCafe 測試環境
- 使用命令行設置運行 TestCafe
- 在瀏覽器中驗證和執行 TestCafe 代碼
- 使用專家技術自動化端到端測試
- 發現 TestCafe 開發中的最佳實踐,並了解 TestCafe 的未來路線圖

#### 本書適合誰

本書適合尋求實用指導以學習 TestCafe 的 QA 專業人員、測試工程師、軟體工程師和測試自動化愛好者。本書也非常適合希望了解更多測試其代碼的新工具的全端開發人員。本書假設讀者對 JavaScript、Node.js、HTML、CSS 和一些簡單的 Bash 命令有基本的理解。

作者簡介

Dmytro has over 10 years of experience in Quality Assurance, Software Testing, and Software as a Service industries. Skilled in end-to-end, load, and API test automation, he is certified by the ISTQB. During his successful career, Dmytro led the quality assurance automation for the platform of 60+ highly scalable web applications and services, built and maintained numerous test automation frameworks, managed distributed teams of QA automation engineers, mentored, and helped to convert manual test engineers to test automation. You can often find Dmytro creating and open-sourcing new test automation frameworks, mentoring other QA engineers or exploring new tools and techniques for automated testing. He shares his experience at stijit.com.

作者簡介(中文翻譯)

Dmytro 擁有超過 10 年的品質保證、軟體測試及軟體即服務(Software as a Service)產業經驗。他精通端到端測試、負載測試及 API 測試自動化,並獲得 ISTQB 認證。在他成功的職業生涯中,Dmytro 負責 60 多個高度可擴展的網頁應用程式和服務的平台的品質保證自動化,建立並維護了多個測試自動化框架,管理分散式的 QA 自動化工程師團隊,並指導和協助將手動測試工程師轉型為測試自動化工程師。你常常可以在 stijit.com 找到 Dmytro,他在那裡創建並開源新的測試自動化框架,指導其他 QA 工程師,或探索自動化測試的新工具和技術。

目錄大綱

  1. Why TestCafe?
  2. Exploring TestCafe Under the Hood
  3. Setting Up the Environment
  4. Building a Test Suite with TestCafe
  5. Improving the Tests
  6. Refactoring with PageObjects
  7. Findings from TestCafe

目錄大綱(中文翻譯)


  1. Why TestCafe?

  2. Exploring TestCafe Under the Hood

  3. Setting Up the Environment

  4. Building a Test Suite with TestCafe

  5. Improving the Tests

  6. Refactoring with PageObjects

  7. Findings from TestCafe

最後瀏覽商品 (20)