Commit 1114ebfc authored by libin's avatar libin
Browse files

删除新报告和截图

parent e9841ad4
This diff is collapsed.
......@@ -245,7 +245,6 @@ class WebClient():
try:
assert actual_msg == expect_msg
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError: actual result: " + actual_msg + \
"; expect restlt: " + expect_msg)
# time.sleep(self.timeout)
......@@ -259,7 +258,6 @@ class WebClient():
try:
assert msg in txtmsg
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError: actual result: " + txtmsg + \
"; expect restlt: " + msg)
except TimeoutException:
......@@ -276,7 +274,6 @@ class WebClient():
try:
assert msg in txt
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError:Actual results: "+txt+";Expect results: "+msg+".")
......@@ -295,7 +292,6 @@ class WebClient():
try:
assert element_enabled == False
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError:Actual results: enable;Expect results: disable.")
# 断言控件属性值
......@@ -306,7 +302,6 @@ class WebClient():
try:
assert msg in attrmsg
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError: actual attribute result: " + attrmsg + \
"; expect attribute restlt: " + msg)
time.sleep(self.timeout)
......@@ -321,7 +316,6 @@ class WebClient():
try:
assert msg in attribute_msg
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError:Actual attribute result: "+attribute_msg+";Expect attribute result: "+msg+".")
......@@ -333,7 +327,6 @@ class WebClient():
try:
assert tmp == True
except AssertionError:
self.imgs.append(self.__driver.get_screenshot_as_base64())
raise AssertionError("\nAssertError:The element doesn't exist.")
else:
try:
......
This diff is collapsed.
This diff is collapsed.
......@@ -78,7 +78,6 @@ class Login(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
......
......@@ -27,7 +27,6 @@ class NavigationMemu(unittest.TestCase):
def tearDown(self):
self.imgs = self.object.imgs
self.object.exit_all_browsers()
if __name__ == '__main__':
......
......@@ -51,7 +51,6 @@ class CreatCompany(unittest.TestCase):
def tearDown(self):
self.imgs = self.object.imgs
deal_sql = "delete from `domain` where domainName= '"+test_data.COMPANY_URL_NEW+"' and domainStatus = '0' "
deal_db_data.execute_sql(deal_sql)
self.object.exit_all_browsers()
......
......@@ -130,7 +130,6 @@ class EditCompany(unittest.TestCase):
self.object.assert_mark_msg(administrator.TEXT_URL_LINE_ONE , NEW_COMPANY_URL) # 断言第一行企业域名是否已修改
def tearDown(self):
self.imgs = self.object.imgs
# 删除企业域
deal_sql = "delete from `domain` where domainName like '%qwe%'"
deal_db_data.execute_sql(deal_sql)
......
......@@ -44,7 +44,6 @@ class EditCompany(unittest.TestCase):
self.object.assert_mark_msg(administrator.ASSERT_DELETE_ERROR, test_data.ASSERT_DELETE_ERROR,By.CSS_SELECTOR) # 断言提示信息删除失败
def tearDown(self):
self.imgs = self.object.imgs
self.object.exit_all_browsers()
if __name__ == '__main__':
......
......@@ -88,7 +88,6 @@ class ChangePassword(unittest.TestCase):
def tearDown(self):
self.imgs = self.object.imgs
self.object.exit_all_browsers()
update_sql = "UPDATE `userinfo` u SET u.`passWord`='63319c57312f61f070975263bc8a68b2' WHERE id = 1;" #password=wafer123
deal_db_data.execute_sql(update_sql)
......
......@@ -34,7 +34,6 @@ class PageTurning(unittest.TestCase):
def tearDown(self):
self.imgs = self.object.imgs
self.object.exit_all_browsers()
if __name__ == '__main__':
......
......@@ -20,7 +20,6 @@ class Login(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()
......
......@@ -172,7 +172,6 @@ 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,7 +169,6 @@ class CreatePark(unittest.TestCase):
deal_db_data.assert_select_result(select_sql, 1)
def tearDown(self):
self.imgs = self.brower.imgs
self.brower.exit_all_browsers() #退出浏览器
#删除数据,恢复环境
deal_db_data.clear_park()
......
......@@ -59,7 +59,6 @@ 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,7 +120,6 @@ 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,7 +31,6 @@ 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,7 +120,6 @@ class CreateDepartment(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers() #退出浏览器
#删除数据,恢复环境
deal_db_data.clear_department()
......
......@@ -219,7 +219,6 @@ 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,7 +171,6 @@ class CreateRole(unittest.TestCase):
def tearDown(self):
self.imgs = self.browser.imgs
self.browser.exit_all_browsers()#退出浏览器
#删除添加的角色,恢复环境
deal_db_data.clear_role()
......
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