This repository has been archived by the owner on Aug 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Zac
authored and
Zac
committed
Jan 19, 2012
1 parent
f5c3246
commit af789fa
Showing
12 changed files
with
85 additions
and
283 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,33 @@ | ||
# File contains users data. | ||
# | ||
# Each user is a section named with its role | ||
# and any number of values. At least email, | ||
# password and name should be present. | ||
# | ||
# Example: | ||
# admin: | ||
# email: email@site.com | ||
# password: password | ||
# name: Test User | ||
# | ||
# Still, you are free to add any more data you wish. It will be kept | ||
# in the same dictionary. | ||
# | ||
# Example: | ||
# admin: | ||
# email: email@site.com | ||
# password: password | ||
# name: Test User | ||
# username: testuser | ||
# some_user_data: data | ||
# | ||
# The contents of this file are accessible via the pytest-mozwebqa plugin: | ||
# | ||
# Example: | ||
# credentials = mozwebqa.credentials['default'] | ||
# credentials['email'] | ||
|
||
default: | ||
email: <value> | ||
password: <value> | ||
name: <value> |
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,3 @@ | ||
[DEFAULT] | ||
api = webdriver | ||
baseurl = https://addons-dev.allizom.org |
This file was deleted.
Oops, something went wrong.
Empty file.
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
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,25 @@ | ||
#!/usr/bin/env python | ||
|
||
from selenium import selenium | ||
from vars import ConnectionParameters | ||
from page import Page | ||
|
||
|
||
class MySiteHomePage(Page): | ||
|
||
_some_locator = 'id=someLocator' | ||
|
||
def __init__(self, selenium): | ||
''' Creates a new instance of the class and gets the page ready for testing ''' | ||
self.sel = selenium | ||
|
||
@property | ||
def item_on_page(self): | ||
return self._some_locator | ||
|
||
@property | ||
def get_page_title(self): | ||
return self.sel.get_title() | ||
|
||
def do_something_on_the_page(self): | ||
pass |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,24 @@ | ||
#!/usr/bin/env python | ||
|
||
from selenium import selenium | ||
from vars import ConnectionParameters | ||
import unittest | ||
from page_object import MySiteHomePage | ||
|
||
|
||
class TestTemplate(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.selenium = selenium(ConnectionParameters.server, ConnectionParameters.port, | ||
ConnectionParameters.browser, ConnectionParameters.baseurl) | ||
self.selenium.start() | ||
self.selenium.set_timeout(vars.ConncetionParameters.page_load_timeout) | ||
|
||
def tearDown(self): | ||
self.selenium.stop() | ||
|
||
def test_that_we_do_something_to_find_a_bug(self): | ||
pass | ||
|
||
if __name__ == "__main__": | ||
unittest.main() |