CN102662846B - Testing method combining automatic tool and testing case - Google Patents
Testing method combining automatic tool and testing case Download PDFInfo
- Publication number
- CN102662846B CN102662846B CN201210120595.5A CN201210120595A CN102662846B CN 102662846 B CN102662846 B CN 102662846B CN 201210120595 A CN201210120595 A CN 201210120595A CN 102662846 B CN102662846 B CN 102662846B
- Authority
- CN
- China
- Prior art keywords
- test
- case
- testing
- test case
- result
- 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.)
- Expired - Fee Related
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 245
- 238000010998 test method Methods 0.000 claims description 11
- 238000000034 method Methods 0.000 claims description 10
- 241001269238 Data Species 0.000 claims description 3
- 238000013101 initial test Methods 0.000 claims description 3
- 238000005259 measurement Methods 0.000 claims description 3
- 238000013095 identification testing Methods 0.000 abstract description 3
- 230000000694 effects Effects 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 235000000332 black box Nutrition 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000005728 strengthening Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a testing method combining an automatic tool and a testing case. The testing case is saved in a testing data base of the automatic tool. The testing case comprises a testing table and a testing history result table. By defining using data during testing, expectation of testing results, a unique identification testing number of the testing case and called code names, an automatic testing script in the testing data base is called to be tested. A testing result is compared with an expected result and written to a testing force table of the data base, and a program is exited. The testing method integrates the automatic tool and the testing case, adds relevance between the automatic tool and the testing case, enables the testing case to be standardized, is orderly, avoids loopholes, and is practical, easy and convenient to use and high in efficiency.
Description
Technical field
The present invention relates to a kind of method of testing of automation tools, particularly relate to the method for testing that a kind of automation tools is combined with test case.
Background technology
Existing automation tools is separated with test case, the same with the test case of Black-box Testing, is only to exist as a reference, with automatic test without any direct correlation.
The mode of this separation has its obvious defect: the effect of test case is only reference, cannot retrain automatic test, is difficult to find the two very possible disunity when automatic test has careless omission; The coverage rate of automatic test is indefinite, cannot understand those functions of automatic test and test, and those functions are not tested; The result of automatic test all only shows to only have automatic test slip-stick artist to understand on automatic test software, and searches wrong loaded down with trivial details; The preservation of robotization result needs manpower input or imports labor intensive.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, the method for testing that provides a kind of automation tools to be combined with test case, makes both become as a whole existence, mutually add association, make test case standardization, orderliness is clear, avoid starting a leak, practical simple and convenient, efficiency is high.
In order to achieve the above object, the technical solution used in the present invention is, the method of testing that a kind of automation tools is combined with test case, described test case is stored in the test database of automation tools, test case comprises test chart, and the data of having used while having defined test, the expectation of test result, the test No. of test case and the name of code calling, and need to use historical results table, and the data of having used while having defined test, the expectation of test result, the test No. of test case, the name of code calling and test history sign, method of testing step is as follows:
Step 1, startup automation tools;
Step 2, automation tools move to initial test module;
Step 3, set up being connected of automation tools and close beta database;
The test case of corresponding test module in step 4, automation tools read test database;
Step 5, all test case usage datas, expected result, name of code and test No. thereof are kept to the interim storage space of automation tools;
Step 6, read a test case, and read data, expected result and the name of code thereof of corresponding test case;
Step 7, according to the name of code of test case, call corresponding automatic test script;
The data run automatic test script of step 8, automatic test use test use-case is tested;
Step 9, by test result and expected result comparison;
Step 10, test result are consistent with expected result, according to the test No. of test case, test successful result and test duration result are write to the test case table that test database is corresponding, and be synchronously stored in historical results table, inconsistently according to test case sign, preserve test crash result to test case table corresponding to database;
Step 11, whether executed is complete to judge all test cases, is to perform step 12, otherwise reads next test case, and be back to step 7;
Step 12, whether executed is complete to judge all test modules, is to perform step 13, otherwise reads next test module and return to step 4 operation;
Step 13, exit automation tools test procedure;
Step 14, by page end Query Database, generate report.
Further, the unique identification that described test No. is test case, the corresponding test No. of each test case.
Further, the test module described in step 2 is concrete content measurement, and the robotization code of each module comprises the numbering of this module foremost for connection data storehouse, obtains the test case under module.
Further, the automatic test script described in step 7 is stored in automation tools end, as a function, exists, every corresponding function of test case, while moving to test case, according to the name of code of use-case, call automatized script function, according to use-case parameter, test.
Compared with prior art, the invention has the beneficial effects as follows: make both become as a whole existence, mutually add association, make test case standardization, orderliness is clear, avoids starting a leak, and practical simple and convenient, efficiency is high.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention.
Embodiment
Purport of the present invention is to overcome the deficiencies in the prior art, and the method for testing that provides a kind of automation tools to be combined with test case the object of the invention is to solve the problem that test case departs from automatic test entity.Test case by preserving robotization is in database, provide a kind of automatic test to call the method that test case data is tested, realize the associated of automatic test and test case, and test result is write to test case, generating report and show the test result of robotization simultaneously.Automatic test and test case are fused into as a whole, define the effect of automatic test, the statistics effect of strengthening automatic test.
Below in conjunction with embodiment, with reference to accompanying drawing, be elaborated, to technical characterictic of the present invention and advantage are interpretated more in-depth.
Method flow diagram of the present invention as shown in Figure 1, the method of testing that a kind of automation tools is combined with test case, described test case is stored in the test database of automation tools, test case comprises test chart, and data, the expectation of test result, the test No. of test case while having defined test, used and the name of code calling, and need to use historical results table, and the data of having used while having defined test, the expectation of test result, the test No. of test case, the name of code calling and test history sign, method of testing step is as follows:
Step 1, startup automation tools;
Step 2, automation tools move to initial test module;
Step 3, set up being connected of automation tools and close beta database;
The test case of corresponding test module in step 4, automation tools read test database;
Step 5, all test case usage datas, expected result, name of code and test No. thereof are kept to the interim storage space of automation tools;
Step 6, read a test case, and read data, expected result and the name of code thereof of corresponding test case;
Step 7, according to the name of code of test case, call corresponding automatic test script;
The data run automatic test script of step 8, automatic test use test use-case is tested;
Step 9, by test result and expected result comparison;
Step 10, test result are consistent with expected result, according to the test No. of test case, test successful result and test duration result are write to the test case table that test database is corresponding, and be synchronously stored in historical results table, inconsistently according to test case sign, preserve test crash result to test case table corresponding to database;
Step 11, whether executed is complete to judge all test cases, is to perform step 12, otherwise reads next test case, and be back to step 7;
Step 12, whether executed is complete to judge all test modules, is to perform step 13, otherwise reads next test module and return to step 4 operation;
Step 13, exit automation tools test procedure;
Step 14, by page end Query Database, generate report.
Further, the unique identification that described test No. is test case, the corresponding test No. of each test case.
Further, the test module described in step 2 is concrete content measurement, and the robotization code of each module comprises the numbering of this module foremost for connection data storehouse, obtains the test case under module.
Further, the automatic test script described in step 7 is stored in automation tools end, as a function, exists, every corresponding function of test case, while moving to test case, according to the name of code of use-case, call automatized script function, according to use-case parameter, test.
For example, in concrete test, the present invention requires the form of automatic test cases operating specification to be stored in database.Need test case table tescasetable, data fvalue, the expectation fexpert of test result having used while wherein at least clearly having defined test is, the unique identification test No. fseq of test case and the name of code fscriptnm that calls.Need to use historical results table webresult, wherein define content and tescasetable is close, and many test history sign fwebseq.
Practical operation step is as follows:
Step 1, startup automation tools;
Step 2, automation tools move to starting module;
Step 3, set up being connected of automation tools and database;
The test case of respective modules in step 4, automation tools reading database;
Step 5, test case usage data fvalue, expected result fexpert, name of code fscriptnm and unique identification fseq thereof are stored in to the interim storage space of automation tools, other use-cases explanations are also brought in the lump to observe;
Step 6, read a test case, read the data fvalue of corresponding test case, and expected result fexpert, name of code fscriptnm;
Step 7, according to the name of code fscriptnm of test case, call corresponding automatized script;
Step 8, automatic test usage data fvalue operation, and by test result and expected result fexpert comparison;
If step 9 result is consistent with expectation, according to the unique identification fseq of use-case, by test case table testcasetable table corresponding to PASS+TIME write into Databasce, and be synchronously stored in historical results table webresult;
Step 10, read next test case, if there is use-case to be back to step 7;
Step 11, when front module is without next test case, read next module, return to step 4 operation;
Step 12, whole module are moved complete;
Step 13, automated procedures exit;
Step 14, by page end Query Database, generate report.
The method of testing that a kind of automation tools is combined with test case, described test case is stored in the test database of automation tools, test case comprises test chart and test history result table, the data, the expectation of test result, the unique identification test No. of test case and the name of code calling that while testing by having defined, use, the automatic test script calling in test database is tested, and test result and expected results are contrasted, and during the test of test result write into Databasce is firmly shown, and quit a program.The present invention makes both become as a whole existence, mutually adds association, makes test case standardization, and orderliness is clear, avoids starting a leak, and practical simple and convenient, efficiency is high.
The content of mentioning in above-described embodiment is not limitation of the invention, is not departing under the prerequisite of inventive concept of the present invention, and any apparent replacement is all within protection scope of the present invention.
Claims (3)
1. the method for testing that automation tools is combined with test case, it is characterized in that, described test case is stored in the test database of automation tools, test case comprises test chart, and data, the expectation of test result, the test No. of test case while having defined test, used and the name of code calling, and need to use historical results table, and the data of having used while having defined test, the expectation of test result, the test No. of test case, the name of code calling and test history sign, method of testing step is as follows:
Step 1, startup automation tools;
Step 2, automation tools move to initial test module;
Step 3, set up being connected of automation tools and close beta database;
The test case of corresponding test module in step 4, automation tools read test database;
Step 5, all test case usage datas, expected result, name of code and test No. thereof are kept to the interim storage space of automation tools;
Step 6, read a test case, and read data, expected result and the name of code thereof of corresponding test case;
Step 7, according to the name of code of test case, call corresponding automatic test script; Described automatic test script is stored in automation tools end, as a function, exists, and every corresponding function of test case, while moving to test case, according to the name of code of use-case, calls automatized script function, according to use-case parameter, tests;
The data run automatic test script of step 8, automatic test use test use-case is tested;
Step 9, by test result and expected result comparison;
Step 10, test result are consistent with expected result, according to the test No. of test case, test successful result and test duration result are write to the test case table that test database is corresponding, and be synchronously stored in historical results table, inconsistently according to test case sign, preserve test crash result to test case table corresponding to database;
Step 11, whether executed is complete to judge all test cases, is to perform step 12, otherwise reads next test case, and be back to step 7;
Step 12, whether executed is complete to judge all test modules, is to perform step 13, otherwise reads next test module and return to step 4 operation;
Step 13, exit automation tools test procedure;
Step 14, by page end Query Database, generate report.
2. the method for testing that automation tools according to claim 1 is combined with test case, is characterized in that: the unique identification that described test No. is test case, the corresponding test No. of each test case.
3. the method for testing that automation tools according to claim 2 is combined with test case, it is characterized in that: the test module described in step 2 is concrete content measurement, the robotization code of each module comprises the numbering of this module foremost for connection data storehouse, obtains the test case under module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210120595.5A CN102662846B (en) | 2012-04-24 | 2012-04-24 | Testing method combining automatic tool and testing case |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210120595.5A CN102662846B (en) | 2012-04-24 | 2012-04-24 | Testing method combining automatic tool and testing case |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102662846A CN102662846A (en) | 2012-09-12 |
CN102662846B true CN102662846B (en) | 2014-12-10 |
Family
ID=46772343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210120595.5A Expired - Fee Related CN102662846B (en) | 2012-04-24 | 2012-04-24 | Testing method combining automatic tool and testing case |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102662846B (en) |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252413B (en) * | 2013-06-27 | 2018-06-05 | 阿里巴巴集团控股有限公司 | A kind of automatized script generation method, apparatus and system |
CN103546346B (en) * | 2013-10-24 | 2016-12-07 | 上海斐讯数据通信技术有限公司 | A kind of synchronous polling automated testing method of logic-based link |
CN104699594A (en) * | 2013-12-05 | 2015-06-10 | 北汽福田汽车股份有限公司 | Test method and test equipment |
CN104360940A (en) * | 2014-10-31 | 2015-02-18 | 北京交控科技有限公司 | DSU (Data Service Unit) test method and device |
CN104331369B (en) * | 2014-11-21 | 2019-10-15 | 北京奇虎科技有限公司 | Page detection method and device, server based on browser |
CN104461895B (en) * | 2014-12-17 | 2017-11-24 | 广东欧珀移动通信有限公司 | The edit methods and system and automatization test system of cycle tests |
CN105159834B (en) * | 2015-10-24 | 2017-11-03 | 北京航空航天大学 | A kind of software dynamic testing service data extracting method |
CN105893245A (en) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and apparatus for shielding running difference of different testing tools |
CN105653445B (en) * | 2015-12-25 | 2018-01-16 | 中电科航空电子有限公司 | A kind of implementation method for meeting DO 178C test results |
CN106021114B (en) * | 2016-06-02 | 2018-07-10 | 北京光年无限科技有限公司 | Towards the automated testing method and system of intelligent robot |
CN106227658A (en) * | 2016-07-15 | 2016-12-14 | 珠海市魅族科技有限公司 | The management method of a kind of test case, system and device |
CN106227659B (en) * | 2016-07-21 | 2019-02-05 | 珠海市魅族科技有限公司 | A kind of method of data synchronization, system and device |
CN106445819A (en) * | 2016-09-20 | 2017-02-22 | 湖南明康中锦医疗科技发展有限公司 | GUI (graphical user interface) intelligent test method and test system for ventilator |
CN108268379B (en) * | 2018-02-02 | 2020-01-03 | 方欣科技有限公司 | Distributed automatic testing method and device |
CN109002398A (en) * | 2018-07-26 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of Auto-matching formula server software test terminal |
CN110795332A (en) * | 2018-08-03 | 2020-02-14 | 北京京东尚科信息技术有限公司 | Automatic testing method and device |
CN111558953A (en) * | 2020-04-30 | 2020-08-21 | 广东博智林机器人有限公司 | Automated test platform, method and storage medium |
CN111813652B (en) * | 2020-05-28 | 2023-07-04 | 杭州览众数据科技有限公司 | Automatic test method for checking abnormal value of data related to data missing |
CN112306868A (en) * | 2020-10-26 | 2021-02-02 | 深圳创维-Rgb电子有限公司 | Automatic testing method of Google mobile service, terminal equipment and storage medium |
CN112486845A (en) * | 2020-12-18 | 2021-03-12 | 南京艾科朗克信息科技有限公司 | Automatic testing method for security counter |
CN112699033B (en) * | 2020-12-29 | 2023-05-23 | 中国航空工业集团公司西安飞机设计研究所 | Multi-partition airborne software test case multistage synchronous loading method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1503168A (en) * | 2002-11-22 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Automatic test method for system products |
CN1503136A (en) * | 2002-11-21 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Embedded software test method |
CN102110049A (en) * | 2010-12-14 | 2011-06-29 | 中山大学 | Method and system for automatically testing digital television middleware interface |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7373636B2 (en) * | 2002-05-11 | 2008-05-13 | Accenture Global Services Gmbh | Automated software testing system and method |
TWI373711B (en) * | 2008-10-09 | 2012-10-01 | Primax Electronics Ltd | Method for testing controls of application software automatically |
-
2012
- 2012-04-24 CN CN201210120595.5A patent/CN102662846B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1503136A (en) * | 2002-11-21 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Embedded software test method |
CN1503168A (en) * | 2002-11-22 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Automatic test method for system products |
CN102110049A (en) * | 2010-12-14 | 2011-06-29 | 中山大学 | Method and system for automatically testing digital television middleware interface |
Also Published As
Publication number | Publication date |
---|---|
CN102662846A (en) | 2012-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102662846B (en) | Testing method combining automatic tool and testing case | |
CN100583920C (en) | Method and apparatus for generating testing script, testing method, apparatus and system | |
CN102479084A (en) | Method and device for acquiring log by Android terminal | |
CN103268289B (en) | Record the method and system of application testing script on mobile terminals | |
CN102799511A (en) | Android-based automatic test method and system | |
CN102831052A (en) | Automatic generating device and method for test case | |
CN101727390A (en) | Method and device for debugging performance test scripts | |
CN104598274A (en) | Automatic instrumentation, compiling and installing method and system | |
CN108415830A (en) | A kind of generation method and device of software test case | |
CN103345442A (en) | Equipment automated testing service integration system | |
CN102486748B (en) | Method and device for performance test | |
CN104484267A (en) | Testing system and method | |
CN102063355B (en) | Automatic test server and system of disk array | |
CN102495790A (en) | Version change difference identifier and version change identification method | |
CN101174237A (en) | Automatic test method, system and test device | |
CN104536874A (en) | Client collapse locating method and device | |
CN104391794A (en) | Automatic testing method for multiple scripts | |
CN105827460A (en) | Automatic testing method, device and system of network device | |
CN104375940A (en) | Debugging method for JavaScript files | |
CN103942140A (en) | Automatic testing program conversion method | |
CN107704376B (en) | Game automation testing method and system | |
CN107562619B (en) | Automatic control traversing method and terminal based on neuron model | |
CN105204994A (en) | Automation test method and system | |
CN106528364B (en) | The building method of automation collaborative verification platform based on memory access driving | |
CN103279420B (en) | The application program for mobile terminal automated testing method optimized and system |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141210 |
|
CF01 | Termination of patent right due to non-payment of annual fee |