CN103412818B - Automated testing method and system - Google Patents

Automated testing method and system Download PDF

Info

Publication number
CN103412818B
CN103412818B CN201310353525.9A CN201310353525A CN103412818B CN 103412818 B CN103412818 B CN 103412818B CN 201310353525 A CN201310353525 A CN 201310353525A CN 103412818 B CN103412818 B CN 103412818B
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.)
Active
Application number
CN201310353525.9A
Other languages
Chinese (zh)
Other versions
CN103412818A (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

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to measuring technology.The invention solves the problem that existing automatic test needs manual selection very inconvenient when test case performs, provide a kind of automated testing method and system, its technical scheme can be summarized as: first system start-up, user's input test strategy, system is according to the Test Strategy of user's input, storehouse is relied on by inquiring about the decision-making pre-build, according to the decision making algorithm set, from test case library, select corresponding test case and test, this decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to system according to Test Strategy, finally test result is exported to user, and test result is written to decision-making dependence storehouse.The invention has the beneficial effects as follows: automatically select test case, save the time of automatic test, it is adaptable to automatic test.

Description

Automated testing method and system
Technical field
The present invention relates to measuring technology, particularly to the technology of automatic test.
Background technology
Automatic test is more and more important in current test, and application is also increasingly wider, no matter in performance, pressure or regression test, has all played very important effect.Automatic test has liberated manpower, makes Test Engineer that these can be avoided to repeat mechanical work, is put into by energy in deeper test, better ensures the quality of product.
In order to effectively run automatic test, generally all can construct a set of automatization frame system, build automatization's platform.Automatization's frame system mainly comprises the function of the following aspects: the management of test script, tests the management of device resource, the operation of test script, the display of test result and analysis.
In the management of test script, a script first can be selected to write automatized script, generally select the scripts such as TCL, PYTHON, RUBBY.After selected script, it is necessary to formulating the specification of script, unification writes to facilitate the maintenance in automatized script storehouse according to certain form.The management of test case needs stronger logical structure, according to different editions, disparate modules, the subfunction of disparate modules, layering go management use-case, it is established that the association of test case and automatized script.
In the management of test device resource, it is possible to equipment under test and test accessory are controlled and operate.Equipment can be selected to run by framework when performing automatic test.In the operation of test script, it is possible to according to different demands, different test cases is selected to perform.In the display and analysis of test result, the test result of operation can be found out clearly, test case runs succeeded or failure, some statistical functions can be provided, provide the ruuning situation of entirety, detailed log recording can be provided, the result run in the middle of preserving, conveniently test result is analyzed.
In the execution of test case, present realization is typically with what the manual mode selected carried out, or selects whole use-cases, or selectes some test cases in advance, only carries out these selected test cases when execution.Specific as follows:
1) whole test case is performed
Generally for the basic function ensureing tested version, we need comprehensively to return all of test case, but along with the complexity of tested system is more and more higher, the test case quantity of automatization is also more and more huger, the time wanting comprehensive implementation of test cases cost can be very long, and the time taking resource is also very long.Obtain test result to be also required to wait long time.
2) manual selection performs part use-case
In order to prevent introducing fault, usual industry also can select part use-case to run, and owing to the complexity of code is more and more higher, the quantity of automatic test cases is also relatively huge, that wants entirely accurate goes assessment impact, and selecting corresponding test case is extremely difficult something.
Along with the increase of tested system complexity, automatic test cases quantity is more and more huger, will effectively play the effect of automatic test, how to go to run according to policy selection automatized script automatically, will be a problem having to take into account that.
Summary of the invention
The purpose of the present invention is exactly the shortcoming overcoming current automatic test to need manual selection very inconvenient when test case performs, it is provided that a kind of automated testing method and system.
This invention address that its technical problem, employed technical scheme comprise that, automated testing method, it is characterised in that comprise the following steps:
Step 1, system start-up, user's input test strategy;
Step 2, system, according to the Test Strategy of user's input, rely on storehouse by inquiring about the decision-making pre-build, according to the decision making algorithm set, select corresponding test case and test from test case library;Described decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to system according to Test Strategy;
Test result is exported by step 3, system to user, and test result is written to decision-making dependence storehouse.
Concrete, in step 1, described Test Strategy includes: measurand and test scope.
Further, in step 2, described decision-making relies on parameter and includes:
The code of the priority of test product and version information and/or test case and/or the coupling of test product module and/or historic test results and/or test product module and the relation of test case.
Concrete, in step 2, described decision-making relies on storehouse and adopts the mode of layering when setting up, and the decision-making on upper strata relies on the decision-making of parameter inheritance lower floor and relies on all the elements of parameter, is followed successively by test product version information, product information and public decision making from top to bottom and relies on parameter information.
Further, described public decision making relies on parameter information, and the module information included including test product platform information and/or tested product platform and/or tested product platform include the code information of module and the relation of test case.
Automatization test system, including automatic test platform and test case library, it is characterised in that also include decision-making and rely on storehouse, described automatic test platform is connected with test case library, and described decision-making relies on storehouse and is associated with automatic test platform and test case library respectively;
Described automatic test platform, for receiving the Test Strategy of user's input, Test Strategy according to user's input, the decision-making that inquiry pre-builds relies on storehouse, according to the decision making algorithm set, from test case library, load the test case that need to select test, test result is exported to user, and test result is transferred to decision-making dependence storehouse;
Described decision-making relies on storehouse, selects the decision-making of test case to rely on parameter for providing to automatic test platform according to Test Strategy, and stores historic test results;
Concrete, described Test Strategy includes measurand and test scope.
Further, described decision-making dependence parameter includes: the code of the priority of test product and version information and/or test case and/or the coupling of test product module and/or historic test results 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 the decision-making of parameter inheritance lower floor and relies on all the elements of parameter, is followed successively by test product version information, product information and public decision making from top to bottom and relies on parameter information.
Concrete, described public decision making relies on parameter information, and the module information included including test product platform information and/or tested product platform and/or tested product platform include 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.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of automatization test system of the present invention.
Fig. 2 is the flow chart of the automated testing method of the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, technical scheme is described in detail.
The automated testing method of the present invention is: first system start-up, user's input test strategy, system is according to the Test Strategy of user's input, storehouse is relied on by inquiring about the decision-making pre-build, according to the decision making algorithm set, selecting corresponding test case and test from test case library, this decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to system according to Test Strategy, finally test result is exported to 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.The automatization test system of the present invention includes 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 is connected with automatic test platform and test case library respectively, here, automatic test platform is for receiving the Test Strategy of user's input, Test Strategy according to user's input, the decision-making that inquiry pre-builds relies on storehouse, according to the decision making algorithm set, from test case library, load the test case that need to select test, test result is exported to user, and test result is transferred to decision-making dependence storehouse;Decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to automatic test platform according to Test Strategy, and stores historic test results.
Embodiment
If 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 composition, wherein, automatic test platform is connected with test case library, decision-making relies on storehouse and is connected with automatic test platform and test case library respectively, here, automatic test platform is for receiving the Test Strategy of user's input, this Test Strategy includes measurand and test scope etc., Test Strategy according to user's input, the decision-making that inquiry pre-builds relies on storehouse, according to the decision making algorithm set, from test case library, load the test case that need to select test, test result is exported to user, and test result is transferred to decision-making dependence storehouse;Decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to automatic test platform according to Test Strategy, and storing historic test results, this decision-making relies on parameter and includes the code of the priority of test product and version information and/or test case and/or the coupling of test product module and/or historic test results and/or test product module and the relation etc. of test case.It is hierarchy that decision-making relies on storehouse, the decision-making on upper strata relies on the decision-making of parameter inheritance lower floor and relies on all the elements of parameter, it is followed successively by test product version information, product information and public decision making from top to bottom and relies on parameter information, wherein, public decision making relies on parameter information, and the module information included including test product platform information and/or tested product platform and/or tested product platform include the code information of module and the relation of test case.
If Fig. 2 is the flow chart of automated testing method, it specifically comprises the following steps that
Step 201, system start-up, user's input test strategy.
In this step, described Test Strategy includes: measurand and test scope.The algorithm of different Test Strategies and selection can be specified for different products.
Step 202, system is according to the Test Strategy of user's input, the decision-making that inquiry inquiry pre-builds relies on storehouse, according to the decision making algorithm set, selecting corresponding test case from test case library and test, this decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to system according to Test Strategy.
Below with the Test Strategy that user is different, the test process of this step is described:
Test Strategy 1: comprehensively test.In order to obtain the quality condition of test product version as soon as possible, with different levels algorithm can be selected, first inquiry decision-making relies on storehouse and therefrom automatically selects most important test case, selected test case is also run in connecting test use-case storehouse, it is quickly obtained test result, then inquiring about decision-making dependence again and automatically select off-duty secondary important test case, connecting test use-case storehouse the test case selected by running provide test result, are finally completed the operation of whole test case.
Test Strategy 2, for the test that the partial code of test product module is revised.For the code of amendment, inquiry decision-making relies on storehouse, confirms there are other modules dependent with this module, thus after selecting influential test case, connecting test use-case storehouse is also run selected test case and runs, it is prevented that introduce the generation of problem.Which it is no longer necessary to manually go to select to need test case.
Two above Test Strategy is intended merely to and is illustrated, and is not the explanation to Test Strategy and restriction.Because Test Strategy according to the coupling of the module of test product, can also select test case;And it is different and select different test cases according to the module paid close attention to required for the version information of test product.
Decision-making relies on the content of 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) historic test results;
5) relation of the code of test product module and test case.
This decision-making relies on storehouse and adopts the mode of layering when setting up, the decision-making on upper strata relies on the decision-making of parameter inheritance lower floor and relies on all the elements of parameter, it is followed successively by test product version information, product information and public decision making from top to bottom and relies on parameter information, public decision making relies on parameter information, and the module information included including test product platform information and/or tested product platform and/or tested product platform include the code information of module and the relation of test case.
Step 203, test result is exported by system to user, and test result is written to decision-making dependence storehouse.Test result is written to decision-making and relies on the foundation parameter being intended as Tactic selection algorithm during follow-up test in storehouse.

Claims (8)

1. automated testing method, it is characterised in that comprise the following steps:
Step 1, system start-up, user's input test strategy;
Step 2, system, according to the Test Strategy of user's input, rely on storehouse by inquiring about the decision-making pre-build, according to the decision making algorithm set, select corresponding test case and test from test case library;Described decision-making relies on storehouse and selects the decision-making of test case to rely on parameter for providing to system according to Test Strategy, and described decision-making relies on parameter and includes: the code of the priority of test product and version information and/or test case and/or the coupling of test product module and/or historic test results and/or test product module and the relation of test case;
Test result is exported by step 3, system to user, and test result is written to decision-making dependence storehouse.
2. automated testing method as claimed in claim 1, it is characterised in that in step 1, described Test Strategy includes: measurand and test scope.
3. automated testing method as claimed in claim 1, it is characterized in that, in step 2, described decision-making relies on storehouse and adopts the mode of layering when setting up, the decision-making on upper strata relies on the decision-making of parameter inheritance lower floor and relies on all the elements of parameter, is followed successively by test product version information, product information and public decision making from top to bottom and relies on parameter information.
4. automated testing method as claimed in claim 3, it is characterized in that, described public decision making relies on parameter information, and the module information included including test product platform information and/or tested product platform and/or tested product platform include the code information of module and the relation of test case.
5. automatization test system, including automatic test platform and test case library, it is characterised in that also include decision-making and rely on storehouse, described automatic test platform is connected with test case library, and described decision-making relies on storehouse and is connected with automatic test platform and test case library respectively;
Described automatic test platform, for receiving the Test Strategy of user's input, Test Strategy according to user's input, the decision-making that inquiry pre-builds relies on storehouse, according to the decision making algorithm set, from test case library, load the test case that need to select test, test result is exported to user, and test result is transferred to decision-making dependence storehouse, described decision-making relies on parameter and includes: the code of the priority of test product and version information and/or test case and/or the coupling of test product module and/or historic test results and/or test product module and the relation of test case;
Described decision-making relies on storehouse, selects the decision-making of test case to rely on parameter for providing to automatic test platform according to Test Strategy, and stores historic test results.
6. automatization test system as claimed in claim 5, it is characterised in that described Test Strategy includes measurand and test scope.
7. automatization test system as claimed in claim 5, it is characterized in that, it is hierarchy that described decision-making relies on storehouse, the decision-making on upper strata relies on the decision-making of parameter inheritance lower floor and relies on all the elements of parameter, is followed successively by test product version information, product information and public decision making from top to bottom and relies on parameter information.
8. automatization test system as claimed in claim 7, it is characterized in that, described public decision making relies on parameter information, and the module information included including test product platform information and/or tested product platform and/or tested product platform include 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 CN103412818A (en) 2013-11-27
CN103412818B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN111104341B (en) * 2019-12-30 2024-01-19 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN114526925B (en) * 2022-02-21 2024-06-14 中国第一汽车股份有限公司 Off-line detection method and device for vehicle, electronic equipment and storage medium
CN114755936A (en) * 2022-04-20 2022-07-15 中国第一汽车股份有限公司 Automatic test system and method for air suspension

