Check out the Latest Blog posts:
Install Bromine v3

Prerequisites

Selenium requires Java, so this means that even dough you want to run tests in some other programming language (Python, Ruby, PHP), you still gonna need Java.

Selenium Setup

  • Install Java version 1.5 or older (if not already installed on your machine)
  • Download Selenium RC from http://seleniumhq.org/download/
  • Unzip it to a known location (we’ll use c:\selenium) and you are ready to run it.

Web Server & DB setup

  • Install XAMPP. This will automatically install both Apache and MySQL.
  • Start XAMPP to make sure both apache and mysql start correctly.
Apache runs on port 80, so make sure it is free on your computer, or change the settings for Apache, and in that case make sure to use the newly set port for the next steps

XAMPP

  • Once the web server and the database is installed, edit the php.ini (in xampp php.ini is located at xampp\php). Selenium tests can run for a long time, so we need to make PHP allow long running times.
    Find the following settings and change them to match these:
max_execution_time = 60001
max_input_time = 60001
magic_quotes_gpc = Off
  • If you are already running an Apache server, and don’t want to mess up the global configuration for php, you could do this in its configuration:
<IfModule mod_php5.c>
    php_value max_execution_time 60001
    php_value max_input_time 60001
    php_admin_flag magic_quotes_gpc off
</IfModule>
<IfModule mod_php4.c>
    php_value max_execution_time 60001
    php_value max_input_time 60001
    php_admin_flag magic_quotes_gpc off
</IfModule>
  • Enable mod_rewrite in your apache configuration file (in xampp this is xampp\apache\conf\httpd.conf)
LoadModule rewrite_module modules/mod_rewrite.so
If you want to run PHP tests you’ll need to have the php executable (on Windows, php.exe) in your path environment variable.
If you want to run Java tests you’ll need to have the Java executable in your path environment variable.

Install Bromine

Unpack and copy all files to your webroot. Bromine must be served directly from the webroot!
If you are using XAMPP this is the C:\xampp\htdocs directory. Make sure all of the previous content of this folder is deleted.

Host: localhost
Username: root
Password: (empty)
Database: bromine
  • And click Install
Bromine v3 Installation

You should get a message saying ‘Install complete’ and a login form. Login with username: ‘admin’ and password: ‘admin’ and verify that all of the features are checked. (We won’t use PHP for our test cases, so we can ignore this warning for now.)

Logged in to Bromine v3

Now Bromine v3 is set up and ready to be configured for running test cases.

PDF Download    Send article as PDF   


  1. rizo on Monday 12, 2010

    bromine

    Is this line for the db supposed to be “bromine”? When I used the listed line the page just refreshed.

  2. Vilmos Somogyi on Monday 12, 2010

    Bromine will create a new database with the name specified in the Database field, so the only limitation here is that you must not have an existing database with that name.

    As for the reloading of the same page, it is most likely that something went wrong. Bromine is still not in stable release yet, so the validation message is still missing. I had the same problem when I was trying to enter a wrong password for accessing the database. So double check if the database is running on localhost, can be accessed with the provided username and password, and that the database name entered in the last field is a unique one.

  3. Nuthan on Monday 12, 2010

    I have installed bromine.But i am getting “Warning: Could not contact the news server. Check your internet connection” this error.

    I try to update the server configuration by using my comp ip address or localhost and port is 80 but it is giving error.i am unable to resolve this.I did not find any server related details.

    Please help me out to resolve this.

  4. Vilmos Somogyi on Monday 12, 2010

    Please post a more detailed description of the problem. Where and when is this warning shown? The only place that I can think of is the Bromine News page that is displayed when the control panel is entered. If that is the case, feel free to ignore this warning. It is a known issue, and it will be hopefully fixed in the stable release.

  5. [...] A duplicate of this post can be seen on the author’s personal blog: http://vilmoss.com/ [...]

  6. hunkyhari on Monday 12, 2010

    Hi there!

    I am finding a separate problem with bromine. When i un zipped the downloaded package i received all files with an extension of .vsm and my apache server served me the directory listing instead of installation file.

    I couldn’t find the index.php file even.

    What do i need to do in order to get it working now?

  7. Marc Rosenberg on Monday 12, 2010

    when i try running Bromie3RC2 VMWare Player returns:

    Error while opening the virtual machine: “C:\xampp\htdocs\Bromine3RC2.vmx” is not a valid virtual machine configuration file.

    I copied the contents of the Bromie folder into xampp/htdocs and am dbl clicking “Bromine3RC2 from there and getting the error in VMWare player