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


Python PF_common_FF.write_log_with_screenshot方法代码示例

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


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

示例1: set_FB06_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_FB06_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(FB06_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    PF_common.wait_click("CheckBox_FB05.png") 
    sleep(1)
    click("SaveChanges_FB05.png")
    sleep(2)
    click(fixes)
    sleep(5)
    mouseMove(Location(1000,100))    
    PF_common.verify_continue(log_file,"AAppAccessOn.png")
            
    PF_common.write_log_with_screenshot(log_file, "FB06 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:17,代码来源:PF_Firefox_setup_1638.py

示例2: set_LK01_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_LK01_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(LK01_green).similar(0.90))
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))

    LK01_radio_button=("LK01_radio_button.png")
    PF_common.verify_continue(log_file, LK01_radio_button)
    click(LK01_radio_button)
    click(LK_save_changes)
    click(fixes)
    mouseMove(Location(1000,100))  
    PF_common.verify_continue(log_file,"LKo1_grey.png")          
    PF_common.write_log_with_screenshot(log_file, "LK01 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:17,代码来源:PF_Firefox_setup_1638.py

示例3: set_LK05_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_LK05_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(LK05_green).similar(0.90))
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    LK05_only_you=("1390812494339.png")
    PF_common.verify_continue(log_file, LK05_only_you)
    click(LK05_only_you)
    sleep(1)
    click("LK05_your_connections.png");click(LK_save_changes)
    sleep(2)
    click(fixes)
    mouseMove(Location(1000,100))
    PF_common.verify_continue(log_file,"LK05_grey.png")
    PF_common.write_log_with_screenshot(log_file, "LK05 is set to grey!")  
开发者ID:avgqa,项目名称:qa-scripts,代码行数:18,代码来源:PF_Firefox_setup_1638.py

示例4: set_FB01_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_FB01_grey(log_file):
    
    mouseMove(Location(1000,120))
    click(Pattern(FB01_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    let_other_search =("LetOtherSearch.png")
    PF_common.verify_continue(log_file, let_other_search)
    sleep(1)
    click(let_other_search)
    sleep(2)
    click(fixes)
    sleep(5)
    mouseMove(Location(1000,100)) 
    PF_common.verify_continue(log_file,"FindableOnGoogle.png")
    PF_common.write_log_with_screenshot(log_file, "FB01 is set to grey!")                
开发者ID:avgqa,项目名称:qa-scripts,代码行数:18,代码来源:PF_Firefox_setup_1638.py

示例5: set_TW03_gray

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_TW03_gray(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(TW03_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    click(Pattern("TW03_setting.png").similar(0.95))
    sleep(2)
    click(TW_save_changes)
    sleep(2)
    type(PF_common._password)
    sleep(2)
    type(Key.ENTER)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    click(fixes)
    PF_common.verify_continue(log_file,"TW03_gray.png")
    PF_common.write_log_with_screenshot(log_file, "TW03 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:19,代码来源:PF_Firefox_setup_1638.py

示例6: set_GL01_gray

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_GL01_gray(log_file):
    GL01_gray=("GL01_gra.png")
    turnON=("turnON.png")
    mouseMove(Location(1000,120))
    click(Pattern(GL01_green).similar(0.90))
    sleep(2)
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    PF_common.verify_continue(log_file,turnON)
    click(turnON)
    sleep(2)
    click(fixes)
    mouseMove(Location(1000,100))
    sleep(5)
    PF_common.verify_continue(log_file,GL01_gray)
    PF_common.write_log_with_screenshot(log_file, "GL01 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:19,代码来源:PF_Firefox_setup_1638.py

示例7: set_FB02_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def  set_FB02_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(FB02_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    noOne=("noOne_FB02.png")
    PF_common.verify_continue(log_file, noOne)
    sleep(2) 
    click(noOne)
    sleep(2)
    click("Friends.png")
            
    sleep(2)
    click(fixes)
    sleep(5)    
    mouseMove(Location(1000,100))    
    PF_common.verify_continue(log_file,"FaceMachingOn.png")
    PF_common.write_log_with_screenshot(log_file, "FB02 is set to grey!") 
开发者ID:avgqa,项目名称:qa-scripts,代码行数:20,代码来源:PF_Firefox_setup_1638.py

示例8: set_GL02_gray

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_GL02_gray(log_file):
    GL02_gray=("1398675881814.png")
    resume=("1398676051128.png")
    pause=("1398676066429.png")    
    mouseMove(Location(1000,120))
    click(GL02_green)
    sleep(4)
    PF_common.ifPassword(log_file)
    sleep(4)
    if exists(Pattern(resume).similar(0.90)):
        click(Pattern(resume).similar(0.90))
        PF_common.verify_continue(log_file,pause)
    PF_common.load_browser_with_url("https://www.youtube.com/channel/UCOBefgX9GvHRr2Dn1hqllYw")    
    sleep(8)
    type("w", Key.CTRL)
    sleep(5)
    PF_common.verify_continue(log_file,GL02_gray)
    PF_common.write_log_with_screenshot(log_file, "GL02 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:20,代码来源:PF_Firefox_setup_1638.py

示例9: set_GL03_gray

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_GL03_gray(log_file):
    GL03_gray=("GL03_gra.png")
    settings=("GL_Ads_Settings.png")
    saveB=("Save_GL03.png")
    mouseMove(Location(1000,120))
    click(Pattern(GL03_green).similar(0.90))
    sleep(2)
    PF_common.ifPassword(log_file)
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))    
    PF_common.verify_continue(log_file,saveB)
    click(settings)
    sleep(2)
    click(saveB)
    sleep(2)
    click("1400760028072.png")
    sleep(5)
    PF_common.verify_continue(log_file,GL03_gray)
    PF_common.write_log_with_screenshot(log_file, "GL03 is set to grey!")
开发者ID:avgqa,项目名称:qa-scripts,代码行数:21,代码来源:PF_Firefox_setup_1638.py

示例10: set_FB07_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_FB07_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(FB07_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    noOne_FB07=("noOne_FB06.png")
    PF_common.verify_continue(log_file,noOne_FB07)

    click(noOne_FB07)
    sleep(1)
    click("OnlyMyFriends_FB06.png")
    sleep(1)
    click("SaveChanges_FB06.png")
    sleep(1)
    click(fixes)
    sleep(5)
    mouseMove(Location(1000,100))    
    PF_common.verify_continue(log_file,"InFacebookAds.png")
    PF_common.write_log_with_screenshot(log_file, "FB07 is set to grey!")            
开发者ID:avgqa,项目名称:qa-scripts,代码行数:21,代码来源:PF_Firefox_setup_1638.py

示例11: set_FB04_grey

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def set_FB04_grey(log_file):
    mouseMove(Location(1000,120))
    click(Pattern(FB04_green).similar(0.90))
    sleep(5)
    click(Pattern(hidefocus).similar(0.90))
    enabled=("enabled.png")
    PF_common.verify_continue(log_file,enabled)
    sleep(2)
    click(enabled)
    sleep(2)
    disabled=("disabled.png")
    PF_common.verify_continue(log_file,disabled)
    click(disabled)
    sleep(2)
    click(fixes)
    sleep(5)
    mouseMove(Location(1000,100)) 
    PF_common.verify_continue(log_file,"TagPreviewOff.png")
            
    PF_common.write_log_with_screenshot(log_file, "FB04 is set to grey!")    
开发者ID:avgqa,项目名称:qa-scripts,代码行数:22,代码来源:PF_Firefox_setup_1638.py

示例12: reset_result

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [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)
开发者ID:avgqa,项目名称:qa-scripts,代码行数:21,代码来源:PF_Firefox_setup_1638.py

示例13: PF_check_required_init

# 需要导入模块: import PF_common_FF [as 别名]
# 或者: from PF_common_FF import write_log_with_screenshot [as 别名]
def PF_check_required_init():

    PF_common.locate_tracking_section(log_file )
    rs=1

    PD02_Orange=("PD02_Orange.png")
    PD03_Orange=("PD03_Orange.png")
       
    t1=PF_common.verify_continue_with_similarity(log_file,PD02_Orange,0.90)
    t2=PF_common.verify_continue_with_similarity(log_file,PD03_Orange,0.90)
    
    if t1==0 or t2==0:
        PF_common.write_log_with_screenshot(log_file,"Personal Data & Tracking section is not orange")
        rs=2 
    else:
        PF_common.write_log_with_screenshot(log_file,"Personal Data & Tracking section IS orange!")      

    #PF_common.GoogleLogin(log_file)
    #if PF_common.verify_continue_with_similarity(log_file,"GoogleSection.png", 0.90)==0:
       # PF_common.write_log_with_screenshot(log_file,"Google section status is NOT set to orange!")
        #rs=3
 #       if exists(Pattern(GL01_green).similar(0.90)):set_GL01_gray(log_file)
#        if exists(Pattern(GL02_green).similar(0.90)):set_GL02_gray(log_file)  This item is blocked by AP-882
#        if exists(Pattern(GL03_green).similar(0.90)):set_GL03_gray(log_file)
 #   else: 
 #       PF_common.write_log_with_screenshot(log_file,"Google section IS SET  to orange!")

################################
#    PF_common.TwitterLogIn(log_file)
 #   if PF_common.verify_continue_with_similarity(log_file,"TW_section.png",0.90)==0:
 #       PF_common.write_log_with_screenshot(log_file,"Twitter section in IS NOT orange")
  #      rs=4
   #     if exists(Pattern(TW01_green).similar(0.90)):set_TW01_grey(log_file)
 #       if exists(Pattern(TW02_green).similar(0.90)):set_TW02_grey(log_file)
 #       if exists(Pattern(TW03_green).similar(0.90)):set_TW03_grey(log_file) 
 #   else:
 #       PF_common.write_log_with_screenshot(log_file,"Twitter section IS orange!") 
        
#################################
  
    PF_common.FacebookLogin(log_file)
   
    if PF_common.verify_continue_with_similarity(log_file,"FisrstTwoItems_FB.png",0.90)==0:
        PF_common.write_log_with_screenshot(log_file,"FB section1 is NOT orange")           
        rs=5 
        if exists(Pattern(FB01_green).similar(0.90)):set_FB01_grey(log_file)

        if exists(Pattern(FB02_green).similar(0.90)):set_FB02_grey(log_file)
    else:
        PF_common.write_log_with_screenshot(log_file,"First two items in FB section are orange!")
    
    type(Key.DOWN+Key.DOWN+Key.DOWN)

    if PF_common.verify_continue_with_similarity(log_file,"1400763451939.png",0.90)==0:
        PF_common.write_log_with_screenshot(log_file,"FB section2 is NOT orange")           
        rs=5 
        if exists(Pattern(FB04_green).similar(0.90)):set_FB04_grey(log_file)
        if exists(Pattern(FB06_green).similar(0.90)):set_FB06_grey(log_file)
        if exists(Pattern(FB07_green).similar(0.90)):set_FB07_grey(log_file)
    else:
        PF_common.write_log_with_screenshot(log_file,"Items from 4 till 9 are orange!")

   
    PF_common.LinkedInLogIn(log_file)

    if PF_common.verify_continue_with_similarity(log_file,"LK_section.png",0.90)==0:
        PF_common.write_log_with_screenshot(log_file,"Linked in IS NOT orange")
        rs=6
        if exists(Pattern(LK01_green).similar(0.90)):set_LK01_grey(log_file)
        if exists(Pattern(LK03_green).similar(0.90)):set_LK03_grey(log_file)
        if exists(Pattern(LK05_green).similar(0.90)):set_LK05_grey(log_file) 
    else:
        PF_common.write_log_with_screenshot(log_file,"LinkedIn section IS orange!") 
                   
    PF_common.write_log_with_screenshot(log_file, "end of Init")
    return rs
开发者ID:avgqa,项目名称:qa-scripts,代码行数:78,代码来源:PF_Firefox_setup_1638.py


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