Citations (3)

* 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
CN102999320A (en) * 2011-09-15 2013-03-27 阿里巴巴集团控股有限公司 Automatic test case generation method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8423962B2 (en) * 2009-10-08 2013-04-16 International Business Machines Corporation Automated test execution plan generation
CN102880535B (en) * 2012-07-24 2015-10-28 播思通讯技术(北京)有限公司 A kind of wireless automatic proving installation for mobile device and method

Patent Citations (3)

* 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
CN102999320A (en) * 2011-09-15 2013-03-27 阿里巴巴集团控股有限公司 Automatic test case generation method and system

Also Published As

Publication number Publication date
CN103412818A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN103412818B (en) Automated testing method and system
CN107831757B (en) dSPACE-based motor controller hardware-in-loop automatic test system and method
US10459695B2 (en) Correction of code errors using machine learning
CN104778118B (en) The improved method of automatization testing technique
US10108536B2 (en) Integrated automated test case generation for safety-critical software
US8225288B2 (en) Model-based testing using branches, decisions, and options
CN106708718B (en) Service framework interface test method and device
CN104281518A (en) Terminal application test method, device, system and platform and mobile terminal
CN105446876B (en) Automatic testing method, device, system, electronic equipment and readable storage medium
CN105045710A (en) Method for automatically generating test data in cloud computing environment
CN104820640A (en) Webpage testing method and device
CN104881364A (en) Automated testing method and system applied to Android system
US9405663B2 (en) Generating an optimized test suite from models for use in a software testing environment
CN103984612A (en) Unattended pressure testing method based on HPL tool
CN104899132B (en) Application software testing method, apparatus and system
CN104572446A (en) Automatic testing method and automatic testing system
CN103399814A (en) Automated testing method and automated testing device
CN103186463B (en) Determine the method and system of the test specification of software
CN109558328B (en) Method, system and device for testing code coverage rate and readable storage medium
US20170060974A1 (en) Automated conversion tool for facilitating migration between data integration products
CN111209185A (en) Keyword-based automated testing method and computer-readable storage medium
CN108681507A (en) Method for realizing automatic testing of RESTful API and web service
Strauch et al. Decision support for the migration of the application database layer to the cloud
CN105162664A (en) Automatic platform testing method and system developed based on intermediate layers of instruments
CN104407978A (en) Automatic test method of software and device thereof

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