商城登录

2017-10-31  本文已影响0人  jianshu_xu

商城登录测试执行一次用时1秒,8个错误日志

1、录制的脚本导入,执行

设置线程组参数


运行log

2017-10-31 11:42:32,417 INFO o.a.j.e.StandardJMeterEngine: Running the test!

2017-10-31 11:42:32,417 INFO o.a.j.s.SampleEvent: List of sample_variables: []

2017-10-31 11:42:32,417 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)

2017-10-31 11:42:32,507 INFO o.a.j.e.StandardJMeterEngine: No enabled thread groups found

2017-10-31 11:42:32,507 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test

2017-10-31 11:42:32,507 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

2017-10-31 11:42:44,402 INFO o.a.j.g.a.Load: Loading file: C:\Users\xu\Desktop\31login.jmx

2017-10-31 11:42:44,402 INFO o.a.j.s.FileServer: Set new base='C:\Users\xu\Desktop'

2017-10-31 11:42:44,512 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2

2017-10-31 11:42:44,532 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8

2017-10-31 11:42:44,532 INFO o.a.j.s.SaveService: Using SaveService properties version 3.2

2017-10-31 11:42:44,532 INFO o.a.j.s.SaveService: Loading file: C:\Users\xu\Desktop\31login.jmx

2017-10-31 11:42:44,552 INFO o.a.j.p.h.c.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_

2017-10-31 11:42:44,656 INFO o.a.j.s.FileServer: Set new base='C:\Users\xu\Desktop'

2017-10-31 11:42:53,048 INFO o.a.j.e.StandardJMeterEngine: Running the test!

2017-10-31 11:42:53,048 INFO o.a.j.s.SampleEvent: List of sample_variables: []

2017-10-31 11:42:53,058 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)

2017-10-31 11:42:53,148 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group

2017-10-31 11:42:53,148 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.

2017-10-31 11:42:53,148 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error

2017-10-31 11:42:53,148 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false

2017-10-31 11:42:53,158 INFO o.a.j.t.ThreadGroup: Started thread group number 1

2017-10-31 11:42:53,158 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started

2017-10-31 11:42:53,158 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1

2017-10-31 11:42:53,168 INFO o.a.j.p.h.s.HTTPJavaImpl: Maximum connection retries = 0

2017-10-31 11:42:53,348 WARN o.a.j.p.h.c.HC4CookieHandler: Not storing invalid cookie:for URL http://malldev.fccn.cc/ (Cookie name may not contain blanks)

2017-10-31 11:42:53,378 WARN o.a.j.p.h.c.HC4CookieHandler: Not storing invalid cookie:for URL http://malldev.fccn.cc/index.php?m=Home&c=Cart&a=header_cart_list (Cookie name may not contain blanks)

2017-10-31 11:42:53,508 ERROR o.a.j.p.h.s.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 500 for URL: http://devapi.fccn.cc/Api/v1.1/Account/Login

2017-10-31 11:42:53,508 ERROR o.a.j.p.h.s.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 500 for URL: http://devapi.fccn.cc/Api/v1.1/Account/Login

2017-10-31 11:42:53,508 INFO o.a.j.p.h.s.HTTPJavaImpl: Error Response Code: 500

2017-10-31 11:42:53,538 ERROR o.a.j.p.h.s.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 400 for URL: http://devapi.fccn.cc/Api/v1.1/Account/Login

2017-10-31 11:42:53,538 ERROR o.a.j.p.h.s.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 400 for URL: http://devapi.fccn.cc/Api/v1.1/Account/Login

2017-10-31 11:42:53,538 INFO o.a.j.p.h.s.HTTPJavaImpl: Error Response Code: 400

2017-10-31 11:42:53,561 ERROR o.a.j.p.h.s.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 401 for URL: http://devapi.fccn.cc/Api/v1.1/My/Identities?fields=company%2Ccompany.type%2Cuser%2Ccompany.hasSites

