cc1
v2.1
CC1 source code docs
|
Public Member Functions | |
def | cell_click |
def | change_language |
def | login_cm_testuser |
def | login_testuser |
def | menu_click |
def | row_click |
def | setUp |
def | tearDown |
def | wait_for_message |
def | wait_for_text |
Public Attributes | |
base_url | |
driver | |
iso | |
TEST_admin_cm | |
TEST_SERVER | |
TEST_USER |
Definition at line 40 of file __init__.py.
def src.wi.tests.WiTestCase.cell_click | ( | self, | |
col_name, | |||
text, | |||
check_data = None , |
|||
action_name = "Actions" , |
|||
element = "div" , |
|||
path_head_tds = "//table[@id='item-list']/thead/tr/td" , |
|||
path_body_trs = "//table[@id='item-list']/tbody/tr" |
|||
) |
col_name | (string ) name of column which together with text describe row |
text | (string ) text |
action_name | (string ) name of column which together with row describes cell |
element | (string ) element in cell which sholud be clicked |
path_body_trs | (string ) xpath for searching rows of table |
path_head_tds | (string ) xpath for searching head's cells of table |
check_data | (dict ) fields:
|
Clicks on cell described by parameters
Definition at line 229 of file __init__.py.
def src.wi.tests.WiTestCase.change_language | ( | self | ) |
Definition at line 313 of file __init__.py.
def src.wi.tests.WiTestCase.login_cm_testuser | ( | self | ) |
Definition at line 300 of file __init__.py.
def src.wi.tests.WiTestCase.login_testuser | ( | self, | |
user | |||
) |
Definition at line 285 of file __init__.py.
def src.wi.tests.WiTestCase.menu_click | ( | self, | |
col_name, | |||
text, | |||
menu_item_text, | |||
check_data = None , |
|||
action_name = "Actions" |
|||
) |
col_name | (string ) name of column which together with text describe row |
text | (string ) text |
action_name | (string ) name of column which together with row describe cell |
menu_item_text | (string ) xpath for searching rows of table |
check_data | (dict ) fields:
|
Clicks on cell described by parameters and then clicks on item in context menu
Definition at line 280 of file __init__.py.
def src.wi.tests.WiTestCase.row_click | ( | self, | |
col_name, | |||
text, | |||
check_data = None , |
|||
path_head_tds = "//table[@id='item-list']/thead/tr/td" , |
|||
path_body_trs = "//table[@id='item-list']/tbody/tr" |
|||
) |
col_name | (string ) name of column which together with text describe row |
text | (string ) text |
path_body_trs | (string ) xpath for searching rows of table |
path_head_tds | (string ) xpath for searching head's cells of table |
check_data | (dict ) fields:
|
Clicks on row described by parameters
Definition at line 257 of file __init__.py.
def src.wi.tests.WiTestCase.setUp | ( | self | ) |
Definition at line 41 of file __init__.py.
def src.wi.tests.WiTestCase.tearDown | ( | self | ) |
Definition at line 50 of file __init__.py.
def src.wi.tests.WiTestCase.wait_for_message | ( | self, | |
text_list, | |||
max_time = 20 , |
|||
sleep_time = 0.5 |
|||
) |
text_list | (list ) is list containing possible texts |
max_time | (int ) describes how long method should search for text |
sleep_time | (double ) describes gaps between consecutive searches |
Checks if message with described text appears on the page
Definition at line 89 of file __init__.py.
def src.wi.tests.WiTestCase.wait_for_text | ( | self, | |
xpath, | |||
text_list, | |||
max_time = 20 , |
|||
sleep_time = 0.5 , |
|||
fail = True |
|||
) |
xpath | (string ) xpath in which text should appears |
text_list | (list ) list containing possible texts |
max_time | (int ) describes how long method should search for text |
sleep_time | (double ) describes gaps between consecutive searches |
fail | (boolean ) describes if failure should brake test case |
Checks if one of texts has appeared in described xpath.
Definition at line 63 of file __init__.py.
src.wi.tests.WiTestCase.base_url |
Definition at line 287 of file __init__.py.
src.wi.tests.WiTestCase.driver |
Definition at line 42 of file __init__.py.
src.wi.tests.WiTestCase.iso |
Definition at line 47 of file __init__.py.
src.wi.tests.WiTestCase.TEST_admin_cm |
Definition at line 45 of file __init__.py.
src.wi.tests.WiTestCase.TEST_SERVER |
Definition at line 46 of file __init__.py.
src.wi.tests.WiTestCase.TEST_USER |
Definition at line 44 of file __init__.py.