CN101662394A - Automated testing system and automated testing method - Google Patents
Automated testing system and automated testing method Download PDFInfo
- Publication number
- CN101662394A CN101662394A CN200910092707A CN200910092707A CN101662394A CN 101662394 A CN101662394 A CN 101662394A CN 200910092707 A CN200910092707 A CN 200910092707A CN 200910092707 A CN200910092707 A CN 200910092707A CN 101662394 A CN101662394 A CN 101662394A
- Authority
- CN
- China
- Prior art keywords
- test
- automatization
- collection
- test data
- tested
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides an automated testing system and an automated testing method, wherein the automated testing system comprises a process driving module used for reading the test process of a tested business system, a data driving module used for loading the test data of the tested business system, and an executing module used for calling the operating method set used in the test process, carrying out automated testing on the test data and obtaining a test result; the operating method set used comprises a system common function library and/or a business program package corresponding to thetested business system; the system common function library is used for providing a common operating method set for the tested business system; and the business program package is used for providing adifferential operating method set for the tested business system. The invention can carry out automated testing on different business systems.
Description
Technical field
The present invention relates to the automatization testing technique field, relate in particular to a kind of automatization test system and automated testing method.
Background technology
Along with popularizing and development of the communication technology, various new communication services also constantly produce, and the appearance of each communication service must need the support of corresponding business system.The client is more and more stricter to the requirement of operation system, not only requires the operation system function huge, and require the construction cycle to shorten, system's running quality will improve.In order to guarantee system's running quality, before operation system is used, need carry out a series of system testing, otherwise, the mistake that is difficult to expect very likely appears when using.
Traditional automatization test system normally makes up at specific operation system, for different operation systems, perhaps under the business demand variation situation greatly of operation system, often needs to develop again corresponding automatization test system.Yet, again develop automatization test system and need the long construction cycle, thereby can have influence on the construction cycle of operation system, therefore, traditional automatization test system is difficult to adapt to the requirement that the current operation system improves construction cycle shortening, system's running quality.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of automatization test system and automated testing method, can carry out automatic test to different operation systems.
For addressing the above problem, the embodiment of the invention provides a kind of automatization test system, comprising:
The flow process driver module is used to read the testing process of tested operation system;
The data-driven module is used to load the test data of described tested operation system;
Executive Module, be used for calling described testing process and need the method for operation collection that uses, described test data is carried out automatic test, and obtain a test result, the described method of operation collection that needs to use comprises: system share function library and/or described tested operation system corresponding service program package, the shared function library of described system is used to provide the general operation method collection of described tested operation system, and described business procedure bag is used to provide the difference method of operation collection of described tested operation system.
Described automatization test system also comprises:
Memory module is used for the public function library of storage system.
Described automatization test system also comprises:
The keyword translation module is used for when described testing process has defined keyword described keyword being translated, and obtains the method for operation collection of described keyword correspondence;
Described Executive Module is further used for calling the method for operation collection of described keyword correspondence, and described test data is carried out automatic test, obtains described test result.
Described automatization test system also comprises:
Load-on module is used to load system's operation configuration of described tested operation system, has defined the path of depositing of described test data and described test result in the operation configuration of described system;
Described Executive Module comprises:
Call unit is used for calling described testing process and needs the method for operation collection that uses;
Acquiring unit is used for the path of depositing according to the test data of described system operation configuration definition, obtains described test data;
Test cell is used for described test data is carried out automatic test, and obtains a test result, and according to the path of depositing of the described test result of described system operation configuration definition, deposits described test result.
Described automatization test system also comprises:
Logger module is used for the register system running log.
The embodiment of the invention also provides a kind of automated testing method, may further comprise the steps:
Automatization test system reads the testing process of tested operation system;
Described automatization test system loads the test data of described tested operation system;
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain a test result, the described method of operation collection that needs to use comprises: system share function library and/or described tested operation system corresponding service program package, the shared function library of described system is used to provide the general operation method collection of described tested operation system, and described business procedure bag is used to provide the difference method of operation collection of described tested operation system.
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain also comprising before the test result:
The public function library of described automatization test system storage system.
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain also comprising before the test result:
When described automatization test system has defined keyword in described testing process, described keyword is translated, obtain the method for operation collection of described keyword correspondence;
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain a test result, is specially:
Described automatization test system calls the method for operation collection of described keyword correspondence, and described test data is carried out automatic test, obtains described test result.
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain also comprising before the test result:
Described automatization test system loads system's operation configuration of described tested operation system, the operation configuration definition of described system described test data and described test result deposit the path;
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain being specially before the test result:
Described automatization test system calls needs the method for operation collection that uses in the described testing process;
Described automatization test system obtains described test data according to the path of depositing of the test data that defines in the operation configuration of described system;
Described automatization test system carries out automatic test to described test data, and obtains a test result, and according to the path of depositing of the described test result of described system operation configuration definition, deposits described test result.
Described automated testing method also comprises:
Described automatization test system register system running log.
Embodiments of the invention have following beneficial effect:
Read the testing process of tested operation system, call and need the system share function library and/or the tested operation system corresponding service program package that use in the testing process, test data is carried out automatic test, wherein, the shared function library of system is used to provide the general operation method collection of tested operation system, the business procedure bag is used to provide the difference method of operation collection to tested operation system, therefore, can carry out automatic test to different operation systems, be adapted to the requirement of operation system R﹠D cycle shortening and quality lifting.
Description of drawings
Fig. 1 is a structural representation of the automatization test system of the embodiment of the invention;
Fig. 2 is another structural representation of the automatization test system of the embodiment of the invention;
Fig. 3 is the layer architecture schematic diagram of the automatization test system of the embodiment of the invention;
Fig. 4 is a flow process schematic diagram of the automated testing method of the embodiment of the invention;
Fig. 5 is a concrete application scenarios schematic diagram of the automated testing method of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.
Be illustrated in figure 1 as a structural representation of the automatization test system of the embodiment of the invention, described automatization test system comprises:
Flow process driver module 101 is used to read the testing process of tested operation system.Described testing process is to define according to the operation flow of tested operation system in advance.
Data-driven module 102 is used to load the test data of described tested operation system.
Wherein, the general operation of tested operation system, be meant operation commonly used in the operation system, for example: operation of the operation of database, the operation of network service, user interface or the like, described system share function library then can provide those general operation method collection, and the difference operation of described tested operation system is meant the operation different with other operation systems, described business procedure bag is developed at described difference operation in advance, and described difference method of operation collection is provided.
As shown in Figure 2, the automatization test system in the foregoing description also has a memory module 104, is used for the public function library of storage system.Automatization test system is when operation, can at first the whole loadings of the system share function library of storage in the described memory module 104 be come in, being beneficial to described Executive Module 103 calls, certainly, also can be when operation, at first analyzing needs the system share function library used in the described testing process, only load the current system share function library used of needing.
In addition, also can adopt the formal description test logic of keyword in the described testing process, described automatization test system need be translated described keyword, obtains the method for operation collection of keyword correspondence, as shown in Figure 2, described automatization test system also comprises:
Keyword translation module 105 is used for when described testing process has defined keyword described keyword being translated, and obtains the method for operation collection of described keyword correspondence; Certainly, system needs the method for operation collection of pre-defined keyword and keyword correspondence;
Described Executive Module 103 is further used for calling the method for operation collection of described keyword correspondence, and described test data is carried out automatic test, obtains described test result.
Before carrying out automatic test, the user also needs the operation configuration of pre-defined system, for example, test data deposit path, test result deposit path etc., described automatization test system is when operation, need to load the operation configuration of described system, as shown in Figure 2, described automatization test system also comprises:
Load-on module 106 is used to load system's operation configuration of described tested operation system, and the operation configuration of described system comprises the path of depositing of described test data and described test result;
Described Executive Module 103 comprises:
Call unit 1031 is used for calling described testing process and needs the method for operation collection that uses;
Acquiring unit 1032 is used for the path of depositing according to the test data of described system operation configuration definition, obtains described test data;
The user is to the inquiry of automatic test course for convenience, and described automatization test system also comprises: logger module is used for the register system running log.
Be illustrated in figure 3 as the layer architecture schematic diagram of the automatization test system of the embodiment of the invention, automatization test system in the foregoing description can be regarded as a framework with three-tier architecture, be respectively: supporting layer, Drive Layer and application layer, wherein, the frequent part of professional variation in the operation system is placed on application layer to be realized, general type of drive and public function library are realized on supporting layer and Drive Layer, set up stable healthy and strong base layer support, give security for application layer realizes the automatic test that adapts to the different business application system fast.
Wherein, supporting layer is used to encapsulate the system share function library of supporting the automatic test operation, provides calling interface to upper strata (application layer and Drive Layer), and the upper strata does not need to be concerned about the specific implementation of supporting layer, as shown in Figure 3, described system share function library specifically can comprise following content:
(1) database component bag is realized the method for operation collection to the data of different types storehouse, as the functions such as execution, Database Backup and recovery of the connection of database, inquiry, SQL (SQL) statement.
(2) networking component bag provides the method for operation collection of communication Network Based, as sets up functions such as network connects, support Telnet, FTP, socket connection
(3) UI (user interface) recognizer component bag at general page UI element in the operation system, provides recognition function, makes the automatization test system can identification such as general page UI element such as button, combobox, text box.
(4) UI operating assembly bag is for page UI element provides basic method of operation collection, as to the clicking operation of button, the assign operation of text box, the selection operation of combobox etc.
(5) abnormality processing assembly bag provides set of strategies to the system-level abnormality processing that takes place in system's running, as the automatic processing policy under the abnormal conditions such as can't discern, the operation of system emerged in operation reports an error at UI
(6) test report assembly bag, provide system automation test to finish after, provide the method for test report at the automatic test situation.
(7) unify the configuration component bag, the method collection of unified configuration be provided in the automated system running, as the reading of configuration, be provided with, renewal etc.
(8) file process assembly bag provides the processing method collection at system file, as establishment, the deletion of system file, upgrade, read, function such as search.
(9) log component bag provides the method for log record in the automatization test system running, comprises daily record rank, export target etc.
Above-mentioned supporting layer has defined all general operation in the automatic test course, and those are packaged in the supporting layer by operation, and upper layer module does not need to be concerned about the specific implementation of supporting layer, has simplified the implementation complexity of automatic test.
Drive Layer has comprised the driver module of automatic test operation, can comprise: flow process driver module, data-driven module and keyword driver module etc., the method for organizing that provides automatization test system to move.
(1) flow process driver module: be used to read the testing process of tested operation system, flow process driver module back-up system adopts different testing processs to carry out automatic test.
(2) data-driven module: be used to load the test data of tested operation system, data-driven module back-up system uses different test datas that operation system is carried out automatic test.
(3) keyword driver module: back-up system is translated keyword, by the keyword driver module, can adopt the mode of keyword to come the organization procedure script, thereby realizes that the basic functions script need not be changed when operation system changes.
Include in the application layer at the business procedure bag of the difference operation exploitation of tested operation system, the test data of tested operation system, the definition of testing process, and the tested object storehouse etc., thereby, the automatization test system of multiple different operation system by the embodiment of the invention can be carried out automatic test.
Be illustrated in figure 4 as a flow process schematic diagram of the automated testing method of the embodiment of the invention, described automated testing method comprises:
Wherein, the general operation of tested operation system, be meant operation commonly used in the operation system, for example: operation of the operation of database, the operation of network service, user interface or the like, described system share function library then can provide those general operation method collection, and the difference operation of described tested operation system is meant the operation different with other operation systems, described business procedure bag is developed at described difference operation in advance, and difference method of operation collection is provided.
Automatization test system in the foregoing description also needed to store described system share function library before carrying out automatic test, therefore, also comprise before the above-mentioned steps 403: the step of the public function library of described automatization test system storage system.
In addition, also can adopt the formal description test logic of keyword in the described testing process, described automatization test system need be translated described keyword, obtain the method for operation collection of keyword correspondence, therefore, before the above-mentioned steps 403, also comprise: when described automatization test system has defined keyword in described testing process, described keyword is translated, obtain the method for operation collection of described keyword correspondence; At this moment, above-mentioned steps 403 is specially: described automatization test system calls the method for operation collection of described keyword correspondence, and described test data is carried out automatic test, obtains described test result.
Before carrying out automatic test, the user also needs the operation configuration of pre-defined system, for example, test data deposit path, test result deposit path etc., described automatization test system is when operation, also need to load the operation configuration of described system, therefore, also comprise before the above-mentioned steps 403:
Described automatization test system loads system's operation configuration of described tested operation system, the step of depositing the path of described system has moved configuration definition described test data and described test result.
At this moment, above-mentioned steps 403 is specially: described automatization test system calls needs the method for operation collection that uses in the described testing process; Described automatization test system obtains described test data according to the path of depositing of the test data that defines in the operation configuration of described system; Described automatization test system carries out automatic test to described test data, and obtains a test result, and according to the path of depositing of the described test result of described system operation configuration definition, deposits described test result.
The user is to the inquiry of automatic test course for convenience, and above-mentioned automated testing method also comprises: the step of described automatization test system register system running log.
Be illustrated in figure 5 as a concrete application scenarios schematic diagram of the automated testing method of the embodiment of the invention, being example with the operation system with single user interface describes the automated testing method of the embodiment of the invention, and the automated testing method of the embodiment of the invention may further comprise the steps:
Step 505 is called the system share function of supporting layer and is the business procedure bag of tested operation system definition, and the recognition user interface object obtains described test data, carries out the associative operation of user interface object;
Step 506 is checked ruuning situation, and record running log and test result;
Step 507 judges whether current testing process finishes, if, execution in step 508, otherwise return step 504, continue to load test data and carry out automatic test;
Step 508 outputs test result.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (10)
1. an automatization test system is characterized in that, comprising:
The flow process driver module is used to read the testing process of tested operation system;
The data-driven module is used to load the test data of described tested operation system;
Executive Module, be used for calling described testing process and need the method for operation collection that uses, described test data is carried out automatic test, and obtain a test result, the described method of operation collection that needs to use comprises: system share function library and/or described tested operation system corresponding service program package, the shared function library of described system is used to provide the general operation method collection of described tested operation system, and described business procedure bag is used to provide the difference method of operation collection of described tested operation system.
2. automatization test system according to claim 1 is characterized in that, also comprises:
Memory module is used for the public function library of storage system.
3. automatization test system according to claim 1 is characterized in that, also comprises:
The keyword translation module is used for when described testing process has defined keyword described keyword being translated, and obtains the method for operation collection of described keyword correspondence;
Described Executive Module is further used for calling the method for operation collection of described keyword correspondence, and described test data is carried out automatic test, obtains described test result.
4. automatization test system according to claim 1 is characterized in that, also comprises:
Load-on module is used to load system's operation configuration of described tested operation system, has defined the path of depositing of described test data and described test result in the operation configuration of described system;
Described Executive Module comprises:
Call unit is used for calling described testing process and needs the method for operation collection that uses;
Acquiring unit is used for the path of depositing according to the test data of described system operation configuration definition, obtains described test data;
Test cell is used for described test data is carried out automatic test, and obtains a test result, and according to the path of depositing of the described test result of described system operation configuration definition, deposits described test result.
5. automatization test system according to claim 1 is characterized in that, also comprises:
Logger module is used for the register system running log.
6. an automated testing method is characterized in that, may further comprise the steps:
Automatization test system reads the testing process of tested operation system;
Described automatization test system loads the test data of described tested operation system;
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain a test result, the described method of operation collection that needs to use comprises: system share function library and/or described tested operation system corresponding service program package, the shared function library of described system is used to provide the general operation method collection of described tested operation system, and described business procedure bag is used to provide the difference method of operation collection of described tested operation system.
7. automated testing method according to claim 6, it is characterized in that described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain also comprising before the test result:
The public function library of described automatization test system storage system.
8. automated testing method according to claim 6, it is characterized in that described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain also comprising before the test result:
When described automatization test system has defined keyword in described testing process, described keyword is translated, obtain the method for operation collection of described keyword correspondence;
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain a test result, is specially:
Described automatization test system calls the method for operation collection of described keyword correspondence, and described test data is carried out automatic test, obtains described test result.
9. automated testing method according to claim 6, it is characterized in that described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain also comprising before the test result:
Described automatization test system loads system's operation configuration of described tested operation system, the operation configuration definition of described system described test data and described test result deposit the path;
Described automatization test system calls needs the method for operation collection that uses in the described testing process, described test data is carried out automatic test, and obtain being specially before the test result:
Described automatization test system calls needs the method for operation collection that uses in the described testing process;
Described automatization test system obtains described test data according to the path of depositing of the test data that defines in the operation configuration of described system;
Described automatization test system carries out automatic test to described test data, and obtains a test result, and according to the path of depositing of the described test result of described system operation configuration definition, deposits described test result.
10. automated testing method according to claim 6 is characterized in that, also comprises:
Described automatization test system register system running log.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100927079A CN101662394B (en) | 2009-09-15 | 2009-09-15 | Automated testing system and automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100927079A CN101662394B (en) | 2009-09-15 | 2009-09-15 | Automated testing system and automated testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101662394A true CN101662394A (en) | 2010-03-03 |
CN101662394B CN101662394B (en) | 2012-07-18 |
Family
ID=41790200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100927079A Expired - Fee Related CN101662394B (en) | 2009-09-15 | 2009-09-15 | Automated testing system and automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101662394B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914384A (en) * | 2014-04-10 | 2014-07-09 | 国家电网公司 | Automatic request-change driven testing method |
CN103970614A (en) * | 2013-01-24 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Service testing method and device |
CN108121649A (en) * | 2016-11-30 | 2018-06-05 | 上海前隆信息科技有限公司 | Automated test frame forming method and system |
CN113110982A (en) * | 2021-03-29 | 2021-07-13 | 青岛海尔科技有限公司 | Data access layer verification method and device, storage medium and electronic device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100401264C (en) * | 2005-06-06 | 2008-07-09 | 华为技术有限公司 | Data-driven automatic testing system and method |
CN100401265C (en) * | 2005-06-06 | 2008-07-09 | 华为技术有限公司 | Keyword-driven automatic testing system and method |
-
2009
- 2009-09-15 CN CN2009100927079A patent/CN101662394B/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970614A (en) * | 2013-01-24 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Service testing method and device |
CN103970614B (en) * | 2013-01-24 | 2018-07-06 | 腾讯科技(深圳)有限公司 | A kind of service test method and device |
CN103914384A (en) * | 2014-04-10 | 2014-07-09 | 国家电网公司 | Automatic request-change driven testing method |
CN103914384B (en) * | 2014-04-10 | 2016-04-27 | 国家电网公司 | A kind of demand changes the automated testing method driven |
CN108121649A (en) * | 2016-11-30 | 2018-06-05 | 上海前隆信息科技有限公司 | Automated test frame forming method and system |
CN113110982A (en) * | 2021-03-29 | 2021-07-13 | 青岛海尔科技有限公司 | Data access layer verification method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN101662394B (en) | 2012-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102831052B (en) | Test exemple automation generating apparatus and method | |
US8151248B1 (en) | Method and system for software defect management | |
CN103412820B (en) | The method of testing of the page in Web system and device | |
CN100461197C (en) | Automatic analysis system and method for malicious code | |
CN101526919B (en) | Method for generating script files to test Web application software and device thereof | |
CN109445842A (en) | Rule generating method, device, computer equipment and storage medium | |
CN102650938B (en) | Management method for log system and log system | |
CN102236672A (en) | Method and device for importing data | |
CN102135938A (en) | Software product testing method and system | |
CN104598380A (en) | Method and system for automatic testing based on control | |
CN110109897A (en) | Database script generation method, device, computer equipment and storage medium | |
US20080010535A1 (en) | Automated and configurable system for tests to be picked up and executed | |
CN111756575A (en) | Performance analysis method and device of storage server and electronic equipment | |
CN104182335A (en) | Software testing method and device | |
CN101650653A (en) | Daily constructing method and device | |
CN106021543A (en) | Data pre-processing method and device | |
CN111258881B (en) | Intelligent test system for workflow test | |
CN101662394B (en) | Automated testing system and automated testing method | |
CN112147987B (en) | Vehicle diagnosis method, vehicle diagnosis device and terminal equipment | |
CN108399125A (en) | Automated testing method, device, computer equipment and storage medium | |
CN112068981A (en) | Knowledge base-based fault scanning recovery method and system in Linux operating system | |
CN100470495C (en) | Automated test method and apparatus for quick positioning question | |
CN102340429A (en) | Automatic Internet protocol recovery detection method | |
CN113220597B (en) | Test method, test device, electronic equipment and storage medium | |
CN104461864A (en) | Java source code defect detecting method and system based on Eclipse plugin |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120718 Termination date: 20150915 |
|
EXPY | Termination of patent right or utility model |