Dashboard > Bromine > Home > Configuring Bromine for selenium Core
Configuring Bromine for selenium Core
Added by Rasmus, last edited by Rasmus on May 16, 2008  (view change)
Labels: 
(None)


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

  1. Login as an admin in Bromine
  2. Chose the relevant project
  3. Click the admin tab
  4. 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'

  1. Now click the 'test lab' tab
  2. Click 'edit core suites'
  3. 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'

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators