def test_WebPage_Monitor(self):
     step.goto(URL.UCDN_Web_URL)
     step.addTS(8)
     tr=3
     UCDN1 = UCDN.UCDN(ProductType="ucdnweb")
     self.Domain=UCDN1.V3_List_UCDN_GetData(tr, 3)
     UCDN1.ListSelect(tr)
     UCDN1.Panel_Monitor(tr)
     UCDN1.Panel_Monitor_Detail(tr)
     step.addTS(8)
     UCDN1.SelectUCDNType(u"网页加速")
     self.Domain_Report=UCDN1.UCDNTypeChecklist(tr)
     if self.Domain==self.Domain_Report:
         step.addLog("Domains are filtered correctly!")
     else:
         raise step.caseVarError()
     UCDN1.BandwidthReport_GraphDataStatisticSwitch()
     UCDN1.UCDNname_Filter(self.Domain)
     step.addTS(2)
     self.Domain_Report1=UCDN1.UCDNTypeChecklist(1)
     if self.Domain==self.Domain_Report1:
         step.addLog("Domain is filtered correctly!")
     else:
         raise step.caseVarError()
Exemplo n.º 2
0
 def test_baidu_search2(self):
     
     # search2 check
     step.addLog("search1 fail raise error")
Exemplo n.º 3
0
 def test_baidu_search1(self):
     
     # search1 check
     step.addLog("search1 fail raise error")
     raise step.autoTestError("Error test.")