from appium import webdriver
import ddt, os, time
from untils.Parmeris import Parmer
from untils.log import LOG
from untils.disapp import make_dis
from untils.gettestdata import huoqu_test
from funtions.regpub import RegFuntion
from untils.huoqu_xingneng import caijicpu, getnencun
from untils.recording_txt import write_recording
from config.config import TestappPackage

path = os.getcwd()
testcasedata = path + '/data/testcase_data.xlsx'
data_test = huoqu_test(testcasedata, index=1)
from untils.saveresult import save_result


@ddt.ddt
class regtest(Parmer):
    def __init__(self, parm, methodName='runTest'):
        super(regtest, self).__init__(methodName)
        self.port = parm['port']
        LOG.info(parm)
        self.parm = parm

    """这是reg测试用例"""

    def setUp(self):
        """ setup """
        self.dis_app = make_dis(Testplatform=self.parm['platformName'],
                                TestplatformVersion=self.parm['platformVersion'],
import os

import ddt

from bussiness.login import Login_tes
from untils.gettestdata import huoqu_test
from selenium import webdriver

from untils.log import LOG

path = os.getcwd()
#case_path=path+r'\data\case1.xlsx'
case_path = r'C:\Users\cheng\PycharmProjects\selenium4\data\case1.xlsx'
casedata = huoqu_test(case_path, 0)

print(casedata)