CN102541723A - Automated testing device for software testing - Google Patents
Automated testing device for software testing Download PDFInfo
- Publication number
- CN102541723A CN102541723A CN2010105794038A CN201010579403A CN102541723A CN 102541723 A CN102541723 A CN 102541723A CN 2010105794038 A CN2010105794038 A CN 2010105794038A CN 201010579403 A CN201010579403 A CN 201010579403A CN 102541723 A CN102541723 A CN 102541723A
- Authority
- CN
- China
- Prior art keywords
- test
- virtual user
- script
- software
- controller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides an automated testing device for software testing. The device comprises a virtual user generator, a controller and an analysis component, wherein the virtual user generator is used for creating virtual users and system loads; the controller is used for organizing the system loads created by the virtual user generator, setting the quantity of the virtual users and generating and operating a testing script; and the analysis component is used for storing all data generated by operating the testing script and analyzing the obtained data. With the automated testing device, the testing period of software development can be shorted, the automated testing device has quickness and high testing efficiency, and the hardware resource can be fully utilized.
Description
Technical field
The present invention relates to the software test field, relate in particular to a kind of automatic test device that is used for software test.
Background technology
Along with the scale of computer software is increasing, software test becomes the key link that software quality ensures, the development of software test automation also become the software test field the developing stage that can't go beyond.
Software test is exactly before software puts into operation, to the final reexamination of software requirement analysis, design specification book and coding, is the committed step that software quality ensures.Its definition can simply be summarised as: the process of working procedure in order to find mistake.Along with the continuous expansion of software size, the software quality problem has become one of principal element of restriction computing machine development.As the means that guarantee software quality and reliability, software test plays irreplaceable effect.
Along with informationalized development and development of technology, the framework of information-based software also by the C/S structural development to present B/S framework, nowadays the main flow of information-based software is just through Internet visit, based on the application program of Web.
Software is in the past compared, and the characteristics of software different from the past are arranged based on the information-based software of Web:
1) concentrated comprising in the data base set, information system management is concentrated, the service management intensification.
2) the big distribution extensively distributes according to the region, and these characteristics with " concentrating " are unity of opposites.
3) comprise that in a large number data volume is big, portfolio is big.
Just because of above characteristics; Information-based software based on Web is compared traditional software, has brought very large superiority, but has also brought a lot of challenges simultaneously; This is because based on the big distribution of the infosystem of Web, determined Web server will accept the lot of data request simultaneously.In case the Web server paralysis is about to cause tremendous loss like this.This has just proposed requirement to the performance of Web system, requires product before reaching the standard grade, must accept strict performance test.
Summary of the invention
In view of this, the present invention is primarily aimed at the performance test based on Web, and automatic test script is designed, records and perfect, has proposed the novel automatic test device that is used for software test of a cover.
Particularly, the present invention proposes a kind of automatic test device that is used for software test, this device comprises: the Virtual User maker is used to create Virtual User and system load; Controller is used to the system load of organizing said Virtual User maker to be created, sets Virtual User quantity, and generates and the operation test script; Analytic unit is preserved all data of moving said test script, and resulting data are analyzed.
According to a preferred embodiment of the present invention, in above-mentioned automatic test device, said Virtual User simulates real real user's business operation behavior.
According to a preferred embodiment of the present invention, in above-mentioned automatic test device, said controller generates said test script according to the operation flow of said system load with the Virtual User quantity that sets.
According to a preferred embodiment of the present invention, in above-mentioned automatic test device, said controller inserts affairs in said test script when generating test script, so that when said analytic unit is analyzed, view the response time of these affairs.
According to a preferred embodiment of the present invention, in above-mentioned automatic test device, said controller inserts a meeting point in this test script when generating test script.
According to a preferred embodiment of the present invention, in above-mentioned automatic test device, when this test script of operation, the place makes a plurality of Virtual User carry out same operation in said meeting point, to improve concurrent degree.
According to a preferred embodiment of the present invention, in above-mentioned automatic test device, said controller is that said test script is set iterations.
Should be appreciated that the above generality of the present invention is described and following detailed description all is exemplary and illustrative, and be intended to further explanation is provided for as claimed in claim the present invention.
Description of drawings
Accompanying drawing mainly is to be used to provide the present invention is further understood.Accompanying drawing shows embodiments of the invention, and plays the effect of explaining the principle of the invention with this instructions.In the accompanying drawing:
Fig. 1 schematically shows the structural drawing that is used for the automatic test device of software test according to of the present invention.
Fig. 2 schematically shows the process flow diagram according to automation software testing method of the present invention.
Embodiment
Describe technical scheme of the present invention in detail below in conjunction with accompanying drawing.
There is following limitation at least in the manual test of prior art:
A, can't cover all code path, the functional test use-case all is absolutely necessary every the wheel in the test, has certain mechanicalness, repeatability.
B, some and sequential, deadlock, resource contention, mistake that multithreading is relevant, manual test is difficult to catch.
C, when carrying out system load, performance test, various occasions such as some simulation mass data or a large amount of concurrent users are difficult to test by hand.
D, carry out system reliability test, can stable operation when needing the simulation system operation how long, these all are that manual test is difficult to carry out.
E, manual test speed are relatively slow, if carried out a hundreds of test case in one day, in one day, test being difficult to accomplish by hand.
Relatively, automatic test device of the present invention possesses following advantage at least:
The test period of A, shortening software development, progress is fast.
B, testing efficiency high (making full use of hardware resource).
C, saving human resources reduce testing cost.
Stability, the reliability of D, enhancing test improve accuracy of test and degree of accuracy, increase the software degree of belief.
E, use test instrument are relatively easy, can improve test result.
F, can carry out load, performance test, these are manual all can't accomplish.
Certainly, in real work, to guarantee to test never by hand, will accomplish that simultaneously the content of suitable manual test never wants the cost of expensive to do automatic test with the thing of automatic test.In addition, not because certain aspect can not automatic test and do not do test.Automatic testing equipment of the present invention is particularly suitable for unit testing, integration testing, system load test, performance test, stability test, reliability testing etc.
Fig. 1 schematically shows the structural drawing that is used for the automatic test device of software test according to of the present invention.As shown in the figure, the automatic test device 100 that is used for software test of the present invention comprises the Virtual User maker 101 that is used to create Virtual User and system load; Be used to the system load of organizing Virtual User maker 101 to be created, the controller 102 of setting Virtual User quantity and generation and operation test script; And all data of preservation operation test script and the analytic unit 103 that resulting data are analyzed.
Through Virtual User maker 101, the user can easy establishment play Virtual User and system load.This Virtual User maker 101 can generate Virtual User, with the mode simulates real real user's of Virtual User business operation behavior.Follow-up assembly is translated into test script.
The script that controller 102 uses Virtual User maker 101 to generate carries out the simulated scenario test to target software, and after the scene operation, all data will be analyzed by analytic unit 103 reservations and to the data of gained.
Fig. 2 schematically shows the process flow diagram according to automation software testing method of the present invention.As shown in Figure 2, automation software testing method of the present invention comprises: create test script 201; Dispose test scene and move test script 202; And analytical test result 203.
Among the step of creating test script 201, the user can select appropriate protocol, and the web server is generally selected the http agreement.The general script of selecting based on HTML of the mode of recording, but have scenario to select script based on URL.Be not based on the application program of browser, comprise the javaScript script in the application program and produced request, used the https agreement based on the application program of browser.In recording process, do not want back page.If want to measure the response time of certain operation, can in script, insert affairs, use affairs to wire up this operation.Can view the response time of these affairs when analyzing execution result.In addition, in this step 201, can also insert the meeting point,, improve the concurrent degree of operation,, test concurrent ability so that server is increased load so that a plurality of user concurrent carries out same operation.In addition, the user can also be provided with the network of the network bandwidth with the simulation different bandwidth, and iterations is set.In addition, this step also comprises carries out parametrization to script, and the parameter modification mode is set, and associated script.
Among disposing test scene and moving the step of test script 202, dispose test scene and mainly comprise: select script, set and carry out number of users, select the test load machine, the mode of script executing is set, the meeting point point is set, be provided with and set working time.If the number of users of simulation is many, many test load machines should be set, the PC of general main flow can be simulated the visit of 100 users to server at least.In addition, the executive mode that script is set comprises Starting mode that the user is set and the termination mode that the user is set.In addition, this step can also be provided with the meeting point, and the mode of user through the meeting point can be set.When the browsing web page is big, in test overtime (timeout) mistake possibly appear.To this problem, can suitably revise overtime numerical value.
In addition, IP spoofing can also be set.If server has restriction (security reason) to user's IP, then need launch IP spoofing.IP spoofing being set being noted that 1) the test load machine should use static IP; 2) before selecting the test load machine, open the IP spoofing switch.
In addition, the server monitoring counter can also be set.Comprise: internal memory, CPU, thread, process, network, disk.
Among analytical test result 203 step, can check analysis result, check the response time of affairs, the average throughput of server, carry out user number etc.In addition, can also check thread figure, user's variation diagram, response time figure, the spirogram of handling up; Check the counter figure of server monitoring; Analyze each performance index and whether meet demand, such as: whether the free memory curve is normal, whether has memory overflow; Whether the cpu busy percentage curve is mild, and whether average utilization is lower than 90%; Whether Thread Count is normal, rather than increasing always; Whether the network bandwidth satisfies traffic demand; Whether disk satisfies the user is operated requirement or the like; Analyze each curve map and whether have abnormal conditions, such as: whether the response time satisfies the demands; It is concurrent whether system supports to require; Along with the increase of load, whether handling capacity increases equally, and whether handling capacity exists bottleneck or the like.
Sometimes analyze the problem that single key element can not reflect existence, need a plurality of key elements to connect and analyze.Such as, can connect the variation diagram of number of users with the spirogram of handling up and analyze.Device support of the present invention merges two tables to be analyzed, and number of users variation diagram and the merging of handling capacity variation diagram, just can observe handling capacity corresponding time along with the variation of number of users whether.If along with the increase of number of users, handling capacity maintains an equal level or descends, and explains that this moment, throughput of system reached maximal value, and system has reached bottleneck.
Claims (7)
1. an automatic test device that is used for software test is characterized in that, comprising:
The Virtual User maker is used to create Virtual User and system load;
Controller is used to the system load of organizing said Virtual User maker to be created, sets Virtual User quantity, and generates and the operation test script;
Analytic unit is preserved all data of moving said test script, and resulting data are analyzed.
2. automatic test device as claimed in claim 1 is characterized in that, said Virtual User simulates real real user's business operation behavior.
3. automatic test device as claimed in claim 1 is characterized in that, said controller generates said test script according to the operation flow of said system load with the Virtual User quantity that sets.
4. automatic test device as claimed in claim 1 is characterized in that, said controller inserts affairs in said test script when generating test script, so that when said analytic unit is analyzed, view the response time of these affairs.
5. automatic test device as claimed in claim 1 is characterized in that, said controller inserts a meeting point in this test script when generating test script.
6. automatic test device as claimed in claim 5 is characterized in that, when this test script of operation, the place makes a plurality of Virtual User carry out same operation in said meeting point, to improve concurrent degree.
7. automatic test device as claimed in claim 1 is characterized in that, said controller is that said test script is set iterations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105794038A CN102541723A (en) | 2010-12-08 | 2010-12-08 | Automated testing device for software testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105794038A CN102541723A (en) | 2010-12-08 | 2010-12-08 | Automated testing device for software testing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102541723A true CN102541723A (en) | 2012-07-04 |
Family
ID=46348665
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105794038A Pending CN102541723A (en) | 2010-12-08 | 2010-12-08 | Automated testing device for software testing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102541723A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544102A (en) * | 2013-09-02 | 2014-01-29 | 烟台中科网络技术研究所 | Method and device for test and simulation of software performance |
CN103795711A (en) * | 2014-01-10 | 2014-05-14 | 宁波金信通讯技术有限公司 | Automated test method and system based on mobile phone client sides |
CN103945445A (en) * | 2014-03-13 | 2014-07-23 | 京信通信技术(广州)有限公司 | Method and device for testing performance of access controller |
CN104331477A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Method for testing concurrency property of cloud platform based on federated research |
CN104734918A (en) * | 2015-03-25 | 2015-06-24 | 浪潮集团有限公司 | Lightweight webpage performance testing architecture and method |
CN105279087A (en) * | 2015-10-21 | 2016-01-27 | 北京软件产品质量检测检验中心 | Test method and test system applied to test software |
CN106452968A (en) * | 2016-10-24 | 2017-02-22 | 郑州云海信息技术有限公司 | Accelerated detection method for reliability of PCIE (Peripheral Component Interconnect Express) equipment |
CN108170596A (en) * | 2017-12-26 | 2018-06-15 | 广州思谋信息科技有限公司 | A kind of cell phone software test method and system |
WO2019051714A1 (en) * | 2017-09-14 | 2019-03-21 | 深圳传音通讯有限公司 | Test method and test apparatus for application memory of smart device |
CN111078527A (en) * | 2019-11-08 | 2020-04-28 | 北京深思数盾科技股份有限公司 | Auxiliary system and method for pressure testing of server |
CN112580000A (en) * | 2019-09-30 | 2021-03-30 | 北京国双科技有限公司 | User data processing method and device |
CN113852571A (en) * | 2021-08-20 | 2021-12-28 | 阿里巴巴(中国)有限公司 | Method and device for distributing flow |
-
2010
- 2010-12-08 CN CN2010105794038A patent/CN102541723A/en active Pending
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544102A (en) * | 2013-09-02 | 2014-01-29 | 烟台中科网络技术研究所 | Method and device for test and simulation of software performance |
CN103544102B (en) * | 2013-09-02 | 2016-01-06 | 烟台中科网络技术研究所 | A kind of software performance test analogy method and device |
CN103795711A (en) * | 2014-01-10 | 2014-05-14 | 宁波金信通讯技术有限公司 | Automated test method and system based on mobile phone client sides |
CN103945445A (en) * | 2014-03-13 | 2014-07-23 | 京信通信技术(广州)有限公司 | Method and device for testing performance of access controller |
CN104331477B (en) * | 2014-11-04 | 2017-08-25 | 哈尔滨工业大学 | The cloud platform concurrency performance method of testing retrieved based on federal style |
CN104331477A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Method for testing concurrency property of cloud platform based on federated research |
CN104734918A (en) * | 2015-03-25 | 2015-06-24 | 浪潮集团有限公司 | Lightweight webpage performance testing architecture and method |
CN105279087A (en) * | 2015-10-21 | 2016-01-27 | 北京软件产品质量检测检验中心 | Test method and test system applied to test software |
CN105279087B (en) * | 2015-10-21 | 2018-02-06 | 北京软件产品质量检测检验中心 | Apply method of testing and test system in test software |
CN106452968A (en) * | 2016-10-24 | 2017-02-22 | 郑州云海信息技术有限公司 | Accelerated detection method for reliability of PCIE (Peripheral Component Interconnect Express) equipment |
WO2019051714A1 (en) * | 2017-09-14 | 2019-03-21 | 深圳传音通讯有限公司 | Test method and test apparatus for application memory of smart device |
CN108170596A (en) * | 2017-12-26 | 2018-06-15 | 广州思谋信息科技有限公司 | A kind of cell phone software test method and system |
CN112580000A (en) * | 2019-09-30 | 2021-03-30 | 北京国双科技有限公司 | User data processing method and device |
CN111078527A (en) * | 2019-11-08 | 2020-04-28 | 北京深思数盾科技股份有限公司 | Auxiliary system and method for pressure testing of server |
CN111078527B (en) * | 2019-11-08 | 2021-01-26 | 北京深思数盾科技股份有限公司 | Auxiliary system and method for pressure testing of server |
CN113852571A (en) * | 2021-08-20 | 2021-12-28 | 阿里巴巴(中国)有限公司 | Method and device for distributing flow |
CN113852571B (en) * | 2021-08-20 | 2023-11-28 | 阿里巴巴(中国)有限公司 | Method and device for distributing flow |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102541723A (en) | Automated testing device for software testing | |
CN103139006A (en) | Web service based automated testing device and method | |
CN102567186A (en) | Automated software testing method | |
CN110309071B (en) | Test code generation method and module, and test method and system | |
CN107895009B (en) | Distributed internet data acquisition method and system | |
CN106021079B (en) | It is a kind of based on the Web application performance test methods for being frequently visited by the user series model | |
US8413044B2 (en) | Method and system of retrieving Ajax web page content | |
Zhu et al. | Research the performance testing and performance improvement strategy in web application | |
Zhang et al. | Compatibility testing service for mobile applications | |
EP2572294B1 (en) | System and method for sql performance assurance services | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN108628748B (en) | Automatic test management method and automatic test management system | |
CN110798445B (en) | Public gateway interface testing method and device, computer equipment and storage medium | |
US9122789B1 (en) | System and method for testing applications with a load tester and testing translator | |
CN106682036A (en) | Data exchange system and exchange method thereof | |
Dhiman et al. | Performance testing: a comparative study and analysis of web service testing tools | |
Kalita et al. | Investigation on performance testing and evaluation of prewebd: A. net technique for implementing web application | |
Liu | Research of performance test technology for big data applications | |
Wang et al. | A model-based framework for cloud API testing | |
CN104391789A (en) | Web application stress testing method | |
CN112463568A (en) | Service simulation test method and device and electronic equipment | |
CN104765787B (en) | Salt file association relationship analysis method and system in software systems | |
CN104123397A (en) | Automatic test device and method for Web page | |
KR101830936B1 (en) | Performance Improving System Based Web for Database and Application | |
CN103186384A (en) | Business-component-oriented software designing and analyzing system and using method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120704 |