CN103412818A - Automation testing method and system - Google Patents

Automation testing method and system Download PDF

Info

Publication number
CN103412818A
CN103412818A CN2013103535259A CN201310353525A CN103412818A CN 103412818 A CN103412818 A CN 103412818A CN 2013103535259 A CN2013103535259 A CN 2013103535259A CN 201310353525 A CN201310353525 A CN 201310353525A CN 103412818 A CN103412818 A CN 103412818A
Authority
CN
China
Prior art keywords
test
decision
making
relies
storehouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013103535259A
Other languages
Chinese (zh)
Other versions
CN103412818B (en
Inventor
郭辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201310353525.9A priority Critical patent/CN103412818B/en
Publication of CN103412818A publication Critical patent/CN103412818A/en
Application granted granted Critical
Publication of CN103412818B publication Critical patent/CN103412818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to testing technologies, solves the problem of inconvenience due to manual selection required during execution of test cases in existing automation testing processes and provides an automation testing method and system. The technical scheme of the method can be summarized as the following steps that, firstly, system starting is performed; secondly, a user inputs a testing strategy; thirdly, according to the testing strategy input by the user and by querying a pre-established decision dependent library, the system selects a corresponding test case from a test case library according to a preset decision algorithm and then performs testing, wherein the decision dependent library is used for providing decision dependent parameters of the test case selected according to the testing strategy for the system; lastly, a testing result is output to the user and written in the decision dependent library. The automation testing method and system has the advantages of automatically selecting the test case, saving the time of automation testing and being applicable to the automation testing.

Description

Automated testing method and system
Technical field
The present invention relates to measuring technology, particularly the technology of automatic test.
Background technology
Automatic test is more and more important in current test, applies also more and more extensivelyr, no matter, in performance, pressure or regression test, has all brought into play very important effect.Automatic test has been liberated manpower, makes the Test Engineer can avoid these to repeat mechanical work, and energy is put in deeper test, better guarantees the quality of product.
In order effectively to move automatic test, usually all can construct a set of robotization frame system, build a robotization platform.The robotization frame system mainly comprises the function of the following aspects: the management of test script, the management of testing apparatus resource, the operation of test script, the demonstration of test result and analysis.
In the management of test script, at first can select a script to write automatized script, usually select the scripts such as TCL, PYTHON, RUBBY.After selected script, need to formulate the standard of script, the unified maintenance of writing to facilitate the automatized script storehouse according to certain form.In the management of test case, need to have more intense logical organization, according to the subfunction of different editions, disparate modules, disparate modules, layering remove to manage use-case, set up the associated of test case and automatized script.
In the management of testing apparatus resource, can control and operate equipment under test and test accessory.When carrying out automatic test, can move by framework selection equipment.In the operation of test script, can, according to different demands, select different test cases to carry out.In the demonstration and analysis of test result, can find out clearly the test result of operation, test case runs succeeded or failure, some statistical functions can be provided, provide whole ruuning situation, detailed log recording can be provided, and in the middle of preserving, the result of operation, conveniently analyze test result.
In the execution of test case, present realization normally adopts the manual mode of selecting to carry out, or selects whole use-cases, or selectes some test cases in advance, in the time of execution, only carries out these selected test cases.Specific as follows:
1) carry out whole test cases
Usually in order to guarantee the basic function of tested version, we need comprehensively to return all test cases, but along with the complexity of tested system is more and more higher, the test case quantity of robotization is also more and more huger, the time of wanting comprehensive implementation of test cases to spend can be very long, and the time that takies resource is also very long.Obtain test result and also need to wait for long time.
2) the manual operating part use-case of selecting
In order to prevent from introducing fault, usually industry also can be selected the operation of part use-case, and because the complexity of code is more and more higher, the quantity of automatic test cases is also relatively huge, want the assessment of going of entirely accurate to affect, selecting corresponding test case is very difficult something.
Along with the increase of tested system complexity, automatic test cases quantity is more and more huger, effectively bring into play the effect of automatic test, how to go automatically according to the operation of policy selection automatized script, will be one must not irrespective problem.
Summary of the invention
Purpose of the present invention is exactly to overcome current automatic test when test case is carried out, to need the manual very inconvenient shortcoming of selecting, and a kind of automated testing method and system are provided.
The present invention solves its technical matters, and the technical scheme of employing is that automated testing method, is characterized in that, comprises the following steps:
Step 1, system start, user's input test strategy;
The Test Strategy of step 2, the input of system User, the decision-making of setting up in advance by inquiry relies on storehouse, according to the decision making algorithm of setting, from test case library, selecting corresponding test case and testing; Described decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for to system, providing according to Test Strategy;
Step 3, system are exported test result to the user, and test result is written to decision-making dependence storehouse.
Concrete, in step 1, described Test Strategy comprises: measurand and test specification.
Further, in step 2, described decision-making relies on parameter and comprises:
The code of the coupling of the priority of test product and version information and/or test case and/or test product module and/or historical test result and/or test product module and the relation of test case.
Concrete, in step 2, described decision-making relies on storehouse and when setting up, adopts the mode of layering, and the decision-making on upper strata relies on parameter and inherits all the elements that lower floor's decision-making relies on parameter, is followed successively by from top to bottom test product version information, product information and public decision making and relies on parameter information.
Further, described public decision making relies on parameter information, comprises that module information and/or tested product platform that test product platform information and/or tested product platform comprise comprise the code information of module and the relation of test case.
Automatization test system, comprise automatic test platform and test case library, it is characterized in that, also comprise that decision-making relies on storehouse, described automatic test platform is connected with test case library, and described decision-making relies on storehouse and with automatic test platform and test case library, is associated respectively;
Described automatic test platform, for receiving the Test Strategy of user's input, the Test Strategy of User input, the decision-making that inquiry is set up in advance relies on storehouse, according to the decision making algorithm of setting, from test case library, loading the test case that needs to select, test, test result is exported to the user, and test result is transferred to decision-making dependence storehouse;
Described decision-making relies on storehouse, for to automatic test platform, providing according to Test Strategy, selects the decision-making of test case to rely on parameter, and stores historical test result;
Concrete, described Test Strategy comprises measurand and test specification.
Further, described decision-making dependence parameter comprises: the code of the coupling of the priority of test product and version information and/or test case and/or test product module and/or historical test result and/or test product module and the relation of test case.
Further, it is hierarchy that described decision-making relies on storehouse, and the decision-making on upper strata relies on parameter and inherits all the elements that lower floor's decision-making relies on parameter, is followed successively by from top to bottom test product version information, product information and public decision making and relies on parameter information.
Concrete, described public decision making relies on parameter information, comprises that module information and/or tested product platform that test product platform information and/or tested product platform comprise comprise the code information of module and the relation of test case.
The invention has the beneficial effects as follows, by above-mentioned automated testing method and system, automatically select test case by user's input test strategy, save the time of automatic test.
The accompanying drawing explanation
Fig. 1 is the structured flowchart of automatization test system of the present invention.
Fig. 2 is the process flow diagram of the automated testing method of the embodiment of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, describe technical scheme of the present invention in detail.
Automated testing method of the present invention is: at first system starts, user's input test strategy, the Test Strategy of system User input, the decision-making of setting up in advance by inquiry relies on storehouse, according to the decision making algorithm of setting, from test case library, selecting corresponding test case and testing, this decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for to system, providing according to Test Strategy, finally test result is exported to the user, and test result is written to decision-making dependence storehouse.
The structured flowchart of automatization test system of the present invention is referring to Fig. 1.Automatization test system of the present invention comprises automatic test platform, test case library and decision-making rely on storehouse, wherein, automatic test platform is connected with test case library, decision-making relies on storehouse and with automatic test platform, is connected with test case library respectively, here, automatic test platform is for receiving the Test Strategy of user's input, the Test Strategy of User input, the decision-making that inquiry is set up in advance relies on storehouse, according to the decision making algorithm of setting, from test case library, loading the test case that needs to select, test, test result is exported to the user, and test result is transferred to decision-making and relies on storehouse, decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for to automatic test platform, providing according to Test Strategy, and stores historical test result.
Embodiment
It as Fig. 1, is the structured flowchart of automatization test system in the embodiment of the present invention.It is by automatic test platform, test case library and decision-making rely on storehouse and form, wherein, automatic test platform is connected with test case library, decision-making relies on storehouse and with automatic test platform, is connected with test case library respectively, here, automatic test platform is for receiving the Test Strategy of user's input, this Test Strategy comprises measurand and test specification etc., the Test Strategy of User input, the decision-making that inquiry is set up in advance relies on storehouse, according to the decision making algorithm of setting, from test case library, loading the test case that needs to select, test, test result is exported to the user, and test result is transferred to decision-making and relies on storehouse, decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for to automatic test platform, providing according to Test Strategy, and store historical test result, this decision-making relies on parameter and comprises the priority of test product and version information and/or test case and/or coupling and/or the code of historical test result and/or test product module and the relation of test case etc. of test product module.It is hierarchy that decision-making relies on storehouse, the decision-making on upper strata relies on parameter and inherits all the elements that lower floor's decision-making relies on parameter, be followed successively by from top to bottom test product version information, product information and public decision making and rely on parameter information, wherein, public decision making relies on parameter information, comprises that module information and/or tested product platform that test product platform information and/or tested product platform comprise comprise the code information of module and the relation of test case.
As Fig. 2, be the process flow diagram of automated testing method, its concrete steps are as follows:
Step 201, system starts, user's input test strategy.
In this step, described Test Strategy comprises: measurand and test specification.For different products, can specify different Test Strategies and the algorithm of selection.
Step 202, the Test Strategy of system User input, the decision-making that the inquiry inquiry is set up in advance relies on storehouse, according to the decision making algorithm of setting, from test case library, selecting corresponding test case and testing, this decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for to system, providing according to Test Strategy.
Below with the different Test Strategy of user, the test process of this step is described:
Test Strategy 1: full test.In order to obtain as soon as possible the quality condition of test product version, can select with different levels algorithm, at first inquire about decision-making dependence storehouse and therefrom automatically select most important test case, selected test case is also moved in connecting test use-case storehouse, obtain fast test result, and then the inquiry decision-making relies on and automatically to select important test case off-duty time, connecting test use-case storehouse is also moved selected test case and is provided test result, finally completes the operation of whole test case.
Test Strategy 2, the test of revising for the partial code of test product module.For the code of revising, the inquiry decision-making relies on storehouse, and confirming has dependent other modules with this module, thereby after selecting influential test case, selected test case is also moved and operation in connecting test use-case storehouse, prevents the generation of the problem of introducing.No longer need manually to go to select to need which test case.
Above two Test Strategies are only to be illustrated, and are not explanation and restriction to Test Strategy.Because Test Strategy can also, according to the coupling of the module of test product, be selected test case; And select different test cases according to the required module difference of paying close attention to of the version information of test product.
The content that decision-making relies on parameter can have different contents for different products, generally includes one or more in following parameter:
1) test product and version information;
2) priority of test case;
3) coupling of test product module;
4) historical test result;
5) relation of the code of test product module and test case.
This decision-making relies on storehouse and when setting up, adopts the mode of layering, the decision-making on upper strata relies on parameter and inherits all the elements that lower floor's decision-making relies on parameter, be followed successively by from top to bottom test product version information, product information and public decision making and rely on parameter information, public decision making relies on parameter information, comprises that module information and/or tested product platform that test product platform information and/or tested product platform comprise comprise the code information of module and the relation of test case.
Step 203, system is exported test result to the user, and test result is written to decision-making dependence storehouse.Using test result be written to purpose that decision-making relies on storehouse be during as follow-up test one of Tactic selection algorithm according to parameter.

