Jan 25, 2015

Version 1.5 is released

The version 1.5 was just released with the following major features:

The complete list of implemented features is on GitHub

Support for PhantomJS browser

From now on you can run your Galen tests in a headless WebKit-based browser PhantomJS

You can use it in a standard test suites:

Home page on PhantomJS browser selenium phantomjs http://example.com 1024x768 check homepage.spec

Or in JavaScript tests:

var driver = createDriver("http://example.com", "1024x768", "phantomjs"); checkLayout(driver, "homepage.spec");

Test retry event handler

In case you have unstable test environment and some of the tests in your test suite are failing from time to time, you can try solving this issue with testRetry event. You can define it in a JavaScript file but it works for both tests: standard and JavaScript-based.

In the test retry event callback you can have access to the test instance and also you get the number of test executions as a second argument. Therefore you can apply the retry event only for a specific test and a specific number of times.

testRetry(function (test, retryCount) { if (test.name == "Home page test" && retryCount < 2) { return true; } else return false; });

Or you can just have a global retry event for all tests:

testRetry(function (test, retryCount) { return retryCount < 3; });

Frame support

For a long time in Galen Framework there was no support for frames in HTML document. From this version we have added support for frames via component spec. In case you want to have access to elements inside frame – you should test them as a separate component:

======================== banner-frame css iframe#banner ======================== banner-frame component frame: banner.spec

Comments

We have moved all the discussions to Google Groups. From this moment, if you have problems with your test code or some issues with installation, please ask your questions in https://groups.google.com/forum/#!forum/galen-framework.