Esempio n. 1
0
 def test_insertzhibo(self,fenlei_child,zhibo_title,zhibo_sub,pic_url,zhibo_fwb,fxpz):
     zb = zhiboPage(self.driver)
     now_time=str(int(time.time()))
     zhibo_title = zhibo_title + now_time
     zb.insertzhibo(fenlei_child,zhibo_title,zhibo_sub,pic_url,zhibo_fwb,fxpz)
     text = zb.weifabudetailzb()
     self.assertEqual("直播标题"+now_time,text)
Esempio n. 2
0
    def test_cxfabuzhibo(self):
        zb = zhiboPage(self.driver)
        zb.cxfabuzb()
        text = zb.fabudetailzb()
        print("打算撤销发布的直播名称",text)

        fabu = zb.weifabudetailzb()
        print("撤销发布的直播名称",fabu)
        self.assertEqual(text,fabu)
Esempio n. 3
0
    def test_fabuzhibo(self):
        zb = zhiboPage(self.driver)
        zb.fabuzb()
        text = zb.fabudetailzb()
        print(text)
        weifabu = zb.weifabudetailzb()
        print(weifabu)

        self.assertEqual(weifabu,text)
Esempio n. 4
0
    def test_insertzhibo(self, fenlei, fenlei_child, zhibo_title, zhibo_sub,
                         pic_url, zhibo_fwb, zhibo_status, fxpz):

        zb = zhibo.zhiboPage(self.driver)
        zb.insertzhibo(fenlei, fenlei_child, zhibo_title, zhibo_sub, pic_url,
                       zhibo_fwb, zhibo_status, fxpz)
        text = zb.detailzb()
        print(text)
        self.assertEqual("直播标题", text)
Esempio n. 5
0
 def test_search_zbtitle(self):
     zb = zhiboPage(self.driver)
     keys = '直播'
     nums = zb.search_zbtitle(keys)
     for num in nums:
         self.assertIn(keys,num)
Esempio n. 6
0
 def test_zhiding(self):
     zb  = zhiboPage(self.driver)
     text = zb.fabudetailzb()
     zb.zhiding()
     zd_title = zb.zd_title()
     self.assertEqual(text,zd_title)
Esempio n. 7
0
 def test_fabuzhibo(self):
     zb = zhibo.zhiboPage(self.driver)