Automated Software Testing with Cypress
暫譯: 使用 Cypress 進行自動化軟體測試

Palani, Narayanan

  • 出版商: Auerbach Publication
  • 出版日期: 2021-04-20
  • 售價: $2,030
  • 貴賓價: 9.5$1,929
  • 語言: 英文
  • 頁數: 138
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 0367699540
  • ISBN-13: 9780367699543
  • 相關分類: 軟體測試
  • 海外代購書籍(需單獨結帳)

商品描述

Unit Integration Testing (UIT) had been a challenge because there was no tool that could help in XHR programming and unit integration validations in an efficient way until Cypress arrived. Cypress started releasing versions in 2015 and became popular in 2018 with version 2.0.0.

This book explores Cypress scripts that help implement 'shift left testing', which is a dream come true for many software testers. Shift left occurs in the majority of testing projects, but could not be implemented fully because tools were unavailable and knowledge was lacking about the possibilities of testing early in the life cycle. Shift left is a key testing strategy to help testing teams focus less on defect identifications and more on developing practices to prevent defects.

Cypress scripts can help front-end developers and quality engineers to work together to find defects soon after web components are built. These components can be tested immediately after they are built with Cypress Test Driven Development (TDD) scripts. Thus, defects can be fixed straight away during the development stage. Testing teams do not have to worry about finding these same defects in a later development stage because Cypress tests keep verifying components in the later stages. Defect fixing has become much cheaper with Cypress than when other tools are used. The book also covers Behaviour Driven Development (BDD)-based Gherkin scripts and the Cypress Cucumber preprocessor, which can improve test scenario coverage.

Automated Software Testing with Cypress is written to fulfil the BDD and TDD needs of testing teams. Two distinct open source repositories are provided in Github to help start running Cypress tests in no time

商品描述(中文翻譯)

單元整合測試(UIT)一直是一個挑戰,因為在XHR編程和單元整合驗證方面,直到Cypress出現之前,沒有任何工具能夠有效地協助進行這些工作。Cypress於2015年開始發布版本,並在2018年隨著2.0.0版本的推出而變得流行。

本書探討了Cypress腳本,這些腳本有助於實現「向左移動測試」(shift left testing),這對許多軟體測試人員來說是一個夢想成真。向左移動發生在大多數測試專案中,但由於缺乏可用的工具和對於在生命週期早期進行測試的可能性缺乏了解,無法完全實施。向左移動是一個關鍵的測試策略,幫助測試團隊更少專注於缺陷識別,而更多地專注於開發防止缺陷的實踐。

Cypress腳本可以幫助前端開發人員和品質工程師協同工作,在網頁元件建構後不久就能找到缺陷。這些元件可以在建構後立即使用Cypress測試驅動開發(TDD)腳本進行測試。因此,缺陷可以在開發階段立即修復。測試團隊不必擔心在後續開發階段發現這些相同的缺陷,因為Cypress測試會在後期階段持續驗證元件。使用Cypress進行缺陷修復的成本比使用其他工具時要便宜得多。本書還涵蓋了基於行為驅動開發(BDD)的Gherkin腳本和Cypress Cucumber預處理器,這可以改善測試場景的覆蓋率。

《使用Cypress進行自動化軟體測試》旨在滿足測試團隊的BDD和TDD需求。書中提供了兩個不同的開源代碼庫,幫助快速開始運行Cypress測試。

作者簡介

Narayan Palani is quality engineering lead for a major financial institution based in London. He has authored four books on software testing and holds multiple professional certifications as well as a master's degrees in software engineering and business administration.

作者簡介(中文翻譯)

Narayan Palani 是一家位於倫敦的主要金融機構的品質工程主管。他撰寫了四本有關軟體測試的書籍,並擁有多項專業認證,以及軟體工程和工商管理的碩士學位。