CN107797927B - Application automation test method, device, equipment and readable storage medium - Google Patents

Application automation test method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN107797927B
CN107797927B CN201710983500.5A CN201710983500A CN107797927B CN 107797927 B CN107797927 B CN 107797927B CN 201710983500 A CN201710983500 A CN 201710983500A CN 107797927 B CN107797927 B CN 107797927B
Authority
CN
China
Prior art keywords
application
target
test
type
target version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710983500.5A
Other languages
Chinese (zh)
Other versions
CN107797927A (en
Inventor
林金星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201710983500.5A priority Critical patent/CN107797927B/en
Publication of CN107797927A publication Critical patent/CN107797927A/en
Application granted granted Critical
Publication of CN107797927B publication Critical patent/CN107797927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an application automation test method, a device, equipment and a readable storage medium, wherein the application automation test method comprises the following steps: when detecting that a first branch file of an application is labeled, acquiring a target version application containing the first branch file; automatically packaging the target version application; acquiring and analyzing a configuration file in the target version application to acquire a target mail address; and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application. The invention aims to solve the technical problems that time of developers is wasted much and the testing efficiency of application is reduced in the existing testing process.

Description

Application automation test method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of testing, in particular to an application automation testing method, device, equipment and a readable storage medium.
Background
At present, due to the fact that iteration of a mobile APP version is rapid, before the application is online, the application needs to be tested for many times, however, in the existing application testing process, developers need to manually pack the application to be tested, corresponding mails are manually written, the developed application is sent to the testers to be tested, time of the developers is wasted to a certain extent, and testing efficiency of the application is reduced.
Disclosure of Invention
The invention mainly aims to provide an application automation test method, device, equipment and readable storage medium, and aims to solve the technical problems that much time is wasted by developers in the existing test process, and the test efficiency of applications is reduced.
In order to achieve the above object, the present invention provides an application automation test method, including:
when detecting that a first branch file of an application is labeled, acquiring a target version application containing the first branch file;
automatically packaging the target version application;
acquiring and analyzing a configuration file in the target version application to acquire a target mail address;
and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application.
Optionally, when it is detected that the first branch file of the application is tagged, the step of obtaining the target version application including the first branch file includes:
when detecting that a first branch file of an application is labeled, acquiring the type of the label;
and acquiring a target version application containing the first branch file based on the type of the label.
Optionally, the step of obtaining and parsing the configuration file in the target version application to obtain the target email address includes:
acquiring and analyzing a configuration file in the target version application, and acquiring the test attribute of the application automation test;
and acquiring a target mail address from the pre-stored mail addresses based on the test attribute.
Optionally, the step of obtaining the target email address from the pre-stored email addresses based on the test attributes further includes:
obtaining the test type of the application based on the test attribute;
and acquiring the incidence relation between the pre-stored test type and the mail address, and acquiring the target mail address from each pre-stored mail address based on the incidence relation and the applied test type.
Optionally, the step of sending the packaged target version application to the target email address when it is detected that the packaging process is completed, so as to complete the testing of the application includes:
when the packaging processing is detected to be completed, calling a pre-stored mail template, and filling the contents to be filled in the mail template based on the configuration file;
generating a corresponding new mail to be sent based on the filled mail template, and applying the packed target version as an attachment of the mail to be sent;
and sending the mail to be sent to a target mail address.
Optionally, when it is detected that the packaging processing is completed, after the step of sending the packaged target version application to the target email address, the method includes:
detecting whether the packed target version application is successfully sent to a target mail address or not;
and if the failure information is not successfully sent to the target mail address, generating corresponding failure feedback information, and feeding the failure feedback information back to the application test supervision terminal.
Optionally, after the step of detecting whether the packed target version application is successfully sent to the target email address, the method includes:
and when the mail is successfully sent to the target mail address, generating corresponding success feedback information.
In addition, to achieve the above object, the present invention further provides an application automation test apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target version application containing a first branch file of an application when the fact that the first branch file is labeled is detected;
the packaging module is used for automatically packaging the target version application;
the second acquisition module is used for acquiring and analyzing the configuration file in the target version application so as to acquire a target mail address;
and the sending module is used for sending the packed target version application to the target mail address when the completion of the packing processing is detected so as to complete the test of the application.
Optionally, the first obtaining module includes:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring the type of a label when detecting that the first branch file of an application is labeled;
and the second acquisition unit is used for acquiring the target version application containing the first branch file based on the type of the label.
Optionally, the second obtaining module includes:
the third acquisition unit is used for acquiring and analyzing the configuration file in the target version application and acquiring the test attribute of the application automation test;
and the fourth acquisition unit is used for acquiring the target mail address from the pre-stored mail addresses based on the test attribute.
Optionally, the fourth obtaining unit includes:
the first obtaining subunit is used for obtaining the test type of the application based on the test attribute;
and the second acquisition subunit is used for acquiring the incidence relation between the pre-stored test type and the mail address and acquiring the target mail address from each pre-stored mail address based on the incidence relation and the applied test type.
Optionally, the sending module includes:
the calling unit is used for calling a pre-stored mail template when the packaging processing is detected to be finished, and filling the content to be filled in the mail template based on the configuration file;
a generating unit, configured to generate a corresponding new mail to be sent based on the filled mail template, and apply the packed target version as an attachment of the mail to be sent;
and the sending unit is used for sending the mail to be sent to a target mail address.
Optionally, the application automation test apparatus further includes:
the detection module is used for detecting whether the packed target version application is successfully sent to a target mail address;
and the first feedback module is used for generating corresponding failure feedback information if the failure feedback information is not successfully sent to the target mail address, and feeding the failure feedback information back to the application test supervision terminal.
Optionally, the application automation test apparatus further includes:
and the second feedback module is used for generating corresponding successful feedback information when the information is successfully sent to the target mail address.
In addition, to achieve the above object, the present invention further provides an application automation test apparatus, including: a memory, a processor, a communication bus, and an application automation test program stored on the memory,
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the application automation test program to realize the following steps:
when detecting that a first branch file of an application is labeled, acquiring a target version application containing the first branch file;
automatically packaging the target version application;
acquiring and analyzing a configuration file in the target version application to acquire a target mail address;
and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application.
Optionally, when it is detected that the first branch file of the application is tagged, the step of obtaining the target version application including the first branch file includes:
when detecting that a first branch file of an application is labeled, acquiring the type of the label;
and acquiring a target version application containing the first branch file based on the type of the label.
Optionally, the step of obtaining and parsing the configuration file in the target version application to obtain the target email address includes:
acquiring and analyzing a configuration file in the target version application, and acquiring the test attribute of the application automation test;
and acquiring a target mail address from the pre-stored mail addresses based on the test attribute.
Optionally, the step of obtaining the target email address from the pre-stored email addresses based on the test attributes further includes:
obtaining the test type of the application based on the test attribute;
and acquiring the incidence relation between the pre-stored test type and the mail address, and acquiring the target mail address from each pre-stored mail address based on the incidence relation and the applied test type.
Optionally, the step of sending the packaged target version application to the target email address when it is detected that the packaging process is completed, so as to complete the testing of the application includes:
when the packaging processing is detected to be completed, calling a pre-stored mail template, and filling the contents to be filled in the mail template based on the configuration file;
generating a corresponding new mail to be sent based on the filled mail template, and applying the packed target version as an attachment of the mail to be sent;
and sending the mail to be sent to a target mail address.
Optionally, when it is detected that the packaging processing is completed, after the step of sending the packaged target version application to the target email address, the method includes:
detecting whether the packed target version application is successfully sent to a target mail address or not;
and if the failure information is not successfully sent to the target mail address, generating corresponding failure feedback information, and feeding the failure feedback information back to the application test supervision terminal.
Optionally, after the step of detecting whether the packed target version application is successfully sent to the target email address, the method includes:
and when the mail is successfully sent to the target mail address, generating corresponding success feedback information.
Further, to achieve the above object, the present invention also provides a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
when an automatic test instruction of the user interface application is detected, acquiring and analyzing a program of the application to be tested of the terminal based on the test instruction;
acquiring an element to be tested of the application to be tested based on a program of the application to be tested, and generating a test case based on the element to be tested, wherein the test case comprises test step information for testing the element to be tested;
generating and operating a corresponding test scene sleeve according to the test case, and testing the element to be tested according to the test scene sleeve;
and when detecting that all elements to be tested of the application to be tested are tested, generating a test report.
The method comprises the steps of obtaining a target version application containing a first branch file when the fact that the first branch file of the application is labeled is detected; automatically packaging the target version application; acquiring and analyzing a configuration file in the target version application to acquire a target mail address; and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application. Because the mapping relation between the label and the automatic packaging is established, when the first branch file is detected to be labeled, the automatic packaging process is triggered, and the automatic packaging process comprises the following steps: the method comprises the steps of obtaining a target version application containing a first branch file, and automatically packaging the target version application, wherein after the target version application is automatically packaged, a configuration file in the application is obtained and analyzed, so that a target mail address is obtained based on the configuration file, and the target version application is sent to the target mail address.
Drawings
FIG. 1 is a schematic flow chart illustrating a first embodiment of an automated testing method according to the present invention;
FIG. 2 is a flow chart illustrating a second embodiment of an automated testing method according to the present invention;
FIG. 3 is a schematic diagram of an apparatus architecture of a hardware operating environment to which a method of an embodiment of the invention relates;
FIG. 4 is a diagram of a test report in an automated testing method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an application automation test method, and in a first embodiment of the application automation test method of the invention, referring to fig. 1, the application automation test method includes:
step S10, when detecting that the first branch file of the application is labeled, acquiring a target version application containing the first branch file;
it should be noted that, in the present application, the application automation test method is applied to an automation test system, and the automation test system performs tracking monitoring on application branch files in an application version development tool in real time, where an application is composed of each branch file, and if a branch file in the application version development tool is tagged, an automatic packaging process is triggered based on a mapping relationship between the tag and an automatic packaging operation, which is pre-stored in the test automation system.
When detecting that the first branch file of the application is labeled, the step of acquiring the target version application containing the first branch file comprises the following steps:
when detecting that a first branch file of an application is labeled, acquiring the type of the label;
and acquiring a target version application containing the first branch file based on the type of the label.
The application development includes development of a new application or version update of an original application, and in addition, the application development also includes patch processing of the original application, it should be noted that in the present application, the tags may be classified into different types, and the tags may be classified according to the type of the application development, and are described in a specific embodiment, and include a first type of tag, a second type of tag, and a third type of tag, where the tags are the first type of tag when the type of the application development is the new application development, the tags are the second type of tag when the type of the application development is the version update of the original application, and the tags are the third type of tag when the type of the application development is the patch processing of the original application.
It should be noted that, the application is composed of various files, and the packaging process may be: the method comprises the steps of obtaining a target file to be packaged, compressing the target file to be packaged, taking a tagged file as a first branch file, wherein an automatic test system of the application has a first mapping relation between a first type tag and a first automatic packaging processing process, a second mapping relation between a second type tag and a second automatic packaging processing process, and a third mapping relation between a third type tag and a third automatic packaging processing process, wherein the first mapping relation is to package all applied branch files when the first type tag on any branch file is detected, test all branch files when the test is performed, and the second mapping relation is to obtain a target version application containing the first branch file when the second type tag on the first branch file is detected, and package the target version application, the target version application may be a latest version application, and the latest version application acquisition process may be: acquiring attribute information of the first branch file, acquiring other branch files of the application based on the attribute information of the first branch file, taking the other branch files as second branch files, acquiring change time stamps of the second branch files of the application, acquiring a second branch file of a latest version of the application based on the change time stamps, and applying the second branch file of the latest version and the first branch file as target versions. The second type label of the packed target version application is also on the first branch file, when testing, only the first branch file with the second type label is tested, and the third mapping relation is that when the third type label is detected, only the first branch file is packed.
When a first branch file of an application is detected to be marked with a label, a target version application containing the first branch file is obtained, when the label is a first type of label, the target version application is an application containing all the branch files, when the label is a second type of label, the target version application is an application containing the first branch file, and when the label is a third type of label, the target version application is a target version application only containing the first branch file.
It should be noted that the first type of tag, the second type of tag, and the third type of tag all exist in the automated testing system, and when the development is completed, a developer manually selects a target tag based on its development type, so that the automated testing system triggers a corresponding packaging process based on the target tag. When detecting that a first branch file is labeled, acquiring attribute information of the first branch file;
step S20, automatically packaging the target version application;
after the target version application is obtained, an automatic packaging process is triggered, and in this application, it should be noted that when the automatic test system detects a tag, in response to the tag, to trigger the automatic packaging process, a program segment needs to be set in the built-in processor in advance, the program segments represent corresponding processing logic for triggering a processor in response to the automatic packaging process upon detection of a tag, so as to realize the automatic packaging processing of the target version application, the packaging process in the application also comprises the step of compressing the target version application, to accelerate the sending speed of sending the application to the tester after packaging, it should be noted that after the application is packaged and the target version is applied, a packaged log is generated, the packing log includes time information of application packing completion and the like for subsequent query or inspection.
Step S30, obtaining and analyzing the configuration file in the target version application to obtain a target mail address;
referring to fig. 2, the step of obtaining and analyzing the configuration file in the target version application to obtain the target email address includes:
step S31, obtaining and analyzing the configuration file in the target version application, and obtaining the test attribute of the application automation test;
it should be noted that the configuration file stores test attributes of the application, where the test attributes include information such as a test type, a test target mail address, and test deadline.
And step S32, acquiring target mail addresses from the pre-stored mail addresses based on the test attributes.
In this application, before or after the completion of packaging, the configuration file in the target version application is acquired and parsed to acquire the target email address, where the manner of acquiring the target email address may be: before the packaging is finished, a configuration file in the target version application is inquired, the configuration file comprises a label type and a first branch file attribute, the first branch file attribute can be the test attribute of the first branch file, such as interface test or interface test, and the test attribute of the application can be obtained based on the label type and the first branch file attribute, the test attribute includes the type of test, and the target mail address is obtained based on the test type, it should be noted that, in the application, a mapping relation between the tester, the full-time test type of the tester and the mail address is established, specifically, in the present application, the full-time test types of the tester include an application interface test, an interface test, a performance test, a fault tolerance test, and the like, so that after the test types are obtained, the target email address can be obtained.
And step S40, when the packaging processing is detected to be completed, sending the packaged target version application to the target mail address to complete the application test.
In the present application, when it is detected that the packaging process is completed, a new email is generated by applying the target version based on the obtained target email address, so as to send the target version application to the target email address, and the process of sending the target version application to the target email address may be manually completed by a developer.
The method comprises the steps of obtaining a target version application containing a first branch file when the fact that the first branch file of the application is labeled is detected; automatically packaging the target version application; acquiring and analyzing a configuration file in the target version application to acquire a target mail address; and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application. Because the mapping relation between the label and the automatic packaging is established, when the first branch file is detected to be labeled, the automatic packaging process is triggered, and the automatic packaging process comprises the following steps: the method comprises the steps of obtaining a target version application containing a first branch file, and automatically packaging the target version application, wherein after the target version application is automatically packaged, a configuration file in the application is obtained and analyzed, so that a target mail address is obtained based on the configuration file, and the target version application is sent to the target mail address.
Further, the present invention provides a second embodiment of the application automation test method, in the second embodiment, the step of obtaining the target email address from the pre-stored email addresses based on the test attribute further includes:
obtaining the test type of the application based on the test attribute;
and acquiring the incidence relation between the pre-stored test type and the mail address, and acquiring the target mail address from each pre-stored mail address based on the incidence relation and the applied test type.
In this embodiment, the test attribute includes a test type, and thus, based on the test attribute, the test type of the application is obtained, and the association relationship between the pre-stored test type and the mail address is obtained, it should be noted that the mail address corresponds to the tester one by one, but the test type may correspond to one or more testers and the mail address, when the test type corresponds to one tester and one mail address, if the test type is the interface test type, the mail address is a, the tester is a, when the test type is the interface test type, the mail address is B, the tester is B, etc., based on the association relationship and the test type of the application, the target mail address is obtained from the pre-stored mail addresses, which is described in the specific embodiment, if the test attribute of the first branch file is the interface test, the target mail address is a from each mail address, when the test type corresponds to a plurality of testers and a plurality of mail addresses, acquiring the number of the current applications to be tested of the testers so as to acquire the tester with the minimum number of the current applications to be tested, acquiring the mail address of the tester with the minimum number of the applications to be tested, and taking the mail address of the tester with the minimum number of the applications to be tested as a target mail address.
Further, the present invention provides a third embodiment of the application automation test method, where in the third embodiment, when detecting that the packaging processing is completed, the step of sending the packaged target version application to the target email address to complete the test of the application includes:
when the packaging processing is detected to be completed, calling a pre-stored mail template, and filling the contents to be filled in the mail template based on the configuration file;
generating a corresponding new mail to be sent based on the filled mail template, and applying the packed target version as an attachment of the mail to be sent;
and sending the mail to be sent to a target mail address.
In this embodiment, when it is detected that the packaging process is completed, a new mail is generated in which the target version is applied as an attachment to the new mail, wherein the new mail generation process may be: calling a pre-stored mail template to obtain contents to be filled in the mail template, wherein the contents to be filled can be: the method comprises the steps of obtaining contents to be filled based on configuration files of an application, and respectively filling the contents to be filled into a mail template, wherein the addresses of a sender, a receiver, a mail subject and the like are required to be described, the addresses of the sender, the receiver, the mail subject and the like are stored in determined positions in the configuration files, so that the mail template can be accurately filled based on the configuration files of the application, and after the filling is completed, a mail sending instruction is generated, wherein the filled mail template is a generated mail to be sent, and the mail to be sent is sent to a target mail address.
In this embodiment, when it is detected that the packaging process is completed, a pre-stored mail template is called, and based on the configuration file, the content to be filled in the mail template is filled; generating a corresponding new mail to be sent based on the filled mail template, and applying the packed target version as an attachment of the mail to be sent; and sending the mail to be sent to a target mail address. Due to the fact that the mails to be sent are automatically generated, development time of developers is saved, and development efficiency is improved.
Further, the present invention provides a fourth embodiment of the application automation test method, where in the fourth embodiment, after the step of sending the packaged target version application to the target email address when it is detected that the packaging process is completed, the method includes:
detecting whether the packed target version application is successfully sent to a target mail address or not;
and if the failure information is not successfully sent to the target mail address, generating corresponding failure feedback information, and feeding the failure feedback information back to the application test supervision terminal.
In the application, the application automation test system monitors whether the packed target version application is successfully sent to the target mail address in real time, if the packed target version application is not successfully sent to the target mail address, corresponding failure feedback information is generated, and the failure feedback information is fed back to the application test supervision terminal to be notified and processed by the test supervision terminal.
In this embodiment, whether the packaged target version application is successfully sent to the target email address is detected; if the failure feedback information is not successfully sent to the target mail address, corresponding failure feedback information is generated and fed back to the application test supervision terminal, and the fault tolerance function of the automatic test system is increased.
Further, on the basis of the first embodiment of the application automation test method of the present invention, a fifth embodiment of the application automation test method is provided, and in the fifth embodiment, after the step of detecting whether the target version application after the packaging processing is successfully sent to the target email address, the method includes:
and when the mail is successfully sent to the target mail address, generating corresponding success feedback information.
In this embodiment, when the target version application is successfully sent to the target email address, corresponding success feedback information is generated and sent to the corresponding developer, and the process of sending the success feedback information to the corresponding developer may be: and acquiring a sender address of the target mail address to which the sending target version is applied, and sending successful feedback information to a corresponding developer based on the sender address, wherein the sender address and the corresponding developer have a mapping relation.
In this embodiment, by generating corresponding success feedback information when successfully sent to the target email address. Therefore, developers can know the automatic testing process and progress, and the development experience of the developers is improved.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The automatic testing equipment applied in the embodiment of the invention can be a PC, and also can be terminal equipment such as a smart phone, a tablet personal computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compression standard Audio Layer 4) player, a portable computer and the like.
As shown in fig. 3, the application automation test apparatus may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Optionally, the application automation test device may further include a user interface, a network interface, a camera, RF (Radio Frequency) circuitry, a sensor, audio circuitry, a WiFi module, and so on. The user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the application automation test device configuration shown in FIG. 3 does not constitute a limitation of application automation test devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and an application automation test program. The operating system is a program that manages and controls the hardware and software resources of the application automation test equipment, supporting the operation of the application automation test program as well as other software and/or programs. The network communication module is used for realizing communication among components in the memory 1005 and communication with other hardware and software in the application automation test equipment.
In the application automation test device shown in fig. 3, the processor 1001 is configured to execute the application automation test program stored in the memory 1005, and implement the following steps:
when detecting that a first branch file of an application is labeled, acquiring a target version application containing the first branch file;
automatically packaging the target version application;
acquiring and analyzing a configuration file in the target version application to acquire a target mail address;
and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application.
Further, when it is detected that the first branch file of the application is tagged, the step of obtaining the target version application containing the first branch file includes:
when detecting that a first branch file of an application is labeled, acquiring the type of the label;
and acquiring a target version application containing the first branch file based on the type of the label.
Further, the step of obtaining and parsing the configuration file in the target version application to obtain the target email address includes:
acquiring and analyzing a configuration file in the target version application, and acquiring the test attribute of the application automation test;
and acquiring a target mail address from the pre-stored mail addresses based on the test attribute.
Further, the step of obtaining the target email address from the pre-stored email addresses based on the test attributes further includes:
obtaining the test type of the application based on the test attribute;
and acquiring the incidence relation between the pre-stored test type and the mail address, and acquiring the target mail address from each pre-stored mail address based on the incidence relation and the applied test type.
Further, the step of sending the packaged target version application to the target email address when detecting that the packaging process is completed, so as to complete the testing of the application, includes:
when the packaging processing is detected to be completed, calling a pre-stored mail template, and filling the contents to be filled in the mail template based on the configuration file;
generating a corresponding new mail to be sent based on the filled mail template, and applying the packed target version as an attachment of the mail to be sent;
and sending the mail to be sent to a target mail address.
Further, after the step of sending the packaged target version application to the target email address when the packaging processing is detected to be completed, the method includes:
detecting whether the packed target version application is successfully sent to a target mail address or not;
and if the failure information is not successfully sent to the target mail address, generating corresponding failure feedback information, and feeding the failure feedback information back to the application test supervision terminal.
Further, after the step of detecting whether the packaged target version application is successfully sent to the target email address, the method includes:
and when the mail is successfully sent to the target mail address, generating corresponding success feedback information.
The specific implementation of the application automation test equipment of the present invention is basically the same as that of the above-mentioned application automation test method, and is not described herein again.
The present invention provides a readable storage medium storing one or more programs, the one or more programs being further executable by one or more processors for implementing the steps of the application automation test method as described above.
The specific implementation of the readable storage medium of the present invention is substantially the same as the embodiments of the application automation test method, and is not described herein again.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An application automation test method, characterized in that the application automation test method comprises:
when detecting that a first branch file of an application is labeled, acquiring a target version application containing the first branch file, wherein when the type of the application development is new application development, the label is a first type label, when the type of the application development is version update of an original application, the label is a second type label, when the type of the application development is patch processing of the original application, the label is a third type label, when the label is the first type label, the target version application is an application comprising all branch files, when the label is the second type label, the target version application is an application containing the first branch file, when the label is the third type label, the target version application is a target version application only containing the first branch file, based on the mapping relation between the label of the corresponding first branch file pre-stored in a test automation system and an automatic packaging operation, triggering an automatic packaging process;
automatically packaging the target version application;
acquiring and analyzing a configuration file in the target version application to acquire a target mail address;
and when the completion of the packaging processing is detected, sending the packaged target version application to the target mail address so as to complete the test of the application.
2. The method for automated testing of applications according to claim 1, wherein said step of obtaining a target version of an application containing a first branch file of an application when it is detected that the first branch file is tagged comprises:
when detecting that a first branch file of an application is labeled, acquiring the type of the label;
and acquiring a target version application containing the first branch file based on the type of the label.
3. The method for automated testing of applications of claim 1, wherein the step of obtaining and parsing the configuration file in the target version application to obtain the target email address comprises:
acquiring and analyzing a configuration file in the target version application, and acquiring the test attribute of the application automation test;
and acquiring a target mail address from the pre-stored mail addresses based on the test attribute.
4. The application automation test method of claim 3 wherein the step of obtaining a target email address from pre-stored email addresses based on the test attributes further comprises:
obtaining the test type of the application based on the test attribute;
and acquiring the incidence relation between the pre-stored test type and the mail address, and acquiring the target mail address from each pre-stored mail address based on the incidence relation and the applied test type.
5. The method for automated testing of applications according to claim 1, wherein the step of sending the packaged version of the application to the target email address upon detecting completion of the packaging process comprises:
when the packaging processing is detected to be completed, calling a pre-stored mail template, and filling the contents to be filled in the mail template based on the configuration file;
generating a corresponding new mail to be sent based on the filled mail template, and applying the packed target version as an attachment of the mail to be sent;
and sending the mail to be sent to a target mail address.
6. The application automation test method of any of claims 1 to 5 wherein the step of sending the packaged target version application to the target email address upon detecting completion of packaging processing comprises, after:
detecting whether the packed target version application is successfully sent to a target mail address or not;
and if the failure information is not successfully sent to the target mail address, generating corresponding failure feedback information, and feeding the failure feedback information back to the application test supervision terminal.
7. The method for automated testing of applications of claim 6, wherein said step of detecting whether said packaged version of the target application was successfully sent to the target email address comprises:
and when the mail is successfully sent to the target mail address, generating corresponding success feedback information.
8. An application automation test device, the application automation test device comprising:
a first obtaining module, configured to obtain a target version application including a first branch file when it is detected that the first branch file of an application is tagged, where the tag is a first type tag when a type of application development is new application development, the tag is a second type tag when the type of application development is a version update of an original application, the tag is a third type tag when the type of application development is a patch process on the original application, the target version application is an application including all branch files when the tag is the first type tag, the target version application is an application including the first branch file when the tag is the second type tag, the target version application is an application including the first branch file when the tag is the third type tag, the target version application is a target version application including only the first branch file, and based on a mapping relationship between a pre-stored tag of a corresponding first branch file in the test automation system and an automatic packaging operation, triggering an automatic packaging process;
the packaging module is used for automatically packaging the target version application;
the second acquisition module is used for acquiring and analyzing the configuration file in the target version application so as to acquire a target mail address;
and the sending module is used for sending the packed target version application to the target mail address when the completion of the packing processing is detected so as to complete the test of the application.
9. An application automation test device, characterized in that the application automation test device comprises: a memory, a processor, a communication bus, and an application automation test program stored on the memory,
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the application automation test program to implement the steps of the application automation test method according to any of claims 1 to 7.
10. A readable storage medium, having stored thereon an application automation test program, which when executed by a processor implements the steps of the application automation test method of any one of claims 1 to 7.
CN201710983500.5A 2017-10-18 2017-10-18 Application automation test method, device, equipment and readable storage medium Active CN107797927B (en)

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 CN107797927A (en) 2018-03-13
CN107797927B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN111382053A (en) * 2018-12-29 2020-07-07 北京奇虎科技有限公司 Test case generation method based on mail client and mail client
CN112817849B (en) * 2021-01-28 2024-06-04 北京达佳互联信息技术有限公司 Test data processing method, device, equipment and storage medium
CN115858520B (en) * 2021-09-23 2024-09-10 比亚迪股份有限公司 Data processing method, front-end processor and comprehensive monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094851A (en) * 2015-09-06 2015-11-25 浪潮软件股份有限公司 Method for realizing code release at any time based on Git
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN107797927A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107797927B (en) Application automation test method, device, equipment and readable storage medium
CN107844421B (en) Interface testing method and device, computer equipment and storage medium
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN109254910B (en) Application program testing method and device, electronic equipment and storage medium
CN107957941B (en) Method and device for processing memory leakage of mobile terminal
CN104838405B (en) The method and system of test frame for application program
CN111078567B (en) Report generation method, terminal and storage medium of automatic test platform
CN108255509B (en) Application deployment method, device, equipment and readable storage medium
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN106815055B (en) Method and system for dynamic layout of mobile application
US8984487B2 (en) Resource tracker
CN110727524A (en) Method and device for realizing remote procedure call
CN111831542A (en) API application debugging method and device and storage medium
CN117370203A (en) Automatic test method, system, electronic equipment and storage medium
CN106557411B (en) Method and system for testing Hybrid application in Android system
CN110674023B (en) Interface testing method and device
CN114218072A (en) Test script generation method and device, storage medium and computer equipment
CN110515834B (en) Interface testing method and device, mobile terminal and storage medium
CN106302011B (en) Multi-terminal-based test method and terminal
CN112764796A (en) Installation package generation system
CN110928547A (en) Public file extraction method, device, terminal and storage medium
CN107092601B (en) Resource file construction method, resource file application method and device
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
CN113535580B (en) CTS test method, CTS test device and test equipment

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