Ticket #1001: test_explorer.py

File test_explorer.py, 948 bytes (added by davidsarah, at 2010-04-13T02:36:58Z)

Dummy test that opens Firefox, IE, Safari and Chrome using Windmill

Line 
1
2from allmydata.test.tilting import TiltingMixin
3from twisted.trial import unittest
4from twisted.internet import defer
5
6# web browsers may take a long time to load
7timeout = 1200
8
9
10class TahoeExplorerTestMixin:
11    def start_gateway(self):
12        self.settings['TEST_URL'] = "http://127.0.0.1:9999/test"
13
14    def test_dummy(self):
15        self.failUnless(True)
16
17
18class FirefoxTest(TahoeExplorerTestMixin, TiltingMixin, unittest.TestCase):
19    def configure(self):
20        self.browserName = "firefox"
21
22class InternetExplorerTest(TahoeExplorerTestMixin, TiltingMixin, unittest.TestCase):
23    def configure(self):
24        self.browserName = "ie"
25
26class SafariTest(TahoeExplorerTestMixin, TiltingMixin, unittest.TestCase):
27    def configure(self):
28        self.browserName = "safari"
29
30class ChromeTest(TahoeExplorerTestMixin, TiltingMixin, unittest.TestCase):
31    def configure(self):
32        self.browserName = "chrome"