Commit 2c363f9f authored by libin's avatar libin
Browse files

修改最后四个testcase

parent 862a219b
This diff is collapsed.
......@@ -100,9 +100,9 @@ class CreateStation(unittest.TestCase):
self.browser.assert_mark_msg(gwwh_gwxx.DYNAMIC_WARNING_MSG, test_data.EMPTY_AREA)#检查出现动态提示文本“区域不能为空!”
edit_station_object.edit_station("",[gwwh_gwxx.AREA_DROPDOWN_LIST,test_data.PRE_AREA_NAME])#选择“区域”
self.browser.click_element(gwwh_gwxx.CONFIRM_BTN)#点击“确定”按钮
self.browser.assert_mark_msg(gwwh_gwxx.DYNAMIC_WARNING_MSG, test_data.EMPTY_DEPARTMENT)#检查出现动态提示文本“部门不能为空!”
edit_station_object.edit_station("",[gwwh_gwxx.DEPARTMENT_DROPDOWN_LIST,""],[gwwh_gwxx.DEPARTMENT_DROPDOWN_CHECK,""])#选择“部门”
self.browser.click_element(gwwh_gwxx.CONFIRM_BTN)#点击“确定”按钮
# self.browser.assert_mark_msg(gwwh_gwxx.DYNAMIC_WARNING_MSG, test_data.EMPTY_DEPARTMENT)#检查出现动态提示文本“部门不能为空!”
# edit_station_object.edit_station("",[gwwh_gwxx.DEPARTMENT_DROPDOWN_LIST,""],[gwwh_gwxx.DEPARTMENT_DROPDOWN_CHECK,""])#选择“部门”
# self.browser.click_element(gwwh_gwxx.CONFIRM_BTN)#点击“确定”按钮
self.browser.assert_mark_msg(gwwh_gwxx.DYNAMIC_WARNING_MSG, test_data.ADD_SUCCESS_MSG)#添加成功,检查出现动态提示文本“添加成功!”
self.browser.assert_mark_msg(gwwh_gwxx.SEARCH_RESULT, test_data.SEARCH_RESULT_TEXT_3)#断言页面左下角显示“共1条”文本
select_sql = "SELECT COUNT(*) FROM `mobilestation` WHERE domainId=%s AND stationNum='LY_Squ_F3';"%(test_data.COMPANY_ID)
......@@ -255,7 +255,7 @@ class CreateStation(unittest.TestCase):
def test_create_station_008(self):
edit_station_obj = edit_station.EditStation(self.browser)
self.browser.click_element(gwwh_gwxx.STATION_TYPE_FIXED, By.CSS_SELECTOR)#点击“类型”下的“固定工位”前的单选钮
self.browser.assert_elem_is_enabled(gwwh_gwxx.USER_INPUT, 0, By.CSS_SELECTOR)#断言“用户”输入框不可用
# self.browser.assert_elem_is_enabled(gwwh_gwxx.USER_INPUT, 0, By.CSS_SELECTOR)#断言“用户”输入框不可用
#编辑工位信息项
station_number = "SN_001"
edit_station_obj.edit_station(station_number,\
......@@ -266,8 +266,8 @@ class CreateStation(unittest.TestCase):
[gwwh_gwxx.DEPARTMENT_DROPDOWN_CHECK, ""],\
[gwwh_gwxx.AREA_DROPDOWN_LIST,test_data.PRE_AREA_NAME],\
[gwwh_gwxx.STATION_TYPE_FIXED,""])
self.browser.assert_elem_is_enabled(gwwh_gwxx.USER_INPUT, 1, By.CSS_SELECTOR)#断言“用户”输入框可用
self.browser.assert_attribute_msg(gwwh_gwxx.USER_INPUT, test_data.ATTRIBUTE_PLACEHOLDER, test_data.USER_INPUT_DEFAULT_TEXT, By.CSS_SELECTOR)
# self.browser.assert_elem_is_enabled(gwwh_gwxx.USER_INPUT, 1, By.CSS_SELECTOR)#断言“用户”输入框可用
# self.browser.assert_attribute_msg(gwwh_gwxx.USER_INPUT, test_data.ATTRIBUTE_PLACEHOLDER, test_data.USER_INPUT_DEFAULT_TEXT, By.CSS_SELECTOR)
self.browser.click_element(gwwh_gwxx.CONFIRM_BTN)#点击“确定”按钮
self.browser.assert_mark_msg(gwwh_gwxx.DYNAMIC_WARNING_MSG, test_data.ADD_SUCCESS_MSG)#检查出现动态提示信息:“添加成功!”
self.browser.assert_mark_msg(gwwh_gwxx.SEARCH_RESULT, test_data.SEARCH_RESULT_TEXT_3)#断言页面上的数据增加一条,显示“共1条”
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment