Galen is a test framework originally designed for testing layout of web applications but is also a great tool for functional testing. When it comes to testing a responsive layout it works in a following way:
- Open a page in browser
- Resize it to specified size
- Test the layout according to user-defined specs
It uses Selenium for interacting with elements on page and getting their locations and dimensions.
Once it sees that something is wrong – Galen reports the error, makes a screenshot and highlights the misbehaving element on it.
Will help you to install Galen and configure it properly.
- Install Galen download and install the latest version of Galen
- Configuration configure Galen project
- Running Galen run sample project with Galen
- Configuring browsers setup different browsers like Chrome or PhantomJs
- Galen Spec Language Guide complete list of all specs
- Galen Test Suite Syntax
- Working in Command Line execution and reporting from command line
- Java + Maven + TestNG + Galen how to use Galen inside Java tests
- Intellij Galen Specs language support (by Martin Reinhardt)
- Sublime syntax highlighter for Galen Framework v2+ (by David Rubio)
- Vim syntax highlighting and snippets
- First Project a short introduction to Galen specs
- Using Galen with a task runner run your specs from the command line with gulp or grunt
- TDD for Responsive Design. Or how to automate testing of website layout for different devices
- Testing colors on your website with Galen Framework
- Integrating Galen with BrowserStack run your galen tests on a cloud service
- More tutorials you can find on MindEngine.net