This file contains hidden or 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
def test_move_multiple_card_via_shiftselect(self, test_db, bunch_of_cards): | |
expected_swimlane_category = "None" | |
page = BoardPage(self.test_driver, test_db) | |
page.go_to_page(test_db.get_default('User').identifier, DoPlan.PRO_PROJECT, DoPlan.PRO_BOARD) | |
list_of_cards = GenericCard.get_name_list(DoPlan.PRO_PROJECT, [1, 2, 3, 4, 5]) | |
actual_swimlane_category = page.toggle_swimlanes(expected_swimlane_category) | |
Validation.assert_equal(expected_swimlane_category, actual_swimlane_category, | |
"Swimlanes aren't grouped by expected category <{}>!".format( | |
expected_swimlane_category)) | |
page = page.shift_select_cards(list_of_cards[0], list_of_cards[4]) # returnera CardDetailsPane(self.test_driver, test_db) |
This file contains hidden or 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
def pytest_runtest_setup(item): | |
""" | |
py.test hook for test configuration | |
:param item: py.test item module | |
:return: None | |
""" | |
from tools import TagsCollection | |
print "IN RUNTEST" | |
print item |
This file contains hidden or 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
@pytest.fixture(scope='module', autouse=True) | |
def test_db(request): | |
""" | |
Creates a TestDataCollection instance which houses all the data representation objects. | |
:param request: py.test request module | |
:return: TestDataCollection instance | |
""" | |
from test_automation.representations.test_data_collection import TestDataCollection |
This file contains hidden or 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
#first | |
if browser.lower() == 'firefox': | |
driver = webdriver.Firefox | |
self._kwargs.update({'browser_profile' if self._use_grid else 'firefox_profile': firefox_profile()}) | |
desired_capabilities = webdriver.DesiredCapabilities.FIREFOX | |
#later | |
if self._use_grid: | |
host = get_config().getini("grid_host") | |
port = get_config().getini("grid_port") |
NewerOlder