CN109271325A - Test method, system, electronic equipment and the storage medium of application - Google Patents
Test method, system, electronic equipment and the storage medium of application Download PDFInfo
- Publication number
- CN109271325A CN109271325A CN201811255838.XA CN201811255838A CN109271325A CN 109271325 A CN109271325 A CN 109271325A CN 201811255838 A CN201811255838 A CN 201811255838A CN 109271325 A CN109271325 A CN 109271325A
- Authority
- CN
- China
- Prior art keywords
- data
- application
- released
- environment
- test
- 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.)
- Granted
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides test method, system, electronic equipment and the storage medium of a kind of application, and wherein method includes: building test environment, including application to be released and Mock subsystem;The operation data for having issued application on line in environment, including actual request data, association service data and real response data are obtained, association service data are stored to Mock subsystem;Actual request data are successively played back in test environment, obtain application to be released according to the resulting analog response data of association service data processing actual request data;Analog response data and real response data are compared, screening is carried out to each functional unit of application to be released.The application is recorded the association service data relied on when requesting and running in environment on line by Mock subsystem in real time, and corresponding association service data are returned when testing environment playback request, the otherness for excluding association service under varying environment, carries out the test screening based on truthful data stream to application to be released.
Description
Technical field
This application involves Internet technical fields, set specifically, being related to a kind of test method of application, system, electronics
Standby and storage medium.
Background technique
Application program needs the modules to system and system to test after the completion of exploitation.When test, by developing
Personnel construct test case, and then the output of system and anticipated output are compared, to judge system for the test case
Feedback whether reach expected.
At least there are the following problems for above-mentioned test: first is that the test case of developer's construction has limitation, Bu Nengchong
Input data in existing production environment;Second is that developer constructs the larger workload of considerable number of test case, to exploitation
Work affects greatly in itself.
In addition, for the availability of safeguards system, being needed system immediately after application program generates failure in production environment
It is rolled back to normal operating conditions, next is only lower positioning system failure online.It does so and will affect fault diagnosis, also delayed to open
Hair progress.
It should be noted that the information in above-mentioned background technology part application is only used for reinforcing the reason to the background of the application
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
In view of this, the application provides test method, system, electronic equipment and the storage medium of a kind of application, potential solution
Certainly in the prior art construction test case it is limited, can not in real time positioning failure, influence the problem of application and development efficiency.
According to the one aspect of the application, a kind of test method of application is provided, comprising: building test environment, including to
Publication application and Mock subsystem;Obtain the operation data for having issued application on line in environment, including actual request data, association
Service data and real response data store the association service data to the Mock subsystem;By actual request data
It is successively played back in the test environment, obtains the application to be released according to association service data processing actual request data institute
The analog response data obtained;The analog response data and the real response data are compared, to each of the application to be released
Functional unit carries out screening.
Preferably, above-mentioned test method further include: by actual request data by preset request rate in the test
It is played back in environment, obtains the application to be released according to the output data of association service data processing actual request data;According to
The output data obtains pressure testing results of the application to be released based on the preset request rate.
Preferably, above-mentioned test method further include: adjust request rate, obtain the application to be released and asked based on difference
Seek the pressure testing results of rate.
Preferably, above-mentioned test method further include: obtain the exception request number for having issued application on line in environment in real time
According to;The exception request data are played back in the test environment, the application to be released is obtained and handles the exception request
The data flow that data generate;It has been issued to described using progress accident analysis according to the data flow.
Preferably, in above-mentioned test method, the Mock subsystem of building includes Redis Mock subsystem and SOA
Mock subsystem.
According to further aspect of the application, a kind of test macro of application is provided, comprising: test environment, including it is pending
Cloth is applied and Mock subsystem;Data acquisition module, for obtaining the operation data for having issued application on line in environment, including reality
Border request data, association service data and real response data store the association service data to the Mock subsystem;
Production test module obtains described to be released using root for successively playing back actual request data in the test environment
According to the resulting analog response data of association service data processing actual request data;And compare analog response data and described
Real response data carry out screening to each functional unit of the application to be released.
Preferably, above-mentioned test macro further include: pressure test module, for actual request data to be asked as preset
It asks rate to play back in the test environment, obtains the application to be released according to association service data processing actual request data
Output data;And the application to be released is obtained according to the output data and is surveyed based on the pressure of the preset request rate
Test result.
Preferably, above-mentioned test macro further include: rate adaptation module, for adjusting request rate, obtain it is described to
The pressure testing results based on different request rates are applied in publication.
Preferably, above-mentioned test macro further include: failure analysis module has been issued in environment on line for obtaining in real time
The exception request data of application;The exception request data are played back in the test environment, obtain the application to be released
Handle the data flow that the exception request data generate;And it is issued to described using progress failure point according to the data flow
Analysis.
Preferably, in above-mentioned test macro, the Mock subsystem of the test environment includes Redis Mock subsystem
With SOA Mock subsystem.
According to further aspect of the application, a kind of electronic equipment is provided, comprising: processor;And memory, for depositing
Store up executable instruction;Wherein, the processor is configured to execute the survey of above-mentioned application via the executable instruction is executed
The step of method for testing.
According to further aspect of the application, a kind of computer readable storage medium is provided, is stored thereon with computer journey
The step of sequence, the computer program realizes the test method of above-mentioned application when being executed by processor.
The beneficial effect of the application compared with prior art is:
The application is real-time by the association service data relied on when requesting and running in environment on line by Mock subsystem
It records, and returns to corresponding association service data when testing environment playback request, exclude association service under varying environment
Otherness;
By playing back the actual request data of environment on line in test environment, application to be released is carried out based on true number
According to the test screening of stream.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application
Example, and together with specification it is used to explain the principle of the application.It should be evident that the accompanying drawings in the following description is only the application
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 to Fig. 3 shows the step schematic diagram of the test method of several applications in the embodiment of the present application;
Fig. 4 shows a kind of module diagram of the test macro of application in the embodiment of the present application;
Fig. 5 shows a kind of configuration diagram of the test macro of application in the embodiment of the present application;
Fig. 6 shows the schematic diagram of a kind of electronic equipment in the embodiment of the present application;
Fig. 7 shows the schematic diagram of computer readable storage medium in the embodiment of the present application.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to embodiment set forth herein.On the contrary, thesing embodiments are provided so that the application will
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.It is identical attached in figure
Icon note indicates same or similar structure, thus will omit repetition thereof.
Fig. 1 to Fig. 3 shows the step of test method of several applications in some embodiments of the present application, and the number in figure is only
For distinguishing different steps, the logical relation that is not intended to limit between each step and sequence is executed.
Shown in referring to Fig.1, in some embodiments of the present application, the test method of application includes but is not limited to following step
It is rapid:
S10, building test environment, including application to be released and Mock subsystem.
Wherein, application to be released refers to for having issued using the version after being updated on line.Mock subsystem is
A set of simulation system is realized for simulating the function of each functional unit of application to be released.Mock subsystem can be reduced respectively
Dependence between functional unit guarantees the stability and test independence of each functional unit function itself.
S20, the operation data for having issued application on line in environment, including actual request data, association service data are obtained
With real response data, association service data are stored to Mock subsystem.
In some preferred embodiments, the Mock subsystem of building includes Redis Mock subsystem and SOA Mock
System.Redis be one open source write using ANSI C language, support network, it is memory-based also can persistence log
Type, Key-Value database, and the API of multilingual is provided.Redis Mock subsystem, which can store, have been issued using online
It is some data cached used in operation processing request in upper environment, same request is handled in test environment for be released apply
When call.SOA (Service-Oriented Architecture, Enterprise SOA) is a component model, it will be answered
Different function units (also referred to as service) by these service between define good interface and contract connects.SOA
Mock subsystem, which can store, have been issued using one used in the request of operation processing different function units in environment on line
A little service datas, for it is to be released apply test environment in handle same functional unit request when calling.
Wherein, the operation data for having issued application on line in environment is stored in database profession.Environment will have been issued and answered on line
Operation data (having issued the log generated using operation) is pushed to message queue according to certain format, then passes through stream
Journey pulls message in database.The operation data for having issued application includes actual request data and real response data, with
And relevant association service data, the service data etc. of service data, Redis including SOA.
By Redis Mock subsystem and SOA Mock subsystem, can be returned when testing environment calls association service
It returns and guarantees test to exclude the otherness of association service under varying environment with the consistent association service data of environment on line
Accuracy.
S30, actual request data are successively played back in test environment, obtains application to be released according to association service data
Handle the resulting analog response data of actual request data.
By the truthful data stream of environment on intercepting line, actual request data are played back in test environment, line can be reappeared
Performance of the true input of upper environment in test environment, to observe output and positioning application to be released is that may be present asks
Topic.
S40, analog response data and real response data are compared, screening is carried out to each functional unit of application to be released.
In a preferred embodiment, from the actual request data taken out in certain time in database, it is put into test environment
In successively re-request, while using Redis in environment on Redis Mock subsystem and SOA Mock subsystem artificial line
The returned data of returned data and SOA returns to association service data fully according to environment on line, obtains application processing to be released
Request resulting analog response data.By will test in the analog response data returned in environment and the line stored in database
The real response data that environment returns are compared, so that it may test screening is carried out to each functional unit of application to be released, and
The problem of Shi Faxian application to be released.
Further, in some embodiments, referring to shown in Fig. 2, the test method of application further include:
S50, by actual request data by preset request rate test environment in play back, obtain application to be released according to
The output data of association service data processing actual request data;S60, application to be released is obtained based on default according to output data
Request rate pressure testing results.
By from line environment intercept large batch of request data, imported into application to be released, observation is exported and collected point
The performance indexes for analysing application to be released carries out pressure test to application to be released.
Further, in some embodiments, the test method of application further include: S70, adjust request rate, obtain to
The pressure testing results based on different request rates are applied in publication.By the speed adjustment mechanism of request data stream, adjust on demand
Rate of the request data of environment when testing environment playback on whole line is asked to reach and fully assess to be released apply in difference
Seek the performance under rate.
Further, in some embodiments, referring to shown in Fig. 3, the test method of application further include:
S80, the exception request data for having issued application on line in environment are obtained in real time;
S90, exception request data are played back in test environment, obtains application processing exception request data to be released and generates
Data flow, according to data flow to issued using carry out accident analysis.
After environment generates failure on line, in order to ensure the availability for having issued application, need immediately to be rolled back to system
Normal operating conditions.At the same time, it re-requests, obtains through the exception request of environment on real-time interception line and in test environment
The data flow for taking application processing exception request to be released to generate can be quickly and accurate by means such as the breakpoints of test environment
It navigates to the fault point for having issued application and analyses in depth fault rootstock.Application has been issued on line in environment in this way, both ensure that
Normal use, and in real time by test environment play back exception request, reduction exception request its life cycle data flow remember
Record helps developer's quick positioning system failure, carries out backtracking analysis to exception request.
The test method of the application of above-described embodiment by Mock subsystem, will request when running in environment on line institute according to
The output of bad association service is recorded in real time, and returns to corresponding association service data when testing environment playback request,
To exclude the otherness of association service under varying environment, guarantee the accuracy of test;It is adjusted by the speed of request data stream
Mechanism can adjust context request data on line and fully assess to be released answer to reach in the rate of test environment playback time
With performance in varied situations;By welcoming exception request to record in the data flow of its life cycle, exploit person can be helped
Member's quick positioning system failure, while guaranteeing the availability of environment on line.
The embodiment of the present application also provides a kind of test macro of application.Referring to Fig. 4 module diagram and Fig. 5 configuration diagram
Shown, in some embodiments, the test macro 3 of application specifically includes that
Test environment, including 31 and Mock of application to be released subsystem 32.Mock subsystem can further comprise Redis
Mock subsystem 321 and SOA Mock subsystem 322.Application to be released passes through third party's data-interface from Redis Mock subsystem
Association service data are obtained in system 321 and SOA Mock subsystem 322.
Data acquisition module 33 has issued the operation data using 1 for obtaining in environment on line, including actual request number
According to, association service data and real response data, association service data are stored to Mock subsystem 32.
Specifically, having issued the daily record data that generates operation using 1 on line in environment, (including Request Log, SOA are returned
Return log, Redis returns to log, response log etc.) it is pushed to message queue according to certain format, such as it is pushed to Kafka
Or hermes distributed post is subscribed in message system 12, then is handled frame 13 by Storm stream data and drawn daily record data
It gets in database 2.Data acquisition module 33 can obtain the truthful data of environment on line from database 2.
Data acquisition module 33 may further include request data and obtain module 331, for obtaining in database 2 in real time
Actual request data, i.e. Request Log;Associated data obtains module 332, for obtaining the association service in database 2 in real time
Data, including SOA returns to log, Redis returns to log etc.;Response data obtains module 333, for obtaining database 2 in real time
In real response data, i.e. response log.
Production test module 34 obtains application to be released for successively playing back actual request data in test environment
31 according to the resulting analog response data of association service data processing actual request data;And compare analog response data and reality
Response data carries out screening to each functional unit of application 31 to be released.
In a preferred embodiment, it includes the first acquisition module 3311 that request data, which obtains module 331, is used for from database
In 2 take out a period of time in actual request data, be put into test environment in carry out simulation request, i.e., by actual request data according to
It is secondary to be re-requested once in application 31 to be released.On 322 artificial line of Redis Mock subsystem 321 and SOA Mock subsystem
The SOA service data and Redis service data of environment, application to be released are sub from Redis Mock subsystem 321 and SOA Mock
Association service data are obtained in system 322, and actual request data are handled to obtain analog response data.Production test module
34 by will test the real response data that environment returns on the line stored in the analog response data and database 2 that environment returns
It is compared, so that it may the problem of is carried out by screening, finds application 31 to be released in time for each functional unit of application 31 to be released.
Further, in some embodiments, the test macro 3 of application further include: pressure test module 35, being used for will be real
Border request data by preset request rate test environment in play back, obtain it is to be released application 31 according to association service data at
Manage the output data of actual request data;And 31 pressures based on preset request rate of application to be released are obtained according to output data
Power test result.
Specifically, it further includes the second acquisition module 3312 that request data, which obtains module 331, for cutting from database 2
Large batch of request data is taken, while being put into application 31 to be released and carrying out simulation request.Pressure test module 35 is according to pending
Cloth analyzes performance indicator when application 31 to be released handles high-volume request data at the same time using 31 output data.Pass through mould
The request of environment on quasi- line, while association service interface is subjected to mock, it is ensured that the accuracy of performance test.
Further, rate adaptation module 351 can be set in pressure test module 35, for adjusting request rate, obtains
Take 31 pressure testing results based on different request rates of application to be released.Request data by adjusting environment on line is being tested
The rate of environment playback time can measure performance of the application 31 to be released under different request rates.
Further, in some embodiments, the test macro 3 of application further include: failure analysis module 36, for real-time
Obtain the exception request data issued in environment on line using 1;By exception request data test environment in play back, obtain to
The data flow that publication is generated using 31 processing exception request data;And according to data flow to issued using 1 carry out accident analysis.
Specifically, it further includes that third obtains module 3313 that request data, which obtains module 331, for ring on real-time interception line
Exception request data are reentered into test environment and request by the exception request data in border.Failure analysis module 36 is according to pending
The failure of environment on line is checked in the data flow that cloth is generated using 31 processing exception request data, analysis.
The daily record data of the test macro integrated data base of the application of above-described embodiment, Redis, SOA, is provided to application
The functions such as functional test, pressure test, fault diagnosis are realized the request data for obtaining environment on line in real time, are being tested in real time
Environment on artificial line in environment test the exception of environment in simultaneously diagnostics lines, quick fault location.It finds in time pending
The dysfunction of cloth application, and provide and analysis is recalled to the failure for having issued application, the operational support ability of environment on increase line
With problem disposal efficiency.
The embodiment of the present application also provides a kind of electronic equipment, including processor and memory, and being stored in memory can hold
Row instruction, processor are configured as executing the step of the test method of the application in above-described embodiment via executable instruction is executed
Suddenly.
As described above, the electronic equipment of the application can obtain the request data of environment on line in real time, and can be real-time
Ground environment on test environment artificial line, the problem of finding application to be released in time, simultaneously diagnose the failure for having issued application.
Fig. 6 is the structural schematic diagram of electronic equipment in the embodiment of the present application, it should be appreciated that Fig. 6 is only schematic
Ground shows modules, these modules can be virtual software module or actual hardware module, and the merging of these modules is torn open
Point and its complementary modul block increase all within the scope of protection of this application.
Person of ordinary skill in the field it is understood that the various aspects of the application can be implemented as system, method or
Program product.Therefore, the various aspects of the application can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as " circuit ", " module " or " platform ".
The electronic equipment 400 of the application is described referring to Fig. 6.The electronic equipment 400 that Fig. 6 is shown is only one and shows
Example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap
Include but be not limited to: at least one processing unit 410, at least one storage unit 420, connection different platform component (including storage
Unit 420 and processing unit 410) bus 430, display unit 440 etc..
Wherein, storage unit is stored with program code, and program code can be executed with unit 410 processed, so that processing is single
Member 410 executes the step of test method applied described in above-described embodiment.For example, processing unit 410 can be executed such as Fig. 1
To step shown in Fig. 3.
Storage unit 420 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 4201 and/or cache memory unit 4202, it can further include read-only memory unit (ROM) 4203.
Storage unit 420 can also include program/utility with one group of (at least one) program module 4205
4204, such program module 4205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 430 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 400 can also be with one or more external equipments 500 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 450.Also, electronic equipment 400 can be with
By network adapter 460 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.Network adapter 460 can be communicated by bus 430 with other modules of electronic equipment 400.It should
Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 400, including but unlimited
In: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number
According to backup storage platform etc..
The embodiment of the present application also provides a kind of computer readable storage medium, and for storing program, program is performed reality
The step of test method of the application of existing above-described embodiment description.In some possible embodiments, each side of the application
Face is also implemented as a kind of form of program product comprising program code, when program product is run on the terminal device,
The step of test method for the application that program code is used to that terminal device to be made to execute above-described embodiment description.
As described above, the computer readable storage medium of the application can obtain the request data of environment on line in real time, and
And can the environment on test environment artificial line in real time, the problem of finding application to be released in time simultaneously diagnoses and issued application
Failure.
Fig. 7 is the structural schematic diagram of the computer readable storage medium of the application.Refering to what is shown in Fig. 7, describing according to this
The program product 600 for realizing the above method of the embodiment of application can use the read-only storage of portable compact disc
Device (CD-ROM) and including program code, and can be run on terminal device, such as PC.However, the journey of the application
Sequence product is without being limited thereto, and in this document, readable storage medium storing program for executing can be any tangible medium for including or store program, the journey
Sequence can be commanded execution system, device or device use or in connection.
Program product can be using any combination of one or more readable mediums.Readable medium can be readable signal Jie
Matter or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or partly lead
System, device or the device of body, or any above combination.More specific example (the non exhaustive column of readable storage medium storing program for executing
Table) it include: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only storage
Device (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer readable storage medium may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, including but not
It is limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the application operation program
Code, programming language include object oriented program language-Java, C++ etc., further include conventional process
Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user
It executes in equipment, partly execute on a user device, executing, as an independent software package partially in user calculating equipment
Upper part executes on a remote computing or executes in remote computing device or server completely.It is being related to remotely counting
In the situation for calculating equipment, remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
The above content is combine specific preferred embodiment to made by the application further description, and it cannot be said that
The specific implementation of the application is only limited to these instructions.For those of ordinary skill in the art to which this application belongs, exist
Under the premise of not departing from the application design, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the application's
Protection scope.
Claims (12)
1. a kind of test method of application characterized by comprising
Building test environment, including application to be released and Mock subsystem;
Obtain the operation data for having issued application on line in environment, including actual request data, association service data and practical sound
Data are answered, the association service data are stored to the Mock subsystem;
Actual request data are successively played back in the test environment, obtain the application to be released according to association service data
Handle the resulting analog response data of actual request data;
The analog response data and the real response data are compared, each functional unit of the application to be released is sieved
It looks into.
2. the method as described in claim 1, which is characterized in that further include:
Actual request data are played back in the test environment by preset request rate, obtain the application to be released according to
The output data of association service data processing actual request data;
Pressure testing results of the application to be released based on the preset request rate are obtained according to the output data.
3. method according to claim 2, which is characterized in that further include:
Request rate is adjusted, the pressure testing results of the application to be released based on different request rates are obtained.
4. the method as described in claim 1, which is characterized in that further include:
The exception request data for having issued application on line in environment are obtained in real time;
The exception request data are played back in the test environment, the application to be released is obtained and handles the exception request
The data flow that data generate;
It has been issued to described using progress accident analysis according to the data flow.
5. the method as described in claim 1, which is characterized in that the Mock subsystem of building include Redis Mock subsystem and
SOA Mock subsystem.
6. a kind of test macro of application characterized by comprising
Test environment, including application to be released and Mock subsystem;
Data acquisition module, for obtaining the operation data for having issued application on line in environment, including actual request data, association
Service data and real response data store the association service data to the Mock subsystem;
Production test module obtains described to be released answer for successively playing back actual request data in the test environment
With according to the resulting analog response data of association service data processing actual request data;And compare the analog response data and
The real response data carry out screening to each functional unit of the application to be released.
7. system as claimed in claim 6, which is characterized in that further include:
Pressure test module is obtained for playing back actual request data in the test environment by preset request rate
The output data to be released applied according to association service data processing actual request data;And it is obtained according to the output data
Take the application to be released based on the pressure testing results of the preset request rate.
8. system as claimed in claim 7, which is characterized in that further include:
Rate adaptation module is obtained the application to be released and is surveyed based on the pressure of different request rates for adjusting request rate
Test result.
9. system as claimed in claim 6, which is characterized in that further include:
Failure analysis module, for obtaining the exception request data for having issued application on line in environment in real time;The exception is asked
It asks data to play back in the test environment, obtains the application to be released and handle the data that the exception request data generate
Stream;And it is issued to described using progress accident analysis according to the data flow.
10. system as claimed in claim 6, which is characterized in that the Mock subsystem of the test environment includes Redis
Mock subsystem and SOA Mock subsystem.
11. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing executable instruction;
Wherein, the processor be configured to via execute the executable instruction come perform claim require it is 1~5 described in any item
The step of test method of application.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of test method of the described in any item applications of Claims 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811255838.XA CN109271325B (en) | 2018-10-26 | 2018-10-26 | Application testing method, system, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811255838.XA CN109271325B (en) | 2018-10-26 | 2018-10-26 | Application testing method, system, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271325A true CN109271325A (en) | 2019-01-25 |
CN109271325B CN109271325B (en) | 2022-11-04 |
Family
ID=65193584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811255838.XA Active CN109271325B (en) | 2018-10-26 | 2018-10-26 | Application testing method, system, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271325B (en) |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739680A (en) * | 2019-02-02 | 2019-05-10 | 广州视源电子科技股份有限公司 | Fault finding method, device, equipment and medium for application system |
CN110309064A (en) * | 2019-05-30 | 2019-10-08 | 重庆金融资产交易所有限责任公司 | Unit test method, device, equipment and storage medium based on log recording |
CN110347591A (en) * | 2019-06-19 | 2019-10-18 | 平安普惠企业管理有限公司 | Method, apparatus, electronic equipment and storage medium based on use-case test macro |
CN110471696A (en) * | 2019-07-05 | 2019-11-19 | 平安证券股份有限公司 | Clear data readback comparison method, device, computer equipment and storage medium |
CN110489334A (en) * | 2019-07-24 | 2019-11-22 | 贝壳技术有限公司 | A kind of system integration and test test processing method and device |
CN110765004A (en) * | 2019-09-26 | 2020-02-07 | 北京你财富计算机科技有限公司 | Testing method and device based on sandbox system and electronic equipment |
CN110825636A (en) * | 2019-11-05 | 2020-02-21 | 腾讯科技(深圳)有限公司 | Matching algorithm performance test method, device, equipment, system and medium |
CN111010316A (en) * | 2019-12-17 | 2020-04-14 | 广州唯品会信息科技有限公司 | Flow playback method, device and system |
CN111045942A (en) * | 2019-12-12 | 2020-04-21 | 同盾控股有限公司 | Application testing method, system, storage medium and electronic equipment |
CN111522727A (en) * | 2019-02-01 | 2020-08-11 | 阿里巴巴集团控股有限公司 | Simulation object test method, device and system |
CN111641534A (en) * | 2020-05-28 | 2020-09-08 | 深圳华锐金融技术股份有限公司 | Data transmission equipment testing method and device, computer equipment and storage medium |
CN112306845A (en) * | 2019-07-31 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Concurrent testing method, device, equipment and medium |
CN112363938A (en) * | 2020-11-12 | 2021-02-12 | 平安普惠企业管理有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112422648A (en) * | 2020-11-05 | 2021-02-26 | 北京字节跳动网络技术有限公司 | Data synchronization method and system |
CN112532747A (en) * | 2020-12-23 | 2021-03-19 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for outputting information |
CN112615759A (en) * | 2020-12-17 | 2021-04-06 | 上海哔哩哔哩科技有限公司 | Full link voltage measurement assembly, full link voltage measurement method and device |
CN112631934A (en) * | 2020-12-30 | 2021-04-09 | 上海高顿教育科技有限公司 | Method and device for testing software online problems |
CN113268391A (en) * | 2020-02-14 | 2021-08-17 | 北京沃东天骏信息技术有限公司 | Method, apparatus, device and storage medium for data playback |
CN113422794A (en) * | 2021-02-09 | 2021-09-21 | 阿里巴巴集团控股有限公司 | Traffic recording and playback processing method and device and electronic equipment |
CN113434384A (en) * | 2020-03-23 | 2021-09-24 | 北京京东振世信息技术有限公司 | Pressure testing method and device |
CN113553260A (en) * | 2021-07-22 | 2021-10-26 | 工银科技有限公司 | Test method, test apparatus, device, medium, and program product |
CN113672513A (en) * | 2021-08-23 | 2021-11-19 | 四川新网银行股份有限公司 | System and method for automatically generating test baffle |
CN114265618A (en) * | 2021-11-30 | 2022-04-01 | 重庆富民银行股份有限公司 | Method for publishing and rolling back by applying one key |
CN114328172A (en) * | 2020-10-09 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Service testing method and device, computer equipment and storage medium |
CN114553929A (en) * | 2022-01-10 | 2022-05-27 | 多点生活(成都)科技有限公司 | Recording playback enhancement method and device for recording and calling dynamic Mock |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603283A (en) * | 2016-12-13 | 2017-04-26 | 广州唯品会信息科技有限公司 | Service simulation method and device, concentrated management platform |
CN107329890A (en) * | 2017-06-06 | 2017-11-07 | 北京金山安全软件有限公司 | Test method and device based on Mock and server |
CN107517139A (en) * | 2016-06-17 | 2017-12-26 | 阿里巴巴集团控股有限公司 | Data processing method and system, device test system and bus test system |
CN108170612A (en) * | 2018-01-23 | 2018-06-15 | 百度在线网络技术(北京)有限公司 | A kind of automated testing method, device and server |
-
2018
- 2018-10-26 CN CN201811255838.XA patent/CN109271325B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107517139A (en) * | 2016-06-17 | 2017-12-26 | 阿里巴巴集团控股有限公司 | Data processing method and system, device test system and bus test system |
CN106603283A (en) * | 2016-12-13 | 2017-04-26 | 广州唯品会信息科技有限公司 | Service simulation method and device, concentrated management platform |
CN107329890A (en) * | 2017-06-06 | 2017-11-07 | 北京金山安全软件有限公司 | Test method and device based on Mock and server |
CN108170612A (en) * | 2018-01-23 | 2018-06-15 | 百度在线网络技术(北京)有限公司 | A kind of automated testing method, device and server |
Cited By (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522727B (en) * | 2019-02-01 | 2023-04-14 | 阿里巴巴集团控股有限公司 | Simulation object test method, device and system |
CN111522727A (en) * | 2019-02-01 | 2020-08-11 | 阿里巴巴集团控股有限公司 | Simulation object test method, device and system |
CN109739680A (en) * | 2019-02-02 | 2019-05-10 | 广州视源电子科技股份有限公司 | Fault finding method, device, equipment and medium for application system |
CN110309064A (en) * | 2019-05-30 | 2019-10-08 | 重庆金融资产交易所有限责任公司 | Unit test method, device, equipment and storage medium based on log recording |
CN110347591A (en) * | 2019-06-19 | 2019-10-18 | 平安普惠企业管理有限公司 | Method, apparatus, electronic equipment and storage medium based on use-case test macro |
CN110471696A (en) * | 2019-07-05 | 2019-11-19 | 平安证券股份有限公司 | Clear data readback comparison method, device, computer equipment and storage medium |
CN110471696B (en) * | 2019-07-05 | 2024-04-05 | 平安证券股份有限公司 | Clearing data playback comparison method, device, computer equipment and storage medium |
CN110489334A (en) * | 2019-07-24 | 2019-11-22 | 贝壳技术有限公司 | A kind of system integration and test test processing method and device |
CN112306845A (en) * | 2019-07-31 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Concurrent testing method, device, equipment and medium |
CN112306845B (en) * | 2019-07-31 | 2024-06-11 | 腾讯科技(深圳)有限公司 | Concurrency test method, concurrency test device, concurrency test equipment and concurrency test medium |
CN110765004A (en) * | 2019-09-26 | 2020-02-07 | 北京你财富计算机科技有限公司 | Testing method and device based on sandbox system and electronic equipment |
CN110825636B (en) * | 2019-11-05 | 2021-03-30 | 腾讯科技(深圳)有限公司 | Matching algorithm performance test method, device, equipment, system and medium |
CN110825636A (en) * | 2019-11-05 | 2020-02-21 | 腾讯科技(深圳)有限公司 | Matching algorithm performance test method, device, equipment, system and medium |
CN111045942A (en) * | 2019-12-12 | 2020-04-21 | 同盾控股有限公司 | Application testing method, system, storage medium and electronic equipment |
CN111010316A (en) * | 2019-12-17 | 2020-04-14 | 广州唯品会信息科技有限公司 | Flow playback method, device and system |
CN113268391A (en) * | 2020-02-14 | 2021-08-17 | 北京沃东天骏信息技术有限公司 | Method, apparatus, device and storage medium for data playback |
CN113434384B (en) * | 2020-03-23 | 2023-09-22 | 北京京东振世信息技术有限公司 | Pressure testing method and device |
CN113434384A (en) * | 2020-03-23 | 2021-09-24 | 北京京东振世信息技术有限公司 | Pressure testing method and device |
CN111641534A (en) * | 2020-05-28 | 2020-09-08 | 深圳华锐金融技术股份有限公司 | Data transmission equipment testing method and device, computer equipment and storage medium |
CN111641534B (en) * | 2020-05-28 | 2021-08-03 | 深圳华锐金融技术股份有限公司 | Data transmission equipment testing method and device, computer equipment and storage medium |
CN114328172A (en) * | 2020-10-09 | 2022-04-12 | 腾讯科技(深圳)有限公司 | Service testing method and device, computer equipment and storage medium |
CN112422648A (en) * | 2020-11-05 | 2021-02-26 | 北京字节跳动网络技术有限公司 | Data synchronization method and system |
CN112363938A (en) * | 2020-11-12 | 2021-02-12 | 平安普惠企业管理有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112615759A (en) * | 2020-12-17 | 2021-04-06 | 上海哔哩哔哩科技有限公司 | Full link voltage measurement assembly, full link voltage measurement method and device |
CN112532747A (en) * | 2020-12-23 | 2021-03-19 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for outputting information |
CN112631934A (en) * | 2020-12-30 | 2021-04-09 | 上海高顿教育科技有限公司 | Method and device for testing software online problems |
CN113422794A (en) * | 2021-02-09 | 2021-09-21 | 阿里巴巴集团控股有限公司 | Traffic recording and playback processing method and device and electronic equipment |
CN113553260B (en) * | 2021-07-22 | 2022-07-19 | 工银科技有限公司 | Test method, test apparatus, device, and medium |
CN113553260A (en) * | 2021-07-22 | 2021-10-26 | 工银科技有限公司 | Test method, test apparatus, device, medium, and program product |
CN113672513A (en) * | 2021-08-23 | 2021-11-19 | 四川新网银行股份有限公司 | System and method for automatically generating test baffle |
CN114265618A (en) * | 2021-11-30 | 2022-04-01 | 重庆富民银行股份有限公司 | Method for publishing and rolling back by applying one key |
CN114553929A (en) * | 2022-01-10 | 2022-05-27 | 多点生活(成都)科技有限公司 | Recording playback enhancement method and device for recording and calling dynamic Mock |
CN114553929B (en) * | 2022-01-10 | 2024-04-12 | 多点生活(成都)科技有限公司 | Recording playback enhancement method and device for recording call dynamic Mock |
Also Published As
Publication number | Publication date |
---|---|
CN109271325B (en) | 2022-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109271325A (en) | Test method, system, electronic equipment and the storage medium of application | |
US20220374330A1 (en) | Providing debug information on production containers using debug containers | |
CN109729141A (en) | Mixing BOT frame for enterprise | |
US10976904B2 (en) | Graphical chatbot interface facilitating user-chatbot interaction | |
US12028210B2 (en) | Production software application performance and resiliency testing | |
US10540265B2 (en) | Using test workload run facts and problem discovery data as input for business analytics to determine test effectiveness | |
US9928163B2 (en) | Dynamic test topology visualization | |
US11039783B2 (en) | Automatic cueing system for real-time communication | |
CN110083455A (en) | Figure computation processing method, device, medium and electronic equipment | |
US11676500B1 (en) | Systems and methods to measure performance | |
US11574015B2 (en) | Natural language interaction based data analytics | |
CN108984380A (en) | A kind of server test method, device and medium based on linux system | |
CN110413504A (en) | A kind of method for testing software, device, equipment and storage medium | |
US20200152338A1 (en) | Dynamically optimized inquiry process for intelligent health pre-diagnosis | |
US10803101B2 (en) | Recommending responses to emergent conditions | |
US20200151641A1 (en) | Dynamic assignment of tasks to internet connected devices | |
US11169905B2 (en) | Testing an online system for service oriented architecture (SOA) services | |
CN112416747A (en) | Test case execution method, device, equipment and medium | |
US11055602B2 (en) | Deep learning assignment processing method and apparatus, device and storage medium | |
US11631416B1 (en) | Audio content validation via embedded inaudible sound signal | |
CN112416743B (en) | Test control system, method and equipment | |
CN115357493A (en) | Test method, test device, electronic equipment and storage medium | |
US20220114219A1 (en) | Determining device assistant manner of reply | |
CN115050396A (en) | Test method and device, electronic device and medium | |
US11645071B1 (en) | Intelligent installation for client systems |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |