Posts

Showing posts from March, 2018

TDTD, or Unit testing Selenium tests

I liked the idea to call this "Test Driven Test Development"! So this is time for my input to discussions "I'm writing Selenium tests. Do I need to unit test them?" You can replace "Selenium" with any of frameworks which uses it, if you wish. As the correct answer is "it depends", here's my opinion when it's worth doing this. At the moment I've started automating huge system, which is not so complex when looking at what it does, but it's a challenge in another areas: - main goal is to save and display lots of data about countries. Names, demographic data, national holidays, various geographic facts etc. etc. - part of it is a legacy system. Some parts are being rewritten, some will stay as they are for a long time. Or maybe not. They can be rewritten any time. By "legacy" I mean - you remember those times, when main methods for formatting html page layout were "you put a table inside a table of a table of....

Visual test automation: Galen tests and Java (Part 2 of "mobile native")

First things I needed to do for my "let's try to do visual test automation of mobile native apps using Galen" project: - to understand how Galen Framework is working with "normal" web sites; - learn to call it from my Java tests; - ensure Java Page Object model can be used and @objects descriptions can be removed from Galen specs. We need this to keep objects described only once and in single place so that they could be used for both Galen and functional tests. I've used resources provided by Galen Framework - sample Galen Java tests and sample web site for those tests as a starting point. To run the web site locally on my PC I've used a very simple Fenix webserver (Galen Framework provides public access to the test website , but I prefer to use local copy for my experiments). The only change I've made initially - updated tests to use Chrome browser instead of default Firefox; it's so much less problems running tests this way at the mo...

Visual test automation: mobile native (Part 1)

I feel I'm moving to next stage of my current "let's try this" project, so it's time to structure my current notes on what I've been doing for some time. This time it's visual test automation. It's one of the current trends with (possibly) the biggest player Applitools at the moment. Frankly, I love what Applitools have achieved and where they are going, and options they suggest look great for commercial projects. For non-commercial and not open source projects, especially when you are  learning new things, paying for cloud based services is not what you want. So I've decided to go another way and start with visual test automation for "works from my PC" kind of tests. Why visual test automation? Well, there were several main factors: - it's interesting and new, I've never tried this; - we have an app at work, which is not commercial product, but we need it to be stable and release bug fixes / new features fast; - this app is...