- 博客(34)
- 收藏
- 关注
转载 Jmeter5.4.1修改内存大小(转载)
1.找到apache-jmeter-5.4.1\bin\jmeter.bat2.编辑jmeter.bat3.找到如下内容if not defined HEAP (4.复制下面这段代码,替换上去,我配置的是最小1G,最大8Gif not defined HEAP (rem See the unix startup file for the rationale of the following parameters,rem including some tuning recommendations
2021-09-30 23:28:44
931
1
转载 Jmeter系列(35)- 设置JVM内存(转载)
https://blog.51cto.com/u_15069490/3631941场景单台机器的下JMeter启动较大线程数时可能会出现运行报错的情况,或者在运行一段时间后,JMeter每秒生成的请求数会逐步下降,直到为0,即JMeter运行变得很“卡”,这时候我们可以调整JVM内存,来对Jmeter进行优化设置JVM内存①找到JMeter bin目录下的jmeter.bat文件;Linux找jmeter.sh文件,编辑打开②查找以下内容rem See the unix startup fi.
2021-09-30 23:26:19
1170
转载 JMeter性能测试,完整入门篇(转载)
https://blog.youkuaiyun.com/lovesoo/article/details/78579547?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163301426516780366593962%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=163301426516780366593962&biz_id=0&u
2021-09-30 23:07:44
180
转载 Jmeter跨线程组引用变量的3种方法(转载)
利用BeanShell后置处理程序将参数设置为全局变量,用于跨线程传参(注:1、把提取变量的线程组放到引用变量的线程组前2、在测试计划中勾选“独立运行每个线程组”)方法1(jmeter自带函数__setProperty)在提取token的接口下添加BeanShell后置处理程序KaTeX parse error: Expected group after '_' at position 2: {_̲_setProperty(ne…{token},false)};//将token赋值给newToken,
2021-09-30 22:51:24
986
原创 Linux+Ant+Jmeter实现接口自动化部署,并邮件发送测试结果
总体思路html---存放生成的html结果result--存放jmeter格式化后jtl脚本script--存放jmeter生成的jmx脚本software存放上载的软件Linux配置jmeter,jdk,ant,jenkins暂时省略,网上大家都可以百度到下面是讲解下持续集成构建cp /root/html/SummaryReport.html $WORKSPACE/SummaryReport.htmlcp /root/html/DetailReport.html
2021-09-13 21:39:01
168
原创 Jmeter接口自动化测试结果报告优化
使用的是Jmeter的jmeter-results-detail-report_21.xsl模板文件模板优化
2021-09-01 20:06:26
285
转载 TestNG 实现接口并发(转载)
转载自http://testingpai.com/article/1597995207987前言TestNG 是一款单元测试\集成框架,它提供了一系列的丰富注解来帮助我们很方便的编写和管理被测项目的测试类和测试方法。而且功能比 junit 更强大,支持依赖测试,忽略测试,异常测试,超时测试,分组测试等多种测试场景。广泛运用于接口自动化测试、UI 自动化测试。在接口测试中,经常需要模拟用户行为,比如:高峰期访问接口,秒杀商品。这些都需对接口进行高并发模拟才能测试出效果。TestNG 中的多线程1.
2021-08-06 14:14:30
484
转载 HttpClient 4.5.9 入门介绍PoolingHttpClientConnectionManager(转载)
转载于http://www.httpclient.cn/archives/78.htmlpublic class App{ private static CloseableHttpClient httpClient = null; private static void initHttpClient() { final PoolingHttpClientConnectionManager connectionManager = new PoolingHtt.
2021-08-04 22:19:44
1367
转载 HttpClient4.5.2 连接池原理及注意事项(转载)
转载于http://www.httpclient.cn/archives/55.html随着微服务的流行,服务之间的HTTP调用越来越多,遇到的问题也比较多,本文的目的讲述一下HttpClient4.5.2 连接池原理及注意事项一、为什么要用Http连接池1、降低延迟:如果不采用连接池,每次连接发起Http请求的时候都会重新建立TCP连接(经历3次握手),用完就会关闭连接(4次挥手),如果采用连接池则减少了这部分时间损耗2、支持更大的并发:如果不采用连接池,每次连接都会打开一个端口,在大并发的.
2021-08-04 21:36:55
568
原创 JMeter多个Json断言表达式切割处理(三)
<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.11</version> <scope>test</scope> </dependency> <dependency> <groupId>com.jay..
2021-07-31 22:55:06
300
转载 JSONPath介绍
JSONPath介绍,转载https://github.com/alibaba/fastjson/wiki/JSONPath
2021-07-31 12:57:06
107
转载 Java 连接oracle数据库(最简单的使用)
转载自:https://blog.youkuaiyun.com/qq_43179428/article/details/109457480
2021-07-30 21:40:25
152
原创 JMeter多个Json断言表达式切割处理(二)
package com.qa.utils;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;public class SplitString { public static void main(String[] args) { SplitString cc=new SplitString(); List<Map
2021-07-30 21:33:19
185
原创 JMeter多个Json断言表达式切割处理(一)
package com.qa.utils;import java.util.Arrays;import java.util.List;public class SplitString { public static void main(String[] args) { String a1 = "$.bo[0]=aa&&$.bo[1]=bb&&$.bo[2]=cc"; String[] a2 = a1.split("&&
2021-07-29 22:38:47
195
原创 JMeter运行环境依赖,JDK1.8下载
Oracle官网下载JDK1.8https://www.oracle.com/cn/java/technologies/javase/javase-jdk8-downloads.html至于我写这个笔记,是建议同学们,下载软件最好是去官网下载,不然在钓鱼网站下载的绿色版,可能会在你的电脑植入病毒隐患前提条件是需要登录,没有可以注册一个账号,根据自己的项目选择下载版本,我这里下载的是windows 64位的,以前下载是不用登录,应该还有一个是OpenJDK,我暂时没有找到官方的下载网址...
2021-07-27 23:02:50
202
原创 JMeter组件参考说明20210725
https://jmeter.apache.org/usermanual/component_reference.html组件过多,这里不详细说明,单个查看可以点击每个组件的?图标
2021-07-26 07:58:49
112
原创 JMeter工具的BeanShell断言20210725
BeanShell Assertionhttps://jmeter.apache.org/usermanual/component_reference.html#BeanShell_Assertionif (ResponseCode != null && ResponseCode.equals ("200") == false ){ // this is standard stuff Failure=true ; FailureMessage ="Respo
2021-07-26 07:58:37
165
原创 JMeter工具分布式测试示例20210725
25. Apache JMeter 分布式测试循序渐进https://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.html这个简短的教程解释了如何使用多个系统来执行压力测试。在我们开始之前,有几件事需要检查。系统上的防火墙已关闭或打开了正确的端口。所有客户端都在同一个子网上。如果使用192.xxx或10.xxx IP 地址,则服务器位于同一子网中。如果服务器不使用192.xx或10.xx IP 地址,
2021-07-26 07:58:14
131
原创 JMeter加载Grafana20210725
Grafana configurationhttps://jmeter.apache.org/usermanual/realtime-results.html15.4 Grafana configurationInstalling grafanaRead documentation for more details. Add the datasourceHere is the kind of dashboard that you could obtain:https://grafana.c
2021-07-25 16:11:04
61
原创 JMeter的CLI 模式(批处理)测试运行20210725
CLI 模式(批处理)测试运行https://jmeter.apache.org/usermanual/listeners.html在 CLI 模式下运行时,-l标志可用于为测试运行创建顶级侦听器。这是测试计划中定义的任何侦听器的补充。此侦听器的配置由文件jmeter.properties 中的条目控制, 如上一节所述。此功能可用于为每次测试运行指定不同的数据和日志文件,例如:jmeter -n -t testplan.jmx -l testplan_01.jtl -j testplan_01.
2021-07-25 15:57:30
226
原创 JMeter的Default Configuration默认配置,jmeter.properties (or user.properties) file20210725
properties 文件https://jmeter.apache.org/usermanual/listeners.htmlThe default items to be saved can be defined in the jmeter.properties (or user.properties) file. The properties are used as the initial settings for the Listener Config pop-up, and are als
2021-07-25 15:52:24
584
原创 JMeter工具创建WebService测试计划20210725
创建WebService测试计划https://jmeter.apache.org/usermanual/build-ws-test-plan.html构建 WebService 测试计划在本节中,您将学习如何创建 测试计划来测试 Web 服务。您将创建五个向 One page 发送请求的用户。此外,您将告诉用户运行他们的测试两次。因此,请求总数为(5 个用户)x(1 个请求)x(重复 2 次)= 10 个 HTTP 请求。要构建测试计划,您将使用以下元素: 线程组、 HTTP 请求和 聚合图。
2021-07-25 15:42:36
140
原创 JMeter完整的命令行20210725
Full list of command-line optionshttps://jmeter.apache.org/usermanual/get-started.htmlInvoking JMeter as “jmeter -?” will print a list of all the command-line options. These are shown below. --? print command line options and exit -h, --h
2021-07-25 15:20:44
273
原创 JMeter的分布式测试Remote Testing20210725
Remote Testinghttps://jmeter.apache.org/usermanual/remote-test.html中文版:13. 远程测试如果您的 JMeter 客户端机器在性能方面无法模拟足够多的用户来对您的服务器施加压力或在网络级别受到限制,则可以选择从单个 JMeter 客户端控制多个远程 JMeter 引擎。通过远程运行 JMeter,您可以在许多低端计算机上复制测试,从而在服务器上模拟更大的负载。JMeter 客户端的一个实例可以控制任意数量的远程 JMeter 实
2021-07-25 15:13:54
398
原创 JMeter的Server Mode模式20210725
JMeter的Server Mode模式https://jmeter.apache.org/usermanual/get-started.html1.4.5 Server ModeFor distributed testing, run JMeter in server mode on the remote node(s), and then control the server(s) from the GUI. You can also use CLI mode to run remote te
2021-07-25 15:00:21
714
原创 CLI Mode (Command Line mode was called NON GUI mode),JMeter的CLI模式解析20210725
JMeter的CLI Mode解析https://jmeter.apache.org/usermanual/get-started.htmlFor load testing, you must run JMeter in this mode (Without the GUI) to get the optimal results from it. To do so, use the following command options:-nThis specifies JMeter is to r
2021-07-25 14:53:47
620
原创 Running JMeter,JMeter.bat文件解析20210725
JMeter.bat文件,运行JMeterhttps://jmeter.apache.org/usermanual/get-started.htmlTo run JMeter, run the jmeter.bat (for Windows) or jmeter (for Unix) file. These files are found in the bin directory. After a short time, the JMeter GUI should appear.GUI mode
2021-07-25 14:40:39
717
2
原创 JMeter工具引用外部jar文件参考20210725
JMeter’s Classpathhttps://jmeter.apache.org/usermanual/get-started.html#classpathJMeter automatically finds classes from jars in the following directories:JMETER_HOME/libused for utility jarsJMETER_HOME/lib/extused for JMeter components and pluginsI
2021-07-25 14:19:13
368
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人