Posted on February 24, 2019Categories JavaScript, Quality Assurance, TechnologyTags , , ,   Leave a comment on Selenium IDE3 Using If and Variables

Selenium IDE3 Using If and Variables

Selenium IDE3 is continually evolving and has become my new tool-of-choice for testing web apps from the user experience perspective. Some of the features of the older Selenium IDE, such as rollups, are not supported. This has required some time to learn how to recreate test scripts in the new IDE. Along the way I’ve learned some tricks which are not documented on the main Selenium IDE site. Creating Selenium IDE3 Variables Using variables in Selenium IDE3 is similar to … Continue reading “Selenium IDE3 Using If and Variables”

Posted on December 21, 2018Categories Quality Assurance, TechnologyTags , , , , 8 Comments on Selenium IDE if element exists

Selenium IDE if element exists

Did you know you can tell Selenium IDE to execute certain commands only if a specific element exists on the page? The if element exists trick makes your web app testing scripts far more interesting. Here is a quick example using Selenium IDE 3 — the “new” Selenium IDE. Log out a standard user In this use case a WordPress multisite standard user is logged in. We can only execute our commands if we are a super admin. When trying … Continue reading “Selenium IDE if element exists”

Posted on April 9, 2018Categories Quality Assurance, TechnologyTags , ,   Leave a comment on Cypress.IO Shortcomings — Pattern or Die

Cypress.IO Shortcomings — Pattern or Die

Digging into Cypress.IO in a sprint to replace my almost-completely-useless stack of Selenium IDE tests for Store Locator Plus, I’ve run into some issues that seem to go beyond my lack of knowledge with the tool. Yes, it is a great step in the right direction and it can be man-handled to do what I need.  For now.   But tools should not be forcing you to do things a specific way. That are supposed to make you more efficient, no re-train … Continue reading “Cypress.IO Shortcomings — Pattern or Die”

Posted on April 8, 2018Categories Plugin Development, Quality Assurance, WordPressTags , , , , , 1 Comment on Cypress.IO Data List Processing — Testing A WordPress Plugin

Cypress.IO Data List Processing — Testing A WordPress Plugin

Testing Store Locator Plus with lots of locations is a chore.  Thankfully Cypress.IO data list processing makes this a lot easier. It turns out that the old-school Selenium IDE scripts that we’ve been using to test Store Locator Plus for years will no longer work.   We already knew Firefox versions beyond 54 broke things — but we kept an old install on hand so while we port 500+ test scripts to a new system.   What finally broke the old-school Firefox … Continue reading “Cypress.IO Data List Processing — Testing A WordPress Plugin”

Posted on February 15, 2018Categories JavaScript, Quality AssuranceTags , , , , , , , 1 Comment on CypressIO Simplifies Web App Testing

CypressIO Simplifies Web App Testing

After discussing projects over the past week, one of the guys at Automattic brought up CypressIO.   If you’ve been following the recent posts on Lance.Bio you know that the path to running automated web testing has run from Selenium IDE, the QA tool of choice for the past few years for Store Locator Plus, to recent forays into Selenium Webdriver.      Webdriver is powerful but difficult to code and soon led to the discovery of WebdriverIO, then Mocha and … Continue reading “CypressIO Simplifies Web App Testing”

Posted on February 14, 2018Categories JavaScript, Quality Assurance, TechnologyTags , , , , , 1 Comment on WebdriverIO and Mocha For Better Test Reports

WebdriverIO and Mocha For Better Test Reports

In a continuing series on using WebdriverIO with Selenium we are going to focus on getting better reporting output now that our environment is setup.  The previous article on setting up WebdriverIO should have you up-and-running with basic tests.   Now it is time to use some of that “Mocha flavoring” to get useful reports out of our tests.   WebdriverIO and Mocha gives you the tools to group together tests and report the results in plain text. Adding Mocha to a … Continue reading “WebdriverIO and Mocha For Better Test Reports”

Posted on February 13, 2018Categories Programming, Quality AssuranceTags , , , , , , , , 1 Comment on Setting Up WebdriverIO For Automated Website Testing

Setting Up WebdriverIO For Automated Website Testing

I’ve been writing about Selenium IDE for years , telling anyone that would listen how it helps automate user experience testing.    Recently , with the demise of Selenium IDE along with the engine updates to Firefox, I started talking about migrating to Selenium Webdriver.    Think of Selenium Webdriver as the “professional version” of Selenium IDE.    It is far more powerful but is a pain to setup and does require minimal JavaScript coding skills. By installing a few … Continue reading “Setting Up WebdriverIO For Automated Website Testing”

Posted on September 27, 2017Categories JavaScript, Quality Assurance, TechnologyTags , , , , , , , ,   Leave a comment on Selenium on JavaScript : User List Test

Selenium on JavaScript : User List Test

I wasn’t quite sure what to name this article.  The Selenium on JS example here can be used to scan any table to ensure every entry on a list of strings exists; should I name it Test Web Page Has All Your Important Data?   The test also uses a separate NodeJS module to configure that list of important string, in my case user account names; Using NodeJS modules to configure repetitive data lists?  It also employes the Promise construct … Continue reading “Selenium on JavaScript : User List Test”

Posted on September 26, 2017Categories JavaScript, Programming Languages, Quality Assurance, TechnologyTags , , , , ,   Leave a comment on JavaScript Selenium Newb Cheat Sheet

JavaScript Selenium Newb Cheat Sheet

Finding documentation on Selenium is hard enough for the “main languages” of Java or Python.    There are lots of examples of how to do things there in those languages but very little for the JavaScript libraries.   While you can translate most of the Java example to JavaScript there are some differences.    You’ll also find that there is a LOT of outdated information.    To make things more interesting you’ll also find that the older the example the … Continue reading “JavaScript Selenium Newb Cheat Sheet”