当前位置:网站首页>It's 2022, and you still don't know what performance testing is?
It's 2022, and you still don't know what performance testing is?
2022-06-25 02:15:00 【Xiaowu knock code】
hi , Friends who are interested in software testing , You must all want to know why the monthly salary of performance test engineers is higher ? below , Let me tell you more about it ~
First , Software testing is mainly divided into : A functional test 、 Performance testing 、 automated testing 、 Ease of use test 、 Compatibility test 、 Six categories of reliability testing .
secondly , The average salary of various test engineers varies . According to the third party platform 《 Working friends 》 Employment data analysis , Among the more than 10000 software test engineers in Shanghai , The average salary is 10400 element , The average salary of functional test engineer is 11950 element , The average salary of performance test engineer is as high as 14970 element . Than the average salary of software development engineers 14040 element , And nearly a thousand yuan more .
below , Let's learn about performance testing ~
1、 Performance test content
1) The load test (load test): For distributed networks , Test the response of the system by testing the number of different users , Focus on performance indicators , The system behaves differently .
2) Pressure test (stress testing): Multi user high concurrency test under high voltage (30 ten thousand -50 ten thousand ), Focus on how the system crashed .( Memory leak ,cpu No response , Database unresponsive , Network congestion )
3) Capacity test (volumn testing): The relevant number of maximum supports of the system , The maximum number of data in the database , Number of users .
2、 Why do performance tests ?
1) At present, most applications are distributed applications based on network , We don't know the number of users , Uncertainty of user scenarios , Cause system testing , It's not just function , Business logic , The interface test , Also test the system performance . One user is OK , But once there are many users, there may be various problems , Therefore, system performance test is required .
2) The number of users has increased , System liabilities increased , Conduct system performance test , Know the number of concurrent users the system bears , Whether the bandwidth is enough ,cpu Is it enough for , Is there enough memory , Whether the hard disk speed can keep up with . From the server side , Test whether the server can host multiple concurrent users , Is the system stable , From the user's point of view, response time and speed .
3、 Performance test evaluation index
1) response time (response time): Evaluate the response speed of the system from the perspective of users , The empirical value of the usual response time :2s Fluent ,5s You can use ,10s slower .
2) throughput / rate : Hard disk IO( Reading and writing ), The Internet IO( Uplink and downlink bandwidth ),cupIO, Server processing power , The number of pages opened by the client .
3) Transaction processing power (TPS tansaction per second): Open the page , Login server , A certain action of a user, such as message sending, is called a thing .
4、 Performance testing concerns ( It is also the focus of software testing )
1) The role and value of software testing : There are two aspects: products and users . Product perspective : Find problems as early as possible in the R & D process , Improve software quality , Ensure product interaction , Functional perfection , Stable and reliable . User perspective : Focus on user experience , operation , Interface , performance , Try to improve the user experience as much as possible , Continuous improvement .
2) The focus of performance testing :( Three layer architecture , Various constraints , Using clusters , Cloud computing , virtualization )
Response time is fast or slow , Server side processing speed ;
Server side usage ;
Resource usage on the database side ;
Maximum number of user visits ;
The maximum number of services processed at the same time ;
Examine whether the system can support 7x24 Hour run ;
Memory resources 、 Whether thread resources can be recycled normally ;
Code , Algorithm ,sql Whether the sentence design is reasonable ;
Stability of the whole system , Recoverability .
5、 The core principle of performance testing and the development of testing tools
The core principle of performance testing and the development of testing tools , Mainly based on the first two points :
1) Based on the agreement ( Front end and back end communication mechanism )、 Interface ( Decide to interact with the front end ) And code ( Back end ). Network based distributed architecture : Simulate users to send requests based on network protocols .
2) Multithreading : Simulate multithreaded operation 、 Many people operate at the same time 、 Simulate large load ( Functional testing is used to test functions ).
3) Simulate real scene : Real network environment , User operation time uncertainty , Operation is uncertain , The data are accurate , Wrong scene , Data may not be available .
6、 Code implementation performance testing
Performance test for a function , Forum login and posting (post agreement , Multithreading these two points ); Login operation , Post operation ( It's about the agreement ), Use multithreading to operate at the same time .
7、loadrunner Use ( Protocol script , Multithreading )
Four main components :
1)vuser generator ( Virtual User Generator ) Develop performance test scripts ;
2)controller Provide multithreading, concurrency and other operations ;
3)ananlysis Result analysis ;
4)load generator Load generator (controller A primary key inside ).
for instance :
A、 Create a new script :
B、 Enter interface , Click on start Record a script :
C、internet application refer to b-s framework ,win 32 Refer to c-s framework , The default is to record to action, Check recond Start immediately .
TIPS:
1) You can write it by hand , Can record :
Click on web_url, Use get request ;
Click on web_submit_data, Use post request .
2) Solve the mess :
At the beginning of the :tool > advaced > support charset // utf-8 Or native code ;
Runtime :vuser > preferences > option > convert from/to utf-8.
3) The difference in coding :
National standard GB-x ,2byte-16bit , 2^16 Combinations of , Code only Chinese .
utf-8 :3byte = 24bit 2^24 Combinations of , Unified coding of characters all over the world .
ascii code : A byte (2^8=128)
Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !
These materials , For those who want to change careers 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful ……
If you don't want to grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card below to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .
| Click the small card at the end of the document to receive it |
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
Self study recommendation B Stop video :
Zero basis transition software testing :25 Days from zero basis to software testing post , I finished today , Employment tomorrow .【 Include features / Interface / automation /python automated testing / performance / Test Development 】
Advanced automation testing :2022B The first station is super detailed python Practical course of automated software testing , Prepare for the golden, silver and four job hopping season , After advanced learning, it soared 20K
边栏推荐
- Sumati gamefi ecological overview, element design in the magical world
- June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “f
- 中文地址与英文地址
- What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?
- DataEase模板市场正式发布
- 02-Epicor二次开发常用代码
- 软件测试人员的7个等级,据说只有1%的人能做到级别7
- tmux 如何自定义背景颜色 | How does the tmux color palette work?
- jwt
- Redistemplate operates redis. This article is enough (I) [easy to understand]
猜你喜欢
![Full arrangement ii[duplicate removal of the same elements + standard backtracking]](/img/d3/93ddb49e580be60be4f056f141b782.png)
Full arrangement ii[duplicate removal of the same elements + standard backtracking]

