CN110275826A - Automated testing method, device and computer readable storage medium - Google Patents

Automated testing method, device and computer readable storage medium Download PDF

Info

Publication number
CN110275826A
CN110275826A CN201910418955.1A CN201910418955A CN110275826A CN 110275826 A CN110275826 A CN 110275826A CN 201910418955 A CN201910418955 A CN 201910418955A CN 110275826 A CN110275826 A CN 110275826A
Authority
CN
China
Prior art keywords
test
report
instruction
testing
automatic
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.)
Pending
Application number
CN201910418955.1A
Other languages
Chinese (zh)
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 Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910418955.1A priority Critical patent/CN110275826A/en
Publication of CN110275826A publication Critical patent/CN110275826A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

The present invention relates to measuring technologies, disclose automated testing method, device and computer readable storage medium, this method comprises: prestoring multiple test instructions, each test instruction is for completing corresponding test item;Show that test interface, test interface are equipped with multiple test run buttons, the corresponding test instruction of each test run button;The starting request of test run button is received, and obtains the corresponding test instruction of test run button;It sends test instruction to test device to be tested, so that test device, which runs corresponding test code according to test instruction, completes automatic test;The test result for carrying out self-test device is received, and stores test result;And display test result, test result show that initial testing report is generated by the automation of test report Core Generator, and is stored in database profession, the data generated in database purchase and management automation test process in such a way that initial testing is reported.

Description

Automated testing method, device and computer readable storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of automated testing methods, device and computer-readable Storage medium.
Background technique
At present in current software development process, the increase of new function or the reparation of existing version bug, so that software The update iteration frequency of version is very high, in the prior art, after version updating iteration, needs to the content after update iteration Comprehensively tested.In current automatization test system, automatic test code is typically all to be called by order line Or directly run in code editor to carry out automatic test, this method of operation tests the people of code for being unfamiliar with For member, it frequently can lead to maloperation or do not know how to operate to complete automatic test project.
Summary of the invention
The present invention provides a kind of automated testing method, device and computer readable storage medium, main purpose and is Operate accuracy that is more convenient and improving test.
To achieve the above object, a kind of automated testing method of the present invention is applied in electronic device, and the automation is surveyed Method for testing includes: to prestore multiple test instructions, and each test instruction is for completing corresponding test item;Show test interface, The test interface is equipped with multiple test run buttons, the corresponding test instruction of each test run button;Receive the survey The starting of trial operation button is requested, and obtains the corresponding test instruction of the test run button;Send the test instruction extremely Test device is tested, so that the test device, which runs corresponding test code according to test instruction, completes automation Test;The test result from the test device is received, and stores the test result;And the display test result, The test result shows that the initial testing report is automatic by test report Core Generator in such a way that initial testing is reported Metaplasia is at and being stored in database profession, the data generated in the database purchase and management automation test process.
Optionally, the method also includes: prestore version number and the test name of each test item;It completes to automate When test, the title of the initial testing report is obtained;According to the version number of the test item and test name, test is generated It reports version number, and the title that the test report version number reports with the initial testing is associated;According to the survey It is final to generate first with new title for corresponding relationship between examination report version number and the title of initial testing report Test report, and first final test report is stored in the database.
Optionally, the method also includes: by first final test report be stored in the database the The report of two final tests is merged into integration test report.
Optionally, first final test is reported and is closed with the second final test report being stored in the database And include: at the step of integration test report
All time points of testing procedure in the first final test report are obtained, composition is gathered at the first time;
Obtain all time points of testing procedure in the second final test report, the second time of composition set;
The time intersection for obtaining the first time set and second time set, in the first final test report Obtain the first sending and receiving data and the first testing procedure title of corresponding various time points in announcement, and by first sending and receiving data and The first testing procedure name is referred to as the first data, and corresponding various time points are obtained in second final test report Second sending and receiving data and the second testing procedure title, and second sending and receiving data and the second testing procedure name are referred to as Second data;
First data and second data are stored by preset format to default file and generate the integration testing Report.
Optionally, the test instruction includes: the instruction of UI automatic test, the instruction of interface automatic test and app performance Automatic test instruction is respectively utilized to complete UI automatic test, interface automatic test and the test of app automatic performance.
In addition, to achieve the above object, the present invention also provides a kind of electronic device, the electronic device include memory and Processor is stored with the automatic test program that can be run on the processor, the automatic test on the memory Program realizes following steps when being executed by the processor: prestoring multiple test instructions, each test instruction is for completing to correspond to Test item;Show that test interface, the test interface are equipped with multiple test run buttons, each test run button pair A test is answered to instruct;The starting request of the test run button is received, and obtains the corresponding test of the test run button Instruction;It sends the test instruction to be tested to test device, be run so that the test device is instructed according to the test Corresponding test code completes automatic test;The test result from the test device is received, and stores the test knot Fruit;And the display test result, the test result are shown in such a way that initial testing is reported, the initial testing report It is automated and is generated by test report Core Generator, and be stored in database profession, the database purchase and management automation are surveyed The data generated during examination.
Optionally, following steps are also realized when the automatic test program is executed by the processor: prestoring each survey The version number of examination project and test name;When completing automatic test, the title of the initial testing report is obtained;According to institute State version number and the test name of test item, generate test report version number, and by the test report version number with it is described The title of initial testing report is associated;Between the title reported according to the test report version number and the initial testing Corresponding relationship, generate have new title the first final test report, and by first final test report be stored in In the database.
Optionally, following steps are also realized when the automatic test program is executed by the processor: by described first Final test, which is reported, is merged into integration test report with the second final test report being stored in the database.
Optionally, first final test is reported and is closed with the second final test report being stored in the database And include: at the step of integration test report
All time points of testing procedure in the first final test report are obtained, composition is gathered at the first time;
Obtain all time points of testing procedure in the second final test report, the second time of composition set;
The time intersection for obtaining the first time set and second time set, in the first final test report Obtain the first sending and receiving data and the first testing procedure title of corresponding various time points in announcement, and by first sending and receiving data and The first testing procedure name is referred to as the first data, and corresponding various time points are obtained in second final test report Second sending and receiving data and the second testing procedure title, and second sending and receiving data and the second testing procedure name are referred to as Second data;
First data and second data are stored by preset format to default file and generate the integration testing Report.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Automatic test program is stored on storage medium, the automatic test program can be executed by one or more processor, With the step of realizing the automated testing method.
Automated testing method, device and computer readable storage medium proposed by the present invention, test item one by one Become the test run button on test interface, when test, it is only necessary to which test can be run by clicking test run button Instruction, and can check test record and corresponding test report on test interface, thus automatic test platform, Code is removed at interface, for tester, can be carried out testing either with or without code base, and it is accurate to improve test Property, and it can accomplish that a people safeguards, more people use, and convenient test and significantly more efficient can utilize resource.
Detailed description of the invention
Fig. 1 is the flow diagram for the automated testing method that one embodiment of the invention provides;
Fig. 2 is the schematic diagram of internal structure for the electronic device that one embodiment of the invention provides;
The module diagram of automatic test program in the electronic device that Fig. 3 provides for one embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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 a kind of automated testing method.It is the automation that one embodiment of the invention provides shown in referring to Fig.1 The flow diagram of test method.This method can be executed by a device, which can be by software and or hardware realization.
In the present embodiment, automated testing method is applied in electronic device, comprising:
Step S101 prestores multiple test instructions, and each test instruction is for completing corresponding test item;
Step S102 shows that test interface, the test interface are equipped with multiple test run buttons, each test run The corresponding test instruction of button;
Step S103 receives the starting request of the test run button, and it is corresponding to obtain the test run button Test instruction;
Step S104 sends the test instruction to test device and is tested, so that the test device is according to Test instruction runs corresponding test code and completes automatic test;
Step S105 receives the test result from the test device, and stores the test result;
Step S106 shows that the test result, the test result are shown in such a way that initial testing is reported, described first Beginning test report is generated by the automation of test report Core Generator, and is stored in database profession, the database purchase and pipe The data generated in reason automatic test course.
Further, the method also includes: prestore version number and the test name of each test item;It completes automatically When changing test, the title of the initial testing report is obtained;According to the version number of the test item and test name, generates and survey Examination report version number, and the title that the test report version number reports with the initial testing is associated;According to described Corresponding relationship between test report version number and the title of initial testing report, generate have new title first most Whole test report, and first final test report is stored in the database.
Such as: the version number for prestoring test item is Orange V6.2.0, and test name is interface testing;To multiple surveys When examination report carries out parallel processing, the version number including test item and the test report version number of test name are generated, is referred to The version number of test item and test name are recombinated to obtain test report version number, test report version number can be survey The version number of examination project is located at before test name, and the version number for being also possible to test item is located at after test name, for example, The entitled 1001.HTML of test report file is obtained, the version number Orange V6.2.0 of test item, test name is interface Test report title 1001 and Orange V6.2.0 and interface testing are formed corresponding relationship, according to test item by test It is V6.2.0.jiekouceshi that version number and test name, which generate test report version number,.
Further, the method also includes: by first final test report be stored in the database The report of second final test is merged into integration test report.
Such as: user can be with the version number of input test project for Orange V6.3.0, and test name blank will All test report of Orange V6.3.0 version test item, which are merged into a test report, summarize access, convenient User consults test result.It is of course also possible to the obtained test report of the version number that user is inputted to different test items into Row merges, and client can be Orange V6.3.0 and Orange V6.2.1 with the version number of input test project, and test name is Interface testing, system testing and safety test, by the interface testing of Orange V6.3.0 version and Orange V6.2.1 version, System testing and safety test, which are merged into a test report, compares access, and user is facilitated to consult test result.
Further, first final test is reported and is reported with the second final test being stored in the database The step of being merged into integration test report include:
All time points of testing procedure in the first final test report are obtained, composition is gathered at the first time;
Obtain all time points of testing procedure in the second final test report, the second time of composition set;
The time intersection for obtaining the first time set and second time set, in the first final test report Obtain the first sending and receiving data and the first testing procedure title of corresponding various time points in announcement, and by first sending and receiving data and The first testing procedure name is referred to as the first data, and corresponding various time points are obtained in second final test report Second sending and receiving data and the second testing procedure title, and second sending and receiving data and the second testing procedure name are referred to as Second data;
First data and second data are stored by preset format to default file and generate the integration testing Report.
Further, the test instruction includes: the instruction of UI automatic test, the instruction of interface automatic test and app Energy automatic test instruction is respectively utilized to complete UI automatic test, interface automatic test and the test of app automatic performance.
Wherein, whether the various functions that user interface automatic test (UI automatic test) is used to test user interface reach Mark, the profile of user interface include: that whether the layout of functional module is reasonable, whether whole style is consistent, each control Whether placement location meets client's use habit etc..The automatic test of user interface is operated by the UI of the machine simulation mankind The test process automated.Interface is the agreement of software systems difference component part linking, such as between module and module Interface, the interface between front and rear end;From system architecture, interface influences model often by rear end staff development It encloses extensively, so usually will affect the progress of research and development, therefore progress interface automatic test seems especially heavy after interface goes wrong It wants.It includes: that memory, CPU, flow, electricity, starting speed, sliding speed, interface are cut that app automatic performance, which tests common index, Throw-over degree, the network speed interacted with server etc..
Wherein, the pre- storing module that described the step of prestoring multiple test instructions passes through automatization test system in electronic device It completes, different test items include UI automatic test, interface automatic test, the test of app automatic performance etc. for testing The automatic test project of app different function.
UI test run button, interface testing operation button and app test run is respectively equipped on the test interface to press Button respectively corresponds the instruction of UI automatic test, the instruction of interface automatic test and the test instruction of app automatic performance.
Wherein, automatization test system includes display module and setup module in the electronic device, and display module is used for Show test interface, setup module on test interface for being arranged multiple test run buttons.
The test run button is activated according to automatic test request, and the automatic test request can be flat by developing Platform is sent to the electronic device or triggers after receiving user's input by the electronic device.
When the electronic device is connect by wired or wireless mode with development platform, it is logical to can receive developer Cross the test request of development platform transmission.It can also directly receive and be asked by the test of the interactive interface input of the electronic device It asks.
For example, the automatic test request is to carry out UI automatic test, carry out interface automatic test or carry out app Automatic performance test.
The test code can automate generation, comprising the following steps:
Determine the method for testing to be measured of project to be tested;
It is operated by simulation imput device, generates case driving file and case driving file for the method for testing to be measured In the test code that is driven of each use-case.
The generating process for testing code is realized automation by the present invention, tests code without tester's hand-coding, Test development efficiency is improved, human input is reduced, reduces human cost, and tests the generation of code not tested person personnel Quality influence.
The data generated in the database purchase and management automation test process, including test data, test script, The update and automatic test management end wound of test record, automatic test management end when managing test data, test script The relevant information etc. of the test use cases, electronic device built.
The automatic test management end is integrated with the editor at interface and checks, the addition of test data, editor, deletion and It checks, test script is checked, inquiry, deletion and the refreshing of test execution, electronic device are increased newly, edit, delete and checked, Realize the visualized management of test record and test report.The electronic device includes memory, processor, the memory On be stored with the automatic test program that can be run on the processor, the automatic test program for complete it is described from Dynamicization test.
Wherein, the electronic device can be rack-mount server, blade server, tower server or cabinet-type clothes Business device etc. calculates equipment, and the electronic device can be independent server, is also possible to the server of multiple servers compositions Cluster.The electronic device may include, but be not limited only to, and connection memory, processor, net can be in communication with each other by system bus Network interface.
The automated testing method that the present embodiment proposes becomes test item one by one the test run on test interface Button, when test, it is only necessary to which test instruction can be run by clicking test run button, and can be looked on test interface Test record and corresponding test report are seen, so that automatic test platform, interface, code is removed, for test It for personnel, can be carried out testing either with or without code base, integrated function has UI automatic test, interface automation at present Test and the test of app automatic performance.The present embodiment by automatic test platform, interface, remove code, improve test Accuracy, and can accomplish that a people safeguards, more people use, and convenient test and significantly more efficient can utilize resource.
The present invention also provides a kind of electronic devices.It is the electronic device 1 that one embodiment of the invention provides referring to shown in Fig. 2 Schematic diagram of internal structure.
In the present embodiment, electronic device can be computer or server.The electronic device include at least memory 11, Processor 13, communication bus 15 and network interface 17.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 It can be the internal storage unit of electronic device, such as the hard disk of the electronic device in some embodiments.Memory 11 exists It is also possible to the External memory equipment of electronic device in other embodiments, such as the plug-in type hard disk being equipped on electronic device, Intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include the internal storage unit of electronic device or set including external storage It is standby.Memory 11 can be not only used for the application software and Various types of data that storage is installed on electronic device, such as automatic test The code etc. of program 111 can be also used for temporarily storing the data that has exported or will export.
Processor 13 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the test for being stored in run memory 11 Code or processing data.
Communication bus 15 is for realizing the connection communication between these components.
Network interface 17 optionally may include standard wireline interface and wireless interface (such as WI-FI interface), be commonly used in Communication connection is established between electronic device and other electronic equipments.
Optionally, electronic device can also include user interface, and user interface may include display (Display), defeated Enter unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate Referred to as display screen or display unit, for showing the information handled in an electronic and for showing visual user circle Face.
Fig. 2 is illustrated only with component 11~17 and electronic device, it will be appreciated by persons skilled in the art that Fig. 1 The structure shown does not constitute the restriction to electronic device, may include than illustrating less perhaps more components or combination Certain components or different component layouts.
In the embodiment of electronic device shown in Fig. 2, automatic test program is stored in memory 11;Processor 13 Following steps are realized when executing the automatic test program stored in memory 11:
Multiple test instructions are prestored, each test instruction is for completing corresponding test item;
Show that test interface, the test interface are equipped with multiple test run buttons, each test run button is corresponding One test instruction;
The starting request of the test run button is received, and obtains the corresponding test instruction of the test run button;
It sends the test instruction to be tested to test device, be transported so that the test device is instructed according to the test The corresponding test code of row completes automatic test;
The test result from the test device is received, and stores the test result;And
Show that the test result, the test result are shown in such a way that initial testing is reported, the initial testing report It accuses and is generated by the automation of test report Core Generator, and be stored in database profession, the database purchase and management automation The data generated in test process.
Further, following steps are also realized when the automatic test program is executed by the processor: being prestored each The version number of test item and test name;When completing automatic test, the title of the initial testing report is obtained;According to The version number of the test item and test name generate test report version number, and by the test report version number and institute The title for stating initial testing report is associated;It is referred to as according to the name that the test report version number reports with the initial testing Between corresponding relationship, generate have new title the first final test report, and will first final test report storage In the database.
Such as: the version number for prestoring test item is Orange V6.2.0, and test name is interface testing;To multiple surveys When examination report carries out parallel processing, the version number including test item and the test report version number of test name are generated, is referred to The version number of test item and test name are recombinated to obtain test report version number, test report version number can be survey The version number of examination project is located at before test name, and the version number for being also possible to test item is located at after test name, for example, The entitled 1001.HTML of test report file is obtained, the version number Orange V6.2.0 of test item, test name is interface Test report title 1001 and Orange V6.2.0 and interface testing are formed corresponding relationship, according to test item by test It is V6.2.0.jiekouceshi that version number and test name, which generate test report version number,.
Further, following steps are also realized when the automatic test program is executed by the processor: by described One final test, which is reported, is merged into integration test report with the second final test report being stored in the database.
Such as: user can be with the version number of input test project for Orange V6.3.0, and test name blank will All test report of Orange V6.3.0 version test item, which are merged into a test report, summarize access, convenient User consults test result.It is of course also possible to the obtained test report of the version number that user is inputted to different test items into Row merges, and client can be Orange V6.3.0 and Orange V6.2.1 with the version number of input test project, and test name is Interface testing, system testing and safety test, by the interface testing of Orange V6.3.0 version and Orange V6.2.1 version, System testing and safety test, which are merged into a test report, compares access, and user is facilitated to consult test result.
Further, first final test is reported and is reported with the second final test being stored in the database The step of being merged into integration test report include:
All time points of testing procedure in the first final test report are obtained, composition is gathered at the first time;
Obtain all time points of testing procedure in the second final test report, the second time of composition set;
The time intersection for obtaining the first time set and second time set, in the first final test report Obtain the first sending and receiving data and the first testing procedure title of corresponding various time points in announcement, and by first sending and receiving data and The first testing procedure name is referred to as the first data, and corresponding various time points are obtained in second final test report Second sending and receiving data and the second testing procedure title, and second sending and receiving data and the second testing procedure name are referred to as Second data;
First data and second data are stored by preset format to default file and generate the integration testing Report.
Further, the test instruction includes: the instruction of UI automatic test, the instruction of interface automatic test and app Energy automatic test instruction is respectively utilized to complete UI automatic test, interface automatic test and the test of app automatic performance.
Wherein, whether the various functions that user interface automatic test (UI automatic test) is used to test user interface reach Mark, the profile of user interface include: that whether the layout of functional module is reasonable, whether whole style is consistent, each control Whether placement location meets client's use habit etc..The automatic test of user interface is operated by the UI of the machine simulation mankind The test process automated.Interface is the agreement of software systems difference component part linking, such as between module and module Interface, the interface between front and rear end;From system architecture, interface influences model often by rear end staff development It encloses extensively, so usually will affect the progress of research and development, therefore progress interface automatic test seems especially heavy after interface goes wrong It wants.It includes: that memory, CPU, flow, electricity, starting speed, sliding speed, interface are cut that app automatic performance, which tests common index, Throw-over degree, the network speed interacted with server etc..
Wherein, the pre- storing module that described the step of prestoring multiple test instructions passes through automatization test system in electronic device It completes, different test items include UI automatic test, interface automatic test, the test of app automatic performance etc. for testing The automatic test project of app different function.
UI test run button, interface testing operation button and app test run is respectively equipped on the test interface to press Button respectively corresponds the instruction of UI automatic test, the instruction of interface automatic test and the test instruction of app automatic performance.
Wherein, automatization test system includes display module and setup module in the electronic device, and display module is used for Show test interface, setup module on test interface for being arranged multiple test run buttons.
The test run button is activated according to automatic test request, and the automatic test request can be flat by developing Platform is sent to the electronic device or triggers after receiving user's input by the electronic device.
When the electronic device is connect by wired or wireless mode with development platform, it is logical to can receive developer Cross the test request of development platform transmission.It can also directly receive and be asked by the test of the interactive interface input of the electronic device It asks.
For example, the automatic test request is to carry out UI automatic test, carry out interface automatic test or carry out app Automatic performance test.
The test code can automate generation, comprising the following steps:
Determine the method for testing to be measured of project to be tested;
It is operated by simulation imput device, generates case driving file and case driving file for the method for testing to be measured In the test code that is driven of each use-case.
The generating process for testing code is realized automation by the present invention, tests code without tester's hand-coding, Test development efficiency is improved, human input is reduced, reduces human cost, and tests the generation of code not tested person personnel Quality influence.
The data generated in the database purchase and management automation test process, including test data, test script, The update and automatic test management end wound of test record, automatic test management end when managing test data, test script The relevant information etc. of the test use cases, electronic device built.
The automatic test management end is integrated with the editor at interface and checks, the addition of test data, editor, deletion and It checks, test script is checked, inquiry, deletion and the refreshing of test execution, electronic device are increased newly, edit, delete and checked, Realize the visualized management of test record and test report.The electronic device includes memory, processor, the memory On be stored with the automatic test program that can be run on the processor, the automatic test program for complete it is described from Dynamicization test.
Wherein, the electronic device can be rack-mount server, blade server, tower server or cabinet-type clothes Business device etc. calculates equipment, and the electronic device can be independent server, is also possible to the server of multiple servers compositions Cluster.The electronic device may include, but be not limited only to, and connection memory, processor, net can be in communication with each other by system bus Network interface.
Test item one by one is become the test run button on test interface by the electronic device that the present embodiment proposes, is surveyed When examination, it is only necessary to which test instruction can be run by clicking test run button, and can check test on test interface Record and corresponding test report carry out tester to automatic test platform, interface, remove code Say, can be carried out testing either with or without code base, function integrated at present have UI automatic test, interface automatic test and The test of app automatic performance.The present embodiment by automatic test platform, interface, remove code, it is accurate to improve test Property, and it can accomplish that a people safeguards, more people use, and convenient test and significantly more efficient can utilize resource.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with automatic test program, the automatic test program can be executed by one or more processors, as follows to realize Operation:
Multiple test instructions are prestored, each test instruction is for completing corresponding test item;
Show that test interface, the test interface are equipped with multiple test run buttons, each test run button is corresponding One test instruction;
The starting request of the test run button is received, and obtains the corresponding test instruction of the test run button;
It sends the test instruction to be tested to test device, be transported so that the test device is instructed according to the test The corresponding test code of row completes automatic test;
The test result from the test device is received, and stores the test result;And
Show that the test result, the test result are shown in such a way that initial testing is reported, the initial testing report It accuses and is generated by the automation of test report Core Generator, and be stored in database profession, the database purchase and management automation The data generated in test process.
Computer readable storage medium specific embodiment of the present invention and above-mentioned electronic device and each embodiment of method are basic It is identical, do not make tired state herein.
Optionally, in other embodiments, the automatic test program 111 can also be divided into one or more Module, one or more module are stored in memory 11, and (the present embodiment is processor by one or more processors 13) performed to complete the present invention, the so-called module of the present invention is the series of computation machine program for referring to complete specific function Instruction segment, for describing the implementation procedure of automatic test program in an electronic.
It is the program of the automatic test program 111 in one embodiment of electronic device of the present invention for example, referring to shown in Fig. 3 Module diagram, in the embodiment, automatic test program 111 can be divided into pre- storing module 10, display module 20, receive Module 30, sending module 40, illustratively:
The pre- storing module 10, for prestoring multiple test instructions, each test instruction is for completing corresponding test item Mesh;
The display module 20, for showing that test interface, the test interface are equipped with multiple test run buttons, often The corresponding test instruction of one test run button;And the display test result, the test result are reported with initial testing Mode show that initial testing report is generated by the automation of test report Core Generator, and is stored in database profession, institute State the data generated in database purchase and management automation test process;
The receiving module 30, the starting for receiving the test run button is requested, and obtains the test run The corresponding test instruction of button;And the test result from the test device is received, and store the test result;
The sending module 40 is tested for sending the test instruction to test device, so that the test fills It sets and corresponding test code completion automatic test is run according to test instruction.
The program modules such as the pre- storing module 10, display module 20, receiving module 30, sending module 40 be performed it is real Existing functions or operations step is substantially the same with above-described embodiment, and details are not described herein.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of automated testing method, it is applied in electronic device, it is characterised in that: the automated testing method includes:
Multiple test instructions are prestored, each test instruction is for completing corresponding test item;
Show that test interface, the test interface are equipped with multiple test run buttons, each test run button corresponding one is surveyed Examination instruction;
The starting request of the test run button is received, and obtains the corresponding test instruction of the test run button;
It sends the test instruction to test device to be tested, so that the test device is according to test instruction operation pair The test code answered completes automatic test;
The test result from the test device is received, and stores the test result;And
Show that the test result, the test result are shown in such a way that initial testing is reported, the initial testing report is logical It crosses the automation of test report Core Generator to generate, and is stored in database profession, the database purchase and management automation test The data generated in the process.
2. automated testing method as described in claim 1, which is characterized in that the automated testing method further include:
Prestore version number and the test name of each test item;
When completing automatic test, the title of the initial testing report is obtained;
According to the version number of the test item and test name, test report version number is generated, and by the test report version This number and the initial testing report title be associated;
The corresponding relationship between title reported according to the test report version number and the initial testing, generating has newly First final test of title is reported, and first final test report is stored in the database.
3. automated testing method as claimed in claim 2, which is characterized in that the automated testing method further include:
First final test is reported and is merged into integrated survey with the second final test report being stored in the database Examination report.
4. automated testing method as claimed in claim 3, which is characterized in that report and store first final test The second final test in the database reports that the step of being merged into integration test report includes:
All time points of testing procedure in the first final test report are obtained, composition is gathered at the first time;
Obtain all time points of testing procedure in the second final test report, the second time of composition set;
The time intersection for obtaining the first time set and second time set, in first final test report Obtain the first sending and receiving data and the first testing procedure title of corresponding various time points, and by first sending and receiving data and described First testing procedure name is referred to as the first data, and the second of corresponding various time points is obtained in second final test report Sending and receiving data and the second testing procedure title, and second sending and receiving data and the second testing procedure name are referred to as second Data;
First data and second data are stored by preset format to default file and generate the integration test report.
5. automated testing method as described in claim 1, which is characterized in that the test instruction includes: that UI automation is surveyed Examination instruction, the instruction of interface automatic test and the test instruction of app automatic performance, are respectively utilized to complete UI automatic test, connect Mouth automatic test and the test of app automatic performance.
6. a kind of electronic device, which is characterized in that the electronic device includes memory and processor, is stored on the memory There is the automatic test program that can be run on the processor, it is real when the automatic test program is executed by the processor Existing following steps:
Multiple test instructions are prestored, each test instruction is for completing corresponding test item;
Show that test interface, the test interface are equipped with multiple test run buttons, each test run button corresponding one is surveyed Examination instruction;
The starting request of the test run button is received, and obtains the corresponding test instruction of the test run button;
It sends the test instruction to test device to be tested, so that the test device is according to test instruction operation pair The test code answered completes automatic test;
The test result from the test device is received, and stores the test result;And
Show that the test result, the test result are shown in such a way that initial testing is reported, the initial testing report is logical It crosses the automation of test report Core Generator to generate, and is stored in database profession, the database purchase and management automation test The data generated in the process.
7. electronic device as claimed in claim 6, which is characterized in that the automatic test program is executed by the processor When also realize following steps:
Prestore version number and the test name of each test item;
When completing automatic test, the title of the initial testing report is obtained;
According to the version number of the test item and test name, test report version number is generated, and by the test report version This number and the initial testing report title be associated;
The corresponding relationship between title reported according to the test report version number and the initial testing, generating has newly First final test of title is reported, and first final test report is stored in the database.
8. electronic device as claimed in claim 7, which is characterized in that the automatic test program is executed by the processor When also realize following steps:
First final test is reported and is merged into integrated survey with the second final test report being stored in the database Examination report.
9. electronic device as claimed in claim 8, which is characterized in that first final test is reported and is stored in is described The second final test in database reports that the step of being merged into integration test report includes:
All time points of testing procedure in the first final test report are obtained, composition is gathered at the first time;
Obtain all time points of testing procedure in the second final test report, the second time of composition set;
The time intersection for obtaining the first time set and second time set, in first final test report Obtain the first sending and receiving data and the first testing procedure title of corresponding various time points, and by first sending and receiving data and described First testing procedure name is referred to as the first data, and the second of corresponding various time points is obtained in second final test report Sending and receiving data and the second testing procedure title, and second sending and receiving data and the second testing procedure name are referred to as second Data;
First data and second data are stored by preset format to default file and generate the integration test report.
10. a kind of computer readable storage medium, which is characterized in that be stored with automation on the computer readable storage medium Test program, the automatic test program can be executed by one or more processor, to realize as in claim 1 to 5 The step of described in any item automated testing methods.
CN201910418955.1A 2019-05-20 2019-05-20 Automated testing method, device and computer readable storage medium Pending CN110275826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910418955.1A CN110275826A (en) 2019-05-20 2019-05-20 Automated testing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910418955.1A CN110275826A (en) 2019-05-20 2019-05-20 Automated testing method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110275826A true CN110275826A (en) 2019-09-24

