def test_get_meet_record_filelist():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[6]  #6是获取会议录制文件列表
    i["request"]["json"]["confId"] = str(
        yaml_handle.read_yaml("responseyaml.yaml")["confId"])  # 替换confId
    print(i)
    redata = api_request.api_request(i)
    return redata
def test_stop_meet_record():
    i=yaml_handle.read_yaml("cfgyaml.yaml")
    i=i[5] #5是停止会议录制
    #i["request"]["json"]["sessionId"]=yaml_handle.read_yaml("responseyaml.yaml")["sessionId"]#替换sessionid
    #i["request"]["json"]["confId"] = str(yaml_handle.read_yaml("responseyaml.yaml")["confId"])  # 替换confId str
    print(i)
    redata = api_request.api_request(i)
    return redata
def test_stop_meet_record():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[3]  #3是开始会议录制配置项
    #i["request"]["json"]["confId"] = str(yaml_handle.read_yaml("responseyaml.yaml")["confId"])# 替换confId
    redata = api_request.api_request(i)
    n = redata["recordData"][0]  #取出sessionid
    yaml_handle.write_a_yaml("responseyaml.yaml", n)
    return redata
def test_start_meet_living():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[0]  # 0是开始直播
    redata = api_request.api_request(i)
    global confId, sessionId
    confId = i["request"]["json"]["confId"]  #取会议id
    sessionId = redata["liveData"][0]["sessionId"]  # 取出sessionid
    #print("sessionid = %s" %sessionId)
    globle_set.set_map("confId", confId)
    globle_set.set_map("sessionId", sessionId)
    assert redata["statusCode"] == "000000"
    return confId, sessionId
    #yaml_handle.write_w_yaml("responseyaml.yaml", n) # 将yaml中第一项会议id 写入返回yaml文件,
    request.check(redata, expectschema)
Beispiel #5
0
def test_stop_meet_living():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[2]  # 2是停止直播
    print(i)
    confId = globle_set.get_map("confId")
    sessionId = globle_set.get_map("sessionId")
    i["request"]["json"]["confId"] = confId # 取会议id
    i["request"]["json"]["sessionId"] = sessionId
    print(i)
    log = logging.getLogger('test_stop_meet_living')
    time.sleep(1)
    log.debug(i)
    redata = api_request.api_request(i)
    assert redata["statusCode"] == "000000"
    return redata
Beispiel #6
0
#coding:utf-8
import time, os
import datetime
import unittest
from appium.webdriver.common.touch_action import TouchAction
#from robot.utils.asserts import *
from public import login
from public import logout, swip
from public.extend import Appium_Extend
from public.clear_massage import clear_allmassage
from public.set_driver import set_driver
import pytest, allure
from params import yaml_handle

config = yaml_handle.read_yaml("device.yaml")
config1 = yaml_handle.read_yaml("data.yaml")
uid = config["蓝色ipod"]
iphone_password = config["13366778604"]
massage = config1["massage"]


class Imtest(unittest.TestCase):
    #def __init__(self,driver):
    #self.driver = driver
    def setUp(self):
        wq = set_driver()
        self.driver = wq.get_driver(uid, '4723')
        self.verificationErrors = []
        self.driver.implicitly_wait(10)
        self.extend = Appium_Extend(self.driver)