本文整理汇总了Python中helpers.Helpers.Helpers.verifyInfoInEventLogTable方法的典型用法代码示例。如果您正苦于以下问题:Python Helpers.verifyInfoInEventLogTable方法的具体用法?Python Helpers.verifyInfoInEventLogTable怎么用?Python Helpers.verifyInfoInEventLogTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类helpers.Helpers.Helpers
的用法示例。
在下文中一共展示了Helpers.verifyInfoInEventLogTable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testEventLog
# 需要导入模块: from helpers.Helpers import Helpers [as 别名]
# 或者: from helpers.Helpers.Helpers import verifyInfoInEventLogTable [as 别名]
def testEventLog(self):
self.testname="TestEventLog"
self.setup()
util = WebdriverUtilities()
util.setDriver(self.driver)
element = Elements()
grcobject = GRCObject()
do = Helpers(self)
do.setUtils(util)
do.login()
# CREATE PROGRAM
program_name = "Program_created_from_LHN" + do.getTimeId()
object_list = ["Regulation", "Contract", "Policy", "Standard"]
last_created_object_link = do.createObject("Program", program_name)
# MAP SOME OBJECTS
for obj in object_list:
do.mapAObjectLHN(obj, program_name)
#do.selectInnerTabWhichAlreadyPresent("info")
do.selectInnerNavTab("info")
do.openObjectEditWindow()
do.deleteObject()
do.selectMenuInTopRight("Admin Dashboard")
do.selectMenuItemInnerNavDashBoard("Events")
# when delete an object that has mapping, it automatically unmap and then delete
self.assertTrue(do.verifyInfoInEventLogTable("unmapped from", 1), "Cannot find 'unmapped from Program' in the Event Log table.")
# 4 times
# 4 lines of "mapped to" because there are 4 mappings from the top
self.assertTrue(do.verifyInfoInEventLogTable("mapped to", 2), "Cannot find 'map to:row2' in the Event Log table.")
self.assertTrue(do.verifyInfoInEventLogTable("mapped to", 3), "Cannot find 'map to:row3' in the Event Log table.")
self.assertTrue(do.verifyInfoInEventLogTable("mapped to", 4), "Cannot find 'map to:row4' in the Event Log table.")
self.assertTrue(do.verifyInfoInEventLogTable("mapped to", 5), "Cannot find 'map to:row5' in the Event Log table.")
# tests the "by whom" and "when at" fields
self.assertTrue(do.verifyInfoInEventLogTable("whom", 2), "Cannot find 'whom' in the Event Log table.")
self.assertTrue(do.verifyInfoInEventLogTable("when", 2), "Cannot find 'when' in the Event Log table.")
# the program created should be logged
self.assertTrue(do.verifyInfoInEventLogTable(program_name, 6), "Cannot find 'create program' in the Event Log table.")
# verify that Prev and Next buttons work
self.assertTrue(do.verifyPrevNextOperation(), "Fail verifying Prev and Next buttons.")
# CORE-727
print "CORE-727 is still open which causes this failure."