本文整理汇总了Python中PF_common.create_log_folder方法的典型用法代码示例。如果您正苦于以下问题:Python PF_common.create_log_folder方法的具体用法?Python PF_common.create_log_folder怎么用?Python PF_common.create_log_folder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PF_common
的用法示例。
在下文中一共展示了PF_common.create_log_folder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: click
# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import create_log_folder [as 别名]
PF_common.verify(log_file, top_bar)
click(fix_icon)
PF_common.verify(log_file,AppsChecked_Green)
#variables
PrivacyFix_link = PF_common._PF_link
test_case_id="PF-356"
#Function_call
if __name__ == "__main__":
log_file=""
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.LinkedInLogIn(log_file)
PF_WebApp_LK04_Apps_checked_GreenToGreen_356(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)
示例2: Exception
# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import create_log_folder [as 别名]
PF_common.reset_account(log_file)
y=PF_check_required_init(log_file)
if y==1:PF_common.write_log_with_screenshot(log_file, "Required status are set to orange, ready to test!")
else:
PF_common.write_log_with_screenshot(log_file,"Chrome setup failed! Please check out and restart setup!"+str(y))
raise Exception("Chrome setup failed! Please check out and restart setup!"+str(y))
else:
PF_common.write_log_with_screenshot(log_file, "Required status are all already orange, ready to test!")
#Function_call
if __name__ == "__main__":
log_file = ""
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, "PF_Chrome_setup")
print "Log_file: "+log_file
print "email is: " +PF_common._email
PF_common.disable_autofill(log_file)
PF_common.InstallExtension(log_file)
PF_common.ClearBrowsingData(log_file)
reset_result(log_file)
PF_common.PassCase(log_file, test_case_id)
except FindFailed, f:
msg = "Find Failed Exception: %s " % f
print "msg: "+msg
PF_common.write_log_with_screenshot(log_file,msg)