当前位置: 首页>>代码示例>>Python>>正文


Python PF_common.write_log_with_screenshot方法代码示例

本文整理汇总了Python中PF_common.write_log_with_screenshot方法的典型用法代码示例。如果您正苦于以下问题:Python PF_common.write_log_with_screenshot方法的具体用法?Python PF_common.write_log_with_screenshot怎么用?Python PF_common.write_log_with_screenshot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PF_common的用法示例。


在下文中一共展示了PF_common.write_log_with_screenshot方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: FixGoogleSection

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def FixGoogleSection(log_file):
    PF_common.GoogleLogin(log_file)
    if PF_common.verify_continue_with_similarity(log_file,"1404474658234.png",0.95)==0:
       PF_common.write_log_with_screenshot(log_file,"Google section is not orange")
       rs=7
    
    if exists(Pattern(GL01_green).similar(0.90)):set_GL01_grey(log_file);rs=7
    if exists(Pattern(GL02_green).similar(0.90)):set_GL02_grey(log_file);rs=7 
    if exists(Pattern(GL03_green).similar(0.90)):set_GL03_grey(log_file);rs=7 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:11,代码来源:PF_Chrome_setup_1638.py

示例2: set_GL01_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_GL01_grey(log_file):
    click(GL01_green)
    sleep(5)
    PF_common.verify(log_file,"1397822686053.png")
    click("1397822710861.png")
    sleep(2)
    click(fix_icon)
    sleep(5)
    mouseMove(Location(1000,100))
    PF_common.verify(log_file, "1397822850994.png")
    PF_common.write_log_with_screenshot(log_file, "GL01 is set to grey!")  
开发者ID:avgqa,项目名称:qa-scripts,代码行数:13,代码来源:PF_Chrome_setup_1638.py

示例3: set_FB01_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_FB01_grey(log_file):
        click(FB01_green)
        sleep(5)
        PF_common.verify(log_file,"1396333260662.png")
        click(Pattern("1396333268916.png").similar(0.91))
        sleep(4)
        click(fix_icon)
        
        sleep(5)
        mouseMove(Location(1000,100)) 
        PF_common.verify(log_file,"fb1grery.png")
        PF_common.write_log_with_screenshot(log_file, "FB01 is set to grey!")                
开发者ID:avgqa,项目名称:qa-scripts,代码行数:14,代码来源:PF_Chrome_setup_1638.py

示例4: set_FB02_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_FB02_grey(log_file):
    click(FB02_green)
    sleep(5)
    PF_common.verify(log_file,"1404473746361.png")
    click("1404473764442.png")
    sleep(2)
    click("1404473808957.png")
    sleep(3)
    click(fix_icon) 
    sleep(5)
    mouseMove(Location(1000,100)) 
    PF_common.verify(log_file,"1404473847855.png")
    PF_common.write_log_with_screenshot(log_file, "FB02 is set to grey!")   
开发者ID:avgqa,项目名称:qa-scripts,代码行数:15,代码来源:PF_Chrome_setup_1638.py

示例5: set_FB06_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_FB06_grey(log_file):
    click(FB06_green)
    sleep(5)
    PF_common.wait_click("1390020887226.png") 
    sleep(2)
    click("1396333454235.png")
    sleep(3)
            
    click(fix_icon)
    sleep(5)
    mouseMove(Location(1000,100))    
    PF_common.verify(log_file,"fb6grey.png")
            
    PF_common.write_log_with_screenshot(log_file, "FB06 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:16,代码来源:PF_Chrome_setup_1638.py

示例6: set_FB04_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_FB04_grey(log_file):
    click(FB04_green)
    sleep(5)
    PF_common.verify(log_file,"1396333369062.png")
    click("1396333360141.png")
    sleep(2)
    click("1396333407392.png")
    sleep(3)
    click(fix_icon) 
    sleep(5)
    mouseMove(Location(1000,100)) 
    PF_common.verify(log_file,"fb2grey.png")
            
    PF_common.write_log_with_screenshot(log_file, "FB04 is set to grey!")    
开发者ID:avgqa,项目名称:qa-scripts,代码行数:16,代码来源:PF_Chrome_setup_1638.py

示例7: set_FB07_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_FB07_grey(log_file):
    click(FB07_green)
    sleep(5)
    PF_common.verify(log_file,("1396333514212.png"))
    click("1396333538808.png")
    sleep(1)
    click("1396333582627.png")
    sleep(1)
    click("1396333605262.png")
    sleep(3)
    click(fix_icon)
    mouseMove(Location(1000,100))    
    sleep(5)
    PF_common.verify(log_file,"fb8grey.png")
    PF_common.write_log_with_screenshot(log_file, "FB07 is set to grey!")            
开发者ID:avgqa,项目名称:qa-scripts,代码行数:17,代码来源:PF_Chrome_setup_1638.py

示例8: set_LK01_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_LK01_grey(log_file):
    click(LK01_green)
    sleep(3)
    if exists("1389742039148.png"):
        type(PF_common._password)
        sleep(1)
        click("1389742095839.png")
        sleep(5)     
    PF_common.verify(log_file,"1390020628935.png")
    click("1390020628935.png")
    click("1389817979018.png")
    click(fix_icon)
    mouseMove(Location(1000,100))    
    sleep(5)
    PF_common.verify(log_file,"lk1grey.png")
            
    PF_common.write_log_with_screenshot(log_file, "LK01 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:19,代码来源:PF_Chrome_setup_1638.py

示例9: set_LK05_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_LK05_grey(log_file):
    click(LK05_green)
    sleep(5)
    if exists("1389742039148.png"):
        type(PF_common._password)
        sleep(1)
        click("1389742095839.png")
        sleep(3)    
    PF_common.verify(log_file,"1389818632828.png")
    click("1389818632828.png")
    sleep(2)
    click("1389818887123.png");click("1389818951938.png")
    sleep(3)
    click(fix_icon)
    sleep(5)
    mouseMove(Location(1000,100))
    PF_common.verify(log_file,"lk5grey.png")
    PF_common.write_log_with_screenshot(log_file, "LK05 is set to grey!")  
开发者ID:avgqa,项目名称:qa-scripts,代码行数:20,代码来源:PF_Chrome_setup_1638.py

示例10: set_LK03_grey

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def set_LK03_grey(log_file):
    click(LK03_green)
    sleep(5)
    if exists("1389742039148.png"):
        type(PF_common._password)
        sleep(1)
        click("1389742095839.png")
        sleep(3)     
    PF_common.verify(log_file,"1390068268007.png")
            
    click("1390068268007.png")
    
    click("1389818291777.png")
    sleep(3)
    click(fix_icon) 
    sleep(5)
    mouseMove(Location(1000,100))
    PF_common.verify(log_file,"lk3grey.png")
            
    PF_common.write_log_with_screenshot(log_file, "LK03 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:22,代码来源:PF_Chrome_setup_1638.py

示例11: reset_result

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def reset_result(log_file):
    y=PF_check_required_init(log_file)
    PF_common.write_log(log_file, "value of y is:" +str(y))
    if y >1:
        #PF_Chrome_setup(log_file)
        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!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:15,代码来源:PF_Chrome_setup_1638.py

示例12: PF_check_required_init

# 需要导入模块: import PF_common [as 别名]
# 或者: from PF_common import write_log_with_screenshot [as 别名]
def PF_check_required_init(log_file):
    sleep(2)
    rs=1
   
    PF_common.load_browser_with_url(log_file, PF_common._PF_link)
    sleep(2)

    PF_common.wait_find("1396563774390.png")
    wait(10)
    #FixGoogleSection(log_file)
    PF_common.FacebookLogin(log_file)
        
    PF_common.write_log_with_screenshot(log_file,"FB section1 before check!")
    FBFirstSection=("1404805532966.png")
    FBSecondSection=("1404805548873.png")
    pf_common.locate_linkedIn_section(log_file) 
    if PF_common.verify_continue_with_similarity(log_file,FBFirstSection,0.93)==0 or PF_common.verify_continue_with_similarity(log_file,FBSecondSection,0.93)==0 :
        PF_common.write_log_with_screenshot(log_file,"FB section1 in is not orange")           
        rs=2
    
    if exists(Pattern(FB01_green).similar(0.90)):set_FB01_grey(log_file);rs=2        
    if exists(Pattern(FB02_green).similar(0.90)):set_FB02_grey(log_file);rs=2
    if exists(Pattern(FB04_green).similar(0.90)):set_FB04_grey(log_file);rs=2
    if exists(Pattern(FB06_green).similar(0.90)):set_FB06_grey(log_file);rs=2
    if exists(Pattern(FB07_green).similar(0.90)): set_FB07_grey(log_file);rs=3
    
    PF_common.LinkedInLogIn(log_file)
    wait(10)
    if PF_common.verify_continue_with_similarity(log_file,"1404735275920.png",0.95)==0:
        
        PF_common.write_log_with_screenshot(log_file,"Linked in is not orange")
        rs=4
    
    if exists(Pattern(LK01_green).similar(0.90)):set_LK01_grey(log_file);rs=4 
    if exists(Pattern(LK03_green).similar(0.90)):set_LK03_grey(log_file);rs=4 
    if exists(Pattern(LK05_green).similar(0.90)):set_LK05_grey(log_file);rs=4 
    return rs
开发者ID:avgqa,项目名称:qa-scripts,代码行数:39,代码来源:PF_Chrome_setup_1638.py


注:本文中的PF_common.write_log_with_screenshot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。