CN105159833A - Automatic testing device and method - Google Patents

Automatic testing device and method Download PDF

Info

Publication number
CN105159833A
CN105159833A CN201510644529.1A CN201510644529A CN105159833A CN 105159833 A CN105159833 A CN 105159833A CN 201510644529 A CN201510644529 A CN 201510644529A CN 105159833 A CN105159833 A CN 105159833A
Authority
CN
China
Prior art keywords
test
tested
project
detecting information
authority
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
CN201510644529.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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510644529.1A priority Critical patent/CN105159833A/en
Publication of CN105159833A publication Critical patent/CN105159833A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic testing device. The automatic testing device comprises an acquisition module for obtaining an item to be tested corresponding to a test request sent by a terminal and the test authority of the item to be tested when the test request is received, a first transmission module for transmitting a test design interface corresponding to the item to be tested to the terminal based on the test authority, a running module for running the item to be tested and a test script corresponding to the test authority based on test information sent by the terminal when the test information is received, and a second transmission module for transmitting a running result of the test script to the terminal when the running of the test script is completed. The invention also discloses an automatic testing method. The automatic testing device realizes the automatic testing of the item to be tested according to the test request, and therefore, a tester can realize the automatic testing of the item to be tested by just simply designing a testing example without coding the test script, the requirements on the ability of the tester are reduced, and the cost of learning is reduced.

Description

Automatic test device and method
Technical field
The present invention relates to communication technical field, particularly relate to a kind of automatic test device and method.
Background technology
Along with the development of Software Industry, more and more higher to the requirement of software quality, therefore, also require more and more higher to the requirement of software test.Software test utilizes testing tool to carry out function and performance test according to testing scheme and use-case to product, carries out assessment and analysis to test produced problem, to guarantee that the product developed is applicable to demand.
At present, network data equipment is being carried out in the process of automatic test, usually tester is needed to grasp script, then coding and the debugging of test script is carried out according to the grammar request of script, a lot of specific function, order and parameter is needed to be grasped owing to writing automatic test script, and all need when software test each time to write corresponding automatic test script according to test case, cause the Capability Requirement of this automated testing method to tester higher, improve learning cost.
Summary of the invention
The invention provides a kind of automatic test device and method, be intended to solve the high technical matters of automatic test course learning cost.
For achieving the above object, a kind of automatic test device provided by the invention, described automatic test device comprises:
Acquisition module, for when receiving the test request that terminal sends, obtains the test authority of project to be tested corresponding to described test request and described project to be tested;
First sending module, for sending test design interface corresponding to described project to be tested based on described test authority to described terminal, for the detecting information of user based on the described project to be tested of test design interface input of terminal demonstration, wherein, described detecting information comprises test data and the element locating information of described project to be tested;
Run module, for when receiving the detecting information that described terminal sends, running described project to be tested based on described detecting information and testing test script corresponding to authority;
Second sending module, for when described test script has run, has sent the operation result of described test script to described terminal.
Preferably, described operation module comprises:
Determining unit, for when receiving the detecting information that described terminal sends, determines that whether described project to be tested and test script corresponding to test authority be the test script of fixed time test;
Running unit, for when described test script is the test script of fixed time test, test script described in timing operation.
Preferably, described automatic test device also comprises:
Generation module, during for obtaining request in the test report receiving the project described to be tested that terminal sends, generating the test report of described project to be tested, and described test report is sent to described terminal based on described operation result.
Preferably, described automatic test device also comprises:
Memory module, for when receiving the detecting information that described terminal sends, stores described detecting information.
Preferably, described first sending module comprises:
Transmitting element, during for there is described test event and test detecting information corresponding to authority in the server, send based on described test authority comprise described detecting information test modifications interface to described terminal, for user based on terminal demonstration test modifications interface modification described in the test data of detecting information and element locating information;
Updating block, for when receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update;
Described operation module is also for running described project to be tested and testing test script corresponding to authority based on the detecting information after renewal.
In addition, for achieving the above object, the present invention also provides a kind of automated testing method, and described automated testing method comprises the following steps:
When receiving the test request that terminal sends, determine the test authority of the project to be tested that described test request is corresponding and described project to be tested;
Test design interface corresponding to described project to be tested is sent to described terminal based on described test authority, for the detecting information of user based on the described project to be tested of test design interface input of terminal demonstration, wherein, described detecting information comprises test data and the element locating information of described project to be tested;
When receiving the detecting information that described terminal sends, running described project to be tested based on described detecting information and testing test script corresponding to authority;
When described test script has run, send the operation result of described test script to described terminal.
Preferably, when receiving the detecting information that described terminal sends, the step running described project to be tested and test script corresponding to test authority based on described detecting information comprises:
When receiving the detecting information that described terminal sends, determine that whether described project to be tested and test script corresponding to test authority be the test script of fixed time test;
When test script is the test script of fixed time test, test script described in timing operation.
Preferably, when receiving the detecting information that described terminal sends, after running described project to be tested based on described detecting information and testing the step of test script corresponding to authority, described automated testing method also comprises:
When the test report receiving the project described to be tested that terminal sends obtains request, generate the test report of described project to be tested based on described operation result, and described test report is sent to described terminal.
Preferably, test design interface corresponding to described project to be tested is sent to described terminal based on described test authority, for user based on terminal demonstration test design interface input described project to be tested detecting information step after, described automated testing method also comprises:
When receiving the detecting information that described terminal sends, store described detecting information.
Preferably, send test design interface corresponding to described project to be tested to described terminal based on described test authority, comprise based on the step of the detecting information of the described project to be tested of test design interface input of terminal demonstration for user:
When there is described test event and test detecting information corresponding to authority in the server, send based on described test authority comprise described detecting information test modifications interface to described terminal, for user based on terminal demonstration test modifications interface modification described in the test data of detecting information and element locating information;
When receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update;
When receiving the detecting information that described terminal sends, run described project to be tested based on described detecting information and test script corresponding to test authority comprises: run described project to be tested and test script corresponding to test authority based on the detecting information after upgrading.
The present invention is by when receiving the test request that terminal sends, obtain the test authority of project to be tested corresponding to test request and project to be tested, then test design interface corresponding to project to be tested is sent to described terminal based on test authority, then when receiving the detecting information that terminal sends, when receiving the detecting information that terminal sends, run project to be tested based on detecting information and test test script corresponding to authority, finally send the operation result of test script to described terminal, achieve the automatic test carrying out project to be tested according to test request, tester is made only to need to carry out the simple designs of test case and the coding without the need to carrying out test script can realize the automatic test of project to be tested, reduce the requirement to tester's ability, decrease learning cost, further, the test authority that the present embodiment is corresponding according to test request carries out corresponding automatic test, make same test event can carry out multiple test simultaneously, improve the efficiency of test.
Accompanying drawing explanation
The hardware structure schematic diagram of Fig. 1 involved by embodiment of the present invention automatic test device;
Fig. 2 is the high-level schematic functional block diagram of automatic test device first embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of automatic test device second embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of automatic test device of the present invention 3rd embodiment;
Fig. 5 is the refinement high-level schematic functional block diagram running module in Fig. 2;
Fig. 6 is the refinement high-level schematic functional block diagram of the first sending module in Fig. 2;
Fig. 7 is the schematic flow sheet of automated testing method first embodiment of the present invention;
Fig. 8 is the schematic flow sheet of automated testing method second embodiment of the present invention;
Fig. 9 is the refinement schematic flow sheet of the step of testing results script of the present invention;
Figure 10 is the refinement schematic flow sheet that the present invention sends the step of test design interface.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Wherein, the present embodiment automatic test device can be carried on PC end, also can be carried on the electric terminal that panel computer etc. can use testing software.Hardware structure involved by this automatic test device can be as shown in Figure 1.
Fig. 1 shows the hardware structure involved by embodiment of the present invention automatic test device.As shown in Figure 1, the hardware involved by described automatic test device comprises: processor 1001, such as CPU, network interface 1004, user interface 1003, storer 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication in this automatic test device between each building block.User interface 1003 can comprise the assemblies such as display screen (Display), keyboard (Keyboard), mouse, for receiving the information of user's input, and the information of reception is sent to processor 1005 processes.Optional user interface 1003 can also comprise wireline interface, the wave point of standard.Network interface 1004 optionally can comprise wireline interface, the wave point (as WI-FI interface) of standard.Storer 1005 can be high-speed RAM storer, also can be stable storer (non-volatilememory), such as magnetic disk memory.Storer 1005 can also be optionally the memory storage independent of aforementioned processor 1001.Operating system, network communication module, Subscriber Interface Module SIM can be comprised as in a kind of storer 1005 of computer-readable storage medium.
In the hardware involved by the automatic test device shown in Fig. 1, network interface 1004 is mainly used in connecting application platform, carries out data communication with application platform; User interface 1003 is mainly used in connecting client, carries out data communication with client, receives information and the instruction of client input; And processor 1001 may be used for calling the test script program etc. stored in storer 1005.
Based on above-mentioned automatic test device hardware configuration, automatic test device of the present invention and each embodiment of method are proposed.
The invention provides a kind of automatic test device.With reference to the high-level schematic functional block diagram that Fig. 2, Fig. 2 are automatic test device first embodiment of the present invention.
In the present embodiment, this automatic test device comprises:
Acquisition module 10, for when receiving the test request that terminal sends, determines the test authority of the project to be tested that described test request is corresponding and described project to be tested;
Wherein, the automatic test device of the present embodiment is the cluster server based on high performance nginx and tomcat configuration, this server end encapsulate main flow web application test selenium and webpage in drive software webdriver framework carry out page loading, many browsers can be carried out and load the compatibility test that can realize page function, selenium framework supports several operation systems platform when performing simultaneously, solve multi-platform compatibility issue, this server is by the self-defined daily record of configuration log4j, be convenient to the ruuning situation recording script, and use testng framework to realize data-driven and test report integration to test script, wherein, nginx is the http server of a performance oriented design, have that to occupy internal memory few, the advantages such as stability is high, tomcat is the Web Application Server of a free open source code, selenium is an instrument tested for web application, runs directly in browser, log4j is an open source code project of Apache, is control desk, file, GUI assembly by the destination using Log4j can control log information conveying, testng is a kind of test frame of java application.
In the present embodiment, when terminal/client-requested adds test event, server can distribute a unique mark ID to each test event, then when the ID that the tester distributing this test event is corresponding, can mark the test event authority that each tester has by a field; When receiving the test request that terminal sends, acquisition module 10 obtains the test authority of project to be tested corresponding to this test request and project to be tested, namely when server receives the test request that self terminal sends over, which test event what first judge tester's request for test is, obtains the test authority of this tester according to test request and test event.
First sending module 20, for sending test design interface corresponding to described project to be tested based on described test authority to described terminal, for the detecting information of user based on the described project to be tested of test design interface input of terminal demonstration, wherein, described detecting information comprises test data and the element locating information of described project to be tested;
The project to be tested that server can obtain according to acquisition module 10 and test permission build test design interface, this test design interface comprises the element locating information input frame/interface of the test elements of the test data input frame/interface corresponding with project to be tested and project to be tested, wherein, test data input frame/interface is used for the test data inputting this project to be tested for user, element locating information input frame/interface is for information such as the paths for user's input test element, so that ensure can after locating this test elements accurately when project to be tested is tested, certainly, when server stores has the detecting information of this project to be tested, can test design interface can also comprise detecting information deletion, search, revise option, tester can by deleting, the detecting information of amendment option to server stores delete or retouching operation.This test design interface is sent to terminal by the first sending module 20, after the test design interface received shows by terminal, tester can according to the routing information of the test design interface input test data of terminal demonstration and element locating information and element, then receive design complete instruction such as tester's hit testing complete option trigger design complete instruction time, the detecting information of tester is sent to the automatic test device of server and the present embodiment by terminal.
Run module 30, for when receiving the detecting information that described terminal sends, running described project to be tested based on described detecting information and testing test script corresponding to authority;
In the present embodiment, server has test script corresponding to the functional module of each test event, test script corresponding to the test authority that this project to be tested is different is not quite similar, therefore, when receiving the detecting information that described terminal sends, running module 30 and run project to be tested based on detecting information and test test script corresponding to authority.
Second sending module 40, for when described test script has run, has sent the operation result of described test script to described terminal.
When running module 30 and having run project to be tested according to detecting information and tested test script corresponding to authority, the operation result of test script is sent to terminal by the second sending module 40, certainly, when there is mistake in test script operational process, the information such as the program corresponding by this mistake and runnable interface carry out sectional drawing, finally this sectional drawing are sent to terminal together with operation result.
Further, in other embodiments, with reference to Fig. 3, this automatic test device also comprises:
Generation module 50, during for obtaining request in the test report receiving the project described to be tested that terminal sends, generating the test report of described project to be tested, and described test report is sent to described terminal based on described operation result.
Wherein, test report comprises the sectional drawing etc. of the mistake occurred in the operation result of test script and operational process, when receiving test report and obtaining request, generation module 50 generates the test report of project to be tested based on operation result, and test report is sent to terminal, decrease the transmission of server and end message, and when tester can be avoided not need test report, the situation sending test report occurs, certainly, also the test design operation of described project to be tested can be carried out user based on the test design interface of terminal demonstration, carry out the selection the need of obtaining test report, namely the test design interface of terminal demonstration is provided with the selection option obtaining test report.
Further, in other embodiments, with reference to Fig. 4, this automatic test device also comprises: memory module 60, for when receiving the detecting information that described terminal sends, stores described detecting information.
The detecting information received stores by memory module 60, make follow-up when same test (identical function) is carried out to this project to be tested, can carry out adopting this detecting information to test, or after this detecting information is revised accordingly, amended detecting information is adopted to test, certainly, when the functional test that this detecting information is corresponding is passed through, tester can directly delete this detecting information.
The automatic test device of the present embodiment is a cluster server based on nginx+tomcat configuration, the application program of this automatic test is installed in each server wherein, therefore cluster server can be passed through, can realize many concurrent operations, namely multiple test assignments of same project perform simultaneously.Such as, when tester A1 and A2 is by different terminal connection servers, server is according to difference test permission build two thread B1 and B2 of tester A1 and A2, and to make tester A1 and A2 complete different tests, and the test between tester A1 and A2 is independent of each other; During at tester A1 with by terminal connection server, server is according to the test permission build thread B1 of tester A1, and then complete project testing corresponding to tester A1, during at tester A2 with by terminal connection server, server according to the test permission build thread B of tester A2, and then completes project testing corresponding to tester A2.
The present embodiment is by when receiving the test request that terminal sends, acquisition module 10 obtains the test authority of project to be tested corresponding to test request and project to be tested, then the first sending module 20 sends test design interface corresponding to project to be tested to described terminal based on test authority, then when receiving the detecting information that terminal sends, when receiving the detecting information that terminal sends, run module 30 run project to be tested based on detecting information and test test script corresponding to authority, the second last sending module 40 sends the operation result of test script to described terminal, achieve the automatic test carrying out project to be tested according to test request, tester is made only to need to carry out the simple designs of test case and the coding without the need to carrying out test script can realize the automatic test of project to be tested, reduce the requirement to tester's ability, decrease learning cost, further, the test authority that the present embodiment is corresponding according to test request carries out corresponding automatic test, make same test event can carry out multiple test simultaneously, improve the efficiency of test.
Propose the second embodiment of automatic test device of the present invention based on the first embodiment, with reference to Fig. 5, in the present embodiment, run module 30 and comprise:
Running unit 31, for when receiving the detecting information that described terminal sends, determines that whether described project to be tested and test script corresponding to test authority be the test script of fixed time test;
When receiving the detecting information that described terminal sends, determine that whether project to be tested and test script corresponding to test authority be the script of fixed time test, for example, some specific test script of project to be tested needs test once every day or some specific test script needss of project to be tested are every when for example within 6 hours, testing one time at regular intervals, and these test scripts are the script of fixed time test.
Row unit 32, for when described test script is the test script of fixed time test, test script described in timing operation.
When project to be tested and test script corresponding to test authority need fixed time test, for example, some specific test script of project to be tested needs test once every day or some specific test script needs of project to be tested are often for example tested once at regular intervals for 6 hours, now this test script of running unit 32 timing operation.
The present embodiment is by when receiving the detecting information that terminal sends, determining unit 31 determines that whether project to be tested and test script corresponding to test authority be the test script of fixed time test, when terminating in that test script is the test script of fixed time test, this test script of running unit 32 timing operation, achieve the timing operation of test script, avoid user occur at every turn instruction make server run need timing operation test script, decrease the workload of tester, improve the efficiency of automatic test.
Propose the 3rd embodiment of automatic test device of the present invention based on the first embodiment, with reference to Fig. 6, in the present embodiment, the first sending module 20 comprises:
Transmitting element 21, during for there is described project to be tested and test detecting information corresponding to authority in the server, send based on described test authority comprise described detecting information test modifications interface to described terminal, for user based on terminal demonstration test modifications interface modification described in the test data of detecting information and element locating information;
Time in the server by test event and test detecting information corresponding to authority, this detecting information of surface tested mistake, but tester is unsatisfied with test result or be unsatisfied with the test result of these other functions of project to be tested, tester needs again again to test after this project testing to be tested software modification that for example project to be tested is corresponding, now, the detecting information possibility that tester treats this functional test of test event is constant, or change little, therefore transmitting element 21 sends the test modifications interface extremely described terminal comprising detecting information based on test authority, tester revises the test data in detecting information and element locating information accordingly according to the test modifications interface of terminal demonstration.
Updating block 22, for when receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update;
Updating block 22, according to amended test data and element positioning information update detecting information, directly calls for follow-up.
Run module 30 also for running described project to be tested based on the detecting information after renewal and testing test script corresponding to authority.
In the present embodiment, during by there is project to be tested and test detecting information corresponding to authority in the server, transmitting element 21 comprises the test modifications interface of detecting information extremely based on the transmission of test authority, then when receiving amended test data and the element locating information of terminal transmission, updating block 22 is based on detecting information described in amended test data and element positioning information update, finally run module run described project to be tested based on the detecting information after renewal and test test script corresponding to authority, achieve the amendment of detecting information and treat test event according to amended detecting information and test, decrease the data input quantity of tester, further increase the efficiency of project testing.
The present invention further provides a kind of automated testing method.With reference to the schematic flow sheet that Fig. 7, Fig. 7 are automated testing method first embodiment of the present invention.
In the present embodiment, this automated testing method comprises:
Step S10, when receiving the test request that terminal sends, determines the test authority of the project to be tested that described test request is corresponding and described project to be tested;
Wherein, the automated testing method of the present embodiment is applied to the cluster server based on high performance nginx and tomcat configuration, this server end encapsulate main flow web application test selenium and webpage in drive software webdriver framework carry out page loading, many browsers can be carried out and load the compatibility test that can realize page function, selenium framework supports several operation systems platform when performing simultaneously, solve multi-platform compatibility issue, this server is by the self-defined daily record of configuration log4j, be convenient to the ruuning situation recording script, and use testng framework to realize data-driven and test report integration to test script, wherein, nginx is the http server of a performance oriented design, have that to occupy internal memory few, the advantages such as stability is high, tomcat is the Web Application Server of a free open source code, selenium is an instrument tested for web application, runs directly in browser, log4j is an open source code project of Apache, is control desk, file, GUI assembly by the destination using Log4j can control log information conveying, testng is a kind of test frame of java application.
In the present embodiment, when terminal/client-requested adds test event, server can distribute a unique mark ID to each test event, then when the ID that the tester distributing this test event is corresponding, can mark the test event authority that each tester has by a field; The test authority of project to be tested corresponding to this test request and project to be tested is obtained when receiving the test request that terminal sends, namely when server receives the test request that self terminal sends over, which test event what first judge tester's request for test is, obtains the test authority of this tester according to test request and test event.
Step S20, test design interface corresponding to described project to be tested is sent to described terminal based on described test authority, for the detecting information of user based on the described project to be tested of test design interface input of terminal demonstration, wherein, described detecting information comprises test data and the element locating information of described project to be tested;
Server can according to the project to be tested obtained and test permission build test design interface, this test design interface comprises the element locating information input frame/interface of the test elements of the test data input frame/interface corresponding with project to be tested and project to be tested, wherein, test data input frame/interface is used for the test data inputting this project to be tested for user, element locating information input frame/interface is used for the information such as the path of confession user input test element, to ensure to locate after accurately when project to be tested is tested this test elements; Certainly, when server stores has the detecting information of this project to be tested, can test design interface can also comprise detecting information deletion, search, revise option, tester can by deleting, the detecting information of amendment option to server stores delete or retouching operation.This test design interface is sent to terminal by server, after the test design interface received shows by terminal, tester can according to the routing information of the test design interface input test data of terminal demonstration and element locating information and element, then receive design complete instruction such as tester's hit testing complete option trigger design complete instruction time, the detecting information of tester is sent to the automatic test device of server and the present embodiment by terminal.
Step S30, when receiving the detecting information that described terminal sends, running described project to be tested based on described detecting information and testing test script corresponding to authority;
Server has test script corresponding to the functional module of each test event, test script corresponding to the test authority that this project to be tested is different is not quite similar, therefore, when receiving the detecting information that described terminal sends, server runs project to be tested based on detecting information and tests test script corresponding to authority.
Step S40, when described test script has run, has sent the operation result of described test script to described terminal.
When having run project to be tested and test test script corresponding to authority according to detecting information, the operation result of test script is sent to terminal by server, certainly, when there is mistake in test script operational process, the information such as the program corresponding by this mistake and runnable interface carry out sectional drawing, finally this sectional drawing are sent to terminal together with operation result.
Further, in other embodiments, with reference to Fig. 8, after the step s 40, this automated testing method also comprises: step S50, when the test report receiving the project described to be tested that terminal sends obtains request, generate the test report of described project to be tested based on described operation result, and described test report is sent to described terminal.
Wherein, test report comprises the sectional drawing etc. of the mistake occurred in the operation result of test script and operational process, when receiving test report and obtaining request, the test report of project to be tested is generated based on operation result, and test report is sent to terminal, decrease the transmission of server and end message, and when tester can be avoided not need test report, the situation sending test report occurs, certainly, also the test design operation of described project to be tested can be carried out user based on the test design interface of terminal demonstration, carry out the selection the need of obtaining test report, namely the test design interface of terminal demonstration is provided with the selection option obtaining test report.
Further, in other embodiments, after step S20, this automated testing method also comprises: when receiving the detecting information that described terminal sends, store described detecting information.
The detecting information received stores by server, make follow-up when same test (identical function) is carried out to this project to be tested, can carry out adopting this detecting information to test, or after this detecting information is revised accordingly, amended detecting information is adopted to test, certainly, when the functional test that this detecting information is corresponding is passed through, tester can directly delete this detecting information.
The present embodiment is by when receiving the test request that terminal sends, obtain the test authority of project to be tested corresponding to test request and project to be tested, then test design interface corresponding to project to be tested is sent to described terminal based on test authority, then when receiving the detecting information that terminal sends, when receiving the detecting information that terminal sends, run project to be tested based on detecting information and test test script corresponding to authority, finally send the operation result of test script to described terminal, achieve the automatic test carrying out project to be tested according to test request, tester is made only to need to carry out the simple designs of test case and the coding without the need to carrying out test script can realize the automatic test of project to be tested, reduce the requirement to tester's ability, decrease learning cost, further, the test authority that the present embodiment is corresponding according to test request carries out corresponding automatic test, make same test event can carry out multiple test simultaneously, improve the efficiency of test.
Propose the second embodiment of automated testing method of the present invention based on the first embodiment, with reference to Fig. 9, in the present embodiment, step S30 comprises:
Step S31, when receiving the detecting information that described terminal sends, determines that whether described project to be tested and test script corresponding to test authority be the test script of fixed time test;
When receiving the detecting information that described terminal sends, determine that whether project to be tested and test script corresponding to test authority be the script of fixed time test, for example, some specific test script of project to be tested needs test once every day or some specific test script needss of project to be tested are every when for example within 6 hours, testing one time at regular intervals, and these test scripts are the script of fixed time test.
Step S32, when test script is the test script of fixed time test, test script described in timing operation.
When project to be tested and test script corresponding to test authority need fixed time test, for example, some specific test script of project to be tested needs test once every day or some specific test script needs of project to be tested are often for example tested once at regular intervals for 6 hours, now this test script of server timing operation.
The present embodiment is by when receiving the detecting information that terminal sends, determine that whether project to be tested and test script corresponding to test authority be the test script of fixed time test, when terminating in that test script is the test script of fixed time test, this test script of timing operation, achieve the timing operation of test script, avoid user occur at every turn instruction make server run need timing operation test script, decrease the workload of tester, improve the efficiency of automatic test.
Propose the 3rd embodiment of automated testing method of the present invention based on the first embodiment, with reference to Figure 10, in the present embodiment, step S20 comprises:
Step S21, when there is described test event and test detecting information corresponding to authority in the server, send based on described test authority comprise described detecting information test modifications interface to described terminal, for user based on terminal demonstration test modifications interface modification described in the test data of detecting information and element locating information;
Time in the server by test event and test detecting information corresponding to authority, this detecting information of surface tested mistake, but tester is unsatisfied with test result or be unsatisfied with the test result of these other functions of project to be tested, tester needs again again to test after this project testing to be tested software modification that for example project to be tested is corresponding, now, the detecting information possibility that tester treats this functional test of test event is constant, or change little, therefore server sends the test modifications interface extremely described terminal comprising detecting information based on test authority, tester revises the test data in detecting information and element locating information accordingly according to the test modifications interface of terminal demonstration.
Step S22, when receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update;
Step S30 comprises: run described project to be tested based on the detecting information after upgrading and test test script corresponding to authority.
In the present embodiment, when there is project to be tested and test detecting information corresponding to authority in the server, the test modifications interface of detecting information is comprised extremely based on the transmission of test authority, then when receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update, finally run module run described project to be tested based on the detecting information after renewal and test test script corresponding to authority, achieve the amendment of detecting information and treat test event according to amended detecting information and test, decrease the data input quantity of tester, further increase the efficiency of project testing.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. an automatic test device, is characterized in that, described automatic test device comprises:
Acquisition module, for when receiving the test request that terminal sends, obtains the test authority of project to be tested corresponding to described test request and described project to be tested;
First sending module, for sending test design interface corresponding to described project to be tested based on described test authority to described terminal, for the detecting information of user based on the described project to be tested of test design interface input of terminal demonstration, wherein, described detecting information comprises test data and the element locating information of described project to be tested;
Run module, for when receiving the detecting information that described terminal sends, running described project to be tested based on described detecting information and testing test script corresponding to authority;
Second sending module, for when described test script has run, has sent the operation result of described test script to described terminal.
2. automatic test device as claimed in claim 1, it is characterized in that, described operation module comprises:
Determining unit, for when receiving the detecting information that described terminal sends, determines that whether described project to be tested and test script corresponding to test authority be the test script of fixed time test;
Running unit, for when described test script is the test script of fixed time test, test script described in timing operation.
3. automatic test device as claimed in claim 1, it is characterized in that, described automatic test device also comprises:
Generation module, during for obtaining request in the test report receiving the project described to be tested that terminal sends, generating the test report of described project to be tested, and described test report is sent to described terminal based on described operation result.
4. automatic test device as claimed in claim 1, is characterized in that described automatic test device also comprises:
Memory module, for when receiving the detecting information that described terminal sends, stores described detecting information.
5. the automatic test device as described in any one of Claims 1-4, is characterized in that, described first sending module comprises:
Transmitting element, during for there is described project to be tested and test detecting information corresponding to authority in the server, send based on described test authority comprise described detecting information test modifications interface to described terminal, for user based on terminal demonstration test modifications interface modification described in the test data of detecting information and element locating information;
Updating block, for when receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update;
Described operation module is also for running described project to be tested and testing test script corresponding to authority based on the detecting information after renewal.
6. an automated testing method, is characterized in that, described automated testing method comprises the following steps:
When receiving the test request that terminal sends, determine the test authority of the project to be tested that described test request is corresponding and described project to be tested;
Test design interface corresponding to described project to be tested is sent to described terminal based on described test authority, for the detecting information of user based on the described project to be tested of test design interface input of terminal demonstration, wherein, described detecting information comprises test data and the element locating information of described project to be tested;
When receiving the detecting information that described terminal sends, running described project to be tested based on described detecting information and testing test script corresponding to authority;
When described test script has run, send the operation result of described test script to described terminal.
7. automated testing method as claimed in claim 6, is characterized in that, when receiving the detecting information that described terminal sends, the step running described project to be tested and test script corresponding to test authority based on described detecting information comprises:
When receiving the detecting information that described terminal sends, determine that whether described project to be tested and test script corresponding to test authority be the test script of fixed time test;
When test script is the test script of fixed time test, test script described in timing operation.
8. automated testing method as claimed in claim 6, it is characterized in that, when receiving the detecting information that described terminal sends, after running described project to be tested based on described detecting information and testing the step of test script corresponding to authority, described automated testing method also comprises:
When the test report receiving the project described to be tested that terminal sends obtains request, generate the test report of described project to be tested based on described operation result, and described test report is sent to described terminal.
9. automated testing method as claimed in claim 6, it is characterized in that, test design interface corresponding to described project to be tested is sent to described terminal based on described test authority, for user based on terminal demonstration test design interface input described project to be tested detecting information step after, described automated testing method also comprises:
When receiving the detecting information that described terminal sends, store described detecting information.
10. the automated testing method as described in any one of claim 6 to 9, it is characterized in that, send test design interface corresponding to described project to be tested to described terminal based on described test authority, comprise based on the step of the detecting information of the described project to be tested of test design interface input of terminal demonstration for user:
When there is described test event and test detecting information corresponding to authority in the server, send based on described test authority comprise described detecting information test modifications interface to described terminal, for user based on terminal demonstration test modifications interface modification described in the test data of detecting information and element locating information;
When receiving amended test data and the element locating information of terminal transmission, based on detecting information described in amended test data and element positioning information update;
When receiving the detecting information that described terminal sends, run described project to be tested based on described detecting information and test script corresponding to test authority comprises: run described project to be tested and test script corresponding to test authority based on the detecting information after upgrading.
CN201510644529.1A 2015-09-30 2015-09-30 Automatic testing device and method Pending CN105159833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510644529.1A CN105159833A (en) 2015-09-30 2015-09-30 Automatic testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510644529.1A CN105159833A (en) 2015-09-30 2015-09-30 Automatic testing device and method

Publications (1)

Publication Number Publication Date
CN105159833A true CN105159833A (en) 2015-12-16

Family

ID=54800695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510644529.1A Pending CN105159833A (en) 2015-09-30 2015-09-30 Automatic testing device and method

Country Status (1)

Country Link
CN (1) CN105159833A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843732A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Test case allocating method and test case allocating device
CN105868100A (en) * 2015-12-22 2016-08-17 乐视网信息技术(北京)股份有限公司 Android system-based automatic test method and device
CN106131874A (en) * 2016-08-31 2016-11-16 西可通信技术设备(河源)有限公司 A kind of smart mobile phone realizes the method that network wireless optimizes test automatically
CN106547689A (en) * 2016-10-20 2017-03-29 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web
CN106789393A (en) * 2016-11-16 2017-05-31 武汉烽火网络有限责任公司 A kind of CS frameworks communication equipment automatization test system and method
CN106844205A (en) * 2017-01-12 2017-06-13 上海与德信息技术有限公司 Driver adjustment method and system
CN107273300A (en) * 2017-07-31 2017-10-20 北京云测信息技术有限公司 A kind of applied program testing method and device
CN107704391A (en) * 2017-09-29 2018-02-16 马上消费金融股份有限公司 A kind of method of testing and device based on Selenium
CN108333153A (en) * 2017-01-20 2018-07-27 上海溯源生物技术有限公司 Project testing system and project testing method
CN108804317A (en) * 2018-05-24 2018-11-13 北京握奇智能科技有限公司 A kind of method and system for script of seeking unity of action
CN108829556A (en) * 2018-06-27 2018-11-16 中国建设银行股份有限公司 A kind of automated testing method and device
CN108874659A (en) * 2018-04-19 2018-11-23 杭州嘉楠耘智信息科技有限公司 Test method, test system and server of digital currency computing equipment
WO2018223717A1 (en) * 2017-06-08 2018-12-13 武汉斗鱼网络科技有限公司 Webpage front-end testing method, device, system, apparatus and readable storage medium
CN109359050A (en) * 2018-11-15 2019-02-19 北京奇虎科技有限公司 Webpage test method, device and system
CN109582560A (en) * 2018-10-09 2019-04-05 中国平安人寿保险股份有限公司 Test file edit methods, device, equipment and computer readable storage medium
CN109582579A (en) * 2018-11-30 2019-04-05 腾讯音乐娱乐科技(深圳)有限公司 Applied program testing method, device, electronic equipment and storage medium
CN110505352A (en) * 2018-05-17 2019-11-26 腾讯科技(深圳)有限公司 Call quality test method, system, computer equipment and computer storage medium
CN111061403A (en) * 2019-11-15 2020-04-24 福士瑞精密工业(郑州)有限公司 Tool information processing device, processing method, server, and storage medium
CN111459800A (en) * 2020-03-04 2020-07-28 福建省农村信用社联合社 Method, device, equipment and medium for verifying availability of service system
CN111651349A (en) * 2020-05-26 2020-09-11 泰康保险集团股份有限公司 Test method and device
CN111813687A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test method, test device, control terminal, test equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996133A (en) * 2009-08-27 2011-03-30 上海杉达学院 Interaction interface test system of Web application software
US20110214107A1 (en) * 2010-03-01 2011-09-01 Experitest, Ltd. Method and system for testing graphical user interfaces
CN103034583A (en) * 2011-09-30 2013-04-10 国际商业机器公司 Method and system for processing automatic test scrip of software
CN103309795A (en) * 2012-03-08 2013-09-18 百度在线网络技术(北京)有限公司 Software testing method and system
CN103605610A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 System and method for software testing based on Hadoop
CN104699618A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method and device used for automatically testing high-privilege progress by designated user
CN104866426A (en) * 2015-05-28 2015-08-26 华北计算技术研究所 Software test integrated control method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996133A (en) * 2009-08-27 2011-03-30 上海杉达学院 Interaction interface test system of Web application software
US20110214107A1 (en) * 2010-03-01 2011-09-01 Experitest, Ltd. Method and system for testing graphical user interfaces
CN103034583A (en) * 2011-09-30 2013-04-10 国际商业机器公司 Method and system for processing automatic test scrip of software
CN103309795A (en) * 2012-03-08 2013-09-18 百度在线网络技术(北京)有限公司 Software testing method and system
CN103605610A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 System and method for software testing based on Hadoop
CN104699618A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method and device used for automatically testing high-privilege progress by designated user
CN104866426A (en) * 2015-05-28 2015-08-26 华北计算技术研究所 Software test integrated control method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙晓岗 等: "《石油行业计算机新技术应用论文集(2008)》", 30 April 2010, 石油工业出版社 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868100A (en) * 2015-12-22 2016-08-17 乐视网信息技术(北京)股份有限公司 Android system-based automatic test method and device
CN105843732B (en) * 2016-03-17 2019-08-02 畅捷通信息技术股份有限公司 Test case distribution method and test case distributor
CN105843732A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Test case allocating method and test case allocating device
CN106131874A (en) * 2016-08-31 2016-11-16 西可通信技术设备(河源)有限公司 A kind of smart mobile phone realizes the method that network wireless optimizes test automatically
CN106547689B (en) * 2016-10-20 2019-03-01 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web
CN106547689A (en) * 2016-10-20 2017-03-29 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web
CN106789393A (en) * 2016-11-16 2017-05-31 武汉烽火网络有限责任公司 A kind of CS frameworks communication equipment automatization test system and method
CN106789393B (en) * 2016-11-16 2019-09-06 烽火通信科技股份有限公司 A kind of CS framework communication equipment automatization test system and method
CN106844205B (en) * 2017-01-12 2021-01-22 和宇健康科技股份有限公司 Driver debugging method and system
CN106844205A (en) * 2017-01-12 2017-06-13 上海与德信息技术有限公司 Driver adjustment method and system
CN108333153A (en) * 2017-01-20 2018-07-27 上海溯源生物技术有限公司 Project testing system and project testing method
WO2018223717A1 (en) * 2017-06-08 2018-12-13 武汉斗鱼网络科技有限公司 Webpage front-end testing method, device, system, apparatus and readable storage medium
CN107273300A (en) * 2017-07-31 2017-10-20 北京云测信息技术有限公司 A kind of applied program testing method and device
CN107704391A (en) * 2017-09-29 2018-02-16 马上消费金融股份有限公司 A kind of method of testing and device based on Selenium
CN108874659A (en) * 2018-04-19 2018-11-23 杭州嘉楠耘智信息科技有限公司 Test method, test system and server of digital currency computing equipment
CN108874659B (en) * 2018-04-19 2023-03-28 北京嘉楠捷思信息技术有限公司 Test method, test system and server of digital currency computing equipment
CN110505352A (en) * 2018-05-17 2019-11-26 腾讯科技(深圳)有限公司 Call quality test method, system, computer equipment and computer storage medium
CN110505352B (en) * 2018-05-17 2021-09-24 腾讯科技(深圳)有限公司 Call quality testing method, system, computer device and computer storage medium
CN108804317A (en) * 2018-05-24 2018-11-13 北京握奇智能科技有限公司 A kind of method and system for script of seeking unity of action
CN108829556A (en) * 2018-06-27 2018-11-16 中国建设银行股份有限公司 A kind of automated testing method and device
CN109582560A (en) * 2018-10-09 2019-04-05 中国平安人寿保险股份有限公司 Test file edit methods, device, equipment and computer readable storage medium
CN109359050A (en) * 2018-11-15 2019-02-19 北京奇虎科技有限公司 Webpage test method, device and system
CN109582579A (en) * 2018-11-30 2019-04-05 腾讯音乐娱乐科技(深圳)有限公司 Applied program testing method, device, electronic equipment and storage medium
CN109582579B (en) * 2018-11-30 2022-04-15 腾讯音乐娱乐科技(深圳)有限公司 Application program testing method and device, electronic equipment and storage medium
CN111061403A (en) * 2019-11-15 2020-04-24 福士瑞精密工业(郑州)有限公司 Tool information processing device, processing method, server, and storage medium
CN111459800B (en) * 2020-03-04 2022-07-08 福建省农村信用社联合社 Method, device, equipment and medium for verifying availability of service system
CN111459800A (en) * 2020-03-04 2020-07-28 福建省农村信用社联合社 Method, device, equipment and medium for verifying availability of service system
CN111651349A (en) * 2020-05-26 2020-09-11 泰康保险集团股份有限公司 Test method and device
CN111813687A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test method, test device, control terminal, test equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105159833A (en) Automatic testing device and method
CN109726093B (en) Method, apparatus and computer program product for executing test cases
US10372600B2 (en) Systems and methods for automated web performance testing for cloud apps in use-case scenarios
US9846638B2 (en) Exposing method related data calls during testing in an event driven, multichannel architecture
CN111651366B (en) SDK test method, device, equipment and storage medium
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN108111364B (en) Service system testing method and device
CN107992424A (en) Automatic test analysis method, application server and computer-readable recording medium
US20230017318A1 (en) Method and system for tracking events in distributed high-throughput applications
CN104899134A (en) Automatic domain name registration server testing system and method
CN113238965B (en) Interface test script generation method, system and storage medium
CN104809063A (en) Test method and device of distributed system
CN112988578A (en) Automatic testing method and device
CN109977005B (en) End-to-end test method, medium, device and computing equipment
CN105095063A (en) Application program testing method, apparatus and system
CN103019927B (en) A kind of performance test methods and system
CN113032256B (en) Automated testing method, apparatus, computer system, and readable storage medium
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN114048134A (en) Automatic testing method and device based on POM and data driving
CN111611148B (en) Compatibility concurrent test method and system for iOS system application software
CN112131095B (en) Pressure testing method and device
WO2012174033A1 (en) System and method to in-line script dependencies
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
CN108170557B (en) Method and apparatus for outputting information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151216