Commit bec8f038 authored by libin's avatar libin
Browse files

20190725更新了测试报告

parent 448441bb
......@@ -172,6 +172,7 @@ class Login(unittest.TestCase):
self.browser.assert_mark_msg(xtpz_xtsz.SYSTEM_SET_TEXT, test_data.SYSTEM_SET_TEXT)
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
......
......@@ -169,6 +169,7 @@ class CreatePark(unittest.TestCase):
deal_db_data.assert_select_result(select_sql, 1)
def tearDown(self):
self.imgs = self.browser.imgs
self.brower.exit_all_browsers() #退出浏览器
#删除数据,恢复环境
deal_db_data.clear_park()
......
......@@ -59,6 +59,7 @@ class Blulid(unittest.TestCase):
self.browser.assert_mark_msg(xtpz_lygl.BUILD_LIST_NAME01, "零壹大厦") #断言添加楼宇成功
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_building() #删除新创建的楼宇
......
......@@ -120,6 +120,7 @@ class Login(unittest.TestCase):
deal_db_data.assert_select_result(select_sql, 0)
def tearDown(self):
self.imgs = self.object.imgs
self.object.exit_all_browsers()
deal_db_data.clear_floor()
......
......@@ -31,6 +31,7 @@ class CreateArea(unittest.TestCase):
self.object.assert_mark_msg(xtpz_qygl.FIRST_ITEM_AREA,'Z')
def tearDown(self):
self.imgs = self.object.imgs
self.object.exit_all_browsers()
deal_db_data.clear_area()
......
......@@ -120,6 +120,7 @@ class CreateDepartment(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers() #退出浏览器
#删除数据,恢复环境
deal_db_data.clear_department()
......
......@@ -218,6 +218,7 @@ class CreateUser(unittest.TestCase):
self.browser.assert_mark_msg(xtpz_yhxx.DYNAMIC_WARNING_MSG, test_data.EMAIL_REPETITION)#检查出现动态提示文本:用户邮箱已存在
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()#推出浏览器
#删除用例执行时创建的用户,恢复环境
deal_db_data.clear_user()
......
......@@ -171,6 +171,7 @@ class CreateRole(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()#退出浏览器
#删除添加的角色,恢复环境
deal_db_data.clear_role()
......
......@@ -144,13 +144,8 @@ class CreateWorkdayAndVacation(unittest.TestCase):
deal_db_data.assert_select_result(select_date, 1) #断言添加成功
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_rate_ate()
......
......@@ -178,6 +178,7 @@ class UploadingStationMap(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers() #退出所有浏览器
if __name__ == "__main__":
......
......@@ -275,6 +275,7 @@ class CreateStation(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
delete_sql = "DELETE FROM `mobilestation` WHERE domainId=135 AND id NOT IN(467,468);"
deal_db_data.execute_sql(delete_sql)#删除新添加的工位,恢复环境
......
......@@ -84,6 +84,7 @@ class EditPark(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.reset_park()
......
......@@ -69,6 +69,7 @@ class DeletePark(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_park()
......
......@@ -146,6 +146,7 @@ class SearchPark(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_park()
......
......@@ -44,6 +44,7 @@ class EditBuild(unittest.TestCase):
time.sleep(1)
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.reset_building()
......
......@@ -95,6 +95,7 @@ class SearchBuild(unittest.TestCase):
deal_db_data.clear_park()
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_building()
if __name__ == "__main__":
......
......@@ -38,6 +38,7 @@ class DeleteBuild(unittest.TestCase):
self.browser.assert_mark_msg(xtpz_lygl.SEARCH_RESULT,test_data.SEARCH_RESULT_TEXT_1)
def tearDown(self):
self.imgs = self.browser.imgs
sql = r"DELETE FROM `officebuilding` WHERE buildingToken ='6666666666' AND domainId=135;"
deal_db_data.execute_sql(sql)
pass
......
......@@ -84,6 +84,7 @@ class EditDepartment(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.reset_department()
......
......@@ -126,6 +126,7 @@ class SearchDepartment(unittest.TestCase):
self.browser.assert_mark_msg(xtpz_bmgl.NO_DATA_TEXT, test_data.SEARCH_NO_DATA_MSG)
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
deal_db_data.clear_department()
......
......@@ -206,6 +206,7 @@ class DeleteDepartment(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()
......
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