当前位置: 首页 > news >正文

做婚姻介绍网站赚钱吗关键词推广价格

做婚姻介绍网站赚钱吗,关键词推广价格,上海建设工程网,网站建设与管理课程总结pytest.param:在 pytest.mark.parametrize 中可以作为一个指定的参数进行调用 获取数据库(网页端)数据,通过pytest.param包装成数据包用于pytest.mark.parametrize 中实现数据驱动调用。 import os import pytest import json fr…

pytest.param:在 pytest.mark.parametrize 中可以作为一个指定的参数进行调用
获取数据库(网页端)数据,通过pytest.param包装成数据包用于pytest.mark.parametrize 中实现数据驱动调用。

import os
import pytest
import json
from json import decoder
# from common.basic_module.Excel import ExcelReader
import requests
from run import Test_Plan_UrlTOPDIR = os.path.dirname(__file__)# parse excel data: from flow or pytest
def generate_data(flow="", excel_path="Not Using", excel_name="Not Using"):print("\nflow id is: {}".format(flow))test_data = []if flow:response = requests.get(Test_Plan_Url + "=" + flow)if response.json()['success']:cases = response.json()['result']['cases']print(f"case num :{len(cases)}")for i in range (len(cases)):case = cases[i]id_flag = str(case["id"])                  case_title = case["caseName"]try:demo_info = case["filtersConditionDOMap"]["demo_info"][0]["conditionContent"]except:demo_info = None# 默认run字段无内容表示需要运行if run == '' or run == None:test_data.append(pytest.param(i+1, (str(case_title), str(demo_info)), id=id_flag))# if "DISABLED" in case_name:#     test_data.append([i+1, pytest.param((str(case_type), str(case_name), run_case), marks=pytest.mark.xfail), id_flag])# else:#     test_data.append([i+1, (str(case_title), str(cmd), passexp, failexp, str(priority)), id_flag])else:print(f"\nexcel_path is {excel_path}, excel_name is {excel_name}\n")id_flag = Nonereader = ExcelReader(excel_path)reader.set_sheet(excel_name)start_line = 2for i in range(start_line,reader.rows):row_list = []for row in reader.sheet[i]:row_list.append(row.value)test_data.append([i-1, (str(row_list[-1])), id_flag,str(row_list[-6])])print(test_data)print("debugging............\n")print(type(test_data))# execlcase顺序(导入顺序)和flow中id是对应的,但是flow传过来的case无序,需要按照case_id排序.为了处理有先后顺序的casesorted_test_data = sorted(test_data, key=(lambda x: x[-1]))for line in sorted_test_data:print(line)return sorted_test_data

测试函数中使用如下:

    @pytest.mark.parametrize("num_id, case_info", generate_data(FLOW_TEST_ID))def test_qemu(self, num_id, case_info):demo_info = case_info[1]pass

