def curriculum_vm_script(self,i):
        #加载登录时的账号密码数据
        user_data = self.data_value[i]  # i  用户信息下标
        username,password = user_data["username"],user_data["password"]

        #打开浏览器并访问指定url地址
        driver = Select_Webdriver("Chrome").webdriver_open()
        driver.get(self.url)

        #登录操作
        Login = LoginPage(driver)
        driver = Login.login(username,password)

        #学习课件打开虚机操作
        Course = Currency_Script(driver,execl_name="cze_data.xls",sheet_name="cze_Learm_Curriculum")
        driver = Course.currency_scirpt_case(username,self.path,self.kc_jt_path)
    def test_login(self, data_value):
        #加载登录时的账号密码数据

        #打开浏览器至指定页面

        driver = Select_Webdriver("Chrome", "no-head").webdriver_open()
        driver.get("https://192.168.50.66")

        #登录操作
        Login = LoginPage(driver)
        driver = Login.login(data_value["username"], data_value["password"])

        #创建任务
        Course = Task_Details(driver)
        driver = Course.course_ware(data_value["username"])
        return driver
    def login(self,i):
        #加载登录时的账号密码数据
        user_data = self.data_value[i]  # i  用户信息下标
        username,password = user_data["username"],user_data["password"]

        #打开浏览器至指定页面
        driver = Select_Webdriver("Chrome").webdriver_open()
        driver.get(self.url)

        #登录操作
        Login = LoginPage(driver)
        driver = Login.login(username,password)

        #修改指定任务并批量创建VM
        Course = Currency_Script(driver,execl_name="czx_data.xls",sheet_name="czx_new_scene")
        driver = Course.currency_scirpt_case(username)
        return driver
    def login(self,i):
        #加载登录时的账号密码数据

        # self.data_value[i] = {"username":"******","password":"******"}
        data_value_demo = self.data_value[i]  # i  账号密码获取顺序号,例:第一次取test1,第二次取test2,对应账号密码列表中下标

        #打开浏览器至指定页面
        driver = Select_Webdriver("Chrome").webdriver_open()
        driver.get(self.url)

        #登录操作
        Login = LoginPage(driver)
        driver = Login.login(data_value_demo["username"],data_value_demo["password"])

        #学习课件打开虚机操作
        Course = Currency_Script(driver,execl_name="cze_data.xls",sheet_name="cze_Learm_Elective")
        driver = Course.currency_scirpt_case(data_value_demo["username"],self.path)
        return driver