Let's look at the inner workings of a test runner by writing our own simple one to help test a single bit of functionality.… Continue Reading 'Ad hoc unit testing in NodeJS'
There are many valid reasons not to write tests. How do you avoid those and make meaning out of your work?… Continue Reading 'Why You're Not Writing UI Tests'
Some Backstory Over the past year, I've been working on a set of online video tutorials for WebdriverIO. In it, I cover many details of WebdriverIO, including a multitude of commands and how WebdriverIO integrates with many systems out there. While I'm happy with the content so far, I felt… Continue Reading 'Testing your login - An In-depth WebdriverIO Tutorial'
I've been building out a bunch of content for my WebdriverIO course recently and wanted to share a neat idea (I think so anyways) for a minor addition to your WebdriverIO suite. Update: WebdriverIO now supports "watch" mode out of the box Using two NPM packages and a… Continue Reading 'Continuous local WebdriverIO testing with 'onchange' and 'node-notifier''
Here's an idea: Fill out a form and get a WebdriverIO script that tests the login/registration process on your site. Not a generic script that you have to customize. Once already set up to your specific page elements with your specific URLs and specific text. That's the idea behind… Continue Reading 'Test Your Login'
I LOVE automation. It's just so cool. And it helps me be incredibly lazy. Dishwashers, Dryers, Self-driving cars (although I'm not quite rich enough for that one yet). Say what you want about lost jobs and such, but automation sure does take the mundane work out of our lives. Maybe… Continue Reading 'Here's 3 reasons you should unit test that have nothing to do with actual testing'
I found out about WebdriverIO through WebdriverCSS. Seems strange, since WebdriverIO is so powerful on its own, but yeah, WebdriverCSS introduced me to the awesomeness that is WebdriverIO. Visual Regression Testing has always been an interest of mine. I talked about it at CSSDevConf in 2013, when I demoed the… Continue Reading 'What's up with WebdriverCSS?'
This is an excerpt from my new book The Web App Testing Guidebook Last chapter, amid the talk of actions and assertions, we touched on selectors just a little bit. We used a 'partial-text' selector to pick out a button with the text "About Us" in it. Now… Continue Reading 'Selecting Elements in WebdriverIO'
One of the benefits of using a Selenium Cloud service like BrowserStack or Sauce Labs is the ability to review your automated test runs. This is especially useful if you run your tests through a Continuous Integration (CICD) tool like Jenkins or TravisCI. BrowserStack will show you a list of… Continue Reading 'Better BrowserStack Builds in WebdriverIO'
WebdriverIO provides a configuration utility out of the box, which is great for sharing settings across a simple suite of tests. But it's not quite enough if those settings need to slightly shift when testing on different environments (e.g. your development server vs. production). I plan on covering this… Continue Reading 'Managing Configurations in WebdriverIO'
While the main Mocha.js website provides useful information, it's fairly verbose (that's really a good thing). Here are several tips to help newcomers understand some of the main features of Mocha. Running commands before and after tests (i.e. Hooks) Take advantage of Mocha's before, beforeEach, after and afterEach… Continue Reading 'Mocha Usage Tips'