Family

ID=67960045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910418955.1A Pending CN110275826A (en) 2019-05-20 2019-05-20 Automated testing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110275826A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769248A (en) * 2019-09-27 2020-02-07 深圳市九洲电器有限公司 Set top box testing method and device and electronic equipment
CN111159048A (en) * 2019-12-30 2020-05-15 深圳Tcl数字技术有限公司 Application program testing method and device and computer readable storage medium
CN111382084A (en) * 2020-05-08 2020-07-07 北京金山云网络技术有限公司 Test method and device and electronic equipment
CN111737073A (en) * 2020-08-26 2020-10-02 鹏城实验室 Automatic testing method, device, equipment and medium
CN112557870A (en) * 2020-11-27 2021-03-26 中国兵器装备集团自动化研究所 Multi-module main control board testing device
CN112839323A (en) * 2020-12-31 2021-05-25 Tcl通力电子(惠州)有限公司 Bluetooth device testing method and device, terminal and computer readable storage medium
CN113485945A (en) * 2021-09-07 2021-10-08 深圳市信润富联数字科技有限公司 Method and device for testing mobile phone interface, terminal equipment and storage medium
CN113567153A (en) * 2021-09-23 2021-10-29 深圳市星卡软件技术开发有限公司 One-key action test method and device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140109053A1 (en) * 2012-10-16 2014-04-17 Microsoft Identifying high impact bugs
CN105335293A (en) * 2015-11-30 2016-02-17 努比亚技术有限公司 Automatic testing system and method based on parallel ports
CN108459956A (en) * 2017-11-29 2018-08-28 平安科技(深圳)有限公司 Test report automatic management method, apparatus, equipment and storage medium
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140109053A1 (en) * 2012-10-16 2014-04-17 Microsoft Identifying high impact bugs
CN105335293A (en) * 2015-11-30 2016-02-17 努比亚技术有限公司 Automatic testing system and method based on parallel ports
CN108459956A (en) * 2017-11-29 2018-08-28 平安科技(深圳)有限公司 Test report automatic management method, apparatus, equipment and storage medium
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769248A (en) * 2019-09-27 2020-02-07 深圳市九洲电器有限公司 Set top box testing method and device and electronic equipment
CN111159048A (en) * 2019-12-30 2020-05-15 深圳Tcl数字技术有限公司 Application program testing method and device and computer readable storage medium
CN111382084A (en) * 2020-05-08 2020-07-07 北京金山云网络技术有限公司 Test method and device and electronic equipment
CN111737073A (en) * 2020-08-26 2020-10-02 鹏城实验室 Automatic testing method, device, equipment and medium
CN111737073B (en) * 2020-08-26 2020-12-04 鹏城实验室 Automatic testing method, device, equipment and medium
CN112557870A (en) * 2020-11-27 2021-03-26 中国兵器装备集团自动化研究所 Multi-module main control board testing device
CN112839323A (en) * 2020-12-31 2021-05-25 Tcl通力电子(惠州)有限公司 Bluetooth device testing method and device, terminal and computer readable storage medium
CN113485945A (en) * 2021-09-07 2021-10-08 深圳市信润富联数字科技有限公司 Method and device for testing mobile phone interface, terminal equipment and storage medium
CN113567153A (en) * 2021-09-23 2021-10-29 深圳市星卡软件技术开发有限公司 One-key action test method and device and computer equipment

Similar Documents

Publication Publication Date Title
CN110275826A (en) Automated testing method, device and computer readable storage medium
CN109446218A (en) SQL statement generation method, device and computer readable storage medium
US7703027B2 (en) Merging graphical programs
CN103324470B (en) A kind of method and apparatus of Web system generation
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
CN109302522A (en) Test method, device and computer system and medium
CN108255709A (en) Script tests method, apparatus, terminal device and the storage medium of written in code
CN110287097A (en) Batch testing method, device and computer readable storage medium
US20060020931A1 (en) Method and apparatus for managing complex processes
CN104461898A (en) Application testing method, center control server, test terminal and system
CN108958992A (en) test method and device
CN107357593A (en) Source code file construction method, device, electric terminal and readable storage medium storing program for executing
CN108717391A (en) Monitoring device, method and the computer readable storage medium of test process
CN103257852B (en) The method and apparatus that a kind of development environment of distribution application system is built
CN104679500B (en) Method and device for realizing automatic generation of entity class
CN108959067A (en) Test method, device and the computer readable storage medium of search engine
CN110059011A (en) Interface test method, device, medium and electronic equipment
CN110019158A (en) A kind of method and apparatus of monitoring data quality
CN109992496A (en) A kind of data processing method and device for automatic test
CN109960639A (en) A kind of method and apparatus generating test case
CN103064780B (en) A kind of method of software test and device
CN109814957A (en) A kind of label addition method and device for IOS system
CN109144843A (en) The method and apparatus for testing environment deployment
US8700374B1 (en) System and method of using an active link in a state programming environment to locate an element in a graphical programming environment
CN109857473A (en) A kind of loading method and device of page data

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