Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
esotiri
committed
Nov 22, 2013
1 parent
9e9a3ef
commit 8a26404
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import unittest | ||
from selenium import webdriver | ||
|
||
|
||
class AccessDVN(unittest.TestCase): | ||
|
||
def setUp(self): | ||
desired_capabilities = webdriver.DesiredCapabilities.FIREFOX | ||
desired_capabilities['version'] = '24' | ||
desired_capabilities['platform'] = 'Linux' | ||
desired_capabilities['name'] = 'Testing Selenium 2 in Python at Sauce' | ||
|
||
self.driver = webdriver.Remote( | ||
desired_capabilities=desired_capabilities, | ||
command_executor="http://esodvn:325caef9-81dd-47a5-8b74-433057ce888f@ondemand.saucelabs.com:80/wd/hub" | ||
) | ||
self.driver.implicitly_wait(30) | ||
|
||
def test_sauce(self): | ||
self.driver.get('http://dvn-build.hmdc.harvard.edu') | ||
|
||
|
||
def tearDown(self): | ||
print("Link to your job: https://saucelabs.com/jobs/%s" % self.driver.session_id) | ||
self.driver.quit() | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
|
||
import unittest | ||
import access_dvn | ||
|
||
|
||
def suite(): | ||
return unittest.TestSuite((\ | ||
unittest.makeSuite(access_dvn.AccessDVN), | ||
)) | ||
|
||
if __name__ == "__main__": | ||
result = unittest.TextTestRunner(verbosity=2).run(suite()) | ||
# sys.exit(not result.wasSuccessful()) |