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


Python PublicFunctions类代码示例

本文整理汇总了Python中PublicFunctions的典型用法代码示例。如果您正苦于以下问题:Python PublicFunctions类的具体用法?Python PublicFunctions怎么用?Python PublicFunctions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: test030_Category_Name

 def test030_Category_Name(self):
     FunctionCommon.smartsearch(self,"Ignition")
     Mutil_Selection.Products_ViewDetail(self)
     Verification.Verify_Category(self,"Ignition")
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:7,代码来源:SmartSearchTestCases.py

示例2: test022_Brand_Name

 def test022_Brand_Name(self):
     FunctionCommon.smartsearch(self,"Extang")
     Mutil_Selection.Products_ViewDetail(self)
     Verification.Verify_Brand(self,"Extang")
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:7,代码来源:SmartSearchTestCases.py

示例3: test012_Prod_SKU

 def test012_Prod_SKU(self):
     FunctionCommon.smartsearch(self,"82016")
     Mutil_Selection.Products_ViewDetail(self)
     Verification.Verify_SKU(self,"82016")
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self) 
开发者ID:nirvana-info,项目名称:old_bak,代码行数:7,代码来源:SmartSearchTestCases.py

示例4: Brand

def Brand(self,value):
    PublicFunctions.my_wait_element(self,"//div[@id='LayoutColumn1']/div[2]/div[2]/ul[1]/li[2]/img")
    if PublicFunctions.my_wait_element(self,"//input[@name=\'%s\']" %value) is False:
        self.selenium.click("//div[@id='LayoutColumn1']/div[2]/div[2]/ul[1]/li[2]/img") 
    self.selenium.click("//div[@id='LayoutColumn1']/div[2]/div[2]/ul[1]/li[2]/img")
    PublicFunctions.my_wait_element(self,"//input[@name=\'%s\']" %value)
    self.selenium.click("//input[@name=\'%s\']" %value)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:7,代码来源:Mutil_Selection.py

示例5: setUp

    def setUp(self):        
        self.verificationErrors = []
        self.selenium = selenium("localhost", 4444, "*firefox3 E:/Program Files/Mozilla Firefox/firefox.exe", "http://www.lofinc.net/login/account")
        sel=self.selenium
        sel.start()
        sel.set_timeout("0")        
        sel.open("/")

        # Login
        for i in range(0, 30):
            if sel.is_element_present("login_email") == True:
                sel.type("login_email","[email protected]")
                sel.type("login_pass","123456")
                sel.click("LoginButton")
                break
            else :
                time.sleep(1)

        PublicFunctions.my_wait_text_present(self, "Quick Search")  

        # If YMM have values, clean them.
        IsClean = True
        if sel.is_element_present("//span[@id='side_selected_year']/label") == True:
            IsClean = False 
        elif sel.is_element_present("//span[@id='side_selected_make']/label") == True:
            IsClean = False
        elif sel.is_element_present("//span[@id='side_selected_model']/label") == True:
            IsClean = False

        if IsClean == False:
            FunctionCommon.Clear(self,"all")
开发者ID:nirvana-info,项目名称:old_bak,代码行数:31,代码来源:TestBase.py

示例6: test030_MoreProd

 def test030_MoreProd(self):
     Mutil_Selection.Make(self,"FORD")
     Mutil_Selection.Categories_QP(self,"Bed Mats")     
     FunctionCommon.Browser(self)   
     Mutil_Selection.SubCategories_Link(self,"category/68/subcategory/636/make/ford")
     Mutil_Selection.ProdList_AddToCart(self, "1")
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)       
开发者ID:nirvana-info,项目名称:old_bak,代码行数:8,代码来源:MoreProdTestCases.py

示例7: test032_MoreProd

 def test032_MoreProd(self):
     Mutil_Selection.Year(self,"2005")
     Mutil_Selection.Brand(self,"Extang")              
     FunctionCommon.Browser(self)
     Mutil_Selection.Series_options(self,"Extang EXPRESS Universal Tailgate Seal")
     Mutil_Selection.ProdList_AddToCart(self, "4")
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:8,代码来源:MoreProdTestCases.py

