Jan 8, 2014

Configuring Galen Framework for Windows

I have received a complain that Galen Framework is not very suitable for Windows so I had to introduce a simple batch file galen.bat. Also with this article I decided to make a complete guide for configuring Galen Framework for Windows 7 and for Windows XP. So if you are using Windows operating system and you have troubles with configuring Galen Framework please read this article

Download latest Galen Framework binary

Since version 0.7.1 the batch script for Windows galen.bat will be packaged in a Galen Framework binary.
You can get it from official website but if you want to get the list of all versions you can get it on SourceForge

Once you download the archive just extract its contents and place it anywhere on your file system. In my case it would be C:\galenframework\
On the screenshot below you can see the contents of the folder. Make sure it contains galen.bat file.

Configure Path in System Variables

In the end we want to be able just to call galen.bat from anywhere in a command line. For this we need to add Galen Framework folder to a special system variable called Path. Here are instructions how to do it for both operating systems:

Windows 7

  1. Click "Start" button, type in search "system variables" and then click "Edit the system environment variables"
  2. In "System Properties" window click "Environment varibles..." button
  3. In the second "System variables" list look for "Path" variable, select it and click "Edit..." button
  4. In the "Edit System Variable" dialog add ";C:\galenframework\" in the end (of course you might have this folder named differently). Make sure you don’t forget the ";" symbol as it is used as a separator for all paths.
  5. Click “Ok” on all the dialogs you jave just opened to confirm the change

Windows XP

  1. Right click on "My Computer" icon and then in the menu click "Properties"
  2. In "System Properties" window click "Environment variables" button
  3. In the second "System variables" list look for "Path" variable, select it and click "Edit" button
  4. In the "Edit System Variable" dialog add ";C:\galenframework\" in the end. Make sure you don’t forget the ";" symbol as it is used as a separator for all paths.
  5. Click "Ok" on all the dialogs you jave just opened to confirm the change

Testing if it works

Open “cmd” command line program and type anywhere the following command

galen.bat --version

It should print you the version of Galen Framework you are using.
If you have any problems with configuring Galen Framework please drop us a line here

Posted in Automation, Galen, Web, Selenium
comments powered by Disqus