2017-10-31 11:42:53,561 ERROR o.a.j.p.h.s.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 401 for URL: http://devapi.fccn.cc/Api/v1.1/My/Identities?fields=company%2Ccompany.type%2Cuser%2Ccompany.hasSites

2017-10-31 11:42:53,561 INFO o.a.j.p.h.s.HTTPJavaImpl: Error Response Code: 401

2017-10-31 11:42:53,591 ERROR o.a.j.p.h.s.HTTPJavaImpl: readResponse: java.io.IOException: Server returned HTTP response code: 401 for URL: http://devapi.fccn.cc/Api/v1.1/My/Companies?fields=Employees%2CEmployees.User%2CEmployees.Company

2017-10-31 11:42:53,591 ERROR o.a.j.p.h.s.HTTPJavaImpl: Cause: java.io.IOException: Server returned HTTP response code: 401 for URL: http://devapi.fccn.cc/Api/v1.1/My/Companies?fields=Employees%2CEmployees.User%2CEmployees.Company

2017-10-31 11:42:53,591 INFO o.a.j.p.h.s.HTTPJavaImpl: Error Response Code: 401

2017-10-31 11:42:53,761 WARN o.a.j.p.h.c.HC4CookieHandler: Not storing invalid cookie:for URL http://malldev.fccn.cc/ (Cookie name may not contain blanks)

2017-10-31 11:42:53,761 INFO o.a.j.u.JsseSSLManager: Using default SSL protocol: TLS

2017-10-31 11:42:53,761 INFO o.a.j.u.JsseSSLManager: SSL session context: per-thread

2017-10-31 11:42:53,801 INFO o.a.j.u.SSLManager: JmeterKeyStore Location:  type JKS

2017-10-31 11:42:53,801 INFO o.a.j.u.SSLManager: KeyStore created OK

2017-10-31 11:42:53,801 WARN o.a.j.u.SSLManager: Keystore file not found, loading empty keystore

2017-10-31 11:42:54,232 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1

2017-10-31 11:42:54,232 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1

2017-10-31 11:42:54,232 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test

2017-10-31 11:42:54,232 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

2、http请求及请求的参数


3、取样器结果,请求数据,响应数据(通过、未通过各举一例)

通过:

未通过:

4、执行100次的聚合报告

# Samples - 用同一个请求取样器,发送请求的数量(注意:该值是不断累计的)。比如,10个线程数设置为10,迭代10次,那么每运行一次测试,该值就增加10*10=100

Average - 默认情况下是单个Request的平均响应时间,当使用了Transaction Controller 时,也可以以Transaction为单位显示平均响应时间

Median - 中位数。表示响应时间本不大于该时间值的请求样本数占总数的50%

90% Line - 表示响应时间不大于该时间值的请求样本数占总数的90%

Min - 针对同一请求取样器,请求样本的最小响应时间

Max - 针对同一请求取样器,请求样本的最大响应时间

Error % - 出现错误的请求样本的百分比

Throughput - 吞吐量以“requests/second、requests /minute、requests /hour”来衡量。 时间单位已经被选取为second,所以,显示速率至少是1.0,即每秒1个请求。 当吞吐量被保存到CVS文件时,采用的是requests/second,所以30.0 requests/second 在CVS中被保存为0.5

Kb/sec - 以Kilobytes/seond来衡量的吞吐量

5、图形结果

图表底部参数的含义如下:

样本数目:总共发送到服务器的请求数。

最新样本:代表时间的数字,是服务器响应最后一个请求的时间。

吞吐量:服务器每分钟处理的请求数。

平均值:总运行时间除以发送到服务器的请求数。

中间值:代表时间的数字,有一半的服务器响应时间低于该值而另一半高于该值。

偏离:服务器响应时间变化、离散程度测量值的大小,或者,换句话说,就是数据的分布。

上一篇 下一篇

猜你喜欢

热点阅读