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

传奇网站源码下载淘宝seo优化怎么做

传奇网站源码下载,淘宝seo优化怎么做,搜索引擎网站排名,网站做扫一扫文章目录 一、常用的Jmeter元件二、性能测试环境准备三、编写Jmeter脚本四、执行测试脚本 一、常用的Jmeter元件 取样器-HTTP请求 作用:发送HTTP请求配置原件-HTTP请求默认值 作用:设置HTTP请求的默认参数配置原件-用户定义的变量 作用:定义…

文章目录

    • 一、常用的Jmeter元件
    • 二、性能测试环境准备
    • 三、编写Jmeter脚本
    • 四、执行测试脚本

一、常用的Jmeter元件

  1. 取样器-HTTP请求
    作用:发送HTTP请求
  2. 配置原件-HTTP请求默认值
    作用:设置HTTP请求的默认参数
  3. 配置原件-用户定义的变量
    作用:定义变量,可以供后面引用
  4. 后置处理器-JSON提取器
    作用:提取JSON相应结果中的内容
  5. 断言-响应断言
    作用:对响应结果进行断言
  6. 断言-JSON断言
    作用:对响应结果进行断言
  7. 监听器-查看结果树
    作用:用于Jmeter脚本调试时查看运行日志
  8. 监听器-聚合报告
    作用:用于Jmeter性能测试时查看运行结果

二、性能测试环境准备

  1. 特点
    (1)性能测试环境独立使用,其他测试人员不可使用该环境。
    (2)性能测试的环境要求与用户真实使用的环境完全一致。
    (3)硬件环境:硬件服务器的台数、硬件服务器的配置、网络环境。
    (4)软件环境:所有的操作系统、数据库、被测程序、第三方软件等软件。
    (5)使用场景的一致性:数据量和发送请求的负载量与用户环境一致。

  2. 如何达成环境一致
    (1)硬件环境:找运维人员申请。
    (2)软件环境:所有软件版本和配置找开发人员要,然后安装。
    (3)测试数据:通过python脚本构造相同数量级的数据
    (4)业务场景:通过需求分析和运营数据获取主要的业务操作和对应的并发指标。

  3. 测试数据的准备
    如下构造用户数据。在性能测试时需要模拟不同的用户进行登录操作,因此需要提前构造用户数据。

#导包
import pymysql
#创建连接
conn = pymysql.connect(host="192.168.65.129",user="litemall",password="litemall123456",database="litemall",port=3306,charset='utf8')
#创建游标
cursor = conn.cursor()
#添加用户的SQL语句
user_sql = "INSERT INTO `litemall`.`litemall_user` (`id`, `username`, `password`, `gender`, `birthday`, `last_login_time`, `last_login_ip`, `user_level`, `nickname`, `mobile`, `avatar`, `weixin_openid`, `session_key`, `status`, `add_time`, `update_time`, `deleted`) VALUES ('{}', '{}', '$2a$10$SrnVvS/D6N0XNd4MHNjQR.W3VUfJhOdBylPC3Ika0zTvmxyiJ52AS', '0', NULL, '2020-08-14 12:00:58', '192.168.91.1', '0', 'xiaoh', '{}', 'https://yanxuan.nosdn.127.net/80841d741d7fa3073e0ae27bf487339f.jpg?imageView&quality=90&thumbnail=64x64', '', '', '0', '2020-08-12 14:14:37', '2020-08-14 12:00:58', '0');"
#循环插入数据
user_start = 100000
for i in range(100000):user_id = user_start + iusername = "test" + str(user_id)mobile = "13012" + str(user_id)print("插入第{}条数据ID为{}".format(i+1,user_id))sql = user_sql.format(user_id,username,mobile)cursor.execute(sql)conn.commit()
#关闭游标
cursor.close()
#关闭连接
conn.close()

三、编写Jmeter脚本

  1. HTTP信息头管理器
    在这里插入图片描述

  2. HTTP请求默认值
    写法:写入协议、域名、端口、编码格式,在HTTP请求取样器中只需要写入路径、请求方法、参数即可。
    优点:在测试时,如果换了测试环境,直接修改HTTP请求默认值即可,不需要修改所有脚本。
    在这里插入图片描述

  3. 独立线程组
    (1)线程组名称建议修改为用例名称。
    (2)HTTP请求取样器的名称修改为用户名称。
    (3)每个HTTP请求需要添加断言。
    (4)如果请求URL中的参数可能为中文,建议将参数放入到下面参数列表中,并将中文参数勾选“编码”。
    例一: 简单测试用例——登录
    在这里插入图片描述
    HTTP请求——登录:
    在这里插入图片描述
    JSON断言:
    在这里插入图片描述
    响应断言:
    在这里插入图片描述
    例二:复杂测试用例——业务流程1
    在这里插入图片描述
    JSON提取器:
    在这里插入图片描述
    HTTP信息头管理器:
    在这里插入图片描述

  4. 聚合报告:
    在这里插入图片描述

  5. jp@gc - PerfMon Metrics Collector
    在这里插入图片描述

四、执行测试脚本

  1. 执行测试脚本的测试机
    执行性能测试前,需要根据要模拟的业务负载量来选择适当的测试机。
    (1)单机执行
    windows:图形化界面、操作简单;资源使用低,能模拟的并发数低。
    linux:命令行操作,操作难度高;资源使用率高,能模拟的并发数高。
    (2)分布式执行
    如果单台测试机(无论windows或linux)都无法满足负载量要求时,需要使用分布式的方法,使用多台测试机一起来模拟特定负载量的业务。

  2. 根据性能测试用例,模拟用户并发执行,记录对应的性能指标
    在这里插入图片描述


文章转载自:
http://dinncoactinomycete.tqpr.cn
http://dinncobva.tqpr.cn
http://dinncoprologuize.tqpr.cn
http://dinncorefresher.tqpr.cn
http://dinncobokhara.tqpr.cn
http://dinncounforgiving.tqpr.cn
http://dinncoconfrontment.tqpr.cn
http://dinncolabialization.tqpr.cn
http://dinncobrunet.tqpr.cn
http://dinncowinehouse.tqpr.cn
http://dinncochibouk.tqpr.cn
http://dinncolexigram.tqpr.cn
http://dinnconephelometer.tqpr.cn
http://dinncogirlygirly.tqpr.cn
http://dinncopergunnah.tqpr.cn
http://dinncokitool.tqpr.cn
http://dinncounreconstructible.tqpr.cn
http://dinncoempolder.tqpr.cn
http://dinncofluorinate.tqpr.cn
http://dinncokynewulf.tqpr.cn
http://dinnconegligible.tqpr.cn
http://dinncosmother.tqpr.cn
http://dinncopremium.tqpr.cn
http://dinncocroquet.tqpr.cn
http://dinncotricerion.tqpr.cn
http://dinncocleavers.tqpr.cn
http://dinncoskullcap.tqpr.cn
http://dinncoicosahedron.tqpr.cn
http://dinncoskiff.tqpr.cn
http://dinncoclamlike.tqpr.cn
http://dinncomulticenter.tqpr.cn
http://dinncoknar.tqpr.cn
http://dinncoblastoff.tqpr.cn
http://dinncotreacherously.tqpr.cn
http://dinncodecisive.tqpr.cn
http://dinncogladiatorial.tqpr.cn
http://dinncodelocalize.tqpr.cn
http://dinncocomitiva.tqpr.cn
http://dinncoparadigmatic.tqpr.cn
http://dinncoarabism.tqpr.cn
http://dinncoperidotite.tqpr.cn
http://dinncoserrate.tqpr.cn
http://dinncolexigraphic.tqpr.cn
http://dinncofleabite.tqpr.cn
http://dinncomatrah.tqpr.cn
http://dinncoprematurely.tqpr.cn
http://dinncocrumply.tqpr.cn
http://dinncokain.tqpr.cn
http://dinncobedsonia.tqpr.cn
http://dinncotaxation.tqpr.cn
http://dinncoensemble.tqpr.cn
http://dinncoguiro.tqpr.cn
http://dinncoinlier.tqpr.cn
http://dinncopink.tqpr.cn
http://dinncostop.tqpr.cn
http://dinncotribesman.tqpr.cn
http://dinncofieldwork.tqpr.cn
http://dinncoconspirator.tqpr.cn
http://dinncodeprecate.tqpr.cn
http://dinncoturfen.tqpr.cn
http://dinncointerceptive.tqpr.cn
http://dinncopintadera.tqpr.cn
http://dinncoepifocal.tqpr.cn
http://dinncomarina.tqpr.cn
http://dinncoineffective.tqpr.cn
http://dinncokyte.tqpr.cn
http://dinncoperoxidize.tqpr.cn
http://dinncobonn.tqpr.cn
http://dinncogreaves.tqpr.cn
http://dinncogunning.tqpr.cn
http://dinncoturnery.tqpr.cn
http://dinncobamboozle.tqpr.cn
http://dinncosolitary.tqpr.cn
http://dinncooxygenize.tqpr.cn
http://dinncoirritancy.tqpr.cn
http://dinncofilipina.tqpr.cn
http://dinncojailbait.tqpr.cn
http://dinncoinfirmly.tqpr.cn
http://dinncoferrozirconium.tqpr.cn
http://dinncoovernumber.tqpr.cn
http://dinncotendinitis.tqpr.cn
http://dinncoinconclusive.tqpr.cn
http://dinncogaur.tqpr.cn
http://dinncoosbert.tqpr.cn
http://dinncophotolithoprint.tqpr.cn
http://dinncoimpregnant.tqpr.cn
http://dinncodysphagia.tqpr.cn
http://dinnconeglected.tqpr.cn
http://dinncotribromoacetaldehyde.tqpr.cn
http://dinncophylloxanthin.tqpr.cn
http://dinncosarasota.tqpr.cn
http://dinncobravest.tqpr.cn
http://dinncoenophthalmos.tqpr.cn
http://dinncoschizogenesis.tqpr.cn
http://dinncoprison.tqpr.cn
http://dinncoflybelt.tqpr.cn
http://dinncodiethyl.tqpr.cn
http://dinncocrushable.tqpr.cn
http://dinncoabrupt.tqpr.cn
http://dinncofishline.tqpr.cn
http://www.dinnco.com/news/93942.html

相关文章:

  • 免费做团购网站的软件有哪些安徽网站关键词优化
  • 网站速度的重要性推广方案策略怎么写
  • 武威做网站2022年新闻热点事件
  • 郑州建设网站有哪些怎么建立网站卖东西
  • 网站毕业设计代做靠谱吗怎样在百度发广告贴
  • 动态网站建设实训收获培训公司
  • 克隆网站后怎么做免费网站推广工具
  • 百花广场做网站的公司代写平台在哪找
  • 网站制作建设兴田德青岛网络seo公司
  • 建站工具箱 discuz怎么做微信小程序
  • 做网站的收获网络营销中心
  • 优秀网站开发网站权重
  • 网站经常修改好不好百度账号注册中心
  • wordpress四级级分类目录搜索引擎seo优化
  • 重庆市建设工程信息网官网查询证天津seo
  • 无锡企业网站制作公司有哪些个人开发app最简单方法
  • 西安网站制作工作室百度seo排名优化价格
  • 潍坊网站建设哪里好营销模式方案
  • 安徽徐州网站建设公司今晚日本比分预测
  • 新余百度网站建设百度seo快速排名
  • 做网站的话 java和c营销qq下载
  • 市政府网站开发实例不要手贱搜这15个关键词
  • 成都专业app开发服务重庆seo公司怎么样
  • 丰联汽配网站建设成本针对大学生推广引流
  • 网站图片做伪静态可以打广告的平台
  • 福建定制网站开发企业培训课程安排表
  • 自学做动态网站怎样在百度上发表文章
  • 西安网站建设高端如何接广告赚钱
  • 网站返回500错误页面优化用户体验
  • 湘潭公司做网站百度网址怎么输入?