Claims (10)

1. automated testing method, is characterized in that, comprises the following steps:
Step 1, system start, user's input test strategy;
The Test Strategy of step 2, the input of system User, the decision-making of setting up in advance by inquiry relies on storehouse, according to the decision making algorithm of setting, from test case library, selecting corresponding test case and testing; Described decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for to system, providing according to Test Strategy;
Step 3, system are exported test result to the user, and test result is written to decision-making dependence storehouse.
2. automated testing method as claimed in claim 1, is characterized in that, in step 1, described Test Strategy comprises: measurand and test specification.
3. automated testing method as claimed in claim 1 or 2, is characterized in that, in step 2, described decision-making relies on parameter and comprises:
The code of the coupling of the priority of test product and version information and/or test case and/or test product module and/or historical test result and/or test product module and the relation of test case.
4. automated testing method as claimed in claim 1, it is characterized in that, in step 2, described decision-making relies on storehouse and when setting up, adopts the mode of layering, the decision-making on upper strata relies on parameter and inherits all the elements that lower floor's decision-making relies on parameter, is followed successively by from top to bottom test product version information, product information and public decision making and relies on parameter information.
5. automated testing method as claimed in claim 4, it is characterized in that, described public decision making relies on parameter information, comprises that module information and/or tested product platform that test product platform information and/or tested product platform comprise comprise the code information of module and the relation of test case.
6. automatization test system, comprise automatic test platform and test case library, it is characterized in that, also comprise that decision-making relies on storehouse, described automatic test platform is connected with test case library, and described decision-making relies on storehouse and with automatic test platform, is connected with test case library respectively;
Described automatic test platform, for receiving the Test Strategy of user's input, the Test Strategy of User input, the decision-making that inquiry is set up in advance relies on storehouse, according to the decision making algorithm of setting, from test case library, loading the test case that needs to select, test, test result is exported to the user, and test result is transferred to decision-making dependence storehouse;
Described decision-making relies on storehouse, for to automatic test platform, providing according to Test Strategy, selects the decision-making of test case to rely on parameter, and stores historical test result.
7. automatization test system as claimed in claim 6, is characterized in that, described Test Strategy comprises measurand and test specification.
8. automatization test system as described as claim 6 or 7, is characterized in that, described decision-making relies on parameter and comprises:
The code of the coupling of the priority of test product and version information and/or test case and/or test product module and/or historical test result and/or test product module and the relation of test case.
9. automatization test system as claimed in claim 7, it is characterized in that, it is hierarchy that described decision-making relies on storehouse, the decision-making on upper strata relies on parameter and inherits all the elements that lower floor's decision-making relies on parameter, is followed successively by from top to bottom test product version information, product information and public decision making and relies on parameter information.
10. automatization test system as claimed in claim 9, it is characterized in that, described public decision making relies on parameter information, comprises that module information and/or tested product platform that test product platform information and/or tested product platform comprise comprise the code information of module and the relation of test case.
CN201310353525.9A 2013-08-14 2013-08-14 Automated testing method and system Active CN103412818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310353525.9A CN103412818B (en) 2013-08-14 2013-08-14 Automated testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310353525.9A CN103412818B (en) 2013-08-14 2013-08-14 Automated testing method and system

