CN109144874A - A kind of monitoring method and device for testing environment - Google Patents

A kind of monitoring method and device for testing environment Download PDF

Info

Publication number
CN109144874A
CN109144874A CN201810962891.7A CN201810962891A CN109144874A CN 109144874 A CN109144874 A CN 109144874A CN 201810962891 A CN201810962891 A CN 201810962891A CN 109144874 A CN109144874 A CN 109144874A
Authority
CN
China
Prior art keywords
test
result data
environment
specified services
test result
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
Application number
CN201810962891.7A
Other languages
Chinese (zh)
Other versions
CN109144874B (en
Inventor
马轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810962891.7A priority Critical patent/CN109144874B/en
Publication of CN109144874A publication Critical patent/CN109144874A/en
Application granted granted Critical
Publication of CN109144874B publication Critical patent/CN109144874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Abstract

The invention discloses a kind of monitoring method, device, electronic equipment and computer readable storage mediums for testing environment.This method comprises: receiving the test request of specified services;According to test request, the test of specified services is carried out, obtains the test result data of test;Test result data relevant to test environment is isolated from the test result data of acquisition;Judge whether test environment is abnormal according to the test result data relevant to test environment isolated.As it can be seen that can also realize the monitoring to test environment during the test by the technical program, judge to test whether environment exception occurs, test crash caused by preventing because of test environmental abnormality.

Description

A kind of monitoring method and device for testing environment
Technical field
The present invention relates to field of computer technology, and in particular to a kind of to test the monitoring method of environment, device, electronic equipment And computer readable storage medium.
Background technique
Test refers to operating system or application program on intelligent terminal on a preset condition based, assesses operation result, i.e., will Operation result is compared with expected result.It when test, needs based on certain test environment, for example, application journey to be tested Sequence be it is based on android system, then Android system is exactly to test environment.If test is abnormal, it may be possible to test environment and draw It rises.Therefore, to the important process in the whether abnormal detection of test environment and test process.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State monitoring method, device, electronic equipment and the computer readable storage medium of the test environment of problem.
According to an aspect of the invention, there is provided a kind of monitoring method for testing environment, wherein this method comprises:
Receive the test request of specified services;
According to the test request, the test of the specified services is carried out, obtains the test result data of the test;
Test result data relevant to test environment is isolated from the test result data of acquisition;
Judge whether test environment is abnormal according to the test result data relevant to test environment isolated.
Optionally, described that the test of the specified services is carried out according to the test request, obtain the test of the test Result data includes:
According to the test request, the call relation between each functional module interface for realizing the specified services is determined;
According to the call relation between determining each functional module interface, the test order of the specified services is generated;
The test that the specified services are carried out according to the test order obtains the test result number of each functional module interface According to.
Optionally, the call relation between the determining each functional module interface for realizing the specified services includes:
Obtain the interface document of the specified services;
According to the notes content in the interface document, determine each functional module interface for realizing the specified services and Call relation between each functional module interface.
Optionally, the test result data relevant to test environment that the basis is isolated judges whether test environment is different Often include:
Determine the characteristic value of the test result data relevant to test environment;
According to the characteristic value of determining test result data, judge test result data with the presence or absence of abnormal;
If there is exception, then test environmental abnormality letter is determined according to the characteristic value that there is abnormal test result data Breath;It is alarmed according to determining test environment exception information.
Optionally, described that test environment exception information packet is determined according to the characteristic value that there is abnormal test result data It includes:
Default test environmental abnormality includes each test environment exception information and corresponding test in the environment table of comparisons to testing The characteristic value of result data shines table;
According to the characteristic value that there is abnormal test result data, inquires in the test environmental abnormality table of comparisons and whether deposit In occurrence, if it is present it is abnormal to determine that test environment occurs, and corresponding test environment exception information is obtained.
According to another aspect of the present invention, a kind of monitoring device for testing environment is provided, wherein the device includes:
Receiving unit, suitable for receiving the test request of specified services;
Test cell is suitable for carrying out the test of the specified services according to the test request, obtaining the survey of the test Test result data;
Separative unit, suitable for isolating test result number relevant to test environment from the test result data of acquisition According to;
Judging unit, suitable for judging whether test environment according to the test result data relevant to test environment isolated It is abnormal.
Optionally,
The test cell is suitable for determining according to the test request and realizing that each functional module of the specified services connects Call relation between mouthful;According to the call relation between determining each functional module interface, the survey of the specified services is generated Examination rule;The test that the specified services are carried out according to the test order obtains the test result number of each functional module interface According to.
Optionally,
The test cell, suitable for obtaining the interface document of the specified services;According to the annotation in the interface document Content determines the call relation between each functional module interface and each functional module interface of realizing the specified services.
Optionally,
The judging unit is adapted to determine that the characteristic value of the test result data relevant to test environment;According to true The characteristic value of fixed test result data judges test result data with the presence or absence of abnormal;If there is exception, then according to presence The characteristic value of abnormal test result data determines test environment exception information;It is carried out according to determining test environment exception information Alarm.
Optionally,
The judging unit, being suitable for default test environmental abnormality includes each test environmental abnormality in the environment table of comparisons to testing The characteristic value of information and corresponding test result data shines table;According to the characteristic value that there is abnormal test result data, inquiry It whether there is occurrence in the test environmental abnormality table of comparisons, if it is present it is abnormal to determine that test environment occurs, and obtain Corresponding test environment exception information.
According to another aspect of the invention, a kind of electronic equipment is provided, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Device is managed to execute according to method above-mentioned.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, wherein described computer-readable Storage medium stores one or more programs, and one or more of programs when being executed by a processor, realize method above-mentioned.
According to the technique and scheme of the present invention, the test request of specified services is received;According to test request, specified services are carried out Test, obtain the test result data of test;Survey relevant to test environment is isolated from the test result data of acquisition Test result data;Judge whether test environment is abnormal according to the test result data relevant to test environment isolated.As it can be seen that By the technical program, the monitoring to test environment can also be realized during the test, judge to test whether environment occurs It is abnormal, test crash caused by preventing because of test environmental abnormality.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the monitoring method of test environment according to an embodiment of the invention;
Fig. 2 shows the structural schematic diagrams of the monitoring device of test environment according to an embodiment of the invention;
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention;
Fig. 4 shows the structural schematic diagram of computer readable storage medium according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow diagram of the monitoring method of test environment according to an embodiment of the invention.Such as Fig. 1 institute Show, this method comprises:
Step S110 receives the test request of specified services.
The test request for receiving specified services can realize that user is needed by interface selection by way of providing interface The specified services tested, and send the test request of the specified services.
Step S120 carries out the test of specified services according to test request, obtains the test result data of test.
Step S130 isolates test result data relevant to test environment from the test result data of acquisition.
In one embodiment of the invention, for more accurate mask data, it is arranged by pre-set mode The type or feature of possibility test result data relevant to test environment in test result data, it is then pre- further according to this The type or feature being first arranged isolate test result data relevant to test environment from the test result data of acquisition.
Step S140 judges whether test environment is different according to the test result data relevant to test environment isolated Often.
During to test environmental monitoring, if it is determined that exception occurs in test environment, warning note can be carried out, with Just user repairs test environment as early as possible.As it can be seen that through this embodiment, it can also be real during the test to specified services Now to the monitoring of test environment, judge to test whether environment exception occurs, test crash caused by preventing because of test environmental abnormality.
In one embodiment of the invention, in the step S120 in method shown in FIG. 1 according to test request, carry out The test of specified services, the test result data for obtaining test include: to determine each function for realizing specified services according to test request Call relation between energy module interface;According to the call relation between determining each functional module interface, specified services are generated Test order;The test that specified services are carried out according to test order, obtains the test result data of each functional module interface.
The technical program is the monitoring of the test environment based on multifunction module, it is contemplated that in the prior art, to more function It when energy module is tested, can only be the test of one functional module of a functional module, and can not accomplish specified for one The unified test of multiple functional modules of business so that testing efficiency is low, and cannot complete the unified of a specified services and survey Examination.
In the present embodiment, the call relation between each functional module interface of specified services is obtained first, according to the tune With relationship, the test order of corresponding specified services is generated, includes completing a functional module interface in the test order Test after, continuing to call has the pattern rules of the test of next functional module interface of call relation with it, thus may be used To realize the unified test an of specified services, testing efficiency is improved.For example, including functional module 1, functional module in test 2, functional module 3, functional module 4, corresponding interface 1, interface 2, interface 3 and interface 4.For specified services 1, determine real The functional module of existing specified services 1 is functional module 1, functional module 3, functional module 4, and call relation is functional module 1-> function Energy module 3-> functional module 4, i.e. interface call relation sequence is: interface 1-> interface 3-> interface 4 is closed according to the calling System generates the test order of specified services 1, to realize after the interface 1 of functional module 1 executes, calling functional modules 3 Interface 3;After the interface 3 of functional module 3 executes, the interface 4 of calling functional modules 4.
In the present embodiment, the test result data of acquisition is the test result data of each functional module interface, thus Can determine each functional module whether normal service, if server exception, test result data just will appear exception, if The test result data be to test environment it is relevant, then illustrate test result data exception be test environmental abnormality cause , that is, test environmental abnormality.
Further, the call relation between the above-mentioned each functional module interface for determining realization specified services includes: to obtain Take the interface document of specified services;According to the notes content in interface document, determines and realize that each functional module of specified services connects Call relation between mouth and each functional module interface.
In embodiment, developer can generally complete the interface document of the specified services when developing specified services It writes, and notes content is added in corresponding interface document, to illustrate corresponding interface call relation, so in order to obtain Call relation between each functional module interface of specified services, can pass through the notes content of the interface document of specified services It obtains.
In one embodiment of the invention, in the step S140 of method shown in FIG. 1 basis isolate with test The test result data of environmental correclation judges to test whether environment comprises determining that test result number relevant to test environment extremely According to characteristic value;According to the characteristic value of determining test result data, judge test result data with the presence or absence of abnormal;If deposited In exception, then test environment exception information is determined according to the characteristic value that there is abnormal test result data;According to determining survey Test ring border exception information is alarmed.
In the present embodiment, determine whether data are abnormal by the characteristic value of test result data.If test result data Normally, corresponding characteristic value is that correctly, if abnormal, corresponding characteristic value is also mistake.So obtain first To the characteristic value of the relevant each test result data of test environment, judge each characteristic value whether with it is correctly consistent, if one It is straight then illustrate that the test result data is normal, test result data exception is illustrated if inconsistent, then according to the exception Test result data determine test environment exception information, and alarm, according to the warning message, user can determine test There is exception in environment, and can also get corresponding test environment exception information, to carry out the reparation of test environment.
Specifically, above-mentioned that test environment exception information packet is determined according to the characteristic value that there is abnormal test result data Include: default test environmental abnormality includes each test environment exception information and corresponding test result number in the environment table of comparisons to testing According to characteristic value shine table;According to the characteristic value that there is abnormal test result data, it is in the inquiry test environmental abnormality table of comparisons No there are occurrences, if it is present it is abnormal to determine that test environment occurs, and obtain corresponding test environment exception information;Root It alarms according to the test environment exception information of acquisition.
If test result data relevant to test environment is abnormal, it may be possible to which caused by testing environmental abnormality, also having can Can not be test environmental abnormality caused by, therefore, in order to guarantee test environmental abnormality judgement accuracy, in the present embodiment In, the test environment exception information being likely to occur and corresponding test result number are marked by way of presetting the table of comparisons According to characteristic value, the characteristic value of test environment exception information and test result data in the table of comparisons corresponds.In this way, if The characteristic value of determining test result data has occurrence in the table of comparisons, illustrates that this feature value meets test environment and exception occurs The case where, and obtain corresponding test environment exception information.If illustrating to cause the test result data without occurrence Caused by exception is not test environmental abnormality, the factor for testing environmental abnormality can be excluded.
In a specific example, after getting test result data, obtain first in the test result data with The relevant test result data of environment is tested, then whether judgement should abnormal to from the relevant test result data of test environment, If it is abnormal, then would judge whether the exception is caused by test environmental abnormality.
Compare result data when traversing all tests, judges it whether for Yi Chang scheme, above-described embodiment is only Traversal test result data relevant to test environment, can be improved the efficiency of test environmental monitoring, and test wrapper can be improved The accuracy of the monitoring in border.
Fig. 2 shows the structural schematic diagrams of the monitoring device of test environment according to an embodiment of the invention.Such as Fig. 2 institute Show, the monitoring device 200 of the test environment includes:
Receiving unit 210, suitable for receiving the test request of specified services.
The test request for receiving specified services can realize that user is needed by interface selection by way of providing interface The specified services tested, and send the test request of the specified services.
Test cell 220 is suitable for carrying out the test of specified services according to test request, obtaining the test result number of test According to.
Separative unit 230, suitable for isolating test result relevant to test environment from the test result data of acquisition Data.
In one embodiment of the invention, for more accurate mask data, it is arranged by pre-set mode The type or feature of possibility test result data relevant to test environment in test result data, it is then pre- further according to this The type or feature being first arranged isolate test result data relevant to test environment from the test result data of acquisition.
Judging unit 240, suitable for according to the test result data judgement test environment relevant to test environment isolated It is whether abnormal.
During to test environmental monitoring, if it is determined that exception occurs in test environment, warning note can be carried out, with Just user repairs test environment as early as possible.As it can be seen that through this embodiment, can also be realized during the test to test environment Monitoring, judge test environment whether there is exception, prevent because test environmental abnormality caused by test crash.
In one embodiment of the invention, test cell 220 shown in Fig. 2 is suitable for determining and realizing according to test request Call relation between each functional module interface of specified services;It is closed according to the calling between determining each functional module interface System, generates the test order of specified services;The test that specified services are carried out according to test order, obtains each functional module interface Test result data.
The technical program is the monitoring of the test environment based on multifunction module, it is contemplated that in the prior art, to more function It when energy module is tested, can only be the test of one functional module of a functional module, and can not accomplish specified for one The unified test of multiple functional modules of business so that testing efficiency is low, and cannot complete the unified of a specified services and survey Examination.
In the present embodiment, the call relation between each functional module interface of specified services is obtained first, according to the tune With relationship, the test order of corresponding specified services is generated, includes completing a functional module interface in the test order Test after, continuing to call has the pattern rules of the test of next functional module interface of call relation with it, thus may be used To realize the unified test an of specified services, testing efficiency is improved.For example, including functional module 1, functional module in test 2, functional module 3, functional module 4, corresponding interface 1, interface 2, interface 3 and interface 4.For specified services 1, determine real The functional module of existing specified services 1 is functional module 1, functional module 3, functional module 4, and call relation is functional module 1-> function Energy module 3-> functional module 4, i.e. interface call relation sequence is: interface 1-> interface 3-> interface 4 is closed according to the calling System generates the test order of specified services 1, to realize after the interface 1 of functional module 1 executes, calling functional modules 3 Interface 3;After the interface 3 of functional module 3 executes, the interface 4 of calling functional modules 4.
In the present embodiment, the test result data of acquisition is the test result data of each functional module interface, thus Can determine each functional module whether normal service, if server exception, test result data just will appear exception, if The test result data be to test environment it is relevant, then illustrate test result data exception be test environmental abnormality cause , that is, test environmental abnormality.
Further, on the basis of the above embodiments, test cell 220, suitable for obtaining the interface document of specified services; According to the notes content in interface document, determine each functional module interface for realizing specified services and each functional module interface it Between call relation.
In embodiment, developer can generally complete the interface document of the specified services when developing specified services It writes, and notes content is added in corresponding interface document, to illustrate corresponding interface call relation, so in order to obtain Call relation between each functional module interface of specified services, can pass through the notes content of the interface document of specified services It obtains.
In one embodiment of the invention, judging unit 240 shown in Fig. 2 is adapted to determine that relevant to test environment The characteristic value of test result data;According to the characteristic value of determining test result data, judge that test result data whether there is It is abnormal;If there is exception, then test environment exception information is determined according to the characteristic value that there is abnormal test result data;Root It alarms according to determining test environment exception information.
In the present embodiment, determine whether data are abnormal by the characteristic value of test result data.If test result data Normally, corresponding characteristic value is that correctly, if abnormal, corresponding characteristic value is also mistake.So obtain first To the characteristic value of the relevant each test result data of test environment, judge each characteristic value whether with it is correctly consistent, if one It is straight then illustrate that the test result data is normal, test result data exception is illustrated if inconsistent, then according to the exception Test result data determine test environment exception information, and alarm, according to the warning message, user can determine test There is exception in environment, and can also get corresponding test environment exception information, to carry out the reparation of test environment.
Specifically, on the basis of the above embodiments, judging unit 240 are suitable for default test environmental abnormality to test wrapper It include each characteristic value for testing environment exception information and corresponding test result data in the table of comparisons of border according to table;It is abnormal according to existing Test result data characteristic value, inquiry test the environmental abnormality table of comparisons in whether there is occurrence, if it is present determine It tests environment and exception occurs, and obtain corresponding test environment exception information.
If test result data relevant to test environment is abnormal, it may be possible to which caused by testing environmental abnormality, also having can Can not be test environmental abnormality caused by, therefore, in order to guarantee test environmental abnormality judgement accuracy, in the present embodiment In, the test environment exception information being likely to occur and corresponding test result number are marked by way of presetting the table of comparisons According to characteristic value, the characteristic value of test environment exception information and test result data in the table of comparisons corresponds.In this way, if The characteristic value of determining test result data has occurrence in the table of comparisons, illustrates that this feature value meets test environment and exception occurs The case where, and obtain corresponding test environment exception information.If illustrating to cause the test result data without occurrence Caused by exception is not test environmental abnormality, the factor for testing environmental abnormality can be excluded.
In a specific example, after getting test result data, obtain first in the test result data with The relevant test result data of environment is tested, then whether judgement should abnormal to from the relevant test result data of test environment, If it is abnormal, then would judge whether the exception is caused by test environmental abnormality.
Compare result data when traversing all tests, judges it whether for Yi Chang scheme, above-described embodiment is only Traversal test result data relevant to test environment, can be improved the efficiency of test environmental monitoring, and test wrapper can be improved The accuracy of the monitoring in border.
In conclusion according to the technique and scheme of the present invention, receiving the test request of specified services;According to test request, into The test of row specified services obtains the test result data of test;It is isolated from the test result data of acquisition and test wrapper The relevant test result data in border;Judge whether test environment according to the test result data relevant to test environment isolated It is abnormal.As it can be seen that can also being realized during the test to the monitoring of test environment by the technical program, judge test wrapper Whether border there is exception, test crash caused by preventing because of test environmental abnormality.
It should be understood that
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein. Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize monitoring device, the electricity of test environment according to an embodiment of the present invention The some or all functions of some or all components in sub- equipment and computer readable storage medium.The present invention can be with Some or all device or device programs for executing method as described herein are embodied as (for example, computer Program and computer program product).It is such to realize that program of the invention can store on a computer-readable medium, Huo Zheke With in the form of one or more signals.Such signal can be downloaded from an internet website to obtain, or in carrier It provides, or is provided in any other form on signal.
For example, Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.The electronic equipment 300 conventionally comprise processor 310 and are arranged to the memory 320 of storage computer executable instructions (program code).It deposits Reservoir 320 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM etc Electronic memory.Memory 320 has storage for executing any method and step in shown in FIG. 1 and each embodiment The memory space 330 of program code 340.For example, the memory space 330 for program code may include being respectively used to realization Each program code 340 of various steps in the method in face.These program codes can be from one or more computer journey It reads or is written in sequence product in this one or more computer program product.These computer program products include all Such as hard disk, the program code carrier of compact-disc (CD), storage card or floppy disk etc.Such computer program product is usually Such as computer readable storage medium 400 described in Fig. 4.The computer readable storage medium 400 can have the electronics with Fig. 3 Memory paragraph, the memory space etc. of 320 similar arrangement of memory in equipment.Program code can be pressed for example in a suitable form Contracting.In general, storage unit is stored with the program code 410 for executing steps of a method in accordance with the invention, it can by such as The program code that 310 etc processor is read causes the electronic equipment to be held when these program codes are run by electronic equipment Each step in row method described above.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
Embodiment of the invention discloses A1, a kind of monitoring method for testing environment, wherein this method comprises:
Receive the test request of specified services;
According to the test request, the test of the specified services is carried out, obtains the test result data of the test;
Test result data relevant to test environment is isolated from the test result data of acquisition;
Judge whether test environment is abnormal according to the test result data relevant to test environment isolated.
A2, method as described in a1, wherein it is described according to the test request, the test of the specified services is carried out, is obtained The test result data for taking the test includes:
According to the test request, the call relation between each functional module interface for realizing the specified services is determined;
According to the call relation between determining each functional module interface, the test order of the specified services is generated;
The test that the specified services are carried out according to the test order obtains the test result number of each functional module interface According to.
A3, as described in A2 method, wherein between the determining each functional module interface for realizing the specified services Call relation includes:
Obtain the interface document of the specified services;
According to the notes content in the interface document, determine each functional module interface for realizing the specified services and Call relation between each functional module interface.
A4, method as described in a1, wherein the test result data relevant to test environment that the basis is isolated is sentenced Disconnected test environment whether include: extremely
Determine the characteristic value of the test result data relevant to test environment;
According to the characteristic value of determining test result data, judge test result data with the presence or absence of abnormal;
If there is exception, then test environmental abnormality letter is determined according to the characteristic value that there is abnormal test result data Breath;
It is alarmed according to determining test environment exception information.
A5, the method as described in A4, wherein described that test is determined according to the characteristic value that there is abnormal test result data Environmental abnormality information includes:
Default test environmental abnormality includes each test environment exception information and corresponding test in the environment table of comparisons to testing The characteristic value of result data shines table;
According to the characteristic value that there is abnormal test result data, inquires in the test environmental abnormality table of comparisons and whether deposit In occurrence, if it is present it is abnormal to determine that test environment occurs, and corresponding test environment exception information is obtained.
The embodiment of the present invention also discloses B6, a kind of monitoring device for testing environment, wherein the device includes:
Receiving unit, suitable for receiving the test request of specified services;
Test cell is suitable for carrying out the test of the specified services according to the test request, obtaining the survey of the test Test result data;
Separative unit, suitable for isolating test result number relevant to test environment from the test result data of acquisition According to;
Judging unit, suitable for judging whether test environment according to the test result data relevant to test environment isolated It is abnormal.
B7, the device as described in B6, wherein
The test cell is suitable for determining according to the test request and realizing that each functional module of the specified services connects Call relation between mouthful;According to the call relation between determining each functional module interface, the survey of the specified services is generated Examination rule;The test that the specified services are carried out according to the test order obtains the test result number of each functional module interface According to.
B8, device as described in b7, wherein
The test cell, suitable for obtaining the interface document of the specified services;According to the annotation in the interface document Content determines the call relation between each functional module interface and each functional module interface of realizing the specified services.
B9, the device as described in B6, wherein
The judging unit is adapted to determine that the characteristic value of the test result data relevant to test environment;According to true The characteristic value of fixed test result data judges test result data with the presence or absence of abnormal;If there is exception, then according to presence The characteristic value of abnormal test result data determines test environment exception information;It is carried out according to determining test environment exception information Alarm.
B10, the device as described in B9, wherein
The judging unit, being suitable for default test environmental abnormality includes each test environmental abnormality in the environment table of comparisons to testing The characteristic value of information and corresponding test result data shines table;According to the characteristic value that there is abnormal test result data, inquiry It whether there is occurrence in the test environmental abnormality table of comparisons, if it is present it is abnormal to determine that test environment occurs, and obtain Corresponding test environment exception information.
The embodiment of the present invention also discloses C11, a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed It manages device and executes the method according to any one of A1~A5.
The embodiment of the present invention also discloses D12, a kind of computer readable storage medium, wherein described computer-readable Storage medium stores one or more programs, and one or more of programs when being executed by a processor, are realized in A1~A5 and appointed Method described in one.

Claims (10)

1. a kind of monitoring method for testing environment, wherein this method comprises:
Receive the test request of specified services;
According to the test request, the test of the specified services is carried out, obtains the test result data of the test;
Test result data relevant to test environment is isolated from the test result data of acquisition;
Judge whether test environment is abnormal according to the test result data relevant to test environment isolated.
2. the method for claim 1, wherein described carry out the test of the specified services according to the test request, The test result data for obtaining the test includes:
According to the test request, the call relation between each functional module interface for realizing the specified services is determined;
According to the call relation between determining each functional module interface, the test order of the specified services is generated;
The test that the specified services are carried out according to the test order obtains the test result data of each functional module interface.
3. method according to claim 2, wherein between the determining each functional module interface for realizing the specified services Call relation include:
Obtain the interface document of the specified services;
According to the notes content in the interface document, each functional module interface and each function for realizing the specified services are determined Call relation between energy module interface.
4. the method for claim 1, wherein test result data relevant to test environment that the basis is isolated Judge test environment whether include: extremely
Determine the characteristic value of the test result data relevant to test environment;
According to the characteristic value of determining test result data, judge test result data with the presence or absence of abnormal;
If there is exception, then test environment exception information is determined according to the characteristic value that there is abnormal test result data;
It is alarmed according to determining test environment exception information.
5. method as claimed in claim 4, wherein described determined according to the characteristic value that there is abnormal test result data is surveyed Test ring border exception information includes:
Default test environmental abnormality includes each test environment exception information and corresponding test result in the environment table of comparisons to testing The characteristic value of data shines table;
According to the characteristic value that there is abnormal test result data, inquiring in the test environmental abnormality table of comparisons whether there is With item, if it is present it is abnormal to determine that test environment occurs, and corresponding test environment exception information is obtained.
6. a kind of monitoring device for testing environment, wherein the device includes:
Receiving unit, suitable for receiving the test request of specified services;
Test cell is suitable for carrying out the test of the specified services according to the test request, obtaining the test knot of the test Fruit data;
Separative unit, suitable for isolating test result data relevant to test environment from the test result data of acquisition;
Judging unit, suitable for judging whether test environment is different according to the test result data relevant to test environment isolated Often.
7. device as claimed in claim 6, wherein
The test cell, be suitable for being determined according to the test request realize the specified services each functional module interface it Between call relation;According to the call relation between determining each functional module interface, the test rule of the specified services are generated Then;The test that the specified services are carried out according to the test order obtains the test result data of each functional module interface.
8. device as claimed in claim 7, wherein
The test cell, suitable for obtaining the interface document of the specified services;According to the notes content in the interface document, Determine the call relation between each functional module interface and each functional module interface of realizing the specified services.
9. a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute method according to any one of claims 1 to 5.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage one or more program, One or more of programs when being executed by a processor, realize method according to any one of claims 1 to 5.
CN201810962891.7A 2018-08-22 2018-08-22 Method and device for monitoring test environment Active CN109144874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810962891.7A CN109144874B (en) 2018-08-22 2018-08-22 Method and device for monitoring test environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810962891.7A CN109144874B (en) 2018-08-22 2018-08-22 Method and device for monitoring test environment

Publications (2)

Publication Number Publication Date
CN109144874A true CN109144874A (en) 2019-01-04
CN109144874B CN109144874B (en) 2023-02-17

Family

ID=64791103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810962891.7A Active CN109144874B (en) 2018-08-22 2018-08-22 Method and device for monitoring test environment

Country Status (1)

Country Link
CN (1) CN109144874B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928784A (en) * 2019-11-21 2020-03-27 中国民航信息网络股份有限公司 Software testing environment monitoring method and device
CN111737138A (en) * 2020-06-28 2020-10-02 杭州迪普科技股份有限公司 Automatic recovery system and method for test environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681126A (en) * 2015-12-30 2016-06-15 合一网络技术(北京)有限公司 Automatic test method and system based on protocol interface
CN106940679A (en) * 2017-02-23 2017-07-11 中科创达软件股份有限公司 Data processing method and device
US9904587B1 (en) * 2015-12-18 2018-02-27 Amazon Technologies, Inc. Detecting anomalous behavior in an electronic environment using hardware-based information
CN108156048A (en) * 2016-12-06 2018-06-12 北京奇虎科技有限公司 It is a kind of to realize the method and apparatus that application crashes information is obtained in complex scene
CN108427632A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 Automatic test approach and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9904587B1 (en) * 2015-12-18 2018-02-27 Amazon Technologies, Inc. Detecting anomalous behavior in an electronic environment using hardware-based information
CN105681126A (en) * 2015-12-30 2016-06-15 合一网络技术(北京)有限公司 Automatic test method and system based on protocol interface
CN108156048A (en) * 2016-12-06 2018-06-12 北京奇虎科技有限公司 It is a kind of to realize the method and apparatus that application crashes information is obtained in complex scene
CN108427632A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 Automatic test approach and device
CN106940679A (en) * 2017-02-23 2017-07-11 中科创达软件股份有限公司 Data processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928784A (en) * 2019-11-21 2020-03-27 中国民航信息网络股份有限公司 Software testing environment monitoring method and device
CN110928784B (en) * 2019-11-21 2023-09-05 中国民航信息网络股份有限公司 Software testing environment monitoring method and device
CN111737138A (en) * 2020-06-28 2020-10-02 杭州迪普科技股份有限公司 Automatic recovery system and method for test environment
CN111737138B (en) * 2020-06-28 2023-05-26 杭州迪普科技股份有限公司 Automatic recovery system and method for test environment

Also Published As

Publication number Publication date
CN109144874B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
CN107391379B (en) Automatic interface testing method and device
NL1030059C2 (en) Model-supported diagnosis and repair by means of event protocol.
US10261781B2 (en) Correcting non-compliant source code in an integrated development environment
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
US8225135B2 (en) System and method for protecting users of data storage systems against known problems
CN105630463B (en) For detecting the method and device of JAR packet conflict
CN104517054B (en) Method, device, client and server for detecting malicious APK
CN105573911A (en) Application popup window processing method and apparatus
US9619354B2 (en) Mobile device and chassis with contactless tags to diagnose hardware and software faults
CN108200643A (en) A kind of method, apparatus of positioning intelligent terminal
CN105589805A (en) Method and device for generating code coverage rate report
CN109144874A (en) A kind of monitoring method and device for testing environment
CN105630671B (en) The generation method and device of code coverage report
CN109815697A (en) Wrong report behavior processing method and processing device
CN103714002A (en) Project testing method and device based on configuration system
CN109271315A (en) Scripted code detection method, device, computer equipment and storage medium
CN108958890A (en) Container microscope testing method, apparatus and electronic equipment
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN112783749A (en) Static code scanning optimization method and device, electronic equipment and storage medium
US11501423B2 (en) Dot-matrix product information encoding for food traceability
CN109032629A (en) A kind of code update method and device
CN110889116A (en) Advertisement blocking method and device and electronic equipment
CN110633196A (en) Automatic use case execution method and device of application program
CN110110521A (en) It is a kind of based on iOS application safety detection method, apparatus and system
CN109558315A (en) The determination method, device and equipment of test scope

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