Practical End 2 End Testing with CodeceptJS
$9.99
Minimum price
$19.99
Suggested price

Practical End 2 End Testing with CodeceptJS

A "hands on" approach on modern test automation for the web.

About the Book

Easily automate manual tests. Be guided how to write and run automated end 2 end tests in CI and in the cloud successfully. The book is written for developers with technical background, technical basics are not explained, the book focuses on the main topic: Modern end to end testing tests with CodeceptJS.

The book does not explain WHY to use CodeceptJS nor its fundamentals.

About the Author

Paul Vincent Beigang
Paul Vincent Beigang

I love test automation

Reader Testimonials

Wayne M.
Wayne M.

I thought the sections on Installation and interfacing with BrowserStack and Allure were brilliant and I was able to implement those concepts at my job right away.

Thanh N.
Thanh N.

Paul really contributes to the CodeceptJS community and helps out where he can. With his book you make sure to start with CodeceptJS the right way.

davert (CodeceptJS Creator)
davert (CodeceptJS Creator)

Not just a book! This is a path to successful test automation. It takes you from 0 tests to continuous testing on CI. Don't hesitate to step into this path! Thanks to CodeceptJS testing is not that hard as you expected.

Table of Contents

  • 1. Preparation for End 2 End Testing with CodeceptJS
    • 1.1 Application, Feature & Scenario under Test
    • 1.2 Node.js Setup
    • 1.3 Java Setup
    • 1.4 Google Chrome
  • 2. Setup CodeceptJS with WebdriverIO
  • 3. Create Your First CodeceptJS Test Scenario
    • 3.1 Scenario Description
    • 3.2 Test Commands
  • 4. Run Your First CodeceptJS Test Locally
    • 4.1 Start Selenium Server
    • 4.2 Run the Test
  • 5. Run a Scenario on BrowserStack with the Safari Browser
    • 5.1 Sign Up for a Free BrowserStack Account
    • 5.2 Get BrowserStack Automate Credentials
    • 5.4 Run Scenarios on BrowserStack
    • 5.5 Install CodeceptJS BrowserStack Helper
    • 5.7 Switch Configs Based on Local or BrowserStack Execution
  • 6. Don´t Repeat Yourself - Page Object Refactoring
    • 6.1 Page Objects in CodeceptJS - Creation & Inclusion
    • 6.2 Adding A Page Object Field
    • 6.3 Page Object Usage
    • 6.4 Page Object Methods
  • 7. How to Debug & Fix a Failing E2E Test
    • 7.1 Debug Failing Safari Test Run - Ask the Right Questions
    • 7.2 What does the error message really say?
    • 7.3 What is the context of the error? Which exact steps led to the error?
    • 7.4 Debug with the Video Recording on BrowserStack
    • 7.5 Try to Reproduce the Failure Locally
    • 7.6 Use CodeceptJS “pause()” to Start an Interactive Shell Session
    • 7.7.1 Verify the Failing Locator Locally
    • 7.7.2 Simulate “wait” with “pause()”
    • 7.8 Try to factor out timing issues
    • 7.9 Use Detailed WebdriverIO´s Log Level
    • 7.9 More Tipps on Fixing Test Failures
  • 8. Run a CodeceptJS Scenario in GitLab´s Continuous Integration (CI) Environment
    • 8.1 GitLab CI & Git Repo Setup
    • 8.2 Setup CI Chrome Scenario Run
    • 8.3 GitLab CI Artifacts
  • 9. Delicious Test Reports With Allure
  • 10. Parallel Execution
  • 11. Bonus Chapter: Quick Tipps & Shortcuts
    • Switch Between Local Test Run and Browserstack Test Run Locally
    • Utilize BrowserStacks Raw Selenium Logs
    • Use Visual Studio Code With Node.js Debugger to Dive Into The CodeceptJS Framework
    • Use PhpStorm With Node.js Debugger to Dive Into The CodeceptJS Framework
    • The Best Way to Get Help

Causes Supported

Prison Yoga Project

You may never set foot in prison but you can change a prisoner's life.
http://www.prisonyoga.org

The Prison Yoga Project is dedicated to bringing yoga and mindfulness to incarcerated and at risk populations in the US and worldwide.

With twelve years of experience teaching yoga and mindfulness in San Quentin State Prison, James Fox founded Prison Yoga Project to bring his unique methodology to prisons and rehabilitation facilities everywhere. We believe in Restorative Justice and victim-offender education. We provide a cost-effective method of improving prisoner health with a focus on changing behavior; we believe in addressing the damage done and providing tools for self rehabilitation. We’ve helped hundreds of prisoners by instilling self-control and fostering accountability. While they’re ‘doing time,’ we focus on violence prevention, impulse control, mood disorders, depression, despair, addiction and PTSD. We have trained over 600 teachers in the last three years and have operating classes in over 50 American prisons and dozens of rehab facilities. Prison Yoga Project is fiscally sponsored by Give Back Yoga Foundation, a 501 (c) (3) corporation.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub