CN105138460B - A kind of method for testing software and system - Google Patents
A kind of method for testing software and system Download PDFInfo
- Publication number
- CN105138460B CN105138460B CN201510599520.3A CN201510599520A CN105138460B CN 105138460 B CN105138460 B CN 105138460B CN 201510599520 A CN201510599520 A CN 201510599520A CN 105138460 B CN105138460 B CN 105138460B
- Authority
- CN
- China
- Prior art keywords
- time
- network node
- application server
- time point
- point
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
This application discloses a kind of method for testing software and system,Applied in network topology structure,The network topology structure includes several network nodes,Application server and data server,At least one network node sends the first request to application server,It is first time point to record current point in time simultaneously,Application server responses first are asked,The second request is sent to data server,It was the second time point to record current point in time simultaneously,Application server is when receiving the response message of data server feedback,Record current point in time was the 3rd time point,Response message is fed back into network node simultaneously,It was the 4th time point that network node, which records current point in time when receiving response message,,Overall response time can be determined by the difference at the 4th time point and first time point,The database response time can be determined by the difference at the 3rd time point and the second time point,Overall response time being capable of use case analysis failure problems with the database response time.
Description
Technical field
The application is related to Internet technical field, more specifically to a kind of method for testing software and system.
Background technology
In software project, in order to ensure the software reached the standard grade can normal work, be required to simulate pressure in test environment
Power, the performance of test software.
However, even with the software of the pressure test before reaching the standard grade, it be able to may also go out in actual production environment
Existing failure, such as access slow etc. abnormal.The reason for causing such case is mainly the complicated network topology structure in scene, different
Communication link is likely to occur problem between network node, and failure may also occurs in the function of software systems.
Therefore, how accurately to find the problem, turn into a kind of technical staff's problem urgently to be resolved hurrily.
The content of the invention
In view of this, this application provides a kind of method for testing software and system, for providing a kind of software test scheme,
Where the problem of to determine software fault in production environment.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of method for testing software, applied in network topology structure, the network topology structure includes several network sections
Point, application server and data server, this method include:
At least one network node in several network nodes sends the first request to the application server, remembers simultaneously
Record current point in time is first time point;
First request described in the application server responses, the second request is sent to the data server, is recorded simultaneously
Current point in time was the second time point;
The application server receives the response message of the data server feedback, while records current point in time as the
Three time points;
The network node receives the response message that the application server is sent, while records current point in time and be
4th time point, wherein the 4th time point and the difference of the first time point are overall response time, the 3rd time
Point and the difference at second time point are the database response time, and the overall response time is used with the database response time
In analysis failure problems.
Preferably, the network node sends the first request to the application server, including:
The network node sends the first request according to preset sample frequency and number of users to the application server.
Preferably, in addition to:
The application server sends second time point and the 3rd time point to the network node;
The network node calculates the difference at the 3rd time point and second time point, and is defined as database sound
Between seasonable;
The network node judges whether the database response time exceedes preset database response time threshold, if
It is, it is determined that trouble point is located on the application server, the data server or communication link between the two.
A kind of software testing system, including:
Several network nodes, application server and data server;
Wherein, at least one network node sends the first request to the application server, while records current point in time
For first time point;
First request described in the application server responses, the second request is sent to the data server, is recorded simultaneously
Current point in time was the second time point;
The application server receives the response message of the data server feedback, while records current point in time as the
Three time points;
The network node receives the response message that the application server is sent, while records current point in time and be
4th time point, wherein the 4th time point and the difference of the first time point are overall response time, the 3rd time
Point and the difference at second time point are the database response time, and the overall response time is used with the database response time
In analysis failure problems.
Preferably, the network node includes:
First network node subelement, for according to preset sample frequency and number of users, being sent out to the application server
Send the first request.
Preferably, the application server is additionally operable to send second time point and the 3rd time point to described
Network node;
The network node is additionally operable to calculate the difference at the 3rd time point and second time point, and is defined as counting
According to the storehouse response time, judge whether the database response time exceedes preset database response time threshold, if so, then true
Determine trouble point to be located on the application server, the data server or communication link between the two.
It can be seen from the above technical scheme that the method for testing software that the embodiment of the present application provides is applied to network topology
In structure, the network topology structure includes several network nodes, application server and data server, wherein at least one net
Network node sends the first request to application server, while it is first time point to record current point in time, application server responses
First request, the second request is sent to data server, while it was the second time point to record current point in time, application server exists
When receiving the response message of data server feedback, record current point in time was the 3rd time point, while response message is anti-
Feed network node, it was the 4th time point that network node, which records current point in time when receiving response message,.By the 4th time point
Overall response time can be determined with the difference of first time point, number can be determined by the difference at the 3rd time point and the second time point
According to the storehouse response time.In actual applications, each network node can be obtained by performing said process to multiple network nodes
Overall response time and the database response time, and then according to these result localizations of faults.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of method for testing software flow chart disclosed in the embodiment of the present application;
Fig. 2 is another method for testing software flow chart disclosed in the embodiment of the present application;
Fig. 3 is a kind of software testing system structural representation disclosed in the embodiment of the present application;
Fig. 4 is a kind of network node structure schematic diagram disclosed in the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of the application protection.
Present embodiment discloses a kind of software test scheme, applied in network topology structure, the network topology structure bag
Include several network nodes, application server and data server.Wherein, each network node directly or indirectly accesses application
Server, the request by application server according to network node, corresponding data are obtained from data server, and data are returned
Back to network node.
Referring to Fig. 1, Fig. 1 is a kind of method for testing software flow chart disclosed in the embodiment of the present application.
As shown in figure 1, this method includes:
Step S100, at least one network node in several network nodes sends the first request to application server,
It is first time point to record current point in time simultaneously;
In practical operation, a network node can be chosen according to certain strategy, from the network node to application service
Device sends the first request, while it is first time point to record current point in time.
Here, the first request of transmission can be that any one includes the service request for accessing database.
When sending the first request, network node records the current time simultaneously, is designated as first time point.
Step S110, the first request described in described application server responses, the second request is sent to data server, simultaneously
Record current point in time was the second time point;
Specifically, application server can send the second request after receiving the first request to data server, and send
Current time is recorded while second request, was designated as the second time point.
Application server is asked depending on the content of the first request to data server is sent second, when the first request
When being logged on data server, user login information is necessarily carried in the first request, then the second request can include user
The logging request of log-on message;When the first request is acquisition request data, then the second request can include user institute
The data acquisition request for wanting request data to identify.
Step S120, described application server receives the response message of the data server feedback, while records current
Time point was the 3rd time point;
Specifically, after data server receives the second request of application server transmission, according to requesting query database, and
The result inquired is fed back into application server as response message.Application server is receiving answering for data server feedback
When answering information, while current time is recorded, be designated as the 3rd time point.
Response message can be returned to network node by application server after response message is received.
Step S130, described network node receives the response message that the application server is sent, while records and work as
Preceding time point was the 4th time point.
The difference of wherein described 4th time point and the first time point be overall response time, the 3rd time point and
The difference at second time point is the database response time, and the overall response time is used to divide with the database response time
Analyse failure problems.
By performing above-mentioned flow in network node, the overall response time and database response of the network node can be obtained
Time, it is system response time that overall response time, which subtracts the database response time,.That is, application scheme can determine one
In secondary data request process, system response time and database response time.
By performing said process to multiple network nodes, the overall response time and data of each network node can be obtained
The storehouse response time.Those skilled in the art can be determined according to these results where failure problems.
Lift for example, it is assumed that exceeding normal database response in the database response time that some network node is tested to obtain
Time, then during can directly determining that problem appears in application server access data server, and then by inquiring about number
, can be true according to the performance report of server or the daily record for the isolating device inquired about between application server and data server
Determine problem place.
Certainly, it is if normal in the database response time that some network node is tested to obtain, and overall response time is exceeded
If, then describe the problem on the communication link appeared between current network node and application server, therefore can according to
The mode that application server approaches, heterogeneous networks node is tested, obtain the overall response time of each network node, until
It was found that when the overall response time of some network node test is normal, then it can determine that problem appears in the network node and upper level
On link between network node.
Optionally, in order to simulate actual scene, when testing some network node, can set sample frequency and
Number of users.Sample frequency is the frequency that unique user sends the first request to application server, and number of users is referred to using same
One network node sends the number of users of request to application server.
Referring to Fig. 2, Fig. 2 is another method for testing software flow chart disclosed in the embodiment of the present application.
As shown in Fig. 2 this method includes:
Step S200, at least one network node in several network nodes sends the first request to application server,
It is first time point to record current point in time simultaneously;
In practical operation, a network node can be chosen according to certain strategy, from the network node to application service
Device sends the first request, while it is first time point to record current point in time.
Here, the first request of transmission can be that any one includes the service request for accessing database.
When sending the first request, network node records the current time simultaneously, is designated as first time point.
Step S210, the first request described in described application server responses, the second request is sent to data server, simultaneously
Record current point in time was the second time point;
Specifically, application server can send the second request after receiving the first request to data server, and send
Current time is recorded while second request, was designated as the second time point.
Application server is asked depending on the content of the first request to data server is sent second, when the first request
When being logged on data server, user login information is necessarily carried in the first request, then the second request can include user
The logging request of log-on message;When the first request is acquisition request data, then the second request can include user institute
The data acquisition request for wanting request data to identify.
Step S220, described application server receives the response message of the data server feedback, while records current
Time point was the 3rd time point;
Specifically, after data server receives the second request of application server transmission, according to requesting query database, and
The result inquired is fed back into application server as response message.Application server is receiving answering for data server feedback
When answering information, while current time is recorded, be designated as the 3rd time point.
Response message can be returned to network node by application server after response message is received.
Step S230, described network node receives the response message that the application server is sent, while records and work as
Preceding time point was the 4th time point;
Step S240, described application server sends second time point and the 3rd time point to the network
Node;
Step S250, described network node calculates the difference at the 3rd time point and second time point, and determines
For the database response time;
Step S260, when described network node judges whether the database response time exceedes preset database response
Between threshold value, if so, performing step S270;
Step S270, the network node localization of faults be located at the application server, the data server or the two between
Communication link on.
It is understood that network node have recorded first time point and the 4th time point, can by the two time points
To calculate overall response time.And application server have recorded the second time point and the 3rd time point, application server can be by this
Two time points are sent to network node, are uniformly calculated by network node.If network node, which calculates, finds database response
Time is exceeded, then during can determining that failure appears in application server access data server, therefore trouble point is
On application server, data server or communication link between the two.
Certainly, above-described embodiment merely illustrate application server by second and the 3rd time point be sent to network node,
By network node come the process that is calculated, it is to be understood that can also be sent out by the time point of network node first and the 4th
Application server is given, calculating processing is carried out by application server.
Further, at the time point recorded for application server and network node, can directly export, by artificial or
Computer carries out calculating processing to time point.
Below to the embodiment of the present application provide software testing system be described, software testing system described below with
Above-described method for testing software can be mutually to should refer to.
Referring to Fig. 3, Fig. 3 is a kind of software testing system structural representation disclosed in the embodiment of the present application.
As shown in figure 3, the system includes:
Several network nodes 31, application server 32 and data server 33;
Wherein, at least one network node 31 sends the first request to the application server 32, while when recording current
Between point be first time point;
The application server 32 responds first request, sends the second request to the data server 33, simultaneously
Record current point in time was the second time point;
The application server 32 receives the response message that the data server 33 feeds back, while records current point in time
For the 3rd time point;
The network node 31 receives the response message that the application server 32 is sent, while records current time
Point was the 4th time point, wherein the 4th time point and the difference of the first time point are overall response time, the described 3rd
The difference at time point and second time point is the database response time, when the overall response time is with the database response
Between be used for analyze failure problems.
Wherein, the network node between application server 32 and data server 33 can be fire wall, isolating device etc..
The software testing system that the embodiment of the present application provides includes several network nodes, application server and data, services
Device, wherein at least one network node sends the first request to application server, while it is the very first time to record current point in time
Point, application server responses first are asked, to data server send second request, while record current point in time for second when
Between point, application server receive data server feedback response message when, record current point in time was the 3rd time point,
Response message is fed back into network node simultaneously, it was the 4th time that network node, which records current point in time when receiving response message,
Point.Overall response time can be determined by the difference at the 4th time point and first time point, by the 3rd time point and the second time point
Difference can determine the database response time.In actual applications, multiple network nodes can perform said process respectively, obtain
Overall response time and database response time to each network node, and then according to these result localizations of faults.
Optionally, the embodiment of the present application discloses a kind of alternative construction of above-mentioned network node, as shown in figure 4, network section
Point 31 can include:
First network node subelement 311, for according to preset sample frequency and number of users, to the application server
Send the first request.
Optionally, the application server 32 is additionally operable to send second time point and the 3rd time point to institute
State network node 31;
The network node 31 is additionally operable to calculate the difference at the 3rd time point and second time point, and is defined as
The database response time, judge whether the database response time exceedes preset database response time threshold, if so, then
The localization of faults is located on the application server, the data server or communication link between the two.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the application.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (4)
1. a kind of method for testing software, it is characterised in that applied in network topology structure, the network topology structure includes some
Individual network node, application server and data server, this method include:
At least one network node in several network nodes sends the first request to the application server, while records and work as
Preceding time point is first time point;
First request described in the application server responses, the second request is sent to the data server, while recorded current
Time point was the second time point;
The application server receives the response message of the data server feedback, at the same record current point in time for the 3rd when
Between point;
The network node receives the response message that the application server is sent, while records current point in time as the 4th
Time point, wherein the difference of the 4th time point and the first time point be overall response time, the 3rd time point and
The difference at second time point is the database response time, and the overall response time is used to divide with the database response time
Analyse failure problems;
Wherein, in addition to:
The application server sends second time point and the 3rd time point to the network node;
The network node calculates the difference at the 3rd time point and second time point, and when being defined as database response
Between;
The network node judges whether the database response time exceedes preset database response time threshold, if so,
Then the localization of faults is located on the application server, the data server or communication link between the two, by inquiring about
The isolating device stated the performance report of data server or inquired about between the application server and the data server
Daily record, failure problems are determined, if it is not, then the localization of faults is logical between current network node and the application server
Believe on link, in the way of being approached to the application server, heterogeneous networks node is tested, obtains each network section
The overall response time of point, until when finding that the overall response time of some network node test is normal, then it can determine failure problems
Appear on the link between the network node and upper level network node.
2. according to the method for claim 1, it is characterised in that the network node sends first to the application server
Request, including:
The network node sends the first request according to preset sample frequency and number of users to the application server.
A kind of 3. software testing system, it is characterised in that including:
Several network nodes, application server and data server;
Wherein, at least one network node sends the first request to the application server, while records current point in time as the
One time point;
First request described in the application server responses, the second request is sent to the data server, while recorded current
Time point was the second time point;
The application server receives the response message of the data server feedback, at the same record current point in time for the 3rd when
Between point;
The network node receives the response message that the application server is sent, while records current point in time as the 4th
Time point, wherein the difference of the 4th time point and the first time point be overall response time, the 3rd time point and
The difference at second time point is the database response time, and the overall response time is used to divide with the database response time
Analyse failure problems;
The application server is additionally operable to send second time point and the 3rd time point to the network node;
The network node is additionally operable to calculate the difference at the 3rd time point and second time point, and is defined as database
Response time, judge whether the database response time exceedes preset database response time threshold, if, it is determined that therefore
Barrier point is taken on the application server, the data server or communication link between the two by inquiring about the data
The performance report of business device or the daily record for the isolating device inquired about between the application server and the data server, really
Determine failure problems, if it is not, then on communication link of the localization of faults between current network node and the application server,
In the way of being approached to the application server, heterogeneous networks node is tested, obtains total sound of each network node
Between seasonable, until when finding that the overall response time of some network node test is normal, then it can determine that failure problems appear in this
On link between network node and upper level network node.
4. system according to claim 3, it is characterised in that the network node includes:
First network node subelement, for according to preset sample frequency and number of users, the is sent to the application server
One request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510599520.3A CN105138460B (en) | 2015-09-18 | 2015-09-18 | A kind of method for testing software and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510599520.3A CN105138460B (en) | 2015-09-18 | 2015-09-18 | A kind of method for testing software and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105138460A CN105138460A (en) | 2015-12-09 |
CN105138460B true CN105138460B (en) | 2018-02-23 |
Family
ID=54723814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510599520.3A Active CN105138460B (en) | 2015-09-18 | 2015-09-18 | A kind of method for testing software and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105138460B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357480B (en) * | 2016-11-23 | 2020-02-14 | 北京蓝海讯通科技股份有限公司 | Method and device for monitoring network performance of application and mobile terminal |
CN108255659B (en) * | 2016-12-28 | 2021-06-29 | 平安科技(深圳)有限公司 | Application program performance monitoring method and system |
CN106961358A (en) * | 2017-05-11 | 2017-07-18 | 国网山东省电力公司信息通信公司 | Web application system cluster method for monitoring operation states and its system based on daily record |
CN107888690A (en) * | 2017-11-17 | 2018-04-06 | 深圳泉眼体育运营管理有限公司 | The statistical method and system of response time |
CN111324545B (en) * | 2020-03-13 | 2023-09-22 | 中国工商银行股份有限公司 | Application server middleware performance test method, test terminal and application server |
CN114465919B (en) * | 2022-04-12 | 2022-07-12 | 北京天维信通科技有限公司 | Network service testing method, system, electronic equipment and storage medium |
CN114785675B (en) * | 2022-06-20 | 2022-09-09 | 中建三局信息科技有限公司 | Method, device and storage medium for positioning service overtime |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365770A (en) * | 2012-04-09 | 2013-10-23 | 陆兵 | Mobile terminal software testing system and software testing method |
CN104104554A (en) * | 2013-04-10 | 2014-10-15 | 深圳市腾讯计算机系统有限公司 | Life cycle method and apparatus for detecting data access request |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9298713B2 (en) * | 2011-09-30 | 2016-03-29 | Oracle International Corporation | Executor for software configuration automation |
-
2015
- 2015-09-18 CN CN201510599520.3A patent/CN105138460B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365770A (en) * | 2012-04-09 | 2013-10-23 | 陆兵 | Mobile terminal software testing system and software testing method |
CN104104554A (en) * | 2013-04-10 | 2014-10-15 | 深圳市腾讯计算机系统有限公司 | Life cycle method and apparatus for detecting data access request |
Also Published As
Publication number | Publication date |
---|---|
CN105138460A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105138460B (en) | A kind of method for testing software and system | |
US8443074B2 (en) | Constructing an inference graph for a network | |
CN102123044B (en) | Detection device and method of network topology consistency based on topology discovery technology | |
US20080200181A1 (en) | Self-Configuring Wireless Network Location System | |
US9104565B2 (en) | Fault tracing system and method for remote maintenance | |
CN106845820B (en) | NFV system reliability evaluation method based on performance margin | |
KR101443071B1 (en) | Error Check System of Webpage | |
CN105451260A (en) | Network request method, and method and device for measuring network fluctuation | |
CN104301161A (en) | Computing method, computing device and communication system for business quality index | |
CN107395783A (en) | A kind of IP address processing method, system, device and electronic equipment | |
CN104915238A (en) | Method for determining configuration parameter association of Web application | |
CN106302412A (en) | A kind of intelligent checking system for the test of information system crushing resistance and detection method | |
CN101199162B (en) | Method, system and device for controlling communication network | |
CN110474821A (en) | Node failure detection method and device | |
JPWO2015182629A1 (en) | Monitoring system, monitoring device and monitoring program | |
US20190199603A1 (en) | Mobile communication network failure monitoring system and method | |
CN114301800A (en) | Network equipment quality difference analysis method and device | |
CN113300914A (en) | Network quality monitoring method, device, system, electronic equipment and storage medium | |
US20070288475A1 (en) | Method for processing multiple continuous top-K queries | |
CN117375889A (en) | Big data abnormal behavior monitoring method, system, equipment and storage medium | |
CN109462493B (en) | Local area network monitoring method based on PING | |
CN114745616B (en) | Underground heat information remote monitoring and early warning system and method | |
Son et al. | RAFD: Resource-aware fault diagnosis system for home environment with smart devices | |
CN109726085A (en) | Method and system for tracking performance problem | |
CN107426044B (en) | Serial line detection method and device and operation and maintenance server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |