Unverified Commit dab869b0 authored by boklm's avatar boklm
Browse files

Add a run_test script to run selenium tests

parent 6b5ebe2a
import unittest, time, re
import sys
if len(sys.argv) != 2:
sys.exit('Usage: run_test <test_name>')
t = __import__('test_%s' % sys.argv[1])
suite = unittest.TestLoader().loadTestsFromTestCase(t.Test)
res = unittest.TextTestRunner(verbosity=2).run(suite)
......@@ -2,11 +2,9 @@
import unittest, time, re
import tbbtest
class CheckTpo(tbbtest.TBBTest):
class Test(tbbtest.TBBTest):
def test_check_tpo(self):
driver = self.driver
self.assertEqual("Congratulations. This browser is configured to use Tor.", driver.find_element_by_css_selector("h1.on").text)
if __name__ == "__main__":
......@@ -208,7 +208,7 @@ sub mozmill_run {
sub selenium_run {
my ($test) = @_;
return unless $options->{selenium};
system("$FindBin::Bin/selenium-tests/run_test", $test->{name});
sub run_tests {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment