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 January 5, 2018Categories Development, Plugin Development, Programming Languages, Technology, WordPressTags , , , , , , , , , , , , , , 1 Comment on Automated Web App Testing With phpStorm

Automated Web App Testing With phpStorm

Selenium IDE was a great way to handle automated web app testing like the Store Locator Plus plugins for WordPress.    Selenium IDE is a simple script recorder and playback too that runs on Firefox.    Or, I should say, it used to run on Firefox.  That broke in 2017 when Firefox 52 came out. After a lot of research I finally found a viable alternative to Selenium IDE that will work with modern browsers.  It is also free, locally … Continue reading “Automated Web App Testing With phpStorm”

Posted on September 27, 2017Categories JavaScript, Programming Languages, TechnologyTags , , , , , ,   Leave a comment on Selenium on JavaScript : New WordPress Site Config Script

Selenium on JavaScript : New WordPress Site Config Script

This article continues the journey into learning Selenium on JavaScript (SoJa).  It builds on the lessons of the previous articles and adds some common library functions to make our tests more readable and starts to employ the Don’t Repeat Yourself (DRY) concept. In this case we are going to build a common library module that we will re-use in future scripts. It will load our configuration and environment.  It will also export some methods that make our test script code … Continue reading “Selenium on JavaScript : New WordPress Site Config Script”

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”

Posted on September 25, 2017Categories JavaScript, Programming Languages, Quality AssuranceTags , , , , ,   Leave a comment on Selenium : Hiding Login Credentials In An Automated Test

Selenium : Hiding Login Credentials In An Automated Test

With most web automation and testing tasks you are going to want to login to a secure system.   You are also going to want to keep your login credentials out of the testing code repository.    For my test suite that is being rewritten with Selenium for the MySLP service I am employing a basic JavaScript module methodology along with some git ignore rules to keep my credentials private. In this example I have also added the ability to … Continue reading “Selenium : Hiding Login Credentials In An Automated Test”

Posted on September 24, 2017Categories JavaScript, Programming Languages, Quality Assurance, TechnologyTags , , , ,   Leave a comment on Selenium Web App Test: Are My Web Parts There?

Selenium Web App Test: Are My Web Parts There?

As per my previous articles, I am building new test cases using Selenium as a replacement for my older Selenium IDE tests.  Selenium IDE is no longer supported by Firefox 55+ and the next generation doesn’t appear as though it will be ready any time soon.  If you are going to continue testing your web apps with Selenium, now is the time to learn Webdriver. This is a continuation of the Selenium automated web testing series.   You can  use … Continue reading “Selenium Web App Test: Are My Web Parts There?”