非凸联合创始人李佐凡:将量化作为自己的终身事业

Sumati GameFi生态纵览,神奇世界中的元素设计

EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?

After integrating the aurora push plug-in in the uni app, the real machine debugging prompts "the currently running base does not contain the native plug-in [jg-jpush]..." Solutions to problems

jwt

测试/开发程序员,30而立,你是否觉得迷茫?又当何去何从......

Intranet learning notes (5)

Redis

【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
随机推荐
Kaggle 专利匹配比赛赛后总结
What are the SQL aggregate functions
DDD概念复杂难懂,实际落地如何设计代码实现模型?
After integrating the aurora push plug-in in the uni app, the real machine debugging prompts "the currently running base does not contain the native plug-in [jg-jpush]..." Solutions to problems
June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “f
左手梦想 右手责任 广汽本田不光关注销量 还有儿童安全
当一个接口出现异常时候,你是如何分析异常的?
3年测试经验,连简历上真正需要什么都没搞明白,张口就要20k?
How to monitor the log through the easycvr interface to observe the platform streaming?
How to open a stock account? Is it safe to open a mobile account?
Do you know your ABC
jwt
门店无线音箱造假?索尼回应:产品预留了有线连接接口 复杂场景下可以使用
同花顺是正规平台吗?同花顺开户安全吗
【第26天】给定 n 个元素的升序数组nums,求实现一个函数在nums中寻找target的下标 | 初识二分查找
Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion
Hashcat 的使用
Please run IDA with elevated permissons for local debugging.
【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
罗德与施瓦茨与中关村泛联院合作开展6G技术研究与早期验证