本文整理汇总了Python中PF_common_FF.write_log方法的典型用法代码示例。如果您正苦于以下问题:Python PF_common_FF.write_log方法的具体用法?Python PF_common_FF.write_log怎么用?Python PF_common_FF.write_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PF_common_FF
的用法示例。
在下文中一共展示了PF_common_FF.write_log方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: reset_result
# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log [as 别名]
def reset_result(log_file):
y=PF_check_required_init()
PF_common.write_log(log_file, "value of y is:" +str(y))
if y==1:
msg="Required status are all already orange, ready to test!"
PF_common.write_log_with_screenshot(log_file, msg)
return
if (y >1):
#PF_Chrome_setup(log_file)
PF_common.reset_account(log_file)
y=PF_check_required_init()
if y==1:
msg="Required status are set to orange, ready to test!"
PF_common.write_log_with_screenshot(log_file, msg)
return
else:
msg="Chrome setup failed! Please check out!"+str(y)
PF_common.write_log_with_screenshot(log_file,msg)
raise Exception(msg)
示例2: PF_WebApp_FB03_TagPreview_GreenToGrey_FF271
# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log [as 别名]
PrivacyFix_link = PF_common._PF_link
test_case_id="PF-271"
#Function_call
if __name__ == "__main__":
try:
script_path, test_case_script_name=os.path.split(sys.argv[0])
test_case_script_name=test_case_script_name + ".sikuli"
log_file=PF_common.create_log_folder(test_case_script_name, test_case_id)
PF_common.InstallExtension(log_file)
PF_common.FacebookLogin(log_file)
PF_WebApp_FB03_TagPreview_GreenToGrey_FF271(log_file)
PF_common.PassCase(log_file, test_case_id)
except FindFailed, f:
msg = "Find Failed Exception: %s " % f
PF_common.write_log(log_file,msg)
PF_common.FailTestCase(log_file, test_case_id)
except Exception, e:
msg = "Exception detected: %s " % e
PF_common.write_log(log_file,msg)
PF_common.FailTestCase(log_file, test_case_id)