Tests not running

The majority of errors we recieve is that the testsscripts aren't being executed. This is a quick guide to debug better.

  1. The beta was developed and tested on Vista/FF 3.5, xampp, port 80, directly under htdocs. Doing the same will easen your life.
  2. Go to configs -> state of the system and verify that you don't have any errors
  3. Confirm that you are running your bromine installation on port 80. There's a bug in the beta, always executing tests on port 80 resulting in these kinds of errors:
    PHP
    Notice: Warning: fopen(http://127.0.0.1:80/selenium-server/driver/?cmd=getNewBrowserSession&1=%2Afirefox%2C1252321609766418&2=http%3A%2F%2Fwww.google.in): failed to open stream: HTTP request failed! HTTP/1.1 404
    Java
    Notice: java.lang.RuntimeException: Could not start Selenium session: Not Found at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89) at bromine.brunit.BRUnit.setUp(BRUnit.java:43)

Before posting on the forum, do this:

(We won't help you until you've done it!)

  1. Go to app\webroot\logs and delete everything
  2. Run your test
  3. Go to app\webroot\logs\Loadbalancer_output.txt and find the line saying
    Executing: php "C:\xampp\xampp\htdocs\app\webroot\testscripts\Google Sample\php\1.php" 127.0.0.1 80 *firefox http://www.google.in 1251817695245206 1 or something similar.
  4. Open a command prompt and navigate to app\webroot and execute the above string eg. 'php "C:\xampp\xampp\htdocs\app\webroot\testscripts\Google Sample\php\1.php" 127.0.0.1 80 *firefox http://www.google.in 1251817695245206 1'
  5. Take a screenshot of the output returned when running the above line. Include it in your post.
  6. Copy the contents of all files created in the logs dir. (We don't need the 5000 lines of "Doing loop xxx, need = array('blalbla')". Include it in your post.
  7. Create a post on our forum, not as a comment to our release blog, and mark it as a question.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.