OPI Blog
Learn from experts in their fields

Browsing Tags: Testing

Dec 22, 2015
Configure Jenkins to dynamically create a database for your Grails tests
Test pollution can be a frustrating issue to look into, especially when the failures are sporadic. These may be caused by reliance on hard-coded fields (such as ids), timezone/DST issues, or previous test case leakage ...
Complex UI elements in Geb browser functional tests
Browser functional testing is a great way to verify your web application fully works end-to-end. Interacting with standard web page elements like links and forms is often straightforward, but driving more complex UI elements such ...
Jun 4, 2015
Waiting for a Redirect Chain to Settle using Selenium WebDriver
Selenium WebDriver is a great framework for automating browser usage in automated testing and scripting. Some interactions with the browser can be tricky. Recently I came across a case where the login page redirected several ...
Add Javascript unit tests and run them with “grails test-app”
Client-side JavaScript code typically doesn’t get as much testing as back-end code, but with technologies like AngularJS becoming popular, more logic is making its way to the front-end, creating a higher need for tests. Fortunately ...
Jul 22, 2014
Adding Custom Locations for iOS Simulator Testing
Most of the time if you use the Core Location services in the iOS simulator it will default to Cupertino, but there are times that it will give you a kCLErrorDomain code of 0, or ...
Grails API Functional Testing
You’ve written (or are about to write) an API in Grails. Which is quite easy, especially with all the REST API improvements in Grails 2.3. Now you want to ensure your API works correctly when ...
Apr 8, 2014
Spock Mock Cheatsheet
The Spock testing framework includes powerful mocking capabilities that work well in unit tests. The Spock documentation is extensive, but I often find myself hunting for the syntax of the different mocking mechanisms in Spock. ...
Mar 11, 2014
Finding a Buggy Commit Using ‘git bisect’ and ‘curl’ #git
I was tasked with fixing a bug that looks like it was introduced some time ago. The bug was in an unfamiliar area of the code. Although I thought I found the problem, I wanted ...
Jan 10, 2014
The Creatives on Agile and QA teams
“If you are not willing to risk the unusual, you will have to settle for the ordinary.” — Jim Rohn In a recent Slate article about bosses rejecting creativity and thinking outside the box,Berkeley professor ...
Alternative Test Data Strategies for Automation
Bringing automation to a legacy system generally involves many challenges, particularly if your technology stack is diverse. A major sore point that is frequently overlooked, however, is the challenge of having solid test data to ...