CN102831052B - Test exemple automation generating apparatus and method - Google Patents

Test exemple automation generating apparatus and method Download PDF

Info

Publication number
CN102831052B
CN102831052B CN201110162821.1A CN201110162821A CN102831052B CN 102831052 B CN102831052 B CN 102831052B CN 201110162821 A CN201110162821 A CN 201110162821A CN 102831052 B CN102831052 B CN 102831052B
Authority
CN
China
Prior art keywords
data
test
test cases
exemple automation
generating apparatus
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
CN201110162821.1A
Other languages
Chinese (zh)
Other versions
CN102831052A (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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201110162821.1A priority Critical patent/CN102831052B/en
Publication of CN102831052A publication Critical patent/CN102831052A/en
Application granted granted Critical
Publication of CN102831052B publication Critical patent/CN102831052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention proposes a kind of test exemple automation generating apparatus and method.Wherein, described test exemple automation generating apparatus comprises data extraction module, data analysis module, scenario reduction module, Test cases technology module, test starting module and data memory module.Test exemple automation generating apparatus disclosed in this invention and method can improve formation efficiency, the coverage rate of test case significantly, and thus there is higher dirigibility and comprehensive, in addition, the performance of production system can not be affected, and there is higher system compatibility.

Description

Test exemple automation generating apparatus and method
Technical field
The present invention relates to Test cases technology device and method, more specifically, relate to test exemple automation generating apparatus and method.
Background technology
At present, along with become increasingly abundant (such as the financial transaction field) of the class of business of the growing of computer technology and different field, to based on the automated testing method of test case and the demand of system growing, therefore, the generating apparatus of test case and method become more and more important.
Usually, existing Test cases technology device and method is divided into two classes substantially, wherein, the ultimate principle of first kind method is as follows: automatically generate according to (i.e. relative quiescent) the Test Sample Design algorithm preset.The ultimate principle of Equations of The Second Kind method is as follows: the code of amendment system under test (SUT), to export critical path information, and catches described critical path information and generating test use case.
But there are the following problems for aforementioned first kind method: it is only that thus coverage rate is limited existing method for test examples design sequencing, especially cannot simulate special screne.There are the following problems for aforementioned Equations of The Second Kind method: user must revise the code of system under test (SUT), thus can affect or disturb the normal operation of system under test (SUT).
In addition, there is problem common as follows in above-mentioned two class methods: the generation of (1) test case needs more artificial participation, is thus difficult to the full-automation realizing whole test process; (2) if input identical parameter, then fixing test case can be generated, therefore the dirigibility of test case and comprehensive lower.
Therefore, there is following demand: provide a kind of test exemple automation generating apparatus based on actual source data (such as production data) and method.
Summary of the invention
In order to solve problem existing in above-mentioned prior art, the present invention proposes a kind of test exemple automation generating apparatus based on actual source data and method.
The object of the invention is to be achieved through the following technical solutions:
A kind of test exemple automation generating apparatus, described test exemple automation generating apparatus comprises:
Data extraction module, described data extraction module is used for obtaining raw data from data source, and is stored in data memory module by described raw data;
Data analysis module, described data analysis module is used for the result data read successively from described data memory module in described raw data, and analyzes described result data, thus obtains the associated data corresponding with described result data;
Scenario reduction module, the associated data that described scenario reduction module is used for analyzing described in basis restores actual scene;
Test cases technology module, the actual scene that described Test cases technology module is used for restoring described in basis combines each atomic test step to form test case;
Test starting module, described test starting module is used for calling automated test tool and performs described established test case;
Data memory module, described data memory module is for storing the described raw data from described data extraction module.
In scheme disclosed above, preferably, described raw data is actual production data.
In scheme disclosed above, preferably, described associated data comprises pilot process data, advance data, Audit data and service parameter.
In scheme disclosed above, preferably, described data memory module is local data base.
In scheme disclosed above, preferably, described raw data comprises result data, pilot process data, advance data, Audit data and/or service parameter.
In scheme disclosed above, preferably, described data analysis module comprises further:
Advance data searches unit, and described advance data searches unit at least one advance data for finding out from the preposition table of the business described data memory module corresponding to described result data according to the result data in the described raw data read out;
Process data searches unit, and described process data searches unit at least one process record data for finding out from the business procedure record sheet described data memory module corresponding to described result data according to the result data in the described raw data read out;
Audit data searches unit, and described Audit data searches unit at least one Audit data for finding out from the Audit data table described data memory module corresponding to described result data according to the result data in the described raw data read out.
In scheme disclosed above, preferably, described data analysis module 3 comprises relevant parameter further and searches unit.Described relevant parameter searches unit at least one specific transactions parameter for finding out from the service parameter table described data memory module corresponding to described result data according to the result data in the described raw data read out.
In scheme disclosed above, preferably, described specific transactions parameter is time-constrain parameter.
In scheme disclosed above, preferably, described data analysis module comprises exception processing unit further.Described exception processing unit is for the treatment of the exception occurred in described analytic process.
In scheme disclosed above, preferably, the associate field that described data analysis module parses major key according to described result data and shows with other.
In scheme disclosed above, preferably, described scenario reduction module comprises further:
Type of service determining unit, described type of service determining unit be used for according to described at least one advance data described, at least one process record data, at least one Audit data and/or at least one service parameter that parse search in automatic test cases storehouse corresponding can test service flow process, thus determine the type of service corresponding with described result data, and if do not find corresponding can test service flow process, then return abnormal Indication message;
Sequence of operation determining unit, at least one Audit data found out described in described sequence of operation determining unit is used for analyzing further based on described fixed type of service, and the atomic test flow process at least one Audit data described and described automatic test cases storehouse is matched, thus determination operation sequence of steps, and if it fails to match, then use default test case data;
Input data and operator's determining unit, described input data and operator's determining unit are used for analyzing at least one Audit data described further according to described fixed operation steps sequence, thus determine and search operator message corresponding to each operation steps, and analyze at least one process record data described further according to described fixed operation steps sequence, thus determine and search input data corresponding to each operation steps, if and search unsuccessfully, then use default test case data.
In scheme disclosed above, preferably, described scenario reduction module comprises logging unit further.Described logging unit is for recording the daily record about scenario reduction process.
In scheme disclosed above, preferably, described Test cases technology module 5 comprises further:
The initial generation unit of test case, the initial generation unit of described test case is used for from described automatic test cases storehouse, selecting automatic test cases template according to described type of service, and based on the automatic test cases template establishment automatic test cases object selected;
Input data filling unit, in the Input Data word section of each atomic test flow process of the automatic test cases object created described in described input data filling unit is used for described operator message and described input data to be loaded into;
Perform flow process filling unit, in the execution flow process of the automatic test cases object created described in described execution flow process filling unit is used for the atomic test flow process corresponding with described fixed operation steps sequence to be packed into;
Expected result filling unit, in each sub-process of automatic test cases object created described in described expected result filling unit is used for described result data to be packed into and the expected result field of whole testing process.
In scheme disclosed above, preferably, described Test cases technology module comprises parameter importing script generation unit further.Described parameter imports script generation unit and is used at least one specific transactions parameter described to be generated as importing script, and by the previous step of described importing script association to the described automatic test cases object created.
In scheme disclosed above, preferably, described Test cases technology module comprises exception processing unit further.Described exception processing unit is for the treatment of the exception occurred in automatic test cases generative process.
In scheme disclosed above, preferably, described Test cases technology module comprises logging unit further.Described logging unit is for recording the daily record about automatic test cases generative process.
In scheme disclosed above, preferably, can test service flow process, atomic test flow process and automatic test cases template be preset according to practical business demand by user in described automatic test cases storehouse.
Object of the present invention is also achieved through the following technical solutions:
A kind of test exemple automation generation method, described test exemple automation generation method comprises the steps:
(A1) obtain raw data from data source, and described raw data is stored in data memory module;
(A2) from described data memory module, read the result data in described raw data successively, and analyze described result data, thus obtain the associated data corresponding with described result data;
(A3) associated data analyzed described in basis restores actual scene;
(A4) actual scene restored described in basis combines each atomic test step to form test case;
(A5) call automated test tool and perform described established test case.
In scheme disclosed above, preferably, described raw data is actual production data.
In scheme disclosed above, preferably, described associated data comprises pilot process data, advance data, Audit data and service parameter.
In scheme disclosed above, preferably, described data memory module is local data base.
In scheme disclosed above, preferably, described raw data comprises result data, pilot process data, advance data, Audit data and/or service parameter.
In scheme disclosed above, preferably, described step (A2) comprises further:
(B1) at least one advance data found out from the preposition table of the business described data memory module corresponding to described result data according to the result data in the described raw data read out;
(B2) at least one the process record data found out from the business procedure record sheet described data memory module corresponding to described result data according to the result data in the described raw data read out;
(B3) at least one Audit data found out from the Audit data table described data memory module corresponding to described result data according to the result data in the described raw data read out.
In scheme disclosed above, preferably, described step (A2) comprises further: at least one specific transactions parameter that (B4) finds out corresponding to described result data according to the result data in the described raw data read out from the service parameter table described data memory module.
In scheme disclosed above, preferably, described specific transactions parameter is time-constrain parameter.
In scheme disclosed above, preferably, described step (A2) comprises further: process the exception occurred in described analytic process.
In scheme disclosed above, preferably, according to the associate field that described result data parses major key and shows with other.
In scheme disclosed above, preferably, described step (A3) comprises further:
(C1) according to described at least one advance data described, at least one process record data, at least one Audit data and/or at least one service parameter that parse search in automatic test cases storehouse corresponding can test service flow process, thus determine the type of service corresponding with described result data, and if do not find corresponding can test service flow process, then return abnormal Indication message;
(C2) analyze further based on described fixed type of service described at least one Audit data of having found out, and the atomic test flow process at least one Audit data described and described automatic test cases storehouse is matched, thus determination operation sequence of steps, and if it fails to match, then use default test case data;
(C3) at least one Audit data described is analyzed further according to described fixed operation steps sequence, thus determine and search operator message corresponding to each operation steps, and analyze at least one process record data described further according to described fixed operation steps sequence, thus determine and search input data corresponding to each operation steps, if and search unsuccessfully, then use default test case data.
In scheme disclosed above, preferably, described step (A3) comprises further: record the daily record about scenario reduction process.
In scheme disclosed above, preferably, described step (A4) comprises further:
(D1) from described automatic test cases storehouse, automatic test cases template is selected according to described type of service, and based on the automatic test cases template establishment automatic test cases object selected;
(D2) described operator message and described input data are loaded into described in the Input Data word section of each atomic test flow process of automatic test cases object that created;
(D3) the atomic test flow process corresponding with described fixed operation steps sequence is packed into described in the execution flow process of automatic test cases object that created;
(D4) described result data is packed into described in each sub-process of automatic test cases object of having created and the expected result field of whole testing process.
In scheme disclosed above, preferably, described step (A4) comprises further: at least one specific transactions parameter described is generated as importing script, and by the previous step of described importing script association to the described automatic test cases object created.
In scheme disclosed above, preferably, described step (A4) comprises further: the exception occurred in process automatic test cases generative process.
In scheme disclosed above, preferably, described step (A4) comprises further: record the daily record about automatic test cases generative process.
In scheme disclosed above, preferably, can test service flow process, atomic test flow process and automatic test cases template be preset according to practical business demand by user in wherein said automatic test cases storehouse.
Test exemple automation generating apparatus disclosed in this invention and method tool have the following advantages: the generation of (1) test case does not need artificial participation, thus considerably improves the formation efficiency of test case; (2) improve the coverage rate of test case, thus there is higher dirigibility and comprehensive; (3) owing to adopting offline mode duplication source data, therefore the performance of production system can not be affected; (4) with automated test tool loose couplings, therefore there is higher system compatibility.
Accompanying drawing explanation
By reference to the accompanying drawings, technical characteristic of the present invention and advantage will be understood better by those skilled in the art, wherein:
Fig. 1 is the structural drawing of test exemple automation generating apparatus according to an embodiment of the invention;
Fig. 2 is the structural drawing of the data analysis module according to an embodiment of the invention in test exemple automation generating apparatus;
Fig. 3 is the structural drawing of the scenario reduction module according to an embodiment of the invention in test exemple automation generating apparatus;
Fig. 4 is the structural drawing of the Test cases technology module according to an embodiment of the invention in test exemple automation generating apparatus;
Fig. 5 is the process flow diagram of test exemple automation generation method according to an embodiment of the invention.
Embodiment
Fig. 1 is the structural drawing of test exemple automation generating apparatus according to an embodiment of the invention.As shown in Figure 1, test exemple automation generating apparatus 1 disclosed in this invention comprises data extraction module 2, data analysis module 3, scenario reduction module 4, Test cases technology module 5, test starting module 6 and data memory module 7.Wherein, described data extraction module 2 is for obtaining raw data (such as from data source, business datum from production system needed for offline copies, i.e. actual production data), and described raw data is stored in (exemplarily, described data memory module 7 is local data bases) in described data memory module 7.Exemplarily, described raw data comprises result data (such as result transaction data) and the associated data corresponding with described result data (exemplarily, described associated data comprises pilot process data, advance data, Audit data and/or service parameter etc.).Described data analysis module 3 for reading the result data in described raw data successively from described data memory module 7, and analyze described result data, thus obtain described result data corresponding pilot process data, advance data, Audit data and service parameter.Described scenario reduction module 4 restores actual scene for pilot process data, advance data, Audit data and the service parameter analyzed described in basis.Described Test cases technology module 5 combines each atomic test step to form test case for the actual scene restored described in basis.Described test starting module 6 performs described established test case for calling automated test tool.Described data memory module 7 is for storing the described raw data from described data extraction module 2.
Fig. 2 is the structural drawing of the data analysis module according to an embodiment of the invention in test exemple automation generating apparatus.As shown in Figure 2, preferably, in test exemple automation generating apparatus disclosed in this invention, described data analysis module 3 comprises that advance data searches unit 8, process data searches unit 9 and Audit data searches unit 10 further.Wherein, described advance data searches unit 8 at least one advance data (being generally advance data list) for finding out from the preposition table of business described data memory module 7 corresponding to described result data according to the result data in the described raw data read out.Described process data searches unit 9 at least one process record data (being generally process record data list) for finding out from the business procedure record sheet described data memory module 7 corresponding to described result data according to the result data in the described raw data read out.Described Audit data searches unit 10 at least one Audit data (being generally Audit data list) for finding out from the Audit data table described data memory module 7 corresponding to described result data according to the result data in the described raw data read out.
Alternatively, in test exemple automation generating apparatus disclosed in this invention, described data analysis module 3 comprises relevant parameter further and searches unit 11.Described relevant parameter searches unit 11 at least one specific transactions parameter for finding out from the service parameter table described data memory module 7 corresponding to described result data according to the result data in the described raw data read out.Exemplarily, described specific transactions parameter is time-constrain parameter, the business processing date such as in financial transaction field, formality rate, the exchange rate etc.
Alternatively, in test exemple automation generating apparatus disclosed in this invention, described data analysis module 3 comprises exception processing unit 12 further.Described exception processing unit 12 is for the treatment of the exception occurred in described analytic process.
Exemplarily, in test exemple automation generating apparatus disclosed in this invention, the associate field that described data analysis module 3 parses major key according to described result data and shows with other.
Fig. 3 is the structural drawing of the scenario reduction module according to an embodiment of the invention in test exemple automation generating apparatus.As shown in Figure 3, preferably, in test exemple automation generating apparatus disclosed in this invention, described scenario reduction module 4 comprises type of service determining unit 13, sequence of operation determining unit 14, input data and operator's determining unit 15 further.Wherein, described type of service determining unit 13 at least one advance data, at least one process record data, at least one Audit data and/or at least one service parameter described in parsing described in basis search in automatic test cases storehouse corresponding can test service flow process, thus determine the type of service corresponding with described result data, and if do not find corresponding can test service flow process, then return abnormal Indication message.Described sequence of operation determining unit 14 at least one Audit data for having found out described in analyzing further based on described fixed type of service, and the atomic test flow process at least one Audit data described and described automatic test cases storehouse is matched, thus determination operation sequence of steps, and if it fails to match, then use default test case data.Described input data and operator's determining unit 15 are for analyzing at least one Audit data described further according to described fixed operation steps sequence, thus determine and search operator message corresponding to each operation steps, and analyze at least one process record data described further according to described fixed operation steps sequence, thus determine and search input data corresponding to each operation steps, if and search unsuccessfully, then use default test case data.
Alternatively, in test exemple automation generating apparatus disclosed in this invention, described scenario reduction module 4 comprises logging unit 16 further.Described logging unit 16 is for recording the daily record about scenario reduction process.
Fig. 4 is the structural drawing of the Test cases technology module according to an embodiment of the invention in test exemple automation generating apparatus.As shown in Figure 4, preferably, in test exemple automation generating apparatus disclosed in this invention, described Test cases technology module 5 comprises the initial generation unit 17 of test case, input data filling unit 19 further, performs flow process filling unit 20 and expected result filling unit 21.Wherein, the initial generation unit of described test case 17 for selecting automatic test cases template according to described type of service from described automatic test cases storehouse, and based on select automatic test cases template establishment automatic test cases object.Described input data filling unit 19 is in the Input Data word section of each atomic test flow process of automatic test cases object that created described in described operator message and described input data being loaded into.Described execution flow process filling unit 20 is in the execution flow process of automatic test cases object that created described in the atomic test flow process corresponding with described fixed operation steps sequence being packed into.Described expected result filling unit 21 is in each sub-process of automatic test cases object of having created described in being packed into by described result data and the expected result field of whole testing process.
Alternatively, in test exemple automation generating apparatus disclosed in this invention, described Test cases technology module 5 comprises parameter further and imports script generation unit 18.Described parameter imports script generation unit 18 at least one specific transactions parameter described is generated as importing script, and by the previous step of described importing script association to the described automatic test cases object created.
Alternatively, in test exemple automation generating apparatus disclosed in this invention, described Test cases technology module 5 comprises exception processing unit 22 further.Described exception processing unit 22 is for the treatment of the exception occurred in automatic test cases generative process.
Alternatively, in test exemple automation generating apparatus disclosed in this invention, described Test cases technology module 5 comprises logging unit 23 further.Described logging unit 23 is for recording the daily record about automatic test cases generative process.
Preferably, in test exemple automation generating apparatus disclosed in this invention, can test service flow process, atomic test flow process and automatic test cases template be preset according to practical business demand by user in described automatic test cases storehouse.
As shown in Figure 1, the basic functional principle of test exemple automation generating apparatus disclosed in this invention is as follows: described data extraction module 2 obtains raw data from data source, and described raw data is stored in described data memory module 7; Described data analysis module 3 reads the result data in described raw data successively from described data memory module 7, and analyzes described result data, thus obtains described result data corresponding pilot process data, advance data and service parameter; Described scenario reduction module 4 restores actual scene according to described pilot process data, advance data and the service parameter analyzed; Described Test cases technology module 5 combines each atomic test step to form test case according to the described actual scene restored; Described test starting module 6 is called automated test tool and is performed described established test case.
Fig. 5 is the process flow diagram of test exemple automation generation method according to an embodiment of the invention.As shown in Figure 5, test exemple automation generation method disclosed in this invention comprises the steps: that (A1) obtains raw data (exemplarily from data source, described raw data is actual production data), and described raw data is stored in data memory module; (A2) from described data memory module, read the result data in described raw data successively, and analyze described result data, thus obtain associated data corresponding to described result data (exemplarily, described associated data comprises pilot process data, advance data, Audit data and service parameter); (A3) associated data analyzed described in basis restores actual scene; (A4) actual scene restored described in basis combines each atomic test step to form test case; (A5) call automated test tool and perform described established test case.Exemplarily, described raw data comprises result data (such as result transaction data), pilot process data, advance data, Audit data and/or service parameter etc.
Preferably, in test exemple automation generation method disclosed in this invention, described step (A2) comprises further: at least one advance data (being generally advance data list) that (B1) finds out corresponding to described result data according to the result data in the described raw data read out from the preposition table of the business described data memory module; (B2) at least one the process record data (being generally process record data list) found out from the business procedure record sheet described data memory module corresponding to described result data according to the result data in the described raw data read out; (B3) at least one Audit data (being generally Audit data list) found out from the Audit data table described data memory module corresponding to described result data according to the result data in the described raw data read out.
Alternatively, in test exemple automation generation method disclosed in this invention, described step (A2) comprises further: at least one specific transactions parameter that (B4) finds out corresponding to described result data according to the result data in the described raw data read out from the service parameter table described data memory module.Exemplarily, described specific transactions parameter is time-constrain parameter, the business processing date such as in financial transaction field, formality rate, the exchange rate etc.
Alternatively, in test exemple automation generation method disclosed in this invention, described step (A2) comprises further: process the exception occurred in described analytic process.
Exemplarily, in test exemple automation generation method disclosed in this invention, according to the associate field that described result data parses major key and shows with other.
Preferably, in test exemple automation generation method disclosed in this invention, described step (A3) comprises further: (C1) according to described at least one advance data described, at least one process record data, at least one Audit data and/or at least one service parameter that parse search in automatic test cases storehouse corresponding can test service flow process, thus determine the type of service corresponding with described result data, and if do not find corresponding can test service flow process, then return abnormal Indication message; (C2) analyze further based on described fixed type of service described at least one Audit data of having found out, and the atomic test flow process at least one Audit data described and described automatic test cases storehouse is matched, thus determination operation sequence of steps, and if it fails to match, then use default test case data; (C3) at least one Audit data described is analyzed further according to described fixed operation steps sequence, thus determine and search operator message corresponding to each operation steps, and analyze at least one process record data described further according to described fixed operation steps sequence, thus determine and search input data corresponding to each operation steps, if and search unsuccessfully, then use default test case data.
Alternatively, in test exemple automation generation method disclosed in this invention, described step (A3) comprises further: record the daily record about scenario reduction process.
Preferably, in test exemple automation generation method disclosed in this invention, described step (A4) comprises further: (D1) selects automatic test cases template according to described type of service from described automatic test cases storehouse, and based on the automatic test cases template establishment automatic test cases object selected; (D2) described operator message and described input data are loaded into described in the Input Data word section of each atomic test flow process of automatic test cases object that created; (D3) the atomic test flow process corresponding with described fixed operation steps sequence is packed into described in the execution flow process of automatic test cases object that created; (D4) described result data is packed into described in each sub-process of automatic test cases object of having created and the expected result field of whole testing process.
Alternatively, in test exemple automation generation method disclosed in this invention, described step (A4) comprises further: at least one specific transactions parameter described is generated as importing script, and by the previous step of described importing script association to the described automatic test cases object created.
Alternatively, in test exemple automation generation method disclosed in this invention, described step (A4) comprises further: the exception occurred in process automatic test cases generative process.
Alternatively, in test exemple automation generation method disclosed in this invention, described step (A4) comprises further: record the daily record about automatic test cases generative process.
Preferably, in test exemple automation generation method disclosed in this invention, can test service flow process, atomic test flow process and automatic test cases template be preset according to practical business demand by user in described automatic test cases storehouse.
Although the present invention is described by above-mentioned preferred implementation, its way of realization is not limited to above-mentioned embodiment.Should be realized that: when not departing from purport of the present invention and scope, those skilled in the art can make different changes and amendment to the present invention.

Claims (30)

1. a test exemple automation generating apparatus, described test exemple automation generating apparatus comprises:
Data extraction module, described data extraction module is used for obtaining raw data from data source, and is stored in data memory module by described raw data;
Data analysis module, described data analysis module is used for the result data read successively from described data memory module in described raw data, and analyzes described result data, thus obtains the associated data corresponding with described result data;
Scenario reduction module, the associated data that described scenario reduction module is used for analyzing described in basis restores actual scene;
Test cases technology module, the actual scene that described Test cases technology module is used for restoring described in basis combines each atomic test flow process to form test case;
Test starting module, described test starting module is used for calling automated test tool and performs described established test case;
Data memory module, described data memory module is for storing the described raw data from described data extraction module;
Wherein, described raw data is actual production data.
2. test exemple automation generating apparatus according to claim 1, is characterized in that, described associated data comprises process record data, advance data, Audit data and service parameter.
3. test exemple automation generating apparatus according to claim 2, is characterized in that, described data memory module is local data base.
4. test exemple automation generating apparatus according to claim 3, is characterized in that, described raw data comprises result data, process record data, advance data, Audit data and/or service parameter.
5. according to the test exemple automation generating apparatus in claim 1-4 described in any one claim, it is characterized in that, described data analysis module comprises further:
Advance data searches unit, and described advance data searches unit at least one advance data for finding out from the preposition table of the business described data memory module corresponding to described result data according to the result data in the described raw data read out;
Process data searches unit, and described process data searches unit at least one process record data for finding out from the business procedure record sheet described data memory module corresponding to described result data according to the result data in the described raw data read out;
Audit data searches unit, and described Audit data searches unit at least one Audit data for finding out from the Audit data table described data memory module corresponding to described result data according to the result data in the described raw data read out.
6. test exemple automation generating apparatus according to claim 5, it is characterized in that, described data analysis module comprises relevant parameter further and searches unit, and described relevant parameter searches unit at least one specific transactions parameter for finding out from the service parameter table described data memory module corresponding to described result data according to the result data in the described raw data read out.
7. test exemple automation generating apparatus according to claim 6, is characterized in that, described specific transactions parameter is time-constrain parameter.
8. test exemple automation generating apparatus according to claim 7, is characterized in that, described data analysis module comprises exception processing unit further, and described exception processing unit is for the treatment of the exception occurred in described analytic process.
9. test exemple automation generating apparatus according to claim 8, is characterized in that, described scenario reduction module comprises further:
Type of service determining unit, described type of service determining unit be used for according to described at least one advance data, at least one process record data, at least one Audit data and/or at least one the specific transactions parameter that find out search in automatic test cases storehouse corresponding can test service flow process, thus determine the type of service corresponding with described result data, and if do not find corresponding can test service flow process, then return abnormal Indication message;
Sequence of operation determining unit, at least one Audit data found out described in described sequence of operation determining unit is used for analyzing further based on described fixed type of service, and the atomic test flow process at least one Audit data described and described automatic test cases storehouse is matched, thus determination operation sequence of steps, and if it fails to match, then use default test case data;
Input data and operator's determining unit, described input data and operator's determining unit are used for analyzing at least one Audit data described further according to described fixed operation steps sequence, thus determine and search operator message corresponding to each operation steps, and analyze at least one process record data described further according to described fixed operation steps sequence, thus determine and search input data corresponding to each operation steps, if and search unsuccessfully, then use default test case data.
10. test exemple automation generating apparatus according to claim 9, is characterized in that, described scenario reduction module comprises logging unit further, and described logging unit is for recording the daily record about scenario reduction process.
11. test exemple automation generating apparatus according to claim 10, is characterized in that, described Test cases technology module comprises further:
The initial generation unit of test case, the initial generation unit of described test case is used for from described automatic test cases storehouse, selecting automatic test cases template according to described type of service, and based on the automatic test cases template establishment automatic test cases object selected;
Input data filling unit, in the Input Data word section of each atomic test flow process of the automatic test cases object created described in described input data filling unit is used for described operator message and described input data to be loaded into;
Perform flow process filling unit, in the execution flow process of the automatic test cases object created described in described execution flow process filling unit is used for the atomic test flow process corresponding with described fixed operation steps sequence to be packed into;
Expected result filling unit, in each sub-process of automatic test cases object created described in described expected result filling unit is used for described result data to be packed into and the expected result field of whole testing process.
12. test exemple automation generating apparatus according to claim 11, it is characterized in that, described Test cases technology module comprises parameter further and imports script generation unit, described parameter imports script generation unit and is used at least one specific transactions parameter described to be generated as importing script, and by described importing script association to the described automatic test cases object created.
13. test exemple automation generating apparatus according to claim 12, it is characterized in that, described Test cases technology module comprises exception processing unit further, and described exception processing unit is for the treatment of the exception occurred in automatic test cases generative process.
14. test exemple automation generating apparatus according to claim 13, it is characterized in that, described Test cases technology module comprises logging unit further, described logging unit is for recording the daily record about automatic test cases generative process.
15. test exemple automation generating apparatus according to claim 14, it is characterized in that, can test service flow process, atomic test flow process and automatic test cases template be preset according to practical business demand by user in described automatic test cases storehouse.
16. 1 kinds of test exemple automation generation methods, described test exemple automation generation method comprises the steps:
(A1) obtain raw data from data source, and described raw data is stored in data memory module;
(A2) from described data memory module, read the result data in described raw data successively, and analyze described result data, thus obtain the associated data corresponding with described result data;
(A3) associated data analyzed described in basis restores actual scene;
(A4) actual scene restored described in basis combines each atomic test flow process to form test case;
(A5) call automated test tool and perform described established test case;
Wherein, described raw data is actual production data.
17. test exemple automation generation methods according to claim 16, it is characterized in that, described associated data comprises process record data, advance data, Audit data and service parameter.
18. test exemple automation generation methods according to claim 17, it is characterized in that, described data memory module is local data base.
19. test exemple automation generation methods according to claim 18, is characterized in that, described raw data comprises result data, process record data, advance data, Audit data and/or service parameter.
20., according to the test exemple automation generation method in claim 16-19 described in any one claim, is characterized in that, described step (A2) comprises further:
(B1) at least one advance data found out from the preposition table of the business described data memory module corresponding to described result data according to the result data in the described raw data read out;
(B2) at least one the process record data found out from the business procedure record sheet described data memory module corresponding to described result data according to the result data in the described raw data read out;
(B3) at least one Audit data found out from the Audit data table described data memory module corresponding to described result data according to the result data in the described raw data read out.
21. test exemple automation generation methods according to claim 20, it is characterized in that, described step (A2) comprises further: at least one specific transactions parameter that (B4) finds out corresponding to described result data according to the result data in the described raw data read out from the service parameter table described data memory module.
22. test exemple automation generation methods according to claim 21, is characterized in that, described specific transactions parameter is time-constrain parameter.
23. test exemple automation generation methods according to claim 22, is characterized in that, described step (A2) comprises further: process the exception occurred in described analytic process.
24. test exemple automation generation methods according to claim 23, is characterized in that, described step (A3) comprises further:
(C1) according to described at least one advance data, at least one process record data, at least one Audit data and/or at least one the specific transactions parameter that find out search in automatic test cases storehouse corresponding can test service flow process, thus determine the type of service corresponding with described result data, and if do not find corresponding can test service flow process, then return abnormal Indication message;
(C2) analyze further based on described fixed type of service described at least one Audit data of having found out, and the atomic test flow process at least one Audit data described and described automatic test cases storehouse is matched, thus determination operation sequence of steps, and if it fails to match, then use default test case data;
(C3) at least one Audit data described is analyzed further according to described fixed operation steps sequence, thus determine and search operator message corresponding to each operation steps, and analyze at least one process record data described further according to described fixed operation steps sequence, thus determine and search input data corresponding to each operation steps, if and search unsuccessfully, then use default test case data.
25. test exemple automation generation methods according to claim 24, is characterized in that, described step (A3) comprises further: record the daily record about scenario reduction process.
26. test exemple automation generation methods according to claim 25, is characterized in that, described step (A4) comprises further:
(D1) from described automatic test cases storehouse, automatic test cases template is selected according to described type of service, and based on the automatic test cases template establishment automatic test cases object selected;
(D2) described operator message and described input data are loaded into described in the Input Data word section of each atomic test flow process of automatic test cases object that created;
(D3) the atomic test flow process corresponding with described fixed operation steps sequence is packed into described in the execution flow process of automatic test cases object that created;
(D4) described result data is packed into described in each sub-process of automatic test cases object of having created and the expected result field of whole testing process.
27. test exemple automation generation methods according to claim 26, it is characterized in that, described step (A4) comprises further: at least one specific transactions parameter described is generated as importing script, and by described importing script association to the described automatic test cases object created.
28. test exemple automation generation methods according to claim 27, is characterized in that, described step (A4) comprises further: the exception occurred in process automatic test cases generative process.
29. test exemple automation generation methods according to claim 28, is characterized in that, described step (A4) comprises further: record the daily record about automatic test cases generative process.
30. test exemple automation generation methods according to claim 29, it is characterized in that, can test service flow process, atomic test flow process and automatic test cases template be preset according to practical business demand by user in wherein said automatic test cases storehouse.
CN201110162821.1A 2011-06-16 2011-06-16 Test exemple automation generating apparatus and method Active CN102831052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110162821.1A CN102831052B (en) 2011-06-16 2011-06-16 Test exemple automation generating apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110162821.1A CN102831052B (en) 2011-06-16 2011-06-16 Test exemple automation generating apparatus and method

Publications (2)

Publication Number Publication Date
CN102831052A CN102831052A (en) 2012-12-19
CN102831052B true CN102831052B (en) 2016-03-09

Family

ID=47334201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110162821.1A Active CN102831052B (en) 2011-06-16 2011-06-16 Test exemple automation generating apparatus and method

Country Status (1)

Country Link
CN (1) CN102831052B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572433B (en) * 2013-10-29 2017-09-29 中国银联股份有限公司 A kind of financial information system method of testing and device
CN104731698A (en) * 2013-12-20 2015-06-24 深圳中兴力维技术有限公司 Abnormal test case automatic generation processing method and device based on automatic tests
CN104182335B (en) * 2014-05-09 2017-03-29 中国光大银行 Method for testing software and device
CN104461863B (en) * 2014-10-29 2018-04-17 中国建设银行股份有限公司 A kind of operation system test method, equipment and system
CN104391786B (en) * 2014-10-31 2018-04-27 任子行网络技术股份有限公司 Webpage automatization test system and its method
CN104598376B (en) * 2014-12-30 2017-09-15 中国科学院计算机网络信息中心 The layering automatization test system and method for a kind of data-driven
CN106528395B (en) * 2015-09-09 2019-08-23 阿里巴巴集团控股有限公司 The generation method and device of test case
CN105930259B (en) * 2015-12-23 2018-10-16 中国银联股份有限公司 A kind of method and apparatus of WEB regression tests
CN105701009B (en) * 2015-12-30 2018-12-25 中国银联股份有限公司 Security application test method in mobile terminal
CN106021102B (en) * 2016-05-16 2019-05-28 北京奇虎科技有限公司 The generation method and device of automatic test file
EP3301580B1 (en) 2016-09-30 2021-06-09 Wipro Limited System for automatically generating test data for testing applications
CN106980573B (en) * 2016-10-26 2020-11-20 创新先进技术有限公司 Method, device and system for constructing test case request object
CN109426612B (en) * 2017-09-04 2023-09-29 上海仪电(集团)有限公司中央研究院 Automatic use case development system based on intelligent machine learning
CN107678948B (en) * 2017-09-18 2021-09-07 茂佳科技(广东)有限公司 Test case generation method, terminal and storage medium
CN107844421B (en) * 2017-10-31 2020-08-14 平安科技(深圳)有限公司 Interface testing method and device, computer equipment and storage medium
CN109032941A (en) * 2018-07-20 2018-12-18 郑州云海信息技术有限公司 The sustainable integrated interface automated testing method and system of test case driving
CN109344055B (en) * 2018-09-07 2020-05-19 武汉达梦数据库有限公司 Test method and test device
CN111258808B (en) * 2018-12-03 2023-04-07 中国移动通信集团安徽有限公司 Method, apparatus, device and medium for data automation management
CN109783381B (en) * 2019-01-07 2021-11-09 中国银行股份有限公司 Test data generation method, device and system
CN111984519B (en) * 2019-05-23 2024-05-10 阿里巴巴集团控股有限公司 Test method and device for service system
CN112147967A (en) * 2019-06-27 2020-12-29 北京新能源汽车股份有限公司 Automatic generation method and device for scene test case of automobile controller
CN111240976A (en) * 2020-01-07 2020-06-05 上海复深蓝软件股份有限公司 Software testing method and device, computer equipment and storage medium
CN111640019A (en) * 2020-05-12 2020-09-08 中信银行股份有限公司 Method and device for acquiring test data, storage medium and electronic device
CN113448869B (en) * 2021-07-16 2022-12-13 中国建设银行股份有限公司 Method and device for generating test case, electronic equipment and computer readable medium
CN115248585A (en) * 2022-09-20 2022-10-28 平安银行股份有限公司 Automatic test execution method based on controller engine, controller and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706749A (en) * 2009-11-18 2010-05-12 电子科技大学 Comprehensive processing method based on software safety defect detection and functional module framework thereof
CN102004691A (en) * 2010-11-12 2011-04-06 中兴通讯股份有限公司 Method and system for executing test case

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7912694B2 (en) * 2007-01-30 2011-03-22 International Business Machines Corporation Print events in the simulation of a digital system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706749A (en) * 2009-11-18 2010-05-12 电子科技大学 Comprehensive processing method based on software safety defect detection and functional module framework thereof
CN102004691A (en) * 2010-11-12 2011-04-06 中兴通讯股份有限公司 Method and system for executing test case

Also Published As

Publication number Publication date
CN102831052A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102831052B (en) Test exemple automation generating apparatus and method
CN102567193B (en) Method and system for converting test case to automated testing script
CN105868391B (en) A kind of method and apparatus of log recording
CN112306855B (en) Interface automation test method, device, terminal and storage medium
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN112256581B (en) Log playback test method and device for high-simulation securities trade trading system
CN111209206B (en) Automatic test method and system for software products
CN104657274B (en) software interface test method and device
CN105446865A (en) Test method and device under multi-environment
CN115080398A (en) Automatic interface test system and method
CN102455961A (en) System and method for managing and controlling mainboard testing process
CN107357721B (en) Method and device for testing system
CN113448826A (en) Software automation test system and method
CN117194242A (en) Log playback method and device for transaction system, electronic equipment and storage medium
CN109902070B (en) WiFi log data-oriented analysis storage search method
CN104123104B (en) Daily record control system and method
CN104536897A (en) Automatic testing method and system based on keyword
CN101662394A (en) Automated testing system and automated testing method
CN111639478B (en) Automatic data auditing method and system based on EXCEL document
CN105243022B (en) The performance data analysis method and device of host application software system
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN112559641A (en) Processing method and device of pull chain table, readable storage medium and electronic equipment
CN111625455A (en) Program testing method, device, equipment and medium
CN112347095B (en) Data table processing method, device and server
US9753798B1 (en) Method and apparatus for electronic design automation

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