CN107797927A - Using automated testing method, device, equipment and readable storage medium storing program for executing - Google Patents
Using automated testing method, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN107797927A CN107797927A CN201710983500.5A CN201710983500A CN107797927A CN 107797927 A CN107797927 A CN 107797927A CN 201710983500 A CN201710983500 A CN 201710983500A CN 107797927 A CN107797927 A CN 107797927A
- Authority
- CN
- China
- Prior art keywords
- application
- target version
- targeted mails
- file
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention discloses one kind to apply automated testing method, device, equipment and readable storage medium storing program for executing, and the application automated testing method includes:When the first branch's file for detecting application is labeled with label, the target version application for including first branch file is obtained;Automatic packing processing is carried out to target version application;Obtain and parse the configuration file in the target version application, to obtain targeted mails address;When detecting that packing processing is completed, the target version application after the packing is handled is sent to the targeted mails address, to complete the test of the application.Present invention seek to address that the time waste of developer is more in existing test process, the technical problem of the testing efficiency of application is reduced.
Description
Technical field
The present invention relates to technical field of measurement and test, more particularly to it is a kind of using automated testing method, device, equipment and readable
Storage medium.
Background technology
At present, because mobile APP version iterations are rapid, it is necessary to repeatedly be tested application, so before application is reached the standard grade
And existing application is carried out in test process, it is necessary to which developer is packed application to be tested manually, hand-coding is corresponding
Mail, the application of exploitation be sent to tester tested to realize, this wastes developer to a certain extent
Time, reduce the testing efficiency of application.
The content of the invention
It is a primary object of the present invention to provide one kind to apply automated testing method, device, equipment and readable storage medium
Matter, it is intended to solve developer in existing test process time waste it is more, reduce the technical problem of the testing efficiency of application.
To achieve the above object, the present invention provides one kind and applies automated testing method, the application automatic test side
Method includes:
When the first branch's file for detecting application is labeled with label, the target for including first branch file is obtained
Version application;
Automatic packing processing is carried out to target version application;
Obtain and parse the configuration file in the target version application, to obtain targeted mails address;
When detecting that packing processing is completed, the target version application after the packing is handled is sent to the target postal
Part address, to complete the test of the application.
Alternatively, it is described when the first branch's file for detecting application is labeled with label, obtain and include described first point
The target version applying step of branch file includes:
When the first branch's file for detecting application is labeled with label, the type of the label is obtained;
Type based on the label obtains the target version application for including first branch file.
Alternatively, it is described to obtain and parse the configuration file in the target version application, to obtain targeted mails address
Step includes:
Obtain and parse the configuration file in the target version application, obtain the test category using automatic test
Property;
Based on the testing attribute, targeted mails address is obtained from each addresses of items of mail to prestore.
Alternatively, it is described to be based on the testing attribute, targeted mails address step is obtained from each addresses of items of mail to prestore
Suddenly also include:
Based on the testing attribute, the test-types of the application are obtained;
Obtain the incidence relation of the test-types to prestore and addresses of items of mail, the survey based on the incidence relation Yu the application
Type is tried, targeted mails address is obtained from each addresses of items of mail to prestore.
Alternatively, described when detecting that packing processing is completed, the target version application after the packing is handled is sent
To the targeted mails address, included with completing the testing procedure of the application:
When detecting that packing processing is completed, the email template to prestore is called, based on the configuration file, to email template
In content to be filled be filled;
Based on the email template after filling, the corresponding new mail to be sent of generation, and by after packing processing
Target version is using the annex as the mail to be sent;
The mail to be sent is sent to targeted mails address.
Alternatively, described when detecting that packing processing is completed, the target version application after the packing is handled is sent
Include after to targeted mails address step:
Detect whether the target version application after the packing processing is successfully transmitted to targeted mails address;
If send not successfully to targeted mails address, corresponding failure feedback information is generated, and unsuccessfully feed back described
Feedback of the information gives application test monitor terminal.
Alternatively, whether the target version application after the detection packing processing is successfully transmitted to targeted mails address
Include after step:
When being successfully transmitted to targeted mails address, success feedback information corresponding to generation.
In addition, to achieve the above object, the present invention also provides one kind and applies automatic test device, the automatic test
Device includes:
First acquisition module, for when the first branch's file for detecting application is labeled with label, obtaining comprising described
The target version application of first branch's file;
Packetization module, for carrying out automatic packing processing to target version application;
Second acquisition module, for obtaining and parsing the configuration file in the target version application, to obtain target postal
Part address;
Sending module, for when detecting that packing processing is completed, the target version after the packing is handled to be using hair
The targeted mails address is delivered to, to complete the test of the application.
Alternatively, first acquisition module includes:
First acquisition unit, for when the first branch's file for detecting application is labeled with label, obtaining the label
Type;
Second acquisition unit, the target version for including first branch file is obtained for the type based on the label
Using.
Alternatively, second acquisition module includes:
3rd acquiring unit, for obtaining and parsing the configuration file in the target version application, obtain the application
The testing attribute of automatic test;
4th acquiring unit, for based on the testing attribute, targeted mails to be obtained from each addresses of items of mail to prestore
Address.
Alternatively, the 4th acquiring unit includes:
First obtains subelement, for based on the testing attribute, obtaining the test-types of the application;
Second obtains subelement, for obtaining the incidence relation of the test-types to prestore and addresses of items of mail, based on the pass
Connection relation and the test-types of the application, obtain targeted mails address from each addresses of items of mail to prestore.
Alternatively, the sending module includes:
Call unit, for when detecting that packing processing is completed, calling the email template to prestore, based on the configuration text
Part, content to be filled in email template is filled;
Generation unit, for based on the email template after filling, the corresponding new mail to be sent of generation, and will described in
Target version after packing processing is using the annex as mail to be sent;
Transmitting element, for the mail to be sent to be sent to targeted mails address.
Alternatively, the application automatic test device also includes:
Detection module, for detecting whether the target version application after the packing is handled is successfully transmitted to targeted mails
Location;
First feedback module, if during for sending not successfully to targeted mails address, generate corresponding to failure feedback information,
And the failure feedback information is fed back to using test monitor terminal.
Alternatively, the application automatic test device also includes:
Second feedback module, for the feedback information that when being successfully transmitted to targeted mails address, succeeds corresponding to generation.
In addition, to achieve the above object, the present invention also provides one kind and applies automated test device, the application automation
Test equipment includes:Memory, processor, communication bus and the application automatic test journey being stored on the memory
Sequence,
The communication bus is used to realize the communication connection between processor and memory;
The processor is used to perform the application automatic test program, to realize following steps:
When the first branch's file for detecting application is labeled with label, the target for including first branch file is obtained
Version application;
Automatic packing processing is carried out to target version application;
Obtain and parse the configuration file in the target version application, to obtain targeted mails address;
When detecting that packing processing is completed, the target version application after the packing is handled is sent to the target postal
Part address, to complete the test of the application.
Alternatively, it is described when the first branch's file for detecting application is labeled with label, obtain and include described first point
The target version applying step of branch file includes:
When the first branch's file for detecting application is labeled with label, the type of the label is obtained;
Type based on the label obtains the target version application for including first branch file.
Alternatively, it is described to obtain and parse the configuration file in the target version application, to obtain targeted mails address
Step includes:
Obtain and parse the configuration file in the target version application, obtain the test category using automatic test
Property;
Based on the testing attribute, targeted mails address is obtained from each addresses of items of mail to prestore.
Alternatively, it is described to be based on the testing attribute, targeted mails address step is obtained from each addresses of items of mail to prestore
Suddenly also include:
Based on the testing attribute, the test-types of the application are obtained;
Obtain the incidence relation of the test-types to prestore and addresses of items of mail, the survey based on the incidence relation Yu the application
Type is tried, targeted mails address is obtained from each addresses of items of mail to prestore.
Alternatively, described when detecting that packing processing is completed, the target version application after the packing is handled is sent
To the targeted mails address, included with completing the testing procedure of the application:
When detecting that packing processing is completed, the email template to prestore is called, based on the configuration file, to email template
In content to be filled be filled;
Based on the email template after filling, the corresponding new mail to be sent of generation, and by after packing processing
Target version is using the annex as the mail to be sent;
The mail to be sent is sent to targeted mails address.
Alternatively, described when detecting that packing processing is completed, the target version application after the packing is handled is sent
Include after to targeted mails address step:
Detect whether the target version application after the packing processing is successfully transmitted to targeted mails address;
If send not successfully to targeted mails address, corresponding failure feedback information is generated, and unsuccessfully feed back described
Feedback of the information gives application test monitor terminal.
Alternatively, whether the target version application after the detection packing processing is successfully transmitted to targeted mails address
Include after step:
When being successfully transmitted to targeted mails address, success feedback information corresponding to generation.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing storage
There are one or more than one program, one either more than one program can be held by one or more than one processor
Row for:
When detecting the instruction of user-interface application automatic test, instructed based on the test and obtain and parse terminal and be tested
The program of application;
Program based on tested application obtains the element to be tested of tested application, is used based on the Element generation test to be tested
Example, wherein, the test case includes treating the testing procedure information that test elements are tested;
According to the Test cases technology and corresponding test scene set is run, test elements are treated according to the test scene set
Tested;
When all element tests to be tested for detecting tested application are completed, test report is generated.
The present invention is by the way that when the first branch's file for detecting application is labeled with label, acquisition includes first branch
The target version application of file;Automatic packing processing is carried out to target version application;Obtain and parse the target version
Configuration file in, to obtain targeted mails address;When detecting that packing processing is completed, after the packing is handled
Target version application is sent to the targeted mails address, to complete the test of the application.Due to the application establish label with
Automatically the mapping relations packed, thus when detecting that first branch's file is labeled with label, automatic packing process is triggered, automatically
Packing process includes:The target version application for including first branch file is obtained, target version application is carried out automatic
Packing is handled, and in the application, after automatic packing, is obtained and is parsed the configuration file in application, to be obtained based on the configuration file
Targeted mails address is taken, and realizes and sends target version application to the targeted mails address, is entirely automatic during being somebody's turn to do
Complete, it is not necessary to which developer is manually operated, thus has saved the development time, thus present application addresses existing test process
The time waste of middle developer is more, reduces the technical problem of the testing efficiency of application.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that the present invention applies automated testing method first embodiment;
Fig. 2 is the schematic flow sheet that the present invention applies automated testing method second embodiment;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to;
Fig. 4 is the schematic diagram that the present invention applies test report in automated testing method.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides one kind and applies automated testing method, implements in the present invention using the first of automated testing method
In example, reference picture 1, the application automated testing method includes:
Step S10, when the first branch's file for detecting application is labeled with label, obtain comprising first branch text
The target version application of part;
It should be noted that in this application, being applied to automatization test system using automated testing method, automate
Test system is tracked monitoring to the application branch file in application version developing instrument in real time, wherein, using by each point
Branch file is formed, if branch's file in application version developing instrument is labeled with label, based on pre- in automation system for testing
The label deposited and the mapping relations of automatic packaging operation, trigger automatic packing process.
It is described when the first branch's file for detecting application is labeled with label, obtain comprising first branch file
Target version applying step includes:
When the first branch's file for detecting application is labeled with label, the type of the label is obtained;
Type based on the label obtains the target version application for including first branch file.
Application and development includes the exploitation of new opplication or the version updating to original application, in addition, the application and development is also wrapped
The patch processing to original application is included, it is necessary to which explanation, in this application, label can be divided into different type, and label can be root
Classified according to the type of application and development, illustrated to specific embodiment, label includes first kind label, the second category
Label, the 3rd class label, wherein, when the type of application and development is developed for new opplication, label is first kind label, works as application and development
Type when being to the version updating of original application, label be the second class label, when the type of application and development is to original application
Patch processing when, label is the 3rd class label.
It should be noted that being formed using by each file, packing processing procedure can be:Obtain target text to be packed
Part, the file destination for treating packing are compressed processing, in this application, using tagged file as the first branch text
The first mapping relations of first kind label and the first automatic packing processing procedure be present in part, the automatization test system of the application,
Second mapping relations of the second class label and the second automatic packing processing procedure, the 3rd class label and the 3rd automatic packing are treated
3rd mapping relations of journey, wherein, the first mapping relations are in the first kind label on detecting any branch's file, are corresponded to
All branch's files carry out packing processing, when being tested, all branch's files are tested, the second mapping relations
Should in the second class label on detecting first branch's file, to obtain the target version comprising first branch file
With, packing processing is carried out to target version application, wherein, target version application can be latest edition application, latest edition application
Acquisition process can be:The attribute information of first branch file is obtained, based on the attribute information of first branch file, is obtained
Other branch's files of the application are taken, using other branch's files as second branch's file, obtain the of the application
The change time-stamp of two branch's files, the second branch text using latest edition is obtained based on the change time-stamp
Part, using the second branch's file and first branch's file of the latest edition as target version application.After packing processing
Second class label of target version application is still on first branch's file, when being tested, to the second class label
First branch's file tested, the 3rd mapping relations be when detecting the 3rd class label, only first branch's file is entered
Row packing is handled.
When the first branch's file for detecting application is labeled with label, the target for including first branch file is obtained
Version application, when label is first kind label, target version application is to include the application of all branch's files, when label is second
Class label, it is the application for including first branch file that target version, which is applied, and when label is the 3rd class label, target version should
With only to include the target version application of first branch's file.
It should be noted that first kind label, the second class label, the 3rd class label are present in automatization test system
In, for developer when developing completion, the development types based on itself choose target labels manually, for automatization test system
Based on packing process corresponding to target labels triggering.When detect be labeled with label using first branch's file when, obtain institute
State the attribute information of first branch's file;
Step S20, automatic packing processing is carried out to target version application;
After target version application is obtained, automatic packing process is triggered, be certainly in this application, it is necessary to illustrate
When dynamicization test system detects label, the label is responded to trigger automatic packing process, it is necessary in advance in built-in processor
Middle setting program segment, the program segment represent corresponding processing logic, and the processing logic is used for when detecting label, triggering processing
Device is to respond the automatic packing process, to realize that the automatic packing to target version application is handled, packing process in the application
Also include target version application being compressed processing, to accelerate that application is sent to the transmission speed of tester after packing,
It should be noted that after the application packs completion target version application, the packing daily record that packing is completed, the packing daily record are generated
Temporal information completed including application packing etc., for subsequent query or inspection.
Step S30, obtain and parse the configuration file in the target version application, to obtain targeted mails address;
Wherein, reference picture 2, it is described to obtain and parse the configuration file in the target version application, to obtain target postal
Part address step includes:
Step S31, obtain and parse the configuration file in the target version application, acquisition is described to apply automatic test
Testing attribute;
It should be noted that configuration file is stored with the testing attribute of application, testing attribute includes test-types, tests mesh
Mark the information such as addresses of items of mail, test deadline.
Step S32, based on the testing attribute, targeted mails address is obtained from each addresses of items of mail to prestore.
In this application, before packing is completed or after the completion of packing, obtain and parse in the target version application
Configuration file, to obtain targeted mails address, wherein, the mode for obtaining targeted mails addresses can be:Before packing is completed, first
The configuration file inquired about in target version application, the configuration file include tag types and first branch's file attribute, and first
Branch's file attribute can be the testing attribute of first branch's file interface detection or interface testing etc. in this way, based on the tag class
Type and first branch's file attribute can obtain the testing attribute of application, and the testing attribute includes the type of test, based on test class
Type obtains targeted mails address, it is necessary to which explanation, in this application, establishes the full-time test class of tester, tester
The mapping relations of type and addresses of items of mail, wherein, a full-time test-types can match with multiple addresses of items of mail, specifically, this Shen
Please in, the full-time test-types of tester include application interface test, interface testing, performance test, tolerating measure etc., thus
After test-types are obtained, targeted mails address can be obtained.
Step S40, when detecting that packing processing is completed, the target version application after the packing is handled is sent to institute
Targeted mails address is stated, to complete the test of the application.
In this application, when detecting that packing processing is completed, the targeted mails address based on acquisition should by target version
With generation new mail, target version application is sent to the targeted mails address, target version application is sent to described
Targeted mails address process can be developer and manually complete, and in this application, target version application is sent to the target
Addresses of items of mail, which can be, to be automatically performed, and for the process specifically but after the completion of packing, instruction is completed in generation packing, is completed based on packing
Instruction, targeted mails address and target version application based on acquisition, generates new mail, the new mail based on generation, by target
Version application sends as shown in Figure 4 to the targeted mails address, overview flow chart.
The present invention is by the way that when the first branch's file for detecting application is labeled with label, acquisition includes first branch
The target version application of file;Automatic packing processing is carried out to target version application;Obtain and parse the target version
Configuration file in, to obtain targeted mails address;When detecting that packing processing is completed, after the packing is handled
Target version application is sent to the targeted mails address, to complete the test of the application.Due to the application establish label with
Automatically the mapping relations packed, thus when detecting that first branch's file is labeled with label, automatic packing process is triggered, automatically
Packing process includes:The target version application for including first branch file is obtained, target version application is carried out automatic
Packing is handled, and in the application, after automatic packing, is obtained and is parsed the configuration file in application, to be obtained based on the configuration file
Targeted mails address is taken, and realizes and sends target version application to the targeted mails address, is entirely automatic during being somebody's turn to do
Complete, it is not necessary to which developer is manually operated, thus has saved the development time, thus present application addresses existing test process
The time waste of middle developer is more, reduces the technical problem of the testing efficiency of application.
Further, the present invention provides the second embodiment using automated testing method, in a second embodiment, described
Based on the testing attribute, targeted mails address step is obtained from each addresses of items of mail to prestore also to be included:
Based on the testing attribute, the test-types of the application are obtained;
Obtain the incidence relation of the test-types to prestore and addresses of items of mail, the survey based on the incidence relation Yu the application
Type is tried, targeted mails address is obtained from each addresses of items of mail to prestore.
In the present embodiment, testing attribute includes test-types, thus, based on the testing attribute, obtain the application
Test-types, obtain the incidence relation of the test-types to prestore and addresses of items of mail, it is necessary to explanation, addresses of items of mail and test
Personnel is correspond, but test-types can correspond to one or more tester and addresses of items of mail, when test-types are corresponding
When one tester is with an addresses of items of mail, when such as test-types being interface detection type, addresses of items of mail A, tester
For a, when test-types are interface testing type, addresses of items of mail B, tester is b etc., is answered based on the incidence relation with described
Test-types, targeted mails address is obtained from each addresses of items of mail to prestore, is illustrated to specific embodiment, such as
The testing attribute of first branch's file is interface detection, then it is A targeted mails address to be obtained from each addresses of items of mail, works as test
When type corresponds to multiple testers with multiple addresses of items of mail, the current application numbers to be tested of tester are obtained, to obtain
The minimum tester of current application numbers to be tested, the addresses of items of mail of the minimum tester of application numbers to be tested is obtained,
Using the addresses of items of mail of the minimum tester of application numbers to be tested as targeted mails address.
Further, the present invention provides the 3rd embodiment using automated testing method, in the third embodiment, described
When detecting that packing processing is completed, the target version application after the packing is handled is sent to the targeted mails address,
Included with completing the testing procedure of the application:
When detecting that packing processing is completed, the email template to prestore is called, based on the configuration file, to email template
In content to be filled be filled;
Based on the email template after filling, the corresponding new mail to be sent of generation, and by after packing processing
Target version is using the annex as the mail to be sent;
The mail to be sent is sent to targeted mails address.
In the present embodiment, when detecting that packing processing is completed, new mail is generated, in the new mail, by target version
Annex of this application as new mail, wherein, the generating process of new mail can be:The email template to prestore is called, obtains the postal
Content to be filled in part template, the content to be filled can be:Sender address, address of the addressee, mail matter topics etc., based on should
Configuration file, content to be filled is obtained, content to be filled is filled into email template respectively, wherein it is desired to explanation
It is that in configuration file, sender address, address of the addressee, mail matter topics etc. are stored in defined location, thus, it is possible to base
In the configuration file of application, email template is accurately filled, after the completion of filling, generation sends E-mail instructions, wherein, the filling is complete
Into email template be generation mail to be sent, the mail to be sent is sent to targeted mails address.
In the present embodiment, by when detecting that packing processing is completed, calling the email template to prestore, being matched somebody with somebody based on described
File is put, content to be filled in email template is filled;Based on the email template after filling, generation is corresponding new
Mail to be sent, and using the target version after packing processing using the annex as the mail to be sent;Treated described
Mail is sent to send to targeted mails address.Due to automatically generating mail to be sent, thus when having saved the exploitation of developer
Between, improve development efficiency.
Further, the present invention provides the fourth embodiment using automated testing method, in the fourth embodiment, described
When detecting that packing processing is completed, the target version application after the packing is handled, which is sent to the targeted mails address, to be walked
Include after rapid:
Detect whether the target version application after the packing processing is successfully transmitted to targeted mails address;
If send not successfully to targeted mails address, corresponding failure feedback information is generated, and unsuccessfully feed back described
Feedback of the information gives application test monitor terminal.
In this application, monitor whether the target version application after packing processing succeeds in real time using automatization test system
Send to targeted mails address, if if detecting when sending not successfully to targeted mails address, the corresponding unsuccessfully feedback letter of generation
Breath, and the failure feedback information is fed back to using test monitor terminal, so that application test monitor terminal is carried out at notice
Reason, in addition, in this application, before the feedback information that fails corresponding to generation, the sender information of mail is obtained, based on the postal
The sender information of part, mail return processing is carried out, so that developer knows.
In the present embodiment, by detecting whether the target version application after packing processing is successfully transmitted to target postal
Part address;If send not successfully to targeted mails address, generate corresponding to failure feedback information, and by it is described failure feedback letter
Breath is fed back to using test monitor terminal, and embodiment adds the fault tolerance of automatization test system.
Further, on the basis of first embodiment of the present invention using automated testing method, there is provided application is automatic
Change the embodiment of method of testing the 5th, in the 5th embodiment, whether is the target version application after the detection packing processing
Include after being successfully transmitted to targeted mails address step:
When being successfully transmitted to targeted mails address, success feedback information corresponding to generation.
In the present embodiment, when being successfully transmitted target version using to targeted mails address, success corresponding to generation is anti-
Feedforward information, and the success feedback information is sent to corresponding developer, the success feedback information is sent to corresponding open
Hair personnel's process can be:Obtain send target version apply to targeted mails address sender address, based on the sender
Location, success feedback information is sent to corresponding developer, wherein, mapping be present with corresponding developer and close in the sender address
System.
In the present embodiment, the feedback information that when being successfully transmitted to targeted mails address, succeeds corresponding to generation is passed through.With
Just developer knows to use automatic testing process and progress, improves the exploitation experience of developer.
Reference picture 3, Fig. 3 are the device structure schematic diagrams for the hardware running environment that scheme of the embodiment of the present invention is related to.
Application of embodiment of the present invention automated test device can be PC or smart mobile phone, tablet personal computer, electronics
(Moving Picture Experts Group Audio Layer III, dynamic image expert compress mark by book reader, MP3
Quasi- audio aspect 3) player, (Moving Picture Experts Group Audio Layer IV, dynamic image are special by MP4
Family's compression standard audio aspect 4) terminal device such as player, pocket computer.
As shown in figure 3, this can include using automated test device:Processor 1001, such as CPU, memory 1005,
Communication bus 1002.Wherein, communication bus 1002 is used to realize the connection communication between processor 1001 and memory 1005.Deposit
Reservoir 1005 can be high-speed RAM memory or stable memory (non-volatile memory), such as magnetic
Disk storage.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Alternatively, this can also include user interface, network interface, camera, RF using automated test device
(Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface can include display
Shield (Display), input block such as keyboard (Keyboard), optional user interface can also include standard wireline interface,
Wave point.Network interface can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.
It will be understood by those skilled in the art that what is shown in Fig. 3 is not formed correspondingly using automated test device structure
It with the restriction of automated test device, can include than illustrating more or less parts, either combine some parts or not
Same part arrangement.
As shown in figure 3, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module and apply automatic test program.Operating system is that automated test device hardware and software is applied in management and control
The program of resource, support the operation using automatic test program and other softwares and/or program.Network communication module is used for
Realize the communication between each component in the inside of memory 1005, and with other hardware and softwares in application automated test device it
Between communicate.
In the application automated test device shown in Fig. 3, processor 1001 is used to perform what is stored in memory 1005
Using automatic test program, following steps are realized:
When the first branch's file for detecting application is labeled with label, the target for including first branch file is obtained
Version application;
Automatic packing processing is carried out to target version application;
Obtain and parse the configuration file in the target version application, to obtain targeted mails address;
When detecting that packing processing is completed, the target version application after the packing is handled is sent to the target postal
Part address, to complete the test of the application.
Further, it is described when the first branch's file for detecting application is labeled with label, obtain and include described first
The target version applying step of branch's file includes:
When the first branch's file for detecting application is labeled with label, the type of the label is obtained;
Type based on the label obtains the target version application for including first branch file.
Further, it is described to obtain and parse the configuration file in the target version application, with obtaining targeted mails
Location step includes:
Obtain and parse the configuration file in the target version application, obtain the test category using automatic test
Property;
Based on the testing attribute, targeted mails address is obtained from each addresses of items of mail to prestore.
Further, it is described to be based on the testing attribute, targeted mails address is obtained from each addresses of items of mail to prestore
Step also includes:
Based on the testing attribute, the test-types of the application are obtained;
Obtain the incidence relation of the test-types to prestore and addresses of items of mail, the survey based on the incidence relation Yu the application
Type is tried, targeted mails address is obtained from each addresses of items of mail to prestore.
Further, it is described when detecting that packing processing is completed, the target version application hair after the packing is handled
The targeted mails address is delivered to, is included with completing the testing procedure of the application:
When detecting that packing processing is completed, the email template to prestore is called, based on the configuration file, to email template
In content to be filled be filled;
Based on the email template after filling, the corresponding new mail to be sent of generation, and by after packing processing
Target version is using the annex as the mail to be sent;
The mail to be sent is sent to targeted mails address.
Further, it is described when detecting that packing processing is completed, the target version application hair after the packing is handled
Deliver to targeted mails address step includes afterwards:
Detect whether the target version application after the packing processing is successfully transmitted to targeted mails address;
If send not successfully to targeted mails address, corresponding failure feedback information is generated, and unsuccessfully feed back described
Feedback of the information gives application test monitor terminal.
Further, whether the target version application after the detection packing processing is successfully transmitted to targeted mails
Include after the step of location:
When being successfully transmitted to targeted mails address, success feedback information corresponding to generation.
The present invention is using automated test device embodiment and above-mentioned each embodiment of application automated testing method
It is essentially identical, it will not be repeated here.
The invention provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is stored with one or more than one journey
Sequence, one either more than one program can also be realized as described above by one or more than one computing device
The step of described application automated testing method.
Readable storage medium storing program for executing embodiment of the present invention and the basic phase of above-mentioned each embodiment of application automated testing method
Together, will not be repeated here.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, similarly it is included in the patent process range of the present invention.
Claims (10)
1. one kind applies automated testing method, it is characterised in that the application automated testing method includes:
When the first branch's file for detecting application is labeled with label, the target version for including first branch file is obtained
Using;
Automatic packing processing is carried out to target version application;
Obtain and parse the configuration file in the target version application, to obtain targeted mails address;
When detecting that packing processing is completed, the target version application after the packing is handled is sent to the targeted mails
Location, to complete the test of the application.
2. apply automated testing method as claimed in claim 1, it is characterised in that first point that application ought be detected
When branch file is labeled with label, obtaining the target version applying step comprising first branch file includes:
When the first branch's file for detecting application is labeled with label, the type of the label is obtained;
Type based on the label obtains the target version application for including first branch file.
3. apply automated testing method as claimed in claim 1, it is characterised in that described to obtain and parse the target version
Configuration file in this application, included with obtaining targeted mails address step:
Obtain and parse the configuration file in the target version application, obtain the testing attribute using automatic test;
Based on the testing attribute, targeted mails address is obtained from each addresses of items of mail to prestore.
4. apply automated testing method as claimed in claim 3, it is characterised in that it is described to be based on the testing attribute, from
Targeted mails address step is obtained in each addresses of items of mail to prestore also to be included:
Based on the testing attribute, the test-types of the application are obtained;
Obtain the incidence relation of the test-types to prestore and addresses of items of mail, the test class based on the incidence relation Yu the application
Type, targeted mails address is obtained from each addresses of items of mail to prestore.
5. apply automated testing method as claimed in claim 1, it is characterised in that described to detect packing processing completion
When, the target version application after the packing is handled is sent to the targeted mails address, to complete the test of the application
Step includes:
When detecting that packing processing is completed, the email template to prestore is called, based on the configuration file, to being treated in email template
The content of filling is filled;
Based on the email template after filling, the corresponding new mail to be sent of generation, and the target after the packing is handled
Version is using the annex as the mail to be sent;
The mail to be sent is sent to targeted mails address.
6. apply automated testing method as described in claim any one of 1-5, it is characterised in that described to detect packing
When processing is completed, the target version application after the packing is handled includes after sending to targeted mails address step:
Detect whether the target version application after the packing processing is successfully transmitted to targeted mails address;
If send not successfully to targeted mails address, generate corresponding to failure feedback information, and by it is described failure feedback information
Feed back to using test monitor terminal.
7. apply automated testing method as claimed in claim 1, it is characterised in that after the detection packing processing
Whether target version application includes after being successfully transmitted to targeted mails address step:
When being successfully transmitted to targeted mails address, success feedback information corresponding to generation.
8. one kind applies automatic test device, it is characterised in that the application automatic test device includes:
First acquisition module, for when the first branch's file for detecting application is labeled with label, obtaining and including described first
The target version application of branch's file;
Packetization module, for carrying out automatic packing processing to target version application;
Second acquisition module, for obtaining and parsing the configuration file in the target version application, with obtaining targeted mails
Location;
Sending module, for when detecting that packing processing is completed, the target version application after the packing is handled to be sent extremely
The targeted mails address, to complete the test of the application.
9. one kind applies automated test device, it is characterised in that the application automated test device includes:Memory, place
Device, communication bus and the application automatic test program being stored on the memory are managed,
The communication bus is used to realize the communication connection between processor and memory;
The processor is used to perform the application automatic test program, to realize as any one of claim 1 to 7
Application automated testing method the step of.
10. a kind of readable storage medium storing program for executing, it is characterised in that be stored with the readable storage medium storing program for executing using automatic test journey
Sequence, the application realized when being executed by processor using automatic test program as any one of claim 1-7 oneself
The step of dynamicization method of testing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710983500.5A CN107797927B (en) | 2017-10-18 | 2017-10-18 | Application automation test method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710983500.5A CN107797927B (en) | 2017-10-18 | 2017-10-18 | Application automation test method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107797927A true CN107797927A (en) | 2018-03-13 |
CN107797927B CN107797927B (en) | 2021-01-08 |
Family
ID=61533420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710983500.5A Active CN107797927B (en) | 2017-10-18 | 2017-10-18 | Application automation test method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107797927B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783334A (en) * | 2018-12-14 | 2019-05-21 | 平安普惠企业管理有限公司 | Pressure test report-generating method, device, computer equipment and storage medium |
CN112817849A (en) * | 2021-01-28 | 2021-05-18 | 北京达佳互联信息技术有限公司 | Test data processing method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515232A (en) * | 2008-02-21 | 2009-08-26 | 卓望数码技术(深圳)有限公司 | Software continuous integration system and method |
US9026998B2 (en) * | 2011-10-06 | 2015-05-05 | Red Hat Israel, Inc. | Selecting relevant tests to quickly assess code stability |
CN105094851A (en) * | 2015-09-06 | 2015-11-25 | 浪潮软件股份有限公司 | Method for momentarily issuing codes based on Git |
CN105404519A (en) * | 2015-12-07 | 2016-03-16 | 青岛海信电器股份有限公司 | Version control method, code testing method and system |
CN105653449A (en) * | 2015-12-28 | 2016-06-08 | 湖南蚁坊软件有限公司 | Continuous integration method based on container virtualization |
CN106293811A (en) * | 2016-07-28 | 2017-01-04 | 北京中电普华信息技术有限公司 | A kind of packing and issuing method and device automatically |
-
2017
- 2017-10-18 CN CN201710983500.5A patent/CN107797927B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515232A (en) * | 2008-02-21 | 2009-08-26 | 卓望数码技术(深圳)有限公司 | Software continuous integration system and method |
US9026998B2 (en) * | 2011-10-06 | 2015-05-05 | Red Hat Israel, Inc. | Selecting relevant tests to quickly assess code stability |
CN105094851A (en) * | 2015-09-06 | 2015-11-25 | 浪潮软件股份有限公司 | Method for momentarily issuing codes based on Git |
CN105404519A (en) * | 2015-12-07 | 2016-03-16 | 青岛海信电器股份有限公司 | Version control method, code testing method and system |
CN105653449A (en) * | 2015-12-28 | 2016-06-08 | 湖南蚁坊软件有限公司 | Continuous integration method based on container virtualization |
CN106293811A (en) * | 2016-07-28 | 2017-01-04 | 北京中电普华信息技术有限公司 | A kind of packing and issuing method and device automatically |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783334A (en) * | 2018-12-14 | 2019-05-21 | 平安普惠企业管理有限公司 | Pressure test report-generating method, device, computer equipment and storage medium |
CN112817849A (en) * | 2021-01-28 | 2021-05-18 | 北京达佳互联信息技术有限公司 | Test data processing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107797927B (en) | 2021-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107908541B (en) | Interface testing method and device, computer equipment and storage medium | |
CN107450941B (en) | Automatic packaging method, device, storage medium and computer equipment | |
CN103377127B (en) | The development and testing system of web page product, method of testing and device | |
CN103312551B (en) | The method of testing of CGI(Common gateway interface) and testing apparatus | |
CN105302732B (en) | A kind of automatic test approach and device of mobile terminal | |
CN104077217B (en) | The compiling dissemination method and system of code file | |
CN109254910B (en) | Application program testing method and device, electronic equipment and storage medium | |
CN102708050B (en) | Method and system for testing mobile application | |
CN105338110A (en) | Remote debugging method, platform and server | |
CN107896244B (en) | Version file distribution method, client and server | |
CN110955600B (en) | Interface testing method and device | |
CN108319662A (en) | Page processing method, device, electronic equipment and readable storage medium storing program for executing | |
CN105608382B (en) | Software maintenance method and software issue determination method and its corresponding device | |
CN108319460A (en) | Generation method, device, electronic equipment and the storage medium of application program installation kit | |
CN106897216A (en) | The method and apparatus of test software | |
CN110727581B (en) | Crash positioning method and electronic equipment | |
CN105204991A (en) | Internet of things test method and device | |
CN106445548A (en) | Test pack issuing method and device | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN110297776A (en) | Examining report generation, method of reseptance, device, equipment and storage medium | |
CN107797927A (en) | Using automated testing method, device, equipment and readable storage medium storing program for executing | |
CN115658496A (en) | Extensible Web automatic test method, system, equipment and storage medium | |
CN104484484B (en) | Clear up the method and device of cache file | |
CN108021503A (en) | The method, apparatus and computer-readable storage medium of automated function test | |
CN111506305B (en) | Tool pack generation method, device, computer equipment and readable storage medium |
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 |