在Jmeter中使用自定义编写的Java测试代码.doc_第1页
在Jmeter中使用自定义编写的Java测试代码.doc_第2页
在Jmeter中使用自定义编写的Java测试代码.doc_第3页
在Jmeter中使用自定义编写的Java测试代码.doc_第4页
在Jmeter中使用自定义编写的Java测试代码.doc_第5页
已阅读5页,还剩30页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

- - jmeter - CSDN tag /tag/jmeter/1.html jmeter - CSDN tag CSDN.NET Tue, 23 Jan 2007 18:21:13 GMT - 在Jmeter中使用自定义编写的Java测试代码 /Article/92c1ed77-4347-4964-a424-97ee87100036.html 乐以忘忧 92c1ed77-4347-4964-a424-97ee87100036 Fri, 19 Jan 2007 15:02:14 GMT 0 在Jmeter中使用自定义编写的Java测试代码         我们在做性能测试时,有时需要自己编写测试脚本,很多测试工具都支持自定义编写测试脚本,比如LoadRunner就有很多自定义脚本的协议,比如"C Vuser","Java Vuser"等协议.同样,Jmeter也支持自定义编写的测试代码,不过与LoadRunner不同的是,Jmeter没有自带编译器,需要借助第三方编译器才能实现.下面举一个简单的Java自定义测试代码例子,使用Java编译器编写测试代码(Java编译器可以用Eclipse,JBulider等),实现功能为:在测试前输入任意一个字符串,然后判断该字符串的长度是否大于5,如果大于则测试结果成功,否则测试结果位失败,然后在放到Jmeter中模拟10个用户测试,同时运行这段代码,具体实现如下:        1.打开Java编译器,新建一个项目"TestLength",然后新建一个包"app".        2.从Jmeter的安装目录libext中拷贝两个文件"ApacheJMeter_core.jar"和"ApacheJMeter_java.jar"到"Tester"的项目中,然后引入这两个JAR文件.( - Jmeter Validation /Article/820973cb-4f74-40f8-8104-2105c6dce27b.html harshae 820973cb-4f74-40f8-8104-2105c6dce27b Sun, 14 Jan 2007 00:00:00 GMT 0 Jmeter Validation Hi I want to validate Meter testing tool.Is anyone validated previously?.Could you please anyone help me in writing a verification test plan to validate Jmeter(related documents).Thanks in advanceHarsha. - Apache JMeter /Article/aaf52511-d0eb-453f-9cd1-39d57b86cbfa.html Steve aaf52511-d0eb-453f-9cd1-39d57b86cbfa Sun, 14 Jan 2007 00:00:00 GMT 0 Apache JMeter Hi all,Ill apologise now as this is a little off topic, but Im getting desparate I am using JMeter to regression test a Web based administration console.I tried various JMeter, and non JMeter, related newsgroups, mailing lists, IRC channels and forums but I havent had any joy. - JMeter problem /Article/d2034e74-17a5-49ee-9cd6-fa7f657c9712.html PRABUSHANKAR CHINNASAMY d2034e74-17a5-49ee-9cd6-fa7f657c9712 Sun, 14 Jan 2007 00:00:00 GMT 0 JMeter problem Im using JMeter to test my webserver+components for runtime entities.My application uses Struts framework.I couldnt get my JMeter responding.Can someone suggest me some workaround? - JMeter Java Request /Article/119b8b4c-ac45-47ce-a6e6-174dae9abe94.html David Brown 119b8b4c-ac45-47ce-a6e6-174dae9abe94 Sun, 14 Jan 2007 00:00:00 GMT 0 JMeter Java Request I am new to using JMeter, I have been trying to use the Java Request within a Thread Group.However when I run the test it executes upto and including the Java Request but does not execute anything afterwards. - 使用 JMeter 完成常用的压力测试 /Article/d93e232d-edf7-4d4a-887d-52c32649cf79.html yzsind d93e232d-edf7-4d4a-887d-52c32649cf79 Thu, 11 Jan 2007 14:04:18 GMT 0 使用 JMeter 完成常用的压力测试 JMeter 完成常用的压力测试。并以 JMeter 为例,介绍了使用它来完成最常用的三种类型服务器,即 Web 服务器、数据库服务器和消息中间件,压力测试的方法、步骤以及注意事项。4. 逻辑控制器可以自定义JMeter发送请求的行为逻辑,它与Sampler结合使用可以模拟复杂的请求序列。它们都是请求主要发生的地点,请求频率较其它的节点要高,而且处于请求序列的关键路径之上。本文介绍了如何使用JMeter完成最常用的三种类型服务器的压力测试,这三种类型的压力测试涵盖了很大一部分的使用情形,然而需要记住的是工具毕竟是工具。 - 如何区分Server Time 和 Network Time /Article/3af13249-5383-4c9c-bdc2-26e3dd803549.html ACDSee 3af13249-5383-4c9c-bdc2-26e3dd803549 Sun, 31 Dec 2006 23:27:44 GMT 0 如何区分Server Time 和 Network Time 如何区分Server Time 和 Network Time.在 LR 中是有一个"网页细分图"的,通过这个图,你可以比较容易的区分哪些请求的响应时间最长,如果响应时间过程,是消耗在server处理的时候,还是消耗在网络传输过程中-也就是所谓的 Server time 和 Network time。JMeter 并没有提供这么详细的区分-至少目前尚未发现,但是在 JMeter 的执行结果中也有一个字段可以利用一下。在 JMperties 中找到 JMeter.save.saveservice.output_format=csv 改为JMeter.save.saveservice.output_format=xml. - Database Connection Pooling with Tomcat /Article/09c833a6-884c-4b7c-b789-b8a909aaeefc.html 09c833a6-884c-4b7c-b789-b8a909aaeefc Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Using JMeter /Article/51602ac5-46e3-442f-9f3f-dd9cb75522b2.html 51602ac5-46e3-442f-9f3f-dd9cb75522b2 Tue, 19 Dec 2006 00:00:00 GMT 0 Using JMeter When I ran my test plan, I got the results like those shown in Figure 4.<img src="/onjava/2003/01/15/graphics/img4.gif" />Figure 4: A table report.A popularlistener is the Graph Results, as shown in Figure 5. <img src="/onjava/2003/01/15/graphics/img5.gif" />Figure 5: Graph results.Figure 6 shows the detail page of aHTTP Request Defaults element.<img src="/onjava/2003/01/15/graphics/img6.gif" />Figure 6: HTTP request defaults.JMeter provides cookie - Using JMeter /Article/2b52fe88-4350-4ade-b3e7-2fd604c000b8.html 2b52fe88-4350-4ade-b3e7-2fd604c000b8 Tue, 19 Dec 2006 00:00:00 GMT 0 Using JMeter When I ran my test plan, I got the results like those shown in Figure 4.<img src="/onjava/2003/01/15/graphics/img4.gif" />Figure 4: A table report.A popularlistener is the Graph Results, as shown in Figure 5. <img src="/onjava/2003/01/15/graphics/img5.gif" />Figure 5: Graph results.Figure 6 shows the detail page of aHTTP Request Defaults element.<img src="/onjava/2003/01/15/graphics/img6.gif" />Figure 6: HTTP request defaults.JMeter provides cookie - Using JMeter /Article/850f132d-a5ea-4c26-a310-594a81dfc64e.html 850f132d-a5ea-4c26-a310-594a81dfc64e Tue, 19 Dec 2006 00:00:00 GMT 0 Using JMeter When I ran my test plan, I got the results like those shown in Figure 4.<img src="/onjava/2003/01/15/graphics/img4.gif" />Figure 4: A table report.A popularlistener is the Graph Results, as shown in Figure 5. <img src="/onjava/2003/01/15/graphics/img5.gif" />Figure 5: Graph results.Figure 6 shows the detail page of aHTTP Request Defaults element.<img src="/onjava/2003/01/15/graphics/img6.gif" />Figure 6: HTTP request defaults.JMeter provides cookie - Database Connection Pooling with Tomcat /Article/9f1e0ec5-18f4-4822-844a-5295510c763b.html 9f1e0ec5-18f4-4822-844a-5295510c763b Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Database Connection Pooling with Tomcat /Article/df62ce6a-de85-4b69-8b59-82931c2363f7.html df62ce6a-de85-4b69-8b59-82931c2363f7 Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Using JMeter /Article/2d0ddd68-3c41-46ca-8cb1-5d843cb19525.html Budi Kurniawan 2d0ddd68-3c41-46ca-8cb1-5d843cb19525 Tue, 19 Dec 2006 00:00:00 GMT 0 Using JMeter JMeter is a Java-based tool for load testing client-server applications.JMeter 1.8 requires a working JDK 1.4 environment.OnLinux/UNIX, run JMeter by invoking the jmeter shell script.Figure 1 showsJMeters main window, which is a Swing application.<img src="/onjava/2003/01/15/graphics/img1.gif" />Figure 1: JMeters main window.If the number of threads used is 10and the ramp-up period is 20 seconds, JMeter will take 20 seconds to createthose 10 threads, creating one new thread eve - Database Connection Pooling with Tomcat /Article/78c64dbc-b5e1-40a9-8f64-e8a8b54e455d.html 78c64dbc-b5e1-40a9-8f64-e8a8b54e455d Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Database Connection Pooling with Tomcat /Article/1512e337-59d1-4b91-ada2-3b81c0a3c5cb.html 1512e337-59d1-4b91-ada2-3b81c0a3c5cb Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Database Connection Pooling with Tomcat /Article/404b3d97-11ba-4b69-abe1-dc9752785f88.html 404b3d97-11ba-4b69-abe1-dc9752785f88 Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Database Connection Pooling with Tomcat /Article/5896adc8-4687-4c4c-bf12-c4d682117bb6.html 5896adc8-4687-4c4c-bf12-c4d682117bb6 Tue, 19 Dec 2006 00:00:00 GMT 0 Database Connection Pooling with Tomcat Pooled DB connections deviation (click for full-size image)<img src="/onjava/2006/04/19/graphics/non_pooling_test.gif" alt="Thumbnail, click for full-size image." width="450" height="337" border="0" />Figure 2.Non-pooled DB connections deviation (click for full-size image)After several test runs, it turned out that connection pooling is at least four times faster than explicitly creating a DB connection object from the ground up. - Using JMeter /Article/4bac9b4a-9308-4424-8ba3-5f592c65b075.html 4bac9b4a-9308-4424-8ba3-5f592c65b075 Tue, 19 Dec 2006 00:00:00 GMT 0 Using JMeter When I ran my test plan, I got the results like those shown in Figure 4.<img src="/onjava/2003/01/15/graphics/img4.gif" />Figure 4: A table report.A popularlistener is the Graph Results, as shown in Figure 5. <img src="/onjava/2003/01/15/graphics/img5.gif" />Figure 5: Graph results.Figure 6 shows the detail page of aHTTP Request Defaults element.<img src="/onjava/2003/01/15/graphics/im

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论