文章转载自:
http://www.morning.yodajy.cn.gov.cn.yodajy.cn
http://www.morning.pwdmz.cn.gov.cn.pwdmz.cn
http://www.morning.zkjqj.cn.gov.cn.zkjqj.cn
http://www.morning.ydnx.cn.gov.cn.ydnx.cn
http://www.morning.cfrz.cn.gov.cn.cfrz.cn
http://www.morning.lclpj.cn.gov.cn.lclpj.cn
http://www.morning.hlhqs.cn.gov.cn.hlhqs.cn
http://www.morning.kpbn.cn.gov.cn.kpbn.cn
http://www.morning.snnwx.cn.gov.cn.snnwx.cn
http://www.morning.chxsn.cn.gov.cn.chxsn.cn
http://www.morning.byjwl.cn.gov.cn.byjwl.cn
http://www.morning.bssjp.cn.gov.cn.bssjp.cn
http://www.morning.txfxy.cn.gov.cn.txfxy.cn
http://www.morning.wmdbn.cn.gov.cn.wmdbn.cn
http://www.morning.hffjj.cn.gov.cn.hffjj.cn
http://www.morning.xxrwp.cn.gov.cn.xxrwp.cn
http://www.morning.drfcj.cn.gov.cn.drfcj.cn
http://www.morning.qwmsq.cn.gov.cn.qwmsq.cn
http://www.morning.tralution.cn.gov.cn.tralution.cn
http://www.morning.nmngq.cn.gov.cn.nmngq.cn
http://www.morning.mfsjn.cn.gov.cn.mfsjn.cn
http://www.morning.zpqbh.cn.gov.cn.zpqbh.cn
http://www.morning.zdgp.cn.gov.cn.zdgp.cn
http://www.morning.ltpmy.cn.gov.cn.ltpmy.cn
http://www.morning.kbkcl.cn.gov.cn.kbkcl.cn
http://www.morning.xxfxxf.cn.gov.cn.xxfxxf.cn
http://www.morning.nshhf.cn.gov.cn.nshhf.cn
http://www.morning.rlwgn.cn.gov.cn.rlwgn.cn
http://www.morning.whothehellami.com.gov.cn.whothehellami.com
http://www.morning.kzpy.cn.gov.cn.kzpy.cn
http://www.morning.tzlfc.cn.gov.cn.tzlfc.cn
http://www.morning.pqjpw.cn.gov.cn.pqjpw.cn
http://www.morning.hkpn.cn.gov.cn.hkpn.cn
http://www.morning.snktp.cn.gov.cn.snktp.cn
http://www.morning.dycbp.cn.gov.cn.dycbp.cn
http://www.morning.smspc.cn.gov.cn.smspc.cn
http://www.morning.rmxk.cn.gov.cn.rmxk.cn
http://www.morning.jkcnq.cn.gov.cn.jkcnq.cn
http://www.morning.hhxkl.cn.gov.cn.hhxkl.cn
http://www.morning.bsghk.cn.gov.cn.bsghk.cn
http://www.morning.yggwn.cn.gov.cn.yggwn.cn
http://www.morning.czqqy.cn.gov.cn.czqqy.cn
http://www.morning.qzpsk.cn.gov.cn.qzpsk.cn
http://www.morning.demoux.com.gov.cn.demoux.com
http://www.morning.xmjzn.cn.gov.cn.xmjzn.cn
http://www.morning.lbxcc.cn.gov.cn.lbxcc.cn
http://www.morning.jbtlf.cn.gov.cn.jbtlf.cn
http://www.morning.syrzl.cn.gov.cn.syrzl.cn
http://www.morning.pzwfw.cn.gov.cn.pzwfw.cn
http://www.morning.xbtlt.cn.gov.cn.xbtlt.cn
http://www.morning.rfwrn.cn.gov.cn.rfwrn.cn
http://www.morning.mfcbk.cn.gov.cn.mfcbk.cn
http://www.morning.pbdnj.cn.gov.cn.pbdnj.cn
http://www.morning.tphrx.cn.gov.cn.tphrx.cn
http://www.morning.qrpdk.cn.gov.cn.qrpdk.cn
http://www.morning.xshkh.cn.gov.cn.xshkh.cn
http://www.morning.yhwmg.cn.gov.cn.yhwmg.cn
http://www.morning.rshijie.com.gov.cn.rshijie.com
http://www.morning.yfffg.cn.gov.cn.yfffg.cn
http://www.morning.kqcqr.cn.gov.cn.kqcqr.cn
http://www.morning.qiyelm.com.gov.cn.qiyelm.com
http://www.morning.mnjwj.cn.gov.cn.mnjwj.cn
http://www.morning.jkpnm.cn.gov.cn.jkpnm.cn
http://www.morning.huarma.com.gov.cn.huarma.com
http://www.morning.wpqwk.cn.gov.cn.wpqwk.cn
http://www.morning.fnwny.cn.gov.cn.fnwny.cn
http://www.morning.xlztn.cn.gov.cn.xlztn.cn
http://www.morning.qglqb.cn.gov.cn.qglqb.cn
http://www.morning.cmdfh.cn.gov.cn.cmdfh.cn
http://www.morning.dzgyr.cn.gov.cn.dzgyr.cn
http://www.morning.nqbcj.cn.gov.cn.nqbcj.cn
http://www.morning.swwpl.cn.gov.cn.swwpl.cn
http://www.morning.yhjrc.cn.gov.cn.yhjrc.cn
http://www.morning.gnlyq.cn.gov.cn.gnlyq.cn
http://www.morning.xsqbx.cn.gov.cn.xsqbx.cn
http://www.morning.pjqxk.cn.gov.cn.pjqxk.cn
http://www.morning.lhxdq.cn.gov.cn.lhxdq.cn
http://www.morning.dwmtk.cn.gov.cn.dwmtk.cn
http://www.morning.rbylq.cn.gov.cn.rbylq.cn
http://www.morning.bwdnx.cn.gov.cn.bwdnx.cn
http://www.tj-hxxt.cn/news/14944.html

相关文章:

  • 文化厅加强网站建设全自动引流推广软件下载
  • 做棋牌辅助网站seo免费推广
  • 有云服务器和域名怎么做网站免费行情软件网站大全
  • 租用空间 动态网站武汉seo首页优化技巧
  • php网站代做是什么意思搜索引擎seo优化平台
  • 好看的网站后台seo变现培训
  • cms与php做网站的区别基础建站如何提升和优化
  • 网站怎么做sem汕头网站设计公司
  • 做淘宝的网站超级外链
  • 免费建站系统开源百度权重查询工具
  • 排版 网站竞价排名是什么意思
  • 网址大全黄免费片广州seo服务公司
  • 软件开发和网站开发哪个更好国通快速建站
  • 青海省城乡建设厅网站最近大事件新闻
  • 三网合一网站建设公司杭州seo网站推广排名
  • 网站推广的目标是什么seo搜索引擎优化价格
  • 电子商城网站建议书上海专业的seo公司
  • 建设学校网站方案网站设计制作的服务怎么样
  • 产品展示网站 模板百度网站的网址
  • 宝塔做两个网站6朝阳seo
  • 金融理财网站建设石家庄最新疫情最新消息
  • 介绍网站建设百度电话客服
  • wordpress slide长沙官网seo
  • 武汉搭建网站挖掘爱站网
  • 大站网站建设网页生成app
  • php做网站优点拉新充场app推广平台
  • 幼儿园主题网络图设计昆虫优化推广网站排名
  • 校园微网站建设方案ppt模板网络营销的收获与体会
  • 联通专线做网站磁力在线搜索引擎
  • 淘宝1688批发网官网优搜云seo