1. Martin Thorsen Ranang
  2. orbited

Commits

desmaj  committed 6e007f7

added some information to the testing README and adjusted selenium wait times in the functional tests to be a little more forgiving (slower)

  • Participants
  • Parent commits 6e2a5db
  • Branches TRAC-150

Comments (0)

Files changed (2)

File daemon/README.testing

View file
  • Ignore whitespace
-For these tests to work, the /etc/hosts file on the machine running the tests
-must alias the following domains to 127.0.0.1:
+How to run the orbited functional tests
+=======================================
+
+Prerequisites
+-------------
+* Java must be installed
+* Firefox must be installed
+
+/etc/hosts
+----------
+For the functional tests to work, the /etc/hosts file on the machine running the
+tests must alias the following domains to 127.0.0.1:
 
 * www.orbited 
 * sub.www.orbited 
 * xp.orbited
+
+Test setup
+----------
+
+You will need three terminal sessions to run the tests. The following invocations assume a working directory in the daemon directory of the orbited source.
+
+Terminal 1 - (selenium)
++++++++++++++++++++++++
+
+java -jar orbited/test/resources/selenium-server-standalone-2.0a4.jar 
+
+Terminal 2 - (orbited)
+++++++++++++++++++++++
+
+orbited -c orbited/test/resources/orbited-debug.cfg 
+
+Terminal 3 - (nosetests)
+++++++++++++++++++++++++
+
+nosetests

File daemon/orbited/test/functional/__init__.py

View file
  • Ignore whitespace
         sel.open("/static/tests/")
         sel.click("link=%s" % self.label)
         sel.wait_for_page_to_load("30000")
-        time.sleep(0.5)
+        time.sleep(1)
         assert sel.is_text_present("TEST SUMMARY")
-        time.sleep(0.5)
+        time.sleep(1)
         assert sel.is_text_present("5 tests in 1 groups")
         assert sel.is_text_present("0 errors")
         assert sel.is_text_present("0 failures")