摘要
随着移动互联网行业的快速发展和各类移动端应用程序(APP)的不断出现,使得很多原本需要在电脑上访问的网站系统可随时随地在智能手机上访问,给用户带来了诸多便利。为了保证用户体验,对于用户访问量大、受众范围广的大型手机APP不仅要关注其功能性、易用性、交互性,还要关注它的多用户并发性能。提出基于Fiddler+Loadrunner的移动端微信公众号程序的自动化性能测试方案。采用Fiddler录制测试脚本、使用Loadrunner配置测试场景,多次模拟不同数量的用户并发访问系统。结果表明:当并发量为1 000时,平均响应时间为0. 121 s,事务成功率为100%,多次测试的平均每秒点击次数和平均吞吐量一一对应成正比关系,且都随着并发用户数的增加而上升。测试表明服务器能够及时接受用户请求并能正确返回结果,完全能够承受4 000个用户系统在线。
With rapid development of the mobile Internet,and constant emerging of mobile applications,it is possible for many website systems that accessed only on computer can also be accessed on smart phones anytime and anywhere to provide users a lot of convenience.In order to ensure user experience,the test of a large-scale mobile phone APP should not only be focused on its functionality,ease of usage,or interactivity,but also its multi-user concurrency performance.An automatic load test program for WeChat public accounts based on Fiddler and Loadrunner was proposed.By using Fiddler to record test scripts and LoadRunner to configure test scenarios,the users visiting the system concurrently with different numbers were simulated.The results show that when the number of concurrent users is 1 000,the average response time is 0.121 s,and the success rate of transaction is 100%.The average hits per second and the average throughput of multiple tests are proportional to each other,and both of them increase with the number of concurrent users.Tests show that the server can accept user requests without delay and return results correctly,and fully support 4 000 users online.
作者
冯兴利
范兆忠
罗军锋
锁志海
FENG Xingli;FAN Zhaozhong;LUO Junfeng;SUO Zhihai(Network Information Center,Xi’an Jiaotong University,Xi’an Shaanxi 710049,China)
出处
《计算机应用》
CSCD
北大核心
2018年第A02期262-264,共3页
journal of Computer Applications