Commit bec8f038 authored by libin's avatar libin
Browse files

20190725更新了测试报告

parent 448441bb
......@@ -92,6 +92,7 @@ class EditUser(unittest.TestCase):
self.browser.click_element(xtpz_yhxx.CLOSE_BTN)
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.reset_user()
deal_db_data.clear_user()
......
......@@ -182,6 +182,7 @@ class SearchUser(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_user()
deal_db_data.clear_department()
......
......@@ -150,6 +150,7 @@ class DeleteUser(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_user()
deal_db_data.clear_station()
......
......@@ -143,6 +143,7 @@ class EditRole(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.reset_commoon_role()
deal_db_data.reset_special_role()
......
......@@ -66,6 +66,7 @@ class DeleteRole(unittest.TestCase):
deal_db_data.assert_select_result(select_role, 1)
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_role()
deal_db_data.clear_user()
......
......@@ -79,6 +79,7 @@ class DeleteWorkdayAndVacation(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_rate_date()
......
......@@ -319,6 +319,7 @@ class EditStation(unittest.TestCase):
self.browser.assert_mark_msg(gwwh_gwxx.FIRST_LINE_DEPARTMENT, "Pre_Operations_Department,Pre_Sale_Department") #断言工位PF002的部门为Pre_Operations_Department,Pre_Sale_Department
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
#删除用sql插入的"区域"数据
deal_db_data.clear_area()
......
......@@ -469,6 +469,7 @@ class SearchStation(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers() #退出浏览器
deal_db_data.clear_station()
deal_db_data.clear_user()
......
......@@ -179,6 +179,7 @@ class DeleteStation(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
#解除工位的绑定
update_mobilestation = "UPDATE `mobilestation` SET qrCodeDir=NULL,qrCodeUrl=NULL,stationState=3,userId=NULL WHERE domainId=%s AND stationNum='S012';"%(test_data.COMPANY_ID)
......
......@@ -233,6 +233,7 @@ class EditStationMap(unittest.TestCase):
deal_db_data.assert_select_result(select_station_elements, 2)
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers() #退出浏览器
if __name__ == "__main__":
#删除在工位地图中添加的工位素材,恢复环境
......
......@@ -112,6 +112,7 @@ class StationSeatManagement(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
#删除添加的工位信息,恢复环境
deal_db_data.clear_station()
......
......@@ -192,6 +192,7 @@ class AvaliableFixed(unittest.TestCase):
self.driver.assert_mark_msg(gwwh_gwdt.TOTAL_OF_ZWGL, '座位管理', By.CSS_SELECTOR)
def tearDown(self):
self.imgs = self.driver.imgs
self.driver.exit_all_browsers()
# 清除固定工位员工信息
update_station = '''UPDATE `mobilestation` set userId = null ,userName = null where id = '2691';
......
......@@ -77,6 +77,7 @@ class spaceMaterial(unittest.TestCase):
deal_db_data.assert_select_result(test_data_count, 1)
def tearDown(self):
self.imgs = self.browser.imgs
delte_test_data = "delete from `stationsvg` WHERE svgName ='xkj'"
deal_db_data.execute_sql(delte_test_data)
self.browser.exit_all_browsers()
......
......@@ -86,6 +86,7 @@ class editSpaceMaterial(unittest.TestCase):
deal_db_data.assert_select_result(test_data_count, 1)
def tearDown(self):
self.imgs = self.browser.imgs
delte_test_data = "delete from `stationsvg` WHERE svgName ='xkj'"
deal_db_data.execute_sql(delte_test_data)
self.browser.exit_all_browsers()
......
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