Modern Web Testing with TestCafe: Get to grips with end-to-end web testing with TestCafe and JavaScript

0
(0)

Modern Web Testing with TestCafe: Get to grips with end-to-end web testing with TestCafe and JavaScript
 

  • Author:Dmytro Shpakovskyi
  • Length: 168 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2020-09-30
  • ISBN-10: 1800200951
  • ISBN-13: 9781800200951
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    A no-nonsense guide to getting started with TestCafe quickly by building a complete test suite while learning the core concepts of test automation with TestCafe

    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.

    Table of Contents

    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

    中文:

    书名:Modern Web Testing with TestCafe: Get to grips with end-to-end web testing with TestCafe and JavaScript

    通过构建完整的测试套件并学习TestCafe测试自动化的核心概念,快速开始使用TestCafe的实用指南

    Key Features

    • 构建概念验证项目以展示您对TestCafe的熟悉程度
    • 了解有关构建生产就绪和容错测试的有用提示和最佳实践
    • 通过使用PageObject模式重构代码库,编写干净且可维护的测试

    Book Description

    TestCafe是一个开源的端到端测试框架,它结合了无与伦比的易用性、高级自动化和强大的内置稳定机制。本书是一本基于项目的全面介绍TestCafe的书,它将向您展示如何使用TestCafe框架,并使您能够编写快速可靠的测试;此外,您还将拥有一个概念证明,可以展示TestCafe的实际潜力。

    您将从学习如何使用TestCafe语法和TestCafe框架的特性编写端到端Web测试开始。然后,您将从设置环境一直到编写可投入生产的测试。您还将了解如何以循序渐进的方式构建一组示例测试,并使用TestCafe登录网站、验证不同页面上的元素、创建/删除实体以及运行定制的Java代码。随着您的深入,您将深入研究重构的几个阶段,这些阶段将带您完成Showcase设置/拆卸和PageObject模式。虽然这个测试套件的构建相对简单,但它展示了TestCafe的一些最突出的功能。最后,这本TestCafe图书将向您展示如何在一个免费且简单易用的网站上运行测试,而不需要您构建和部署您自己的服务器或后端服务。

    到本书结束时,您将学会如何使用TestCafe编写和增强端到端测试,以解决实际问题并交付结果。

    What you will learn

    • 了解TestCafe的基本概念以及它与经典Selence的区别
    • 了解如何设置TestCafe测试环境
    • 使用命令行设置运行TestCafe
    • 在浏览器中验证并执行TestCafe代码
    • 使用专家技术通过TestCafe自动执行端到端测试
    • 了解TestCafe开发中的最佳实践,并了解TestCafe的未来路线图

    这本书是为谁而写的

    这本书是为QA专业人员、测试工程师、软件工程师和测试自动化爱好者提供的,他们正在寻找学习TestCafe的实践指导。这本书对于想要学习更多关于测试代码的新工具的全栈开发人员来说也是很棒的。本书假定读者基本了解了JavaScript、Node.js、HTML、CSS和一些简单的Bash命令。

    Table of Contents

    1. Why TestCafe?
    2. 探索引擎盖下的TestCafe
    3. 设置环境
    4. Building a Test Suite with TestCafe
    5. Improving the Tests
    6. 使用PageObjects进行重构
    7. TestCafe的调查结果
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册