示例8: test031_MoreProd

 def test031_MoreProd(self):
     Mutil_Selection.Year(self,"2006")
     Mutil_Selection.Make(self,"DODGE")
     Mutil_Selection.Categories_QP(self,"Nerf Bars")     
     FunctionCommon.Browser(self)   
     Mutil_Selection.SubCategories_Link(self,"category/57/subcategory/728/year/2006/make/dodge")
     Mutil_Selection.ProdList_AddToCart(self, "5")
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:9,代码来源:MoreProdTestCases.py

示例9: test020_MoreProd

 def test020_MoreProd(self):
     Mutil_Selection.Make(self,"HONDA")
     Mutil_Selection.Categories_QP(self,"Mufflers")     
     FunctionCommon.Browser(self) 
     Mutil_Selection.SubCategories_Link(self,"category/224/subcategory/421/make/honda")
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.UpdateQty(self,"3")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:10,代码来源:MoreProdTestCases.py

示例10: test021_MoreProd

 def test021_MoreProd(self):
     Mutil_Selection.Year(self,"2009")
     Mutil_Selection.Brand(self,"K&N")              
     FunctionCommon.Browser(self)
     Mutil_Selection.Series_options(self,"Air Filter Accessories") 
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.UpdateQty(self,"3")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:10,代码来源:MoreProdTestCases.py

示例11: test011_TwoSubCategories

 def test011_TwoSubCategories(self):
     Mutil_Selection.Make(self,"TOYOTA")
     Mutil_Selection.Categories_QP(self,"Bed Mats")
     time.sleep(3)
     Mutil_Selection.Categories_QP(self,"Oil Filters")        
     FunctionCommon.Browser(self)
     Mutil_Selection.TwoSubCategories_select(self,"Universal Oil Filters","Harley Davidson Bed Mat")
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:11,代码来源:MoreSubCateOrSeriesTestCases.py

示例12: test022_TwoSeries

 def test022_TwoSeries(self):
     Mutil_Selection.Year(self,"2007")
     Mutil_Selection.Brand(self,"K&N")
     time.sleep(3)
     Mutil_Selection.Brand(self,"Lund")       
     FunctionCommon.Browser(self)
     Mutil_Selection.TwoSeries_select(self,"//div[@id='subcatleftcolumn']/img","//div[5]/li[1]/div[1]/img")
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:11,代码来源:MoreSubCateOrSeriesTestCases.py

示例13: test010_TwoSubCategories

 def test010_TwoSubCategories(self):
     Mutil_Selection.Year(self,"2010")
     Mutil_Selection.Categories_QP(self,"Tonneau Covers")
     time.sleep(3)
     Mutil_Selection.Categories_QP(self,"Nerf Bars")        
     FunctionCommon.Browser(self)
     Mutil_Selection.TwoSubCategories_select(self,"Truck Champ Drop Step","Snap Tonneau Covers")
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:11,代码来源:MoreSubCateOrSeriesTestCases.py

示例14: test020_TwoSeries

 def test020_TwoSeries(self):
     Mutil_Selection.Year(self,"2010")
     Mutil_Selection.Brand(self,"Advantage")
     time.sleep(3)
     Mutil_Selection.Brand(self,"AEM")       
     FunctionCommon.Browser(self)
     Mutil_Selection.TwoSeries_select(self,"//li[2]/div[1]/img","//div[2]/li[1]/div[1]/img")
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:11,代码来源:MoreSubCateOrSeriesTestCases.py

示例15: test012_TwoSubCategories

 def test012_TwoSubCategories(self):
     Mutil_Selection.Year(self,"2009")
     Mutil_Selection.Categories_QP(self,"Fender Flares")
     time.sleep(3)
     Mutil_Selection.Categories_QP(self,"Gauges")        
     FunctionCommon.Browser(self)
     Mutil_Selection.TwoSubCategories_select(self,"Edge Gauge","Extended Fender Flares")
     time.sleep(5)
     Mutil_Selection.Products_ViewDetail(self)
     AddCart.AddCart(self)
     PublicFunctions.my_wait_text_present(self,"Your Shopping Cart")
     AddCart.CheckOut(self)
开发者ID:nirvana-info,项目名称:old_bak,代码行数:12,代码来源:MoreSubCateOrSeriesTestCases.py


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