Publications (2)

Publication Number Publication Date
CN103412818A true CN103412818A (en) 2013-11-27
CN103412818B CN103412818B (en) 2016-06-29

Family

ID=49605831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310353525.9A Active CN103412818B (en) 2013-08-14 2013-08-14 Automated testing method and system

Country Status (1)

Country Link
CN (1) CN103412818B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824746A (en) * 2015-01-05 2016-08-03 中国移动(深圳)有限公司 Method and device for automatically generating test scheduling based on use case dependencies
CN106201894A (en) * 2016-07-21 2016-12-07 浪潮电子信息产业股份有限公司 A kind of software testing device and method
CN108319547A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 Method for generating test case, device and system
CN108959066A (en) * 2018-05-21 2018-12-07 千寻位置网络有限公司 A kind of method and system tested automatically, test terminal
CN111104341A (en) * 2019-12-30 2020-05-05 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN111124526A (en) * 2018-11-01 2020-05-08 北京奇虎科技有限公司 Dependency management method, dependency management device, storage medium and computer equipment
CN114526925A (en) * 2022-02-21 2022-05-24 中国第一汽车股份有限公司 Vehicle offline detection method and device, electronic equipment and storage medium
CN114755936A (en) * 2022-04-20 2022-07-15 中国第一汽车股份有限公司 Automatic test system and method for air suspension

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221530A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Method for automatically leading in test cases
CN101329652A (en) * 2008-07-30 2008-12-24 中兴通讯股份有限公司 Regression test automatic system and method
US20110088014A1 (en) * 2009-10-08 2011-04-14 International Business Machines Corporation Automated test execution plan generation
CN102880535A (en) * 2012-07-24 2013-01-16 北京播思软件技术有限公司 Wireless automation testing device and method used for mobile equipment
CN102999320A (en) * 2011-09-15 2013-03-27 阿里巴巴集团控股有限公司 Automatic test case generation method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221530A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Method for automatically leading in test cases
CN101329652A (en) * 2008-07-30 2008-12-24 中兴通讯股份有限公司 Regression test automatic system and method
US20110088014A1 (en) * 2009-10-08 2011-04-14 International Business Machines Corporation Automated test execution plan generation
CN102999320A (en) * 2011-09-15 2013-03-27 阿里巴巴集团控股有限公司 Automatic test case generation method and system
CN102880535A (en) * 2012-07-24 2013-01-16 北京播思软件技术有限公司 Wireless automation testing device and method used for mobile equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824746A (en) * 2015-01-05 2016-08-03 中国移动(深圳)有限公司 Method and device for automatically generating test scheduling based on use case dependencies
CN105824746B (en) * 2015-01-05 2018-09-25 中移信息技术有限公司 A kind of method and apparatus that test dispatching is automatically generated based on use-case dependence
CN106201894A (en) * 2016-07-21 2016-12-07 浪潮电子信息产业股份有限公司 A kind of software testing device and method
CN108319547A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 Method for generating test case, device and system
CN108319547B (en) * 2017-01-17 2022-01-21 阿里巴巴集团控股有限公司 Test case generation method, device and system
CN108959066A (en) * 2018-05-21 2018-12-07 千寻位置网络有限公司 A kind of method and system tested automatically, test terminal
CN111124526A (en) * 2018-11-01 2020-05-08 北京奇虎科技有限公司 Dependency management method, dependency management device, storage medium and computer equipment
CN111104341A (en) * 2019-12-30 2020-05-05 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN111104341B (en) * 2019-12-30 2024-01-19 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN114526925A (en) * 2022-02-21 2022-05-24 中国第一汽车股份有限公司 Vehicle offline detection method and device, electronic equipment and storage medium
CN114755936A (en) * 2022-04-20 2022-07-15 中国第一汽车股份有限公司 Automatic test system and method for air suspension

