How Bromine works with selenium core
Bromine works with selenium core and selenium RC. The two technologies are sharply divided in Bromine however so it's important you make the distinction as well. Don't confuse one with the other.
Bromine works with core by simply opening an url pointing at testRunner.html on the target page. eg.
http://www.xxx.com/testcenter/selenium/core/testrunner.html?test=../tests/TestSuite/TestSuiteMap.html&auto=on&resultsUrl=http://yyy.com/parser.php&runInterval=&p_id=75&o_id=1&b_id=3![]()
Lets take a look at the parameters:
- ?test=../tests/TestSuite/TestSuiteMap.html
this is the path to the testsuite to run. - &auto=on
this tells testRunner.html to start the test immediatly - &resultsUrl=http://yyy.com/parser.php

All testresults are sent to this url. Bromine then works it's magic and inserts the results in the database - &runInterval=
this is en inteval between each command in miliseconds (empty = 0 in this case) - &p_id=75
this is a parameter bromine added. p_id = project id. So this is a way for parser.php to know which project the testresults belong to - &o_id=1
this is a parameter bromine added. o_id = OS id. An id for which OS was used for running the test. - &b_id=3
this is a parameter bromine added. b_id = Browser id. An id for which browser was used for running the test.
This means that you'll have to have selenium core 'installed' on the site you wish to test and you'll have to setup bromine so that it knows where to find testrunner.html on the target page.
How to set it all up
- Login as an admin in Bromine
- Chose the relevant project
- Click the admin tab
- Click 'Edit core sites'
Environment is the site that will be tested and the site that has core installed
TestRunner.html locations is the path to testrunner.html
Testsuite path is the path, relative to testRunner.html, where the testsuites are stored
In our company it looks like this (xxx replacing actual hostnames ofcourse)Environment TestRunner.html location Testsuite path http://www.xxx.com testcenter/selenium/core/testrunner.html ../tests/TestSuite/ http://www.qa.xxx.com testcenter/selenium/core/testrunner.html ../tests/TestSuite/ http://www.test.xxx.com testcenter/selenium/core/testrunner.html ../tests/TestSuite/
Notice how the url created simply is 'Environment'/'TestRunner.html location'?test='Testsuite path'
- Now click the 'test lab' tab
- Click 'edit core suites'
- And add the name of your suite files.
In our company it looks like this:Suite name TestSuiteRoute.html TestSuitePerson.html TestSuiteMap.html TestSuite.html TestSuiteCompany.html
That's it. You can now run your core tests from 'test lab' --> 'Testrunner core'