CN109271309A - Method and device, server, equipment and the storage medium of automatic test software - Google Patents
Method and device, server, equipment and the storage medium of automatic test software Download PDFInfo
- Publication number
- CN109271309A CN109271309A CN201710584465.XA CN201710584465A CN109271309A CN 109271309 A CN109271309 A CN 109271309A CN 201710584465 A CN201710584465 A CN 201710584465A CN 109271309 A CN109271309 A CN 109271309A
- Authority
- CN
- China
- Prior art keywords
- engineering
- test
- deployment
- software
- 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
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
Abstract
The embodiment of the present disclosure proposes method and device, computer equipment and the computer readable storage medium of a kind of automatic test software, applied to software testing technology field, method includes: the engineering name for obtaining each soft project for including in software project to be tested, to form engineering name set;The engineering name set is traversed, the engineering configuration information of its corresponding soft project is obtained according to each engineering name traversed;Judge to obtain judging result with the presence or absence of incidence relation between each soft project;Automatic test is executed according to the judging result and the engineering configuration information.The embodiment of the present disclosure can effectively realize the automation of test environment deployment and the automation of test case operation, save human cost, promote testing efficiency and accuracy, shorten the software test period.
Description
Technical field
The embodiment of the present disclosure is related to software testing technology field, in particular to automatic test software method, from
Device, server, computer equipment and the computer readable storage medium of dynamicization test software.
Background technique
Currently, being primarily present following problems during existing Software project testing: (1) manually dispose tests environment
Time-consuming and due to human factor cause test environment deployment it is incorrect;(2) time-consuming for operation test case (case) manually
And since human factor causes test to be omitted.Cause the reasons for the above problems be primarily due to manually dispose test environment and
Time-consuming for operation test case manually, and each engineering has the environment deployment script and automation of oneself in software project
Test case, and software project to be tested is numerous inside department, a project may correspond to multiple engineerings again, and multiple works
The deployment of journey and automatic test are required to human intervention, it is clear that will lead to and take time and effort;Meanwhile test environment deployment whether at
Accurately whether there is still a need for artificial judgements for the result of function and automatic test.
Therefore, how to realize test environment deployment automation and test case operation automation, save manpower at
This, shortens the software test period, becomes technical problem urgently to be resolved.
Summary of the invention
The embodiment of the present disclosure is based on the above problem, proposes a kind of new technical solution, can effectively realize survey
The automation of test ring border deployment and the automation of test case operation, save human cost, promote testing efficiency and accuracy,
Shorten the software test period.
In view of this, according to the first aspect of the embodiments of the present disclosure, proposing a kind of method of automatic test software, wrap
It includes: obtaining the engineering name for each soft project for including in software project to be tested, to form engineering name set;Described in traversal
Engineering name set obtains the engineering configuration information of its corresponding soft project according to each engineering name traversed;Judgement
It whether there is incidence relation between each soft project, obtain judging result;Matched according to the judging result and the engineering
Confidence breath executes automatic test.
In the technical scheme, by forming the engineering name for the whole soft projects for including in all projects to be tested
One set, can be scheduled to all soft projects by unified interface, convenient for the system of automatic test software
One management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name traversed
The engineering configuration information of corresponding soft project, and whether there is according between the corresponding each soft project of the engineering name set
Incidence relation executes the automatic test of software further combined with the corresponding engineering configuration information that gets, save manpower at
This, promotes testing efficiency and accuracy, shortens the software test period.
Further, the engineering configuration information of each soft project includes incidence relation configuration information, specifically can be according to this
Incidence relation configuration information judges that, with the presence or absence of incidence relation between each soft project, which is used to indicate
It is serially to run between different soft projects that whether different soft projects, which belongs to a software project and/or be used to indicate,
Relationship or parallel operation relationship.
In the above-mentioned technical solutions, it is preferable that the engineering configuration information further includes environment deployment information and use-case test
Information, and the step of automatic test is executed according to the judging result and the engineering configuration information, comprising: sentence when described
Disconnected result between each soft project there are when incidence relation, according to the first soft project title traversed corresponding the
One environment disposes information automation deployment the first test environment, and starts corresponding first soft project of operation, wherein described the
Any title in the entitled engineering name set of one soft project;Obtain the first deployment knot of the first test environment
Fruit;When the first deployment result is deployment success, tested according to corresponding first use-case of the first soft project title
Information runs the first test case, and generates the first use-case operation result, to be according to the first use-case operation result determination
No end automatic test;When the first deployment result is deployment failure, exports the software project to be tested and generated
All use-case operation results, and terminate automatic test.
In the technical scheme, the engineering configuration information for carrying out automatic test to each soft project includes at least
Environment deployment information and use-case test information, wherein environment deployment information for realizing test environment automatically dispose, including
Code script catalogue and corresponding newest code script etc., use-case test information for realizing the automatic test of use-case, packet
Include test case operation catalogue and corresponding newest test case etc..
Further, when determining between soft project there are when incidence relation, to each of the engineering set traversed
One engineering name is first depending on its environment deployment information automation deployment test environment, and then starting runs the soft project
Service, and the deployment result of test environment is monitored automatically, human intervention is avoided, testing efficiency and accuracy are promoted, into
Subsequent automation software testing process can be determined according to the deployment result of test environment to one step, specifically, if monitoring
Test environment deployment success, then can whether normal come the service for testing the soft project with automatic operating test case, simultaneously
It is surplus to other can to determine that the traversal for terminating the engineering name set terminates by the monitoring of the operation result to test case
The automatic test of remaining soft project, while human intervention is avoided, promote testing efficiency and accuracy;And if monitoring test wrapper
Border deployment failure, then can export the corresponding survey of one or more engineering names in the engineering name set traversed before this
The use-case operation result of example on probation, and terminate the automatic test for each soft project that is mutually related, to save money
Source.
In any of the above-described technical solution, it is preferable that described to determine whether to terminate according to the first use-case operation result
The step of automatic test, comprising: when the first use-case operation result is to operate normally, continue to traverse the engineering name
Other Engineering title in set, the corresponding output after successfully having traversed all engineering names in the engineering name set
All use-case operation results;When the first use-case operation result is misoperation, the software project to be tested has been exported
All use-case operation results generated, and terminate automatic test.
In the technical scheme, when interrelated between the corresponding each soft project of engineering name set, if any soft
The use-case operation result of the test case of part engineering is to operate normally, then can continue to traverse other in the engineering name set
Engineering name, until all engineering names in the engineering name set are completed by successfully traversal, i.e. test environment automates
Deployment success, starting run the equal normal operation of use-case operation result of the test case of corresponding software engineering, can be by generation
All use-case operation results are unified to be exported, convenient for automation and relevance management;And if the test case of any software engineering
Use-case operation result is misoperation, then can export one or more engineerings in the engineering name set traversed before this
The use-case operation result of the corresponding test case of title, and the automation terminated for each soft project that is mutually related is surveyed
Examination, to save resource.
In any of the above-described technical solution, it is preferable that executed certainly according to the judging result and the engineering configuration information
The step of dynamicization is tested, further includes: when incidence relation is not present between each soft project in the judging result, according to
The corresponding second environment deployment information automatically dispose second of the second soft project title traversed tests environment, and starts fortune
Corresponding second soft project of row, wherein any title in the entitled engineering name set of the second soft project;
Obtain the second deployment result of the second test environment;When the second deployment result is deployment success, according to described the
The corresponding second use-case test information of two soft project titles runs the second test case, generates and exports the second use-case operation knot
Fruit, and continue to traverse the Other Engineering title in the engineering name set, until having traversed in the engineering name set
All engineering names;When the second deployment result is deployment failure, second deployment is exported as a result, and continuing to traverse
Other Engineering title in the engineering name set, until having traversed all engineering names in the engineering name set.
In the technical scheme, when determining that incidence relation is not present between soft project, to the engineering set traversed
Each of an engineering name be first depending on its environment deployment information automation deployment test environment, then this is soft for starting operation
The service of part engineering, and the deployment result of test environment is monitored automatically, human intervention is avoided, testing efficiency and standard are promoted
True property further can determine subsequent automation software testing process according to the deployment result of test environment, specifically, if
Test environment deployment success is monitored, then whether just can test the service of the soft project with automatic operating test case
Often, and one by one the use-case operation result of each test case of generation is exported, can then continue to traverse in the engineering name set
Other Engineering title, until all engineering names in the engineering name set are traversed completion;And if monitoring test
Environment deployment failure can then export corresponding test environment deployment as a result, continuing to traverse in the engineering name set first
Other Engineering title, until all engineering names in the engineering name set are traversed completion, realization is to test environment
The monitoring of automatically dispose, the automatic operating of test case and accordingly result.
In any of the above-described technical solution, it is preferable that the method for the automatic test software further include: generate automation
Journal file during test software, to record the process in automatic test software process, for it is subsequent positioning check, such as
The reason of navigating to functional based method name or line number, carrying out test environment deployment failure and/or use-case operation exception is checked.
In any of the above-described technical solution, it is preferable that described to obtain each soft project for including in software project to be tested
Engineering name, include: that each soft project is obtained by HTTP service interface to be formed the step of engineering name set
Engineering name, to form the engineering name set.
In the technical scheme, HTTP (Hyper Text Transfer Protocol, Hyper text transfer association can be passed through
View) service interface as unified interface transfers the engineering name of each soft project to form set;Can also further it lead to
The each process for crossing the HTTP service interface dispatching automation test software avoids excessive human intervention, improves testing efficiency
And accuracy.
According to the second aspect of an embodiment of the present disclosure, a kind of device of automatic test software is proposed, comprising: obtain mould
Block, for obtaining the engineering name for each soft project for including in software project to be tested, to form engineering name set;Traversal
Module obtains corresponding soft project according to each engineering name traversed and configures for traversing the engineering name set
Information;Judgment module obtains judging result with the presence or absence of incidence relation between each soft project for judging;Test mould
Block, for executing automatic test according to the judging result and the engineering configuration information.
In the technical scheme, by forming the engineering name for the whole soft projects for including in all projects to be tested
One set, can be scheduled to all soft projects by unified interface, convenient for the system of automatic test software
One management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name traversed
The engineering configuration information of corresponding soft project, and whether there is according between the corresponding each soft project of the engineering name set
Incidence relation executes the automatic test of software further combined with the corresponding engineering configuration information that gets, save manpower at
This, promotes testing efficiency and accuracy, shortens the software test period.
Further, the engineering configuration information of each soft project includes incidence relation configuration information, specifically can be according to this
Incidence relation configuration information judges that, with the presence or absence of incidence relation between each soft project, which is used to indicate
It is serially to run between different soft projects that whether different soft projects, which belongs to a software project and/or be used to indicate,
Relationship or parallel operation relationship.
In the above-mentioned technical solutions, it is preferable that the engineering configuration information further includes environment deployment information and use-case test
Information and the test module include: the first deployment submodule, for when the judging result be each soft project it
Between there are when incidence relation, according to the corresponding first environment deployment information automatically dispose of the first soft project title traversed
First test environment, and start corresponding first soft project of operation, wherein the entitled engineering of the first soft project
Any title in name set;First acquisition submodule, for obtaining the first deployment result of the first test environment;Fortune
Row submodule, for when the first deployment result is deployment success, according to the first soft project title corresponding the
One use-case tests information and runs the first test case, and generates the first use-case operation result, to be run according to first use-case
As a result determine whether to terminate automatic test;Output sub-module is used to export when the first deployment result is deployment failure
The generated all use-case operation results of software project to be tested, and terminate automatic test.
In the technical scheme, the engineering configuration information for carrying out automatic test to each soft project includes at least
Environment deployment information and use-case test information, wherein environment deployment information for realizing test environment automatically dispose, including
Code script catalogue and corresponding newest code script etc., use-case test information for realizing the automatic test of use-case, packet
Include test case operation catalogue and corresponding newest test case etc..
Further, when determining between soft project there are when incidence relation, to each of the engineering set traversed
One engineering name is first depending on its environment deployment information automation deployment test environment, and then starting runs the soft project
Service, and the deployment result of test environment is monitored automatically, human intervention is avoided, testing efficiency and accuracy are promoted, into
Subsequent automation software testing process can be determined according to the deployment result of test environment to one step, specifically, if monitoring
Test environment deployment success, then can whether normal come the service for testing the soft project with automatic operating test case, simultaneously
It is surplus to other can to determine that the traversal for terminating the engineering name set terminates by the monitoring of the operation result to test case
The automatic test of remaining soft project, while human intervention is avoided, promote testing efficiency and accuracy;And if monitoring test wrapper
Border deployment failure, then can export the corresponding survey of one or more engineering names in the engineering name set traversed before this
The use-case operation result of example on probation, and terminate the automatic test for each soft project that is mutually related, to save money
Source.
In any of the above-described technical solution, it is preferable that the test module further includes scheduling submodule, the scheduling submodule
Block is used for: when the first use-case operation result is to operate normally, being dispatched the spider module and is continued to traverse the engineering name
Claim the Other Engineering title in set, dispatches institute after successfully having traversed all engineering names in the engineering name set
State the corresponding all use-case operation results of output of output sub-module;When the first use-case operation result is misoperation, scheduling
The output sub-module exports the generated all use-case operation results of the software project to be tested, and terminates automation and survey
Examination.
In the technical scheme, when interrelated between the corresponding each soft project of engineering name set, if any soft
The use-case operation result of the test case of part engineering is to operate normally, then can continue to traverse other in the engineering name set
Engineering name, until all engineering names in the engineering name set are completed by successfully traversal, i.e. test environment automates
Deployment success, starting run the equal normal operation of use-case operation result of the test case of corresponding software engineering, can be by generation
All use-case operation results are unified to be exported, convenient for automation and relevance management;And if the test case of any software engineering
Use-case operation result is misoperation, then can export one or more engineerings in the engineering name set traversed before this
The use-case operation result of the corresponding test case of title, and the automation terminated for each soft project that is mutually related is surveyed
Examination, to save resource.
In any of the above-described technical solution, it is preferable that the test module further include: the second deployment submodule, for working as
When incidence relation is not present in the judging result between each soft project, according to the second soft project title traversed
Corresponding second environment deployment information automatically dispose second tests environment, and starts corresponding second soft project of operation,
In, any title in the entitled engineering name set of the second soft project;Second acquisition submodule, for obtaining
Second deployment result of the second test environment;First processing submodule, for being to be deployed to when the second deployment result
When function, the second test case is run according to the corresponding second use-case test information of the second soft project title, is generated and defeated
Second use-case operation result out, and continue to traverse the Other Engineering title in the engineering name set, until having traversed
State all engineering names in engineering name set;Second processing submodule, for being that deployment is lost when the second deployment result
When losing, export it is described second deployment as a result, and continue to traverse the Other Engineering title in the engineering name set, until traversal
All engineering names in the complete engineering name set.
In the technical scheme, when determining that incidence relation is not present between soft project, to the engineering set traversed
Each of an engineering name be first depending on its environment deployment information automation deployment test environment, then this is soft for starting operation
The service of part engineering, and the deployment result of test environment is monitored automatically, human intervention is avoided, testing efficiency and standard are promoted
True property further can determine subsequent automation software testing process according to the deployment result of test environment, specifically, if
Test environment deployment success is monitored, then whether just can test the service of the soft project with automatic operating test case
Often, and one by one the use-case operation result of each test case of generation is exported, can then continue to traverse in the engineering name set
Other Engineering title, until all engineering names in the engineering name set are traversed completion;And if monitoring test
Environment deployment failure can then export corresponding test environment deployment as a result, continuing to traverse in the engineering name set first
Other Engineering title, until all engineering names in the engineering name set are traversed completion, realization is to test environment
The monitoring of automatically dispose, the automatic operating of test case and accordingly result.
In any of the above-described technical solution, it is preferable that the device of the automatic test software further include: log generates mould
Block, to record the process in automatic test software process, is supplied for generating the journal file in automatic test software process
Subsequent positioning is checked, for example navigates to functional based method name or line number, carries out test environment deployment failure and/or use-case is operating abnormally
The reason of check.
In any of the above-described technical solution, it is preferable that the acquisition module is specifically used for: being obtained by HTTP service interface
The engineering name of each soft project, to form the engineering name set.
In the technical scheme, the engineering of each soft project can be transferred as unified interface by HTTP service interface
Title is to form set;Further can also by each process of the HTTP service interface dispatching automation test software,
Excessive human intervention is avoided, testing efficiency and accuracy are improved.
According to the third aspect of an embodiment of the present disclosure, a kind of server is proposed, the technical side including above-mentioned second aspect
The device of automatic test software described in any one of case, therefore, the server have the device of the automatic test software
All beneficial technical effects, details are not described herein.
According to a fourth aspect of embodiments of the present disclosure, it proposes a kind of computer equipment, including memory, processor and deposits
The computer program that can be run on the memory and on the processor is stored up, the processor executes the computer journey
The engineering name for obtaining each soft project for including in software project to be tested is performed the steps of when sequence, to form engineering name
Claim set;The engineering name set is traversed, the work of its corresponding soft project is obtained according to each engineering name traversed
Journey configuration information;Judge to obtain judging result with the presence or absence of incidence relation between each soft project;It is tied according to the judgement
Fruit and the engineering configuration information execute automatic test.
In the technical scheme, by forming the engineering name for the whole soft projects for including in all projects to be tested
One set, can be scheduled to all soft projects by unified interface, convenient for the system of automatic test software
One management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name traversed
The engineering configuration information of corresponding soft project, and whether there is according between the corresponding each soft project of the engineering name set
Incidence relation executes the automatic test of software further combined with the corresponding engineering configuration information that gets, save manpower at
This, promotes testing efficiency and accuracy, shortens the software test period.
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer readable storage medium is proposed, meter is stored thereon with
Calculation machine program, the computer program, which performs the steps of to obtain in software project to be tested when being executed by processor, includes
The engineering name of each soft project, to form engineering name set;The engineering name set is traversed, according to each of traversing
Engineering name obtains the engineering configuration information of its corresponding soft project;Judge between each soft project with the presence or absence of association
Relationship obtains judging result;Automatic test is executed according to the judging result and the engineering configuration information.
In the technical scheme, by forming the engineering name for the whole soft projects for including in all projects to be tested
One set, can be scheduled to all soft projects by unified interface, convenient for the system of automatic test software
One management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name traversed
The engineering configuration information of corresponding soft project, and whether there is according between the corresponding each soft project of the engineering name set
Incidence relation executes the automatic test of software further combined with the corresponding engineering configuration information that gets, save manpower at
This, promotes testing efficiency and accuracy, shortens the software test period.
By in the above-mentioned technical proposal of the embodiment of the present disclosure, can effectively realize test environment deployment automation with
And the automation of test case operation, human cost is saved, testing efficiency and accuracy are promoted, shortens the software test period.
Detailed description of the invention
Fig. 1 shows the flow diagram of the method for the automatic test software of the first embodiment of the present disclosure;
The first of automatic test is executed according to judging result and engineering configuration information Fig. 2 shows the embodiment of the present disclosure
Method flow schematic diagram;
What Fig. 3 showed the embodiment of the present disclosure executes the first of automatic test according to judging result and engineering configuration information
Method flow schematic diagram;
Fig. 4 shows the schematic block diagram of the device of the automatic test software of the embodiment of the present disclosure;
Fig. 5 shows the schematic block diagram of test module shown in Fig. 4;
Fig. 6 shows the test environment integrated of the embodiment of the present disclosure and the scheduling architecture and system schematic of access;
Fig. 7 shows the method flow schematic diagram of the automatic test software of the second embodiment of the present disclosure;
Fig. 8 shows the schematic block diagram of the computer equipment of the embodiment of the present disclosure.
Specific embodiment
In order to be more clearly understood that the above objects, features, and advantages of the embodiment of the present disclosure, with reference to the accompanying drawing and
The embodiment of the present disclosure is further described in detail in specific embodiment.It should be noted that in the absence of conflict,
Feature in embodiments herein and embodiment can be combined with each other.
Many details are explained in the following description in order to fully understand the embodiment of the present disclosure, still, this public affairs
Opening embodiment can also be implemented using other than the one described here other modes, therefore, the protection of the embodiment of the present disclosure
Range is not limited by the specific embodiments disclosed below.
It is described in detail below with reference to method of the Fig. 1 to Fig. 3 to the automatic test software of the embodiment of the present disclosure.
As shown in Figure 1, specifically including following below scheme according to the method for the automatic test software of the first embodiment of the present disclosure
Step:
Step 102, the engineering name for each soft project for including in software project to be tested is obtained, to form engineering name
Set.
Specifically, in this step, the engineering name of each soft project is obtained, by HTTP service interface to be formed
The engineering name set.
In this embodiment it is possible to which the engineering name of each soft project is transferred as unified interface by HTTP service interface
Claim to form set;It can also further be kept away by each process of the HTTP service interface dispatching automation test software
Exempt from excessive human intervention, improves testing efficiency and accuracy.
Step 104, the engineering name set is traversed, its corresponding software is obtained according to each engineering name traversed
The engineering configuration information of engineering.
Step 106, judge to obtain judging result with the presence or absence of incidence relation between each soft project.
Step 108, automatic test is executed according to the judging result and the engineering configuration information.
In this embodiment, one is formed by the engineering name for the whole soft projects that will include in all projects to be tested
A set, can be scheduled to all soft projects by unified interface, convenient for the unification of automatic test software
Management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name pair traversed
The engineering configuration information for the soft project answered, and closed according to whether there is between the corresponding each soft project of the engineering name set
Connection relationship executes the automatic test of software further combined with the corresponding engineering configuration information got, saves human cost,
Testing efficiency and accuracy are promoted, the software test period is shortened.
Further, the engineering configuration information of each soft project includes incidence relation configuration information, specifically can be according to this
Incidence relation configuration information judges that, with the presence or absence of incidence relation between each soft project, which is used to indicate
It is serially to run between different soft projects that whether different soft projects, which belongs to a software project and/or be used to indicate,
Relationship or parallel operation relationship.
Further, in the above-described embodiments, the engineering configuration information further includes environment deployment information and use-case test
Information includes at least environment deployment information and use for carrying out the engineering configuration information of automatic test to each soft project
Example test information, wherein environment deployment information for realizing test environment automatically dispose, including code script catalogue and
Corresponding newest code script etc., use-case test information and run mesh for realizing the automatic test of use-case, including test case
Record and corresponding newest test case etc..
Further, the step 108 in above-described embodiment can be executed specifically as following two embodiment.
Embodiment one, there are incidence relations between each soft project for the judging result.Specifically, such as Fig. 2 institute
Show, above-mentioned steps 108 can be executed specifically are as follows:
Step S20, according to the corresponding first environment deployment information automatically dispose of the first soft project title traversed
First test environment, and start corresponding first soft project of operation, wherein the entitled engineering of the first soft project
Any title in name set.
Step S22 obtains the first deployment result of the first test environment.
Step S24, it is corresponding according to the first soft project title when the first deployment result is deployment success
First use-case tests information and runs the first test case, and generates the first use-case operation result, to be transported according to first use-case
Row result determines whether to terminate automatic test.
It is generated to export the software project to be tested when the first deployment result is deployment failure by step S26
All use-case operation results, and terminate automatic test.
In this embodiment, when determining between soft project there are when incidence relation, in the engineering set traversed
Each engineering name is first depending on its environment deployment information automation deployment test environment, and then starting runs the software work
The service of journey, and being monitored automatically to the deployment result of test environment, avoids human intervention, promotes testing efficiency and accurately
Property, subsequent automation software testing process can be further determined according to the deployment result of test environment, specifically, if prison
Control test environment deployment success, then can whether normal come the service for testing the soft project with automatic operating test case,
It can determine that the traversal for terminating the engineering name set terminates to it by the monitoring of the operation result to test case simultaneously
The automatic test of his remaining soft project, while human intervention is avoided, promote testing efficiency and accuracy;And if monitoring survey
The deployment failure of test ring border, the then one or more engineering names that can be exported in the engineering name set traversed before this are corresponding
Test case use-case operation result, and terminate for each soft project that is mutually related automatic test, with section
Resource-saving.
Further, described in above-mentioned steps S24 determines whether to terminate automatic according to the first use-case operation result
Changing test can specifically execute are as follows:
When the first use-case operation result is to operate normally, continue to traverse other works in the engineering name set
Journey title, it is corresponding after successfully having traversed all engineering names in the engineering name set to export all use-case operation knots
Fruit;When the first use-case operation result is misoperation, the generated all use of software project to be tested is exported
Example operation result, and terminate automatic test.
In this embodiment, when interrelated between the corresponding each soft project of engineering name set, if any software
The use-case operation result of the test case of engineering is to operate normally, then can continue to traverse other works in the engineering name set
Journey title, until all engineering names in the engineering name set are by successfully traversal completion, i.e. test environment Automation
Affix one's name to successfully, starting operation corresponding software engineering test case the equal normal operation of use-case operation result, can be by the institute of generation
There is use-case operation result is unified to export, convenient for automation and relevance management;And if the use of the test case of any software engineering
Example operation result is misoperation, then can export one or more engineering names in the engineering name set traversed before this
Claim the use-case operation result of corresponding test case, and the automation terminated for each soft project that is mutually related is surveyed
Examination, to save resource.
Incidence relation is not present in embodiment two, the judging result between each soft project.Specifically, such as Fig. 3
Shown, above-mentioned steps 108 can be executed specifically are as follows:
Step S30, according to the corresponding second environment deployment information automatically dispose of the second soft project title traversed
Second test environment, and start corresponding second soft project of operation, wherein the entitled engineering of the second soft project
Any title in name set.
Step S32 obtains the second deployment result of the second test environment.
Step S34, it is corresponding according to the second soft project title when the second deployment result is deployment success
Second use-case tests information and runs the second test case, generates and exports the second use-case operation result, and continues described in traversal
Other Engineering title in engineering name set, until having traversed all engineering names in the engineering name set.
Step S36 exports second deployment as a result, and continuation time when the second deployment result fails for deployment
The Other Engineering title in the engineering name set is gone through, until having traversed all engineering names in the engineering name set
Claim.
In this embodiment, when determining that incidence relation is not present between soft project, in the engineering set traversed
Each of an engineering name be first depending on its environment deployment information automation deployment test environment, then starting run the software
The service of engineering, and being monitored automatically to the deployment result of test environment, avoids human intervention, promotes testing efficiency and accurately
Property, subsequent automation software testing process can be further determined according to the deployment result of test environment, specifically, if prison
Control test environment deployment success, then can whether normal come the service for testing the soft project with automatic operating test case,
And the use-case operation result of each test case of generation is exported one by one, it can then continue to traverse its in the engineering name set
His engineering name, until all engineering names in the engineering name set are traversed completion;And if monitoring test environment
Deployment failure can then export corresponding test environment deployment as a result, continuing to traverse other in the engineering name set first
Engineering name, until all engineering names in the engineering name set are traversed completion, realization is automatic to test environment
Change the monitoring of deployment, the automatic operating of test case and accordingly result.
Further, in any of the above-described embodiment, the method for the automatic test software further include: generate automation
Journal file during test software, to record the process in automatic test software process, for it is subsequent positioning check, such as
The reason of navigating to functional based method name or line number, carrying out test environment deployment failure and/or use-case operation exception is checked.
It is described in detail below with reference to device of the Fig. 4 and Fig. 5 to the automatic test software of the embodiment of the present disclosure.
As shown in figure 4, according to the device 40 of the automatic test software of the embodiment of the present disclosure, comprising: acquisition module 402,
Spider module 404, judgment module 406 and test module 408.
Wherein, the engineering name for obtaining module 402 and being used to obtain each soft project for including in software project to be tested
Claim, to form engineering name set;The spider module 404 is every according to what is traversed for traversing the engineering name set
A engineering name obtains corresponding soft project configuration information;The judgment module 406 for judge each soft project it
Between whether there is incidence relation, obtain judging result;The test module 408 is used for according to the judging result and the engineering
Configuration information executes automatic test.
In this embodiment, one is formed by the engineering name for the whole soft projects that will include in all projects to be tested
A set, can be scheduled to all soft projects by unified interface, convenient for the unification of automatic test software
Management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name pair traversed
The engineering configuration information for the soft project answered, and closed according to whether there is between the corresponding each soft project of the engineering name set
Connection relationship executes the automatic test of software further combined with the corresponding engineering configuration information got, saves human cost,
Testing efficiency and accuracy are promoted, the software test period is shortened.
Further, the engineering configuration information of each soft project includes incidence relation configuration information, specifically can be according to this
Incidence relation configuration information judges that, with the presence or absence of incidence relation between each soft project, which is used to indicate
It is serially to run between different soft projects that whether different soft projects, which belongs to a software project and/or be used to indicate,
Relationship or parallel operation relationship.
Further, in the above-described embodiments, the engineering configuration information further includes environment deployment information and use-case test
Information includes at least environment deployment information and use for carrying out the engineering configuration information of automatic test to each soft project
Example test information, wherein environment deployment information for realizing test environment automatically dispose, including code script catalogue and
Corresponding newest code script etc., use-case test information and run mesh for realizing the automatic test of use-case, including test case
Record and corresponding newest test case etc..
Further, in any of the above-described embodiment, as shown in figure 5, the test module 408 includes: the first deployment
Module 4080, the first acquisition submodule 4081, operation submodule 4082 and output sub-module 4083.
Wherein, the first deployment submodule 4080 is used to exist between each soft project when the judging result
When incidence relation, surveyed according to the corresponding first environment deployment information automatically dispose first of the first soft project title traversed
Test ring border, and start corresponding first soft project of operation, wherein the entitled engineering name collection of the first soft project
Any title in conjunction;First acquisition submodule 4081 is used to obtain the first deployment result of the first test environment;
The operation submodule 4082 is used for when the first deployment result is deployment success, according to the first soft project title
Corresponding first use-case test information runs the first test case, and generates the first use-case operation result, according to described first
Use-case operation result determines whether to terminate automatic test;The output sub-module 4083 is used for
When deployment failure, the generated all use-case operation results of software project to be tested are exported, and terminate automatic test.
In this embodiment, when determining between soft project there are when incidence relation, in the engineering set traversed
Each engineering name is first depending on its environment deployment information automation deployment test environment, and then starting runs the software work
The service of journey, and being monitored automatically to the deployment result of test environment, avoids human intervention, promotes testing efficiency and accurately
Property, subsequent automation software testing process can be further determined according to the deployment result of test environment, specifically, if prison
Control test environment deployment success, then can whether normal come the service for testing the soft project with automatic operating test case,
It can determine that the traversal for terminating the engineering name set terminates to it by the monitoring of the operation result to test case simultaneously
The automatic test of his remaining soft project, while human intervention is avoided, promote testing efficiency and accuracy;And if monitoring survey
The deployment failure of test ring border, the then one or more engineering names that can be exported in the engineering name set traversed before this are corresponding
Test case use-case operation result, and terminate for each soft project that is mutually related automatic test, with section
Resource-saving.
Further, in the above-described embodiments, as shown in figure 5, the test module 408 further includes scheduling submodule
4084, the scheduling submodule 4084 is used for:
When the first use-case operation result is to operate normally, dispatches the spider module 404 and continue to traverse the work
Other Engineering title in journey name set is adjusted after successfully having traversed all engineering names in the engineering name set
Spend the corresponding all use-case operation results of output of the output sub-module 4083;When the first use-case operation result is misoperation
When, it dispatches the output sub-module 4083 and exports the generated all use-case operation results of the software project to be tested, and
Terminate automatic test.
In this embodiment, when interrelated between the corresponding each soft project of engineering name set, if any software
The use-case operation result of the test case of engineering is to operate normally, then can continue to traverse other works in the engineering name set
Journey title, until all engineering names in the engineering name set are by successfully traversal completion, i.e. test environment Automation
Affix one's name to successfully, starting operation corresponding software engineering test case the equal normal operation of use-case operation result, can be by the institute of generation
There is use-case operation result is unified to export, convenient for automation and relevance management;And if the use of the test case of any software engineering
Example operation result is misoperation, then can export one or more engineering names in the engineering name set traversed before this
Claim the use-case operation result of corresponding test case, and the automation terminated for each soft project that is mutually related is surveyed
Examination, to save resource.
Further, in any of the above-described embodiment, as shown in figure 5, the test module 408 further include: the second deployment
Submodule 4085, the second acquisition submodule 4086, first processing submodule 4087 and second processing submodule 4088.
Wherein, the second deployment submodule 4085 is used to not deposit between each soft project when the judging result
In incidence relation, according to the corresponding second environment deployment information automatically dispose second of the second soft project title traversed
Environment is tested, and starts corresponding second soft project of operation, wherein the entitled engineering name of the second soft project
Any title in set;Second acquisition submodule 4086 is used to obtain the second deployment knot of the second test environment
Fruit;The first processing submodule 4087 is used for when the second deployment result is deployment success, according to second software
The corresponding second use-case test information of engineering name runs the second test case, generates and export the second use-case operation result, with
And continue to traverse the Other Engineering title in the engineering name set, it is all in the engineering name set until having traversed
Engineering name;The second processing submodule 4088 is used to export described the when the second deployment result is deployment failure
Two deployment as a result, and continue to traverse the Other Engineering title in the engineering name set, until having traversed the engineering name
All engineering names in set.
In this embodiment, when determining that incidence relation is not present between soft project, in the engineering set traversed
Each of an engineering name be first depending on its environment deployment information automation deployment test environment, then starting run the software
The service of engineering, and being monitored automatically to the deployment result of test environment, avoids human intervention, promotes testing efficiency and accurately
Property, subsequent automation software testing process can be further determined according to the deployment result of test environment, specifically, if prison
Control test environment deployment success, then can whether normal come the service for testing the soft project with automatic operating test case,
And the use-case operation result of each test case of generation is exported one by one, it can then continue to traverse its in the engineering name set
His engineering name, until all engineering names in the engineering name set are traversed completion;And if monitoring test environment
Deployment failure can then export corresponding test environment deployment as a result, continuing to traverse other in the engineering name set first
Engineering name, until all engineering names in the engineering name set are traversed completion, realization is automatic to test environment
Change the monitoring of deployment, the automatic operating of test case and accordingly result.
Further, in any of the above-described embodiment, the device 40 of the automatic test software further include: log generates
Module (not shown), for generating the journal file in automatic test software process, to record automatic test software
Process in the process checks for subsequent positioning, for example navigates to functional based method name or line number, carries out test environment deployment failure
And/or the reason of use-case operation exception, checks.
Further, in any of the above-described embodiment, the acquisition module 402 is specifically used for: by HTTP service interface
The engineering name of each soft project is obtained, to form the engineering name set.
In this embodiment it is possible to which the engineering name of each soft project is transferred as unified interface by HTTP service interface
Claim to form set;It can also further be kept away by each process of the HTTP service interface dispatching automation test software
Exempt from excessive human intervention, improves testing efficiency and accuracy.
As one embodiment of the embodiment of the present disclosure, propose a kind of server, including described in embodiment as above from
The device 40 of dynamicization test software, therefore, the server have all beneficial technologies of device 40 of the automatic test software
Effect, details are not described herein.
Fig. 6 shows the test environment integrated of the embodiment of the present disclosure and the scheduling architecture and system schematic of access.
As shown in fig. 6, the embodiment of the present disclosure is needed for the deployment of test environment and test case operation of multiple soft projects
The problem of wanting human intervention, the automation frame of the deployment of test environment and use-case operation of all soft projects can be dispatched by designing one
Structure, and carry out system realization;The scheduling architecture and system of the test environment integrated and access are for the deployment of test environment and use-case
Test run still needs to the automatic test monitoring function of the problem of artificially judging, integration testing environment deployment monitoring and use-case operation
Can, specific event dispatching module as shown in the figure, including environment deployment, environment measuring, automation case operation and case operation
The submodules such as detection;In addition, to additionally provide a unification external for the scheduling architecture and system of the test environment integrated and access
HTTP interface, for calling this system to carry out the automatic test of key test environment deployment and use-case operation and generating use-case
Report (i.e. use-case operation result).
Specifically, the scheduling architecture and system of above-mentioned test environment integrated and access at work, pass through event scheduling mould
Block and HTTP access layer interact the engineering name for obtaining all soft projects, form engineering name set, further traverse
The engineering name set, and closed according to the association between the corresponding each soft project of each engineering name in the engineering name set
System further executes the process of automatic test software, and specific method process is as shown in fig. 7, comprises following below scheme step:
Step 701, the corresponding engineering name of all soft projects to be tested is obtained, engineering name set is formed.
Step 702, judge whether complete to the traversal of engineering name set, if so, executing step 720, otherwise execute step
Rapid 703.
Step 703, the institute of its corresponding soft project is obtained from Command Line Parsing module according to the engineering name traversed
There is engineering configuration information.
Step 704, judge it is whether relevant between each soft project, if having execute step 705, it is no to then follow the steps 713.
Step 705, initialization automatic test environment deployment script catalogue pulls newest automatic test environment deployment
Script.
Step 706, starting script deployment test environment, pulls recent software engineering code and starts soft project service.
Step 707, judge whether process and the port of Current software engineering (i.e. test object) are normal, that is, judge test wrapper
Whether border automatically dispose succeeds, if so, step 708 is executed, it is no to then follow the steps 711.
Step 708, initialization automation case runs catalogue, pulls newest automatic test case.
Step 709, start automatic test case, generate case report.
Step 710, judge whether automatic test case operation is normal, continued to execute under step 702 traversal if so, returning
One soft project, it is no to then follow the steps 712.
Step 711, feedback test environment disposes failure information, then executes step 712.
Step 712, generated case report is exported.
Step 713, initialization automatic test environment deployment script catalogue pulls newest automatic test environment deployment
Script.
Step 714, starting script deployment test environment, pulls recent software engineering code and starts soft project service.
Step 715, judge whether process and the port of Current software engineering (i.e. test object) are normal, that is, judge test wrapper
Whether border automatically dispose succeeds, if so, step 717 is executed, it is no to then follow the steps 716.
Step 716, feedback test environment dispose failure information, then return continue to execute step 702 traverse it is next soft
Part engineering.
Step 717, initialization automation case runs catalogue, pulls newest automatic test case.
Step 718, start automatic test case, generate case report.
Step 719, the case report being currently generated is exported, then return continues to execute step 702 and traverses next software
Engineering.
Step 720, all case reports of generation are exported.
In the above-described embodiments, need to collect the engineering configuration for all soft projects that all software projects to be tested include
Information, the code of the code library disposed including soft project name journey, soft project automated environment, soft project automation case
Library, the process name of soft project and port numbers, are configured with being integrated into this system;A Command Line Parsing class is developed, can be obtained
The incidence relation configuration information of all soft projects is taken, and whether relevant between each soft project for determining, such as
Determine whether that belonging to a software project, determining between each soft project is Serial Relation either concurrency relation etc.;Exploitation
One log class, the log printing of functional based method name and line number can be navigated to by carrying out different stage, operating process be recorded, after being convenient for
Continuous inquiry, backtracking;Develop an event scheduling class, this event scheduling class function containing two major parts: one is environment deployment, including master
The dynamic code library disposed from automated environment, running environment deployment script automatic deployment environment, the detection for carrying out process and port;
One is the code library for pulling newest automation case, operation automation case, progress case result readjustment and the shape with mail
Formula sends report;A HTTP service is externally provided, HTTP service entrance is the engineering of one or more software under testing engineering
The set of title can enter into the scheduling that scheduling class carries out corresponding software engineering by HTTP service.
Fig. 8 shows the schematic block diagram of the computer equipment of the embodiment of the embodiment of the present disclosure.
As shown in figure 8, according to the computer equipment 80 of the embodiment of the embodiment of the present disclosure, including memory 80, processor
82 and it is stored in the computer program that can be run on the memory 80 and on the processor 82, wherein memory 80 and place
It can be connected by bus between reason device 82, the processor 82 performs the steps of when executing the computer program
The engineering name for each soft project for including in software project to be tested is obtained, to form engineering name set;
The engineering name set is traversed, the work of its corresponding soft project is obtained according to each engineering name traversed
Journey configuration information;
Judge to obtain judging result with the presence or absence of incidence relation between each soft project;
Automatic test is executed according to the judging result and the engineering configuration information.
In this embodiment, one is formed by the engineering name for the whole soft projects that will include in all projects to be tested
A set, can be scheduled to all soft projects by unified interface, convenient for the unification of automatic test software
Management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name pair traversed
The engineering configuration information for the soft project answered, and closed according to whether there is between the corresponding each soft project of the engineering name set
Connection relationship executes the automatic test of software further combined with the corresponding engineering configuration information got, saves human cost,
Testing efficiency and accuracy are promoted, the software test period is shortened.
Step in the method for the embodiment of the present disclosure can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the device and computer equipment of the automatic test software of the embodiment of the present disclosure can be according to practical need
It is combined, divided and deleted.
According to the embodiment of the present disclosure, a kind of computer readable storage medium is proposed, is stored thereon with computer program, institute
It states when computer program is executed by processor and performs the steps of
The engineering name for each soft project for including in software project to be tested is obtained, to form engineering name set;
The engineering name set is traversed, the work of its corresponding soft project is obtained according to each engineering name traversed
Journey configuration information;
Judge to obtain judging result with the presence or absence of incidence relation between each soft project;
Automatic test is executed according to the judging result and the engineering configuration information.
In this embodiment, one is formed by the engineering name for the whole soft projects that will include in all projects to be tested
A set, can be scheduled to all soft projects by unified interface, convenient for the unification of automatic test software
Management reduces manual intervention and specifically traverses to the engineering name set, obtains each engineering name pair traversed
The engineering configuration information for the soft project answered, and closed according to whether there is between the corresponding each soft project of the engineering name set
Connection relationship executes the automatic test of software further combined with the corresponding engineering configuration information got, saves human cost,
Testing efficiency and accuracy are promoted, the software test period is shortened.
To sum up, those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment
It is that relevant hardware can be instructed to complete by program, which can be stored in a computer readable storage medium,
Storage medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits
Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One-
Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
Further, above-mentioned computer equipment can hold for PC (Personal Computer, PC).
The technical solution of the embodiment of the present disclosure is had been described in detail above with reference to the accompanying drawings, test Ministry of environment can be effectively realized
The automation of the automation of administration and test case operation, saves human cost, promotes testing efficiency and accuracy, shortens software
Test period.
In the embodiments of the present disclosure, term " first ", " second " are only used for the purpose of description, and should not be understood as instruction or
It implies relative importance, for the ordinary skill in the art, can understand above-mentioned term at this as the case may be
Concrete meaning in open embodiment.
The foregoing is merely the preferred embodiments of the embodiment of the present disclosure, are not limited to the embodiment of the present disclosure, right
For those skilled in the art, the embodiment of the present disclosure can have various modifications and variations.All essences in the embodiment of the present disclosure
Within mind and principle, any modification, equivalent replacement, improvement and so on should be included in the protection scope of the embodiment of the present disclosure
Within.
Claims (13)
1. a kind of method of automatic test software characterized by comprising
The engineering name for each soft project for including in software project to be tested is obtained, to form engineering name set;
The engineering name set is traversed, is matched according to the engineering that each engineering name traversed obtains its corresponding soft project
Confidence breath;
Judge to obtain judging result with the presence or absence of incidence relation between each soft project;
Automatic test is executed according to the judging result and the engineering configuration information.
2. the method for automatic test software according to claim 1, which is characterized in that the engineering configuration information also wraps
Environment deployment information and use-case test information are included, and automation is executed according to the judging result and the engineering configuration information
The step of test, comprising:
When the judging result between each soft project there are when incidence relation, according to the first soft project traversed
The corresponding first environment deployment information automatically dispose first of title tests environment, and starts the corresponding first software work of operation
Journey, wherein any title in the entitled engineering name set of the first soft project;
Obtain the first deployment result of the first test environment;
When the first deployment result is deployment success, tested according to corresponding first use-case of the first soft project title
Information runs the first test case, and generates the first use-case operation result, to be according to the first use-case operation result determination
No end automatic test;
When the first deployment result is deployment failure, the generated all use-case fortune of the software project to be tested is exported
Row is as a result, and terminate automatic test.
3. the method for automatic test software according to claim 2, which is characterized in that described according to first use-case
Operation result determines whether the step of terminating automatic test, comprising:
When the first use-case operation result is to operate normally, continue to traverse the Other Engineering name in the engineering name set
Claim, it is corresponding after successfully having traversed all engineering names in the engineering name set to export all use-case operation results;
When the first use-case operation result is misoperation, the generated all use of software project to be tested is exported
Example operation result, and terminate automatic test.
4. the method for automatic test software according to claim 2, which is characterized in that according to the judging result and institute
State the step of engineering configuration information executes automatic test, further includes:
When incidence relation is not present between each soft project in the judging result, according to the second software work traversed
The corresponding second environment deployment information automatically dispose second of journey title tests environment, and starts the corresponding second software work of operation
Journey, wherein any title in the entitled engineering name set of the second soft project;
Obtain the second deployment result of the second test environment;
When the second deployment result is deployment success, tested according to corresponding second use-case of the second soft project title
Information runs the second test case, generates and exports the second use-case operation result, and continues to traverse the engineering name set
In Other Engineering title, until having traversed all engineering names in the engineering name set;
When the second deployment result is deployment failure, second deployment is exported as a result, and continuing to traverse the engineering name
Claim the Other Engineering title in set, until having traversed all engineering names in the engineering name set.
5. the method for automatic test software according to any one of claim 1 to 4, which is characterized in that the acquisition
The engineering name for each soft project for including in software project to be tested includes: the step of engineering name set to be formed
The engineering name of each soft project is obtained, by HTTP service interface to form the engineering name set.
6. a kind of device of automatic test software characterized by comprising
Module is obtained, for obtaining the engineering name for each soft project for including in software project to be tested, to form engineering name
Claim set;
Spider module obtains corresponding software according to each engineering name traversed for traversing the engineering name set
Engineering configuration information;
Judgment module obtains judging result with the presence or absence of incidence relation between each soft project for judging;
Test module, for executing automatic test according to the judging result and the engineering configuration information.
7. the device of automatic test software according to claim 6, which is characterized in that the engineering configuration information also wraps
It includes environment deployment information and use-case test information and the test module includes:
First deployment submodule, for when the judging result between each soft project there are when incidence relation, according to
The corresponding first environment deployment information automatically dispose first of the first soft project title traversed tests environment, and starts fortune
Corresponding first soft project of row, wherein any title in the entitled engineering name set of the first soft project;
First acquisition submodule, for obtaining the first deployment result of the first test environment;
Submodule is run, is used for when the first deployment result is deployment success, according to the first soft project title pair
The the first use-case test information answered runs the first test case, and generates the first use-case operation result, to use according to described first
Example operation result determines whether to terminate automatic test;
Output sub-module, for exporting the software project to be tested and having given birth to when the first deployment result is deployment failure
At all use-case operation results, and terminate automatic test.
8. the device of automatic test software according to claim 7, which is characterized in that the test module further includes adjusting
Submodule is spent, the scheduling submodule is used for:
When the first use-case operation result is to operate normally, dispatches the spider module and continue to traverse the engineering name collection
Other Engineering title in conjunction is dispatched described defeated after successfully having traversed all engineering names in the engineering name set
Submodule is corresponding out exports all use-case operation results;
When the first use-case operation result is misoperation, dispatches the output sub-module and export the software item to be tested
The generated all use-case operation results of mesh, and terminate automatic test.
9. the device of automatic test software according to claim 7, which is characterized in that the test module further include:
Second deployment submodule, when being used to that incidence relation to be not present between each soft project when the judging result, root
Environment is tested according to the corresponding second environment deployment information automatically dispose second of the second soft project title traversed, and is started
Run corresponding second soft project, wherein any name in the entitled engineering name set of the second soft project
Claim;
Second acquisition submodule, for obtaining the second deployment result of the second test environment;
First processing submodule is used for when the second deployment result is deployment success, according to the second soft project name
Claim corresponding second use-case test information to run the second test case, generates and export the second use-case operation result, and continue
The Other Engineering title in the engineering name set is traversed, until having traversed all engineering names in the engineering name set
Claim;
Second processing submodule, for exporting second deployment as a result, simultaneously when the second deployment result is deployment failure
Continue to traverse the Other Engineering title in the engineering name set, until having traversed all works in the engineering name set
Journey title.
10. the device of automatic test software according to any one of claims 6 to 9, which is characterized in that the acquisition
Module is specifically used for:
The engineering name of each soft project is obtained, by HTTP service interface to form the engineering name set.
11. a kind of server characterized by comprising the automatic test software as described in any one of claim 6 to 10
Device.
12. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor performs the steps of when executing the computer program
The engineering name for each soft project for including in software project to be tested is obtained, to form engineering name set;
The engineering name set is traversed, is matched according to the engineering that each engineering name traversed obtains its corresponding soft project
Confidence breath;
Judge to obtain judging result with the presence or absence of incidence relation between each soft project;
Automatic test is executed according to the judging result and the engineering configuration information.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
It is performed the steps of when being executed by processor
The engineering name for each soft project for including in software project to be tested is obtained, to form engineering name set;
The engineering name set is traversed, is matched according to the engineering that each engineering name traversed obtains its corresponding soft project
Confidence breath;
Judge to obtain judging result with the presence or absence of incidence relation between each soft project;
Automatic test is executed according to the judging result and the engineering configuration information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710584465.XA CN109271309B (en) | 2017-07-18 | 2017-07-18 | Method and device for automatically testing software, server, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710584465.XA CN109271309B (en) | 2017-07-18 | 2017-07-18 | Method and device for automatically testing software, server, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271309A true CN109271309A (en) | 2019-01-25 |
CN109271309B CN109271309B (en) | 2022-04-08 |
Family
ID=65152727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710584465.XA Active CN109271309B (en) | 2017-07-18 | 2017-07-18 | Method and device for automatically testing software, server, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271309B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346952A (en) * | 2019-08-06 | 2021-02-09 | 阿里巴巴集团控股有限公司 | Method, equipment and electronic equipment for regression testing of test cases |
CN113254328A (en) * | 2021-04-29 | 2021-08-13 | 厦门国际银行股份有限公司 | White box testing method, system, mobile terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1841336A (en) * | 2005-03-31 | 2006-10-04 | 联想(北京)有限公司 | Computer testing method |
CN102075381A (en) * | 2010-12-14 | 2011-05-25 | 云海创想信息技术(北京)有限公司 | Automatic test platform server and system applied to cloud storage |
US20120221279A1 (en) * | 2009-11-23 | 2012-08-30 | Zte Corporation | Automatic Test System for Distributed Comprehensive Service and Method Thereof |
CN105095089A (en) * | 2015-09-14 | 2015-11-25 | 北京金山安全软件有限公司 | Method and device for testing performance of application software |
CN105117289A (en) * | 2015-09-30 | 2015-12-02 | 北京奇虎科技有限公司 | Task allocation method, device and system based on cloud testing platform |
US20160004627A1 (en) * | 2014-07-06 | 2016-01-07 | International Business Machines Corporation | Utilizing semantic clusters to Predict Software defects |
CN106951369A (en) * | 2017-03-15 | 2017-07-14 | 微梦创科网络科技(中国)有限公司 | The management method and device of a kind of joint debugging test |
-
2017
- 2017-07-18 CN CN201710584465.XA patent/CN109271309B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1841336A (en) * | 2005-03-31 | 2006-10-04 | 联想(北京)有限公司 | Computer testing method |
US20120221279A1 (en) * | 2009-11-23 | 2012-08-30 | Zte Corporation | Automatic Test System for Distributed Comprehensive Service and Method Thereof |
CN102075381A (en) * | 2010-12-14 | 2011-05-25 | 云海创想信息技术(北京)有限公司 | Automatic test platform server and system applied to cloud storage |
US20160004627A1 (en) * | 2014-07-06 | 2016-01-07 | International Business Machines Corporation | Utilizing semantic clusters to Predict Software defects |
CN105095089A (en) * | 2015-09-14 | 2015-11-25 | 北京金山安全软件有限公司 | Method and device for testing performance of application software |
CN105117289A (en) * | 2015-09-30 | 2015-12-02 | 北京奇虎科技有限公司 | Task allocation method, device and system based on cloud testing platform |
CN106951369A (en) * | 2017-03-15 | 2017-07-14 | 微梦创科网络科技(中国)有限公司 | The management method and device of a kind of joint debugging test |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346952A (en) * | 2019-08-06 | 2021-02-09 | 阿里巴巴集团控股有限公司 | Method, equipment and electronic equipment for regression testing of test cases |
CN113254328A (en) * | 2021-04-29 | 2021-08-13 | 厦门国际银行股份有限公司 | White box testing method, system, mobile terminal and storage medium |
CN113254328B (en) * | 2021-04-29 | 2022-08-09 | 厦门国际银行股份有限公司 | White box testing method, system, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109271309B (en) | 2022-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107704392B (en) | Test case processing method and server | |
US10067858B2 (en) | Cloud-based software testing | |
Paiva et al. | A model-to-implementation mapping tool for automated model-based GUI testing | |
CN106227654B (en) | A kind of test platform | |
KR101637371B1 (en) | System for testing an application use for a smart device and method therefor | |
WO2019222033A1 (en) | Multi-domain planning and execution | |
Rouached et al. | Web service mining and verification of properties: An approach based on event calculus | |
Holzmann et al. | Design tools for requirements engineering | |
CN107807869A (en) | A kind of test system and method for testing | |
US20200174455A1 (en) | Multi-domain planning and execution | |
CN111258881B (en) | Intelligent test system for workflow test | |
CN109271309A (en) | Method and device, server, equipment and the storage medium of automatic test software | |
US8510714B2 (en) | Implementing integrated documentation and application testing | |
Brosch et al. | Towards semantics-aware merge support in optimistic model versioning | |
US20180239603A1 (en) | Software Development Estimating Based on Functional Areas | |
Leal et al. | The SAMBA approach for Self-Adaptive Model-BAsed online testing of services orchestrations | |
Bansal et al. | A model based approach to test case generation for testing the navigation behavior of dynamic web applications | |
Püschel et al. | Testing self-adaptive software: requirement analysis and solution scheme | |
Khorram et al. | From coverage computation to fault localization: A generic framework for domain-specific languages | |
CN113434387A (en) | Script-driven-based automatic testing tool and system | |
CN113485928A (en) | Automatic testing method and device for switch | |
Wendland et al. | Extending the UML Testing Profile with a fine-grained test logging model | |
Hannonen | Automated testing for software process automation | |
Duarte et al. | Extraction of probabilistic behaviour models based on contexts | |
CN109669868A (en) | The method and system of software test |
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 |