Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding windmill base driver

Conflicts:

	pyccuracy/pyccuracy_core.py
	pyccuracy/windmill_browser_driver.py
Conflicts resolved.
  • Loading branch information...
commit aeddbb0307a055a6a25f4b584b3d3d8ef6936a9f 1 parent 11423a0
Claudio Figueiredo jcfigueiredo authored
3  pyccuracy/pyccuracy_core.py
View
@@ -13,6 +13,7 @@
# limitations under the License.
from os.path import join, abspath, dirname
+from windmill_browser_driver import WindmillBrowserDriver
from pyoc.ioc import IoC
from pyoc.config import InPlaceConfig
@@ -196,6 +197,7 @@ def __select_browser_driver(self, lang, driver_name):
available_drivers = {
"selenium": SeleniumBrowserDriver,
"webdriver": WebdriverBrowserDriver,
+ "windmill" : WindmillBrowserDriver,
}
selected_driver = available_drivers.get(driver_name, None)
@@ -246,3 +248,4 @@ def __init__(self,
self.report_file_dir = report_file_dir
self.report_file_name = report_file_name
self.write_report = write_report
+
24 pyccuracy/windmill_browser_driver.py
View
@@ -0,0 +1,24 @@
+from windmill.authoring import WindmillTestClient
+from browser_driver import *
+from windmill.bin.admin_lib import configure_global_settings, setup
+import windmill
+
+class WindmillBrowserDriver(BrowserDriver):
+
+ def __init__(self, browser_to_run, tests_dir):
+ super(type(self),self).__init__(browser_to_run, tests_dir)
+ self.__port__ = 4444
+ self.__host__ = "localhost"
+ configure_global_settings()
+ windmill.settings['TEST_URL'] = 'localhost'#self.test_url
+ if hasattr(self,"windmill_settings"):
+ for (setting,value) in self.windmill_settings.iteritems():
+ windmill.settings[setting] = value
+
+# self.client = WindmillTestClient(__name__)
+
+# self.controller = windmill.test_authoring.Controller('%s:%s' %(self.__host__,self.__port__))
+# self.controller.enable_unittest = True
+# self.controller.enable_assertions = False
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.