Also Published As

Publication number Publication date
CN103412818B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN103412818A (en) Automation testing method and system
US11307849B2 (en) Method for creating hyperledger fabric network, controller and storage medium
CN104778118B (en) The improved method of automatization testing technique
CN103984612A (en) Unattended pressure testing method based on HPL tool
CN104182333A (en) Performance testing method and equipment
CN104468277A (en) Consistency testing method and device for transformer substation network and communication protocol
US9405663B2 (en) Generating an optimized test suite from models for use in a software testing environment
CN105057928A (en) Information management system of welding production line
CN110768863B (en) Scheme for simulating and testing AIOT equipment
CN112306861A (en) Unittest and Jenkins tool-based interface automatic testing system and method
CN101930397B (en) Implementation method of radio frequency module power amplification universal debugging interface
CN105183649A (en) Automatic telnet method and system used for automatic testing
CN108681507A (en) Method for realizing automatic testing of RESTful API and web service
CN112597014A (en) Automatic testing method, device, medium and electronic equipment based on data driving
CN104111857A (en) Method for automatically configuring parameters of multi-model BIOS
CN104516809A (en) Automated testing system and method
CN103049374B (en) Automatic testing method and device
CN105279092A (en) Software testing method and apparatus
CN112306877A (en) Power system fault operation and maintenance method and system
CN112051835A (en) DCS redundancy function testing method and device
CN104407978A (en) Automatic test method of software and device thereof
CN116383061A (en) Method and related device for testing basic platform interface of substation control system
CN105260302A (en) Method for automatically refreshing Barebone BMC in Linux aging system
CN102638365B (en) A kind of implementation method of webmaster magnanimity automatic device discovery
WO2015184750A1 (en) Data maintenance method and device of network element device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant