CN102955738A - Driving and driven hybrid testing method for simulation system - Google Patents

Driving and driven hybrid testing method for simulation system Download PDF

Info

Publication number
CN102955738A
CN102955738A CN2012104531956A CN201210453195A CN102955738A CN 102955738 A CN102955738 A CN 102955738A CN 2012104531956 A CN2012104531956 A CN 2012104531956A CN 201210453195 A CN201210453195 A CN 201210453195A CN 102955738 A CN102955738 A CN 102955738A
Authority
CN
China
Prior art keywords
test
data
testing
passive
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012104531956A
Other languages
Chinese (zh)
Other versions
CN102955738B (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.)
Zhongyuan University of Technology
Original Assignee
Zhongyuan University of Technology
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 Zhongyuan University of Technology filed Critical Zhongyuan University of Technology
Priority to CN201210453195.6A priority Critical patent/CN102955738B/en
Publication of CN102955738A publication Critical patent/CN102955738A/en
Application granted granted Critical
Publication of CN102955738B publication Critical patent/CN102955738B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a driving and driven hybrid testing method for a simulation system. The driving and driven hybrid testing method comprises the following steps of: (1) selecting a testing requirement item; (2) establishing a'testing preparation database'; (3) designing a case for testing; (4) searching the 'testing preparation database'; (5) acquiring expected output data or a testing pass standard of the case for testing from the data obtained in the step (4); (6) if the 'testing preparation database' does not have data meeting the requirement, adjusting the test method or expanding data conditions, and re-searching the 'testing preparation database'; and (7) after the step (6) is carried out, the 'testing preparation database' has no data meeting the requirement and the searching condition can not be adjusted, carrying out targeted data mining again on deficient data. The driving and driven hybrid testing method disclosed by the invention has the advantages that the sufficiency of test data is improved, the use of repeated data and the like is reduced, the practicability of the test data is effectively increased, and the implementation cost and the implementation time of the driven testing are reduced.

Description

A kind of active-passive mixed test method for analogue system
Technical field
The invention belongs to the software test field, be specifically related to a kind of software Passive Test method.
Background technology
When testing for a commercial production on-line simulation system, the tester has designed rational test case, to compare the service data of simulation software and on-the-spot True Data, to not test but the operating parameter of each actual production device does not allow often and regulate, customer requirements can not affect production, more be afraid of risk, can't carry out comparing according to the input data of active Test Sample Design, so initiatively method of testing is difficult to carry out sometimes.
The achievement of relevant software Passive Test was less both at home and abroad in recent years, had the progress of more practical value difficult slowly.The analogy sun up once is fruitful: passive on-line monitoring, and can be forward, indicate mistake according to track backward; The observer places minimum solution in the online Passive Test; Collect heuristic information with Passive Test, then active test that these information guidings are follow-up etc.But the practical problems in these document achievements is also many, such as:
(1) target of Passive Test is difficult to ACTIVE CONTROL;
(2) True Data of the on-the-spot actual production of the input data dependence of Passive Test, these data may not be that need or unessential for test, and the time that the data that need occur may be very short, number of times seldom;
(3) True Data that obtains online usually is front and back repeatability " identical ", and these data have been wasted valuable Passive Test and implemented the time, have had a strong impact on testing efficiency;
(4) the adequacy problem of the test data of Passive Test is generally larger;
(5) common Passive Test design test case not, advanced method of testing is difficult to incorporate.
Summary of the invention
It is lower that the technical problem to be solved in the present invention is that the test target of Passive Test method is difficult to the test data practicality obtained under ACTIVE CONTROL, the passive mechanism and adequacy etc., a kind of adequacy that improves test data is provided, reduced the active-passive mixed test method for analogue system of repeating data.
Technical scheme of the present invention realizes in the following manner: a kind of active-passive mixed test method for analogue system, carry out according to following step:
(1) selects the testing requirement item;
(2) set up " test readiness database ";
(3) design test case, the condition and range of proposition input data;
(4) search for " test readiness database ", therefrom find out the input data of eligible scope;
Standard is passed through in desired output data or the test of (5) obtaining test case from the data that step (4) obtains;
(6) if do not have satisfactory data in " test readiness database ", adjust method of testing or enlarge data qualification, again search " test readiness database ";
(7) if through step (6) afterwards, do not have satisfactory data in " test database ", and can not adjust search condition, then the shortcoming data are carried out targetedly data mining again; The data of newly excavating are added in " test readiness database ", again repeating step (3).
The present invention includes following process:
(1) the historical business of user is carried out data mining and set up the process of testing readiness database
Set up passive mechanism, finish the exploitation of actual production data acquisition software;
The track record production data;
According to the test target scope of determining, Update Table obtains program;
Track record real system production history data under passive mechanism;
Process the actual production historical data base, obtain testing readiness database.
(2) tissue and the implementation process of test
Determine the test target scope;
Formulate test plan;
Design is test case initiatively;
Design Passive Test use-case, design active-passive hybrid test use-case;
Test implementation;
Finish the test result report;
According to the bug of simulation accuracy aspect, revise simulation mathematical model;
When project status satisfies end condition, the end project.
The present invention sets up the passive mechanism that test data is obtained, and fully uses long-term real system historical data, compares the adequacy that common Passive Test has improved test data greatly; Reduce the use of repeating data etc., effectively increased the practicality of test data; Passive Test implementation cost and time have been reduced.By rational initiatively method of testing design test case, but wherein input the data scope of only offering; The actual production parameter historical data base data that are used for test are excavated, therefrom searched out the historical data of eligible scope, as test input data and the corresponding desired output result of test case.
Summary of the invention
As shown in Figure 1, a kind of active-passive mixed test method for analogue system is to carry out according to following step:
(1) select the testing requirement item, standard is passed through in clear and definite testing requirement details and test;
(2) based on testing requirement the historical business of user is carried out data mining, set up " test readiness database ", the test readiness database is the actual production parameter historical data base for test in essence;
(3) for each testing requirement, according to rational active method of testing design test case, but wherein input the data scope of only offering, do not design concrete input data;
(4) search for " test readiness database ", therefrom find out the data of eligible scope, as the test input data of test case;
Standard is passed through in desired output data or the test of (5) obtaining test case from the related data that step (4) obtains;
(6) if do not have satisfactory data in " test readiness database ", adjust method of testing or enlarge the data qualification scope, again search " test readiness database ";
(7) if through step (6) afterwards, still do not have satisfactory data in " test database ", and can not adjust search condition, then the shortcoming data are carried out targetedly data mining again; The data of newly excavating are added in " test readiness database ", again repeating step (3).
As shown in Figure 2, method of the present invention comprises following three processes in the specific implementation:
(1) exploitation simulation software, the process of employing waterfall model:
Described waterfall model comprises four activities: movable 1: demand analysis; Movable 2: overall design; Movable 3: detailed design; Movable 4: coding.
(2) the historical business of user is carried out data mining and is set up the process of testing readiness database:
Movable 10: set up passive mechanism, finish the exploitation of actual production data acquisition software; Behind project initiation, should finish as early as possible program and the related hardware configuration of obtaining actual production parameter historical data under the passive mechanism (only online acceptance is shared the actual production data, do not disturbed to produce and carry out);
Movable 11: track record production data, the data that just begun to obtain will be tried one's best comprehensively, would rather unnecessaryly also not omit;
Movable 12: according to the test target scope of determining, Update Table obtains program, removes irrelevant data item, to reduce system loading pressure;
Movable 13: track record real system production history data under passive mechanism, no matter be in nominal situation, accident condition or the process that goes into operation, it is uninterrupted to try one's best;
Movable 14: process the actual production historical data base, original actual production parameter historical data base is before being used for test, need filtering distortion interfering data, filtering " repetition " data, Data classification, Data Format Transform, obtain at last testing readiness database (the actual production parameter historical data base that namely is used for test).
(3) tissue and the implementation process of test:
Movable 5: determine the test target scope;
Movable 6: formulate test plan;
Movable 7: design is test case initiatively;
Movable 8: design Passive Test use-case, design active-passive hybrid test use-case; Previous task comprises to be finished test plan and possesses the sufficient actual production parameter of data volume historical data base; For each testing requirement, the first test of clear and definite this testing requirement item correspondence is by standard, by rational method of testing design test case, but wherein inputs the data scope of only offering; Data in the test readiness database are searched for, therefrom find out the data of eligible scope, as the test input data of test case; And standard is passed through in desired output data or the test of obtaining test case from the data of correspondence; If there are not satisfactory data in the test readiness database, method of testing adjustment or data qualification scope are widened as far as possible, again removal search test readiness database; If still there are not satisfactory data in the test readiness database, need to carry out again targetedly data mining to the shortcoming data;
Movable 9: test implementation;
Movable 15: process is to finishing the test result report after the test record analyzing and processing;
Movable 16: according to the bug(defective of simulation accuracy aspect), revise simulation mathematical model;
Movable 17: when project status satisfies end condition, the end project.
Description of drawings
Fig. 1 is testing example design process flow diagram of the present invention.
Fig. 2 is the PDM network chart of test process of the present invention.
Embodiment
As shown in Figure 1, a kind of active-passive mixed test method for analogue system is to carry out according to following step:
(1) select the testing requirement item, standard is passed through in clear and definite testing requirement details and test;
(2) based on testing requirement the historical business of user is carried out data mining, set up " test readiness database ", the test readiness database is the actual production parameter historical data base for test in essence;
(3) for each testing requirement, according to rational active method of testing design test case, but wherein input the data scope of only offering, do not design concrete input data;
(4) search for " test readiness database ", therefrom find out the data of eligible scope, as the test input data of test case;
Standard is passed through in desired output data or the test of (5) obtaining test case from the related data that step (4) obtains;
(6) if do not have satisfactory data in " test readiness database ", adjust method of testing or enlarge the data qualification scope, again search " test readiness database ";
(7) if through step (6) afterwards, still do not have satisfactory data in " test database ", and can not adjust search condition, then the shortcoming data are carried out targetedly data mining again; The data of newly excavating are added in " test readiness database ", again repeating step (3).
As shown in Figure 2, method of the present invention comprises following three processes in the specific implementation:
(1) exploitation simulation software, the process of employing waterfall model:
Described waterfall model comprises four activities: movable 1: demand analysis; Movable 2: overall design; Movable 3: detailed design; Movable 4: coding.
(2) the historical business of user is carried out data mining and is set up the process of testing readiness database:
Movable 10: set up passive mechanism, finish the exploitation of actual production data acquisition software; Behind project initiation, should finish as early as possible program and the related hardware configuration of obtaining actual production parameter historical data under the passive mechanism (only online acceptance is shared the actual production data, do not disturbed to produce and carry out);
Movable 11: track record production data, the data that just begun to obtain will be tried one's best comprehensively, would rather unnecessaryly also not omit;
Movable 12: according to the test target scope of determining, Update Table obtains program, removes irrelevant data item, to reduce system loading pressure;
Movable 13: track record real system production history data under passive mechanism, no matter be in nominal situation, accident condition or the process that goes into operation, it is uninterrupted to try one's best;
Movable 14: process the actual production historical data base, original actual production parameter historical data base is before being used for test, need filtering distortion interfering data, filtering " repetition " data, Data classification, Data Format Transform, obtain at last testing readiness database (the actual production parameter historical data base that namely is used for test).
(3) tissue and the implementation process of test:
Movable 5: determine the test target scope;
Movable 6: formulate test plan;
Movable 7: design is test case initiatively;
Movable 8: design Passive Test use-case, design active-passive hybrid test use-case; Previous task comprises to be finished test plan and possesses the sufficient actual production parameter of data volume historical data base; For each testing requirement, the first test of clear and definite this testing requirement item correspondence is by standard, by rational method of testing design test case, but wherein inputs the data scope of only offering; Data in the test readiness database are searched for, therefrom find out the data of eligible scope, as the test input data of test case; And standard is passed through in desired output data or the test of obtaining test case from the data of correspondence; If there are not satisfactory data in the test readiness database, method of testing adjustment or data qualification scope are widened as far as possible, again removal search test readiness database; If still there are not satisfactory data in the test readiness database, need to carry out again targetedly data mining to the shortcoming data;
Movable 9: test implementation;
Movable 15: process is to finishing the test result report after the test record analyzing and processing;
Movable 16: according to the bug(defective of simulation accuracy aspect), revise simulation mathematical model;
Movable 17: when project status satisfies end condition, the end project.

Claims (2)

1. active-passive mixed test method for analogue system is characterized in that carrying out according to following step:
(1) selects the testing requirement item;
(2) set up " test readiness database ";
(3) design test case, the condition and range of proposition input data;
(4) search for " test readiness database ", therefrom find out the input data of eligible scope;
Standard is passed through in desired output data or the test of (5) obtaining test case from the data that step (4) obtains;
(6) if do not have satisfactory data in " test readiness database ", adjust method of testing or enlarge data qualification, again search " test readiness database ";
(7) if through step (6) afterwards, do not have satisfactory data in " test database ", and can not adjust search condition, then the shortcoming data are carried out targetedly data mining again; The data of newly excavating are added in " test readiness database ", again repeating step (3).
2. the active-passive mixed test method for analogue system according to claim 1 is characterized in that comprising following process:
(1) the historical business of user is carried out data mining and set up the process of testing readiness database
Set up passive mechanism, finish the exploitation of actual production data acquisition software;
The track record production data;
According to the test target scope of determining, Update Table obtains program;
Track record real system production history data under passive mechanism;
Process the actual production historical data base, obtain testing readiness database;
(2) tissue and the implementation process of test
Determine the test target scope;
Formulate test plan;
Design is test case initiatively;
Design Passive Test use-case, design active-passive hybrid test use-case;
Test implementation;
Finish the test result report;
According to the bug of simulation accuracy aspect, revise simulation mathematical model;
When project status satisfies end condition, the end project.
CN201210453195.6A 2012-11-13 2012-11-13 Driving and driven hybrid testing method for simulation system Expired - Fee Related CN102955738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210453195.6A CN102955738B (en) 2012-11-13 2012-11-13 Driving and driven hybrid testing method for simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210453195.6A CN102955738B (en) 2012-11-13 2012-11-13 Driving and driven hybrid testing method for simulation system

Publications (2)

Publication Number Publication Date
CN102955738A true CN102955738A (en) 2013-03-06
CN102955738B CN102955738B (en) 2014-10-29

Family

ID=47764562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210453195.6A Expired - Fee Related CN102955738B (en) 2012-11-13 2012-11-13 Driving and driven hybrid testing method for simulation system

Country Status (1)

Country Link
CN (1) CN102955738B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281970A (en) * 2014-07-09 2016-01-27 珠海格力电器股份有限公司 Communication interference test method, device, electronic equipment and system
CN105374131A (en) * 2015-10-28 2016-03-02 深圳怡化电脑股份有限公司 Method and device for automatic testing
CN108958073A (en) * 2018-06-19 2018-12-07 珠海格力电器股份有限公司 Method and electric appliance for verifying product function point logic by using experimental big data
CN110737594A (en) * 2019-09-19 2020-01-31 武汉迎风聚智科技有限公司 Database standard conformance testing method and device for automatically generating test cases
CN111124880A (en) * 2019-11-04 2020-05-08 北京大学 Compiler test input generation method and system based on historical data
CN111858387A (en) * 2020-08-05 2020-10-30 中国工商银行股份有限公司 Data preparation method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405220A (en) * 2015-10-28 2016-03-16 深圳怡化电脑股份有限公司 Method and device for automated test

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160322A1 (en) * 2004-01-13 2005-07-21 West John R. Method and system for conversion of automation test scripts into abstract test case representation with persistence
CN101221530A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Method for automatically leading in test cases
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160322A1 (en) * 2004-01-13 2005-07-21 West John R. Method and system for conversion of automation test scripts into abstract test case representation with persistence
CN101221530A (en) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 Method for automatically leading in test cases
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281970A (en) * 2014-07-09 2016-01-27 珠海格力电器股份有限公司 Communication interference test method, device, electronic equipment and system
CN105281970B (en) * 2014-07-09 2019-03-12 珠海格力电器股份有限公司 Communication interference test method, device, electronic equipment and system
CN105374131A (en) * 2015-10-28 2016-03-02 深圳怡化电脑股份有限公司 Method and device for automatic testing
CN108958073A (en) * 2018-06-19 2018-12-07 珠海格力电器股份有限公司 Method and electric appliance for verifying product function point logic by using experimental big data
CN110737594A (en) * 2019-09-19 2020-01-31 武汉迎风聚智科技有限公司 Database standard conformance testing method and device for automatically generating test cases
CN111124880A (en) * 2019-11-04 2020-05-08 北京大学 Compiler test input generation method and system based on historical data
CN111858387A (en) * 2020-08-05 2020-10-30 中国工商银行股份有限公司 Data preparation method and device
CN111858387B (en) * 2020-08-05 2023-08-15 中国工商银行股份有限公司 Data preparation method and device

Also Published As

Publication number Publication date
CN102955738B (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN102955738B (en) Driving and driven hybrid testing method for simulation system
CN105069524B (en) Planned dispatching optimization method based on big data analysis
CN106295983A (en) Power marketing data visualization statistical analysis technique and system
CN105224458A (en) A kind of database method of testing and system
CN113177732A (en) Process flow management method, device, medium and terminal equipment
CN113502870A (en) Excavator working condition judging method and device
RU2541857C1 (en) Method of finding faults in continuous dynamic system based on input of sample deviations
CN104375937A (en) Continuous integration method and system of automated testing results
CN111309581B (en) Application performance detection method and device in database upgrading scene
Rather et al. A comparative study of software development life cycle models
CN105893482A (en) Engine test data fully-automatic extracting and Word report generating method
EP2866161A1 (en) System and method for visualization and optimization of system of systems
CN103778051A (en) Business process increment mining method based on L* algorithm
CN109740890A (en) A kind of influencing factors of quality correlation analysis
CN105487970A (en) Interface display method and apparatus
CN105844390B (en) Data quality tracing method and device and hardware processor
CN104572474A (en) Dynamic slicing based lightweight error locating implementation method
CN111598700A (en) Financial wind control system and method
CN106779582B (en) TWS (two way service) process configuration method and device
Safonova On one approach to modeling enterprise-wide function-oriented computer networks
CN109885390A (en) Molecular docking cloud computing flow control method
CN117592905A (en) Data generation method, device, equipment and storage medium
CN108132802B (en) Application method of configuration model in system development
CN105373473A (en) Original signalling decoding-based CDR accuracy test method and system
CN104239430A (en) Item weight change based method and system for mining education data association rules

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: 20141029

Termination date: 20211113

CF01 Termination of patent right due to non-payment of annual fee