CN107729250A - A kind of performance test methods that automatic Iterative is realized based on JAVA - Google Patents
A kind of performance test methods that automatic Iterative is realized based on JAVA Download PDFInfo
- Publication number
- CN107729250A CN107729250A CN201710980728.9A CN201710980728A CN107729250A CN 107729250 A CN107729250 A CN 107729250A CN 201710980728 A CN201710980728 A CN 201710980728A CN 107729250 A CN107729250 A CN 107729250A
- Authority
- CN
- China
- Prior art keywords
- task
- interface
- newly
- built
- thread
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to system performance testing technical field, more particularly to a kind of performance test methods that automatic Iterative is realized based on JAVA.The present invention method be:Step 1:A newly-built background task interface and inherit the initialization in Runnable classes, defining task, realization, task terminate;Step 2:Newly-built interface data class to be tested;Step 3:A newly-built abstract class is used to realize the interface that the first step defines, and the biography that interface data to be measured is carried out by constructed fuction is joined;Step 4:Call Thread classes to open multithreading in the main methods of MAIN and perform task, define length of testing speech, call test interface;Step 5:The collection of TPS data is carried out after the completion of the main methods of MAIN perform, then terminates thread dispatching.With it, load machine deficiency and management troublesome problem during performance test can be solved very well, the performance test progress of project is improved.
Description
Technical field
The present invention relates to system performance testing technical field, more particularly to a kind of performance that automatic Iterative is realized based on JAVA
Method of testing.
Background technology
Application program is to determine the key of web site performance, and the core that test is website test is carried out to it.Performance test
Purpose is performance and stability of the test system under various loads (the integrated treatment amount as caused by concurrent user).
But TPS is quite big when carrying out performance test, one, two load machines all can not find flex point, it is necessary to which more negative
Carrier aircraft just solves problem, and the management for carrying out these load machines is fairly cumbersome.
The content of the invention
Present invention solves the technical problem that it is to provide a kind of performance test methods for realizing automatic Iterative based on JAVA;Solution
Certainly performance load machine deficiency, manage the problem of troublesome.
The present invention solve above-mentioned technical problem technical scheme be:
Described method comprises the following steps:
Step 1:A newly-built background task interface BaseTask and inherit in Runnable classes, define the initial of task
Change, realize, task terminates;
Step 2:Newly-built interface data class UserI to be tested;
Step 3:A newly-built abstract class Task is used for the interface for realizing that step 1 defines, and is carried out by constructed fuction to be measured
The biography ginseng of interface data, such as public Task (String thread) { this.threadNo=thread }, wherein
Thread is incoming parameter;
Step 4:Newly-built test class TestTask, and call Thread classes to open multithreading and perform in the main methods of MAIN and appoint
Business;Length of testing speech is defined, calls the Action in Task to carry out interface testing;
Step 5:The collection of TPS data is carried out after the completion of being performed in the main methods of MAIN, then terminates thread dispatching.
In described step 1, first a newly-built background task interface BaseTask and inheriting appoints in Runnable classes, definition
The initialization of business, realization, task terminate;
In described step 2, newly-built interface data class to be tested, such as UserI, this data class can be according to interfaces to be measured
Different and newly-built different data class;
In described step 3, a newly-built abstract class Task is used for the interface for realizing that step 1 defines, and passes through constructed fuction
The biography ginseng of interface data to be measured, such as public Task (String thread) { this.threadNo=thread } are carried out,
Wherein thread is incoming parameter;
In described step 4, newly-built test class TestTask, and call the unlatching of Thread classes multi-thread in the main methods of MAIN
Cheng Zhihang tasks;Length of testing speech is defined, calls the Action in Task to carry out interface testing.
In described step 5, the collection of TPS data is carried out after the completion of being performed in the main methods of MAIN, then terminates thread
Call.
Load machine is insufficient when the present invention can preferably solve performance test by iterator and manages troublesome problem, improves
The performance test progress of project.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is flow chart of the method for the present invention.
Embodiment
As shown in Figure 1, a kind of performance test methods that automatic Iterative is realized based on JAVA of the present invention, specifically comprising following several
Individual step:
Step 1:A newly-built background task interface BaseTask and inherit in Runnable classes, define the initial of task
Change, realize, task terminates;
Step 2:Newly-built interface data class UserI to be tested;
Step 3:A newly-built abstract class Task is used to realize the interface (init, Action, End) that the first step defines, and leads to
Cross the biography ginseng that constructed fuction carries out interface data to be measured, such as public Task (String thread) { this.threadNo
=thread }, wherein thread is incoming parameter;
Step 4:Newly-built test class TestTask calls Thread classes to open multithreading in the main methods of MAIN and performs task,
Length of testing speech is defined, calls the Action in Task to carry out interface testing;
Step 5:The collection of TPS data is carried out after the completion of execution in the main methods of MAIN, then terminates thread dispatching.
Claims (1)
- A kind of 1. performance test methods that automatic Iterative is realized based on JAVA, it is characterised in that:Described method includes following step Suddenly:Step 1:A newly-built background task interface BaseTask and inherit in Runnable classes, define initializing, being real for task Existing, task terminates;Step 2:Newly-built interface data class UserI to be tested;Step 3:A newly-built abstract class Task is used for the interface for realizing that step 1 defines, and interface to be measured is carried out by constructed fuction The biography ginseng of data, including:Public Task (String thread) { this.threadNo=thread }, wherein thread To be passed to parameter;Step 4:Newly-built test class TestTask, and call Thread classes to open multithreading in the main methods of MAIN and perform task; Length of testing speech is defined, calls the Action in Task to carry out interface testing;Step 5:The collection of TPS data is carried out after the completion of being performed in the main methods of MAIN, then terminates thread dispatching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710980728.9A CN107729250A (en) | 2017-10-19 | 2017-10-19 | A kind of performance test methods that automatic Iterative is realized based on JAVA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710980728.9A CN107729250A (en) | 2017-10-19 | 2017-10-19 | A kind of performance test methods that automatic Iterative is realized based on JAVA |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107729250A true CN107729250A (en) | 2018-02-23 |
Family
ID=61212156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710980728.9A Withdrawn CN107729250A (en) | 2017-10-19 | 2017-10-19 | A kind of performance test methods that automatic Iterative is realized based on JAVA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729250A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058990A (en) * | 2019-03-12 | 2019-07-26 | 平安普惠企业管理有限公司 | Performance test methods and device, computer equipment, storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040049362A1 (en) * | 2002-09-10 | 2004-03-11 | Sun Microsystems, Inc. | Same virtual machine mode for distributed test execution |
CN103139007A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Method and system for detecting application server performance |
-
2017
- 2017-10-19 CN CN201710980728.9A patent/CN107729250A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040049362A1 (en) * | 2002-09-10 | 2004-03-11 | Sun Microsystems, Inc. | Same virtual machine mode for distributed test execution |
CN103139007A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | Method and system for detecting application server performance |
Non-Patent Citations (2)
Title |
---|
SCHELE: "Java TPS实现", 《HTTPS://BLOG.CSDN.NET/SCHERRER/ARTICLE/DETAILS/51867873》 * |
联想软件超星空工作室: "《精通Linux系统管理与应用开发技术》", 31 March 2001, 清华大学出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058990A (en) * | 2019-03-12 | 2019-07-26 | 平安普惠企业管理有限公司 | Performance test methods and device, computer equipment, storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1805622B1 (en) | Method and system for simplifying the debugging of a program comprising user-written code and non user-written code | |
Pretschner et al. | One evaluation of model-based testing and its automation | |
CN108038045B (en) | Android user behavior data acquisition method based on non-buried point | |
EP2159744A1 (en) | Functional extensions for business objects | |
US20110112790A1 (en) | System and method for automatic hardware and software sequencing of computer-aided design (cad) functionality testing | |
JP2008511934A5 (en) | ||
CN110221820B (en) | Spring framework generalized dependency injection method and device, computer equipment and storage medium | |
CN103995778B (en) | A kind of script file generation method and its device based on event and action | |
Endo et al. | Model-based testing of service-oriented applications via state models | |
CN105808412A (en) | Process resource real-time monitoring method | |
CN104462943A (en) | Non-intrusive performance monitoring device and method for service system | |
CN109426608A (en) | The test method and device of Distributed Services, computer readable storage medium | |
CN105162664B (en) | A kind of automation platform test method and system based on the exploitation of instrument middle layer | |
CN107729250A (en) | A kind of performance test methods that automatic Iterative is realized based on JAVA | |
CN107729237A (en) | A kind of method, apparatus of software performance test, computer installation and storage medium | |
CN103186386B (en) | Using loading method and system | |
CN104461832B (en) | A kind of method and device for monitoring application server resource | |
CN108243238B (en) | Method and device for acquiring performance data | |
CN106649078B (en) | Application interface test method and device | |
Shrivastava et al. | Metrics for test case design in test driven development | |
CN110336714A (en) | A kind of test method of mobile phone app access network signaling mechanisms | |
CN101876936A (en) | Service test method | |
CN105468514B (en) | Test method and device based on data combination | |
CN103309681B (en) | A kind of open platform client software operational approach and device thereof | |
CN102521129A (en) | Testing method and testing device for owner-drawing window |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180223 |