CN102375777A - Object-oriented test platform - Google Patents

Object-oriented test platform Download PDF

Info

Publication number
CN102375777A
CN102375777A CN2010102520515A CN201010252051A CN102375777A CN 102375777 A CN102375777 A CN 102375777A CN 2010102520515 A CN2010102520515 A CN 2010102520515A CN 201010252051 A CN201010252051 A CN 201010252051A CN 102375777 A CN102375777 A CN 102375777A
Authority
CN
China
Prior art keywords
test
test case
platform
test platform
case
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.)
Pending
Application number
CN2010102520515A
Other languages
Chinese (zh)
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN2010102520515A priority Critical patent/CN102375777A/en
Publication of CN102375777A publication Critical patent/CN102375777A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an object-oriented test platform and provides a test platform and test result output for test cases composed by different test scripts. The object-oriented test platform comprises the following steps: 1) providing an interface function which needs to be used for the test case; 2) receiving and processing data to be tested and expected data, which are returned by the test case; 3) providing local calibration result for the test case in real time r during the operation process of the test case; 4) providing global operation result for the test case if the operation of the test case ends up; and 5) recording global calibration result into a related HTML (hypertext markup language) file for generating a final test report and completing the test result output. The object-oriented test platform had the advantages that the compiling of the test case is simplified, the test efficiency is improved and the test cost is reduced.

Description

OO test platform
Technical field
The present invention relates to a kind of test platform, relate in particular to a kind of OO automatic test platform.
Background technology
The user uses low-quality software or system, in operational process, can produce various problems, possibly bring serious consequence in various degree, and the lighter influences the operate as normal of system, and weight person causes the accident, the loss lives and properties.Software test is the most important means that guarantee software quality.What is software test? Nineteen eighty-three, IEEE was defined as: use artificial or automatically means move or measure the process of certain system, its purpose be to check it whether to satisfy the demand of regulation or understand fully expected results and actual result between difference.Modern engineering of software development be with the entire software development process clear and definite be divided into several stages, challenge is specifically solved by the stage.Like this, in the whole performance history of software, can propose some clear and definite control points,, thereby improve the visibility of performance history and the correctness of assurance performance history as the test stone of each phase targets realization to each stage.Empirical evidence, the quality of software are not only and are embodied on the program correctness, and it is closely related with demand analysis, software design that coding was done in the past.The mistake that occurs during software uses is not necessarily the programming personnel and introduces in coding stage, probably in program design, even just buried root of the trouble during demand analysis.At this moment, often can not be through may bringing out more wrong simple patch up to the correction of mistake, and must trace back to the initial period of software development.This has increased the Development of Software expense undoubtedly.Therefore, in order to guarantee the quality of software, we should be conceived to whole software life cycle, the work of each development phase before particularly being conceived to encode.Like this, the notion of software test and practical range must expand, and should be included in check, assessment and the detection in whole each stage of exploitation.Thus, the software test of broad sense is actual forms by confirming, verify, test three aspects.
Object-oriented Technique is a kind of brand-new software development technique, replaces the procedure-oriented development approach be widely used just gradually, is regarded as the emerging technology that solves software crisis.Object-oriented Technique produces better system architecture, and more the coding style of standard has been optimized the security that data are used greatly, has improved reusing of program code, and some think that at this point the program that Object-Oriented Technology goes out need not to test.Should see; Although the basic thought of Object-oriented Technique has guaranteed that software should have higher quality, actual conditions are really not so, because no matter adopt which type of programming technique; Programming personnel's mistake all is inevitable; And, more need strict test because the software code reuse of Object-Oriented Technology is high, avoid wrong procreation.Therefore, software test does not lose its importance because of the rise of OOP.
Object-oriented Technique promoting the use of in soft project makes traditional measuring technology and method receive great impact.To the new feature of introducing towards object technology, traditional measuring technology can't effectively be tested.To the test towards project software, the corresponding change or renewal all need appear in Test Strategy or method.
Traditional test of the prior art as in the CN200710193825.X patent of invention of emerging company.A kind of implementation method of software regression testing has been introduced in this invention; Record is carried out in the output of software in operational process; And feed back to test platform, test platform carries out record with the outgoing message of software in the whole process, in follow-up test automatically relatively and point out difference.Yet, can cause standard recording too huge and cause safeguarding underaction thereby after test is accomplished, again this record and standard recording compared the mode of obtaining a result.
The traditional test CN200510100657 of KangJia Group Co., Ltd " testing method of program unit of automatic gauging test result " has for another example been talked about the regression tested method.Yet this method of testing only is confined to the unit testing field of software, how to return not relevant description about system-Level software.
In view of this, be necessary to propose a kind of OO test platform, reduce testing cost to improve testing efficiency.
Summary of the invention
The object of the present invention is to provide a kind of OO test platform, it reduces testing cost, improves testing efficiency and reliability.
The object of the present invention is to provide a kind of test macro that relies on OO test platform, it has low testing cost and high testing efficiency and reliability.
For realizing above-mentioned purpose, the invention relates to a kind of OO test platform, the test case that its test script of serving as reasons different is formed provides test platform and test result output.This OO test platform may further comprise the steps: 1) for test case the interface function that needs use is provided; 2) receive and handle testing data and the expected data that test case is returned; 3) if test case in operational process, provides the check results of part in real time for test case; 4) if the test case end of run, for test case provide the overall situation operation result; 5) the overall check results of record generates the output of final test report completion test result in relevant html file.
As further improvement of the present invention, comprise in the said step that the interface function that needs is provided for test case that test case calls distinct interface function that OO test platform provides with the operation of realization for Devices to test and testing apparatus according to different Devices to tests and testing apparatus.
As further improvement of the present invention, said test case is obtained testing data and is built-in with expected data in operating process, and wherein test case is returned testing data and expected data to OO test platform simultaneously.
As further improvement of the present invention, testing data and expected data that said OO test platform returns for test case are compared verification to produce local check results.
As further improvement of the present invention, the check results of said part shows as the matching result of current testing data of test case and expected data.
As further improvement of the present invention, said is that test case provides the step of the check results of part to comprise simultaneously that also the check results that this is local is saved to OO test platform inside to gather in real time.
As further improvement of the present invention, saidly provide the step of overall check results to comprise to gather local operation result to become the operation result of the overall situation and operation result to the test result of returning the overall situation is simultaneously exported for test case.
As further improvement of the present invention; The operation result of the said overall situation returns the operation result that test case can directly translate into current whole test case, and operation result to the test result output of returning the overall situation then shows as and is saved to the operational report that html file is used to generate all final test cases.
As further improvement of the present invention, it can support operation, the operation of all module testing use-cases or the operation of carrying out test case of selectivity randomness of test case of operation, the individual module of single test case according to the classification situation of test case.
For realizing above-mentioned purpose, the invention relates to a kind of test macro, it comprises OO test platform, runs on the test case of OO test platform, Devices to test and testing apparatus.This test macro may further comprise the steps: the distinct interface function that test case is called OO test platform to be provided is operated Devices to test and testing apparatus; Test case is built-in with the expectation data and in operating process, obtains testing data, and this testing data returns OO test platform simultaneously with the expectation data; Testing data that OO test platform relatively returns and expectation data also produce local check results; OO test platform is saved to inside and returns local check results to test case; OO test platform gathers the operation result of test case; OO test platform returns operation result to the test case of the overall situation and preserves this overall operation result to relevant html file generating run report.
The invention has the beneficial effects as follows: OO test platform is through real-time back-checking result, and the overall operation result of output, simplifies test case and writes, and reduces testing cost and improves testing efficiency.
Description of drawings
Fig. 1 is the process flow diagram of the OO test platform of the present invention.
Embodiment
Test case S104 and test result output S122 that test macro of the present invention comprises OO test platform S102, is made up of different test scripts.OO test platform S102 provides the interface function that needs use for test case S104, testing data and expected data that the use-case of acceptance test simultaneously S104 returns.OO test platform S102 is after handle testing data and expected data inside, if test case S104 is in operational process then for it check results of part is provided; If test case S104 end of run then, and the check results of the overall situation recorded generate relevant report in the relevant html file for it provides the check results of the overall situation.
The OO test platform S102 of the present invention internal process mainly comprises:
Module S106 is that test case provides relevant interface function to different equipment;
Module S112, testing data and expected data that reception and analytical test use-case S104 return, and generate the toposcopy result;
Step S114, OO test platform S102 returns the toposcopy result to test case;
It is inner to test platform S102 that step S116, OO test platform S102 preserve the toposcopy result;
Module S118, OO test platform S102 gathers test case S104 operation result;
Step S124, OO test platform S102 return the operation result of the overall situation to test case S104;
Step S120, OO test platform S102 return the operation result of the overall situation to html file, the generating run report;
OO test platform S102 is combining the detailed process under test case S104 and the test result output S122 ruuning situation to be described below:
Test case S104 at first calls relevant interface function (module S106) that OO test platform S102 provided with the operation (step S108) of realization for Devices to test and testing apparatus according to different Devices to tests and testing apparatus in the process of operation.Test case S104 obtains testing data in operating process, in test case S104, have expected data simultaneously, and test case S104 returns to OO test platform S102 (step S110) simultaneously with testing data and expected data.OO test platform S102 can be for the verification of comparing of the testing data that returns among the step S110 and expected data, to produce local check result (module S112).OO afterwards test platform S102 can carry out the operation of step S116 and step S114 simultaneously; Promptly in test case S104, can preserve the inside of local check result returning the toposcopy result, promptly gather the operation result (module S118) of test case S104 to OO test case S102.Return the toposcopy result can directly translate into current testing data of test case S104 and expected data to test case S104 (step S114) matching result.Preserve the toposcopy result to OO test platform S102 inner (step S116), the operation result (module S118) that promptly gathers test case S104 then can gather by the operation result to whole test case S104 when test case S104 end of run.Then return simultaneously after this overall operation result to test case S104 (step S124) and return the overall situation operation result to test result export S122 (step S120) to.Return overall operation result can directly translate into current whole test case to test case S104 (step S124) operation result.Return overall operation result to html file, generate the operational report S122 (step S120) of final all test cases.
The OO test platform S102 of the present invention can support the operation of test case of operation, the individual module of single test case according to the classification situation of test case S104, and the operation of all module testing use-cases in addition can selectivity, the operation of carrying out test case of randomness.The OO test platform S102 of the present invention can adopt the different methods of operation according to tester's different demands, when satisfying testing requirement, also can obtain the result who tests more fast.
The OO test platform S102 of the present invention can distinguish different equipment, and for example one and a plurality of Devices to test, testing tool or the like for different equipment provides different called functions, are operated different equipment by this, and the advantage of this mode is:
One, simplify test case: the function that can the use test platform in the process of creating test case provides is write; And the interface function of studying testing tool of no longer requiring a great deal of time etc. also no longer need add relevant calling function simultaneously in test case.
Two, make things convenient for the maintenance of test case: when changing appearred in the interface function that testing tool occurs, the OO test platform of the present invention can be hidden the relative test case of this variation.That is to say when changing generation, no longer need make any modification, only need to revise the function of the overall situation, reached the purpose that compatibility changes for test case.
Three, can expand different Devices to tests and testing apparatus arbitrarily: under the situation of adding a kind of new Devices to test or testing apparatus, this influence also has nothing to do for test case, does not influence the operation of original test case.
In sum, OO test platform of the present invention has been simplified writing of test case on the one hand, can check verification to testing data and the expected data returned in the test case in real time on the other hand, returns the test result of test case in real time.In the prior art, test case is to the mode that each test resource (like tester, equipment under test, testing software etc.) adopts formula independently to manage, and makes that the design complexities of test case is high, resource utilization is low, extendability difference etc.With compared with techniques before, the present invention introduces OO Testing Platform theory, makes that the interface of test resource management is unitized.Various test resources are by dynamically application and discharging of test case, improve greatly test resource utilization factor, simplify the test case complexity, improve the extensibility of test case.Simultaneously, OO test platform of the present invention can be expanded flexibly, safeguard; Support the test mode of robotization, avoided the great amount of manpower resource to do the work of repetition, reduced the cost of test; Support test case to write flexibly, safeguard simultaneously, move test case efficiently, and operation result is carried out synchronous Macro or mass analysis.
Special needs to be pointed out is that only with this OO test platform as an example, the OO test platform of any kind all is suitable for the principle that the present invention discloses in practical application in the specific embodiment of the invention.For the person of ordinary skill of the art, that under instruction of the present invention, is done changes to equivalence of the present invention, must be included in the scope that claim of the present invention advocates.

Claims (10)

1. OO test platform, the test case that its test script of serving as reasons different is formed provide test platform and test result output, and it is characterized in that: it may further comprise the steps:
1) for test case the interface function that needs use is provided;
2) receive and handle testing data and the expected data that test case is returned;
3) if test case in operational process, provides the check results of part in real time for test case;
4) if the test case end of run, for test case provide the overall situation operation result;
5) the overall check results of record generates the output of final test report completion test result in relevant html file.
2. OO test platform as claimed in claim 1; It is characterized in that, comprise in the said step that the interface function that needs is provided for test case that test case calls distinct interface function that OO test platform provides with the operation of realization for Devices to test and testing apparatus according to different Devices to tests and testing apparatus.
3. OO test platform as claimed in claim 1; It is characterized in that; Said test case is obtained testing data and is built-in with expected data in operating process, wherein test case is returned testing data and expected data to OO test platform simultaneously.
4. OO test platform as claimed in claim 3 is characterized in that, testing data and expected data that said OO test platform returns for test case are compared verification to produce local check results.
5. OO test platform as claimed in claim 4 is characterized in that, the check results of said part shows as the matching result of current testing data of test case and expected data.
6. OO test platform as claimed in claim 1 is characterized in that, said is that test case provides the step of the check results of part to comprise simultaneously that also the check results that this is local is saved to OO test platform inside to gather in real time.
7. OO test platform as claimed in claim 1; It is characterized in that, saidly provide the step of overall check results to comprise to gather local operation result to become the operation result of the overall situation and operation result to the test result of returning the overall situation is simultaneously exported for test case.
8. OO test platform as claimed in claim 7; It is characterized in that; The operation result of the said overall situation returns the operation result that test case can directly translate into current whole test case, and operation result to the test result output of returning the overall situation then shows as and is saved to the operational report that html file is used to generate all final test cases.
9. OO test platform as claimed in claim 1; It is characterized in that it can support operation, the operation of all module testing use-cases or the operation of carrying out test case of selectivity randomness of test case of operation, the individual module of single test case according to the classification situation of test case.
10. test macro, it is characterized in that: it comprises OO test platform, runs on the test case of OO test platform, Devices to test and testing apparatus; It may further comprise the steps:
The distinct interface function that test case is called OO test platform to be provided is operated Devices to test and testing apparatus;
Test case is built-in with the expectation data and in operating process, obtains testing data, and this testing data returns OO test platform simultaneously with the expectation data;
Testing data that OO test platform relatively returns and expectation data also produce local check results;
OO test platform is saved to inside and returns local check results to test case;
OO test platform gathers the operation result of test case;
OO test platform returns operation result to the test case of the overall situation and preserves this overall operation result to relevant html file generating run report.
CN2010102520515A 2010-08-12 2010-08-12 Object-oriented test platform Pending CN102375777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102520515A CN102375777A (en) 2010-08-12 2010-08-12 Object-oriented test platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102520515A CN102375777A (en) 2010-08-12 2010-08-12 Object-oriented test platform

Publications (1)

Publication Number Publication Date
CN102375777A true CN102375777A (en) 2012-03-14

Family

ID=45794411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102520515A Pending CN102375777A (en) 2010-08-12 2010-08-12 Object-oriented test platform

Country Status (1)

Country Link
CN (1) CN102375777A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111885A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Method and device for verifying interface test results
CN105117342A (en) * 2015-09-16 2015-12-02 上海斐讯数据通信技术有限公司 Test method based on object-oriented switchboard software test cases

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN101017457A (en) * 2007-02-09 2007-08-15 山东浪潮齐鲁软件产业股份有限公司 Automatically testing method of computer software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN101017457A (en) * 2007-02-09 2007-08-15 山东浪潮齐鲁软件产业股份有限公司 Automatically testing method of computer software

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111885A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Method and device for verifying interface test results
CN104111885B (en) * 2013-04-22 2017-09-15 腾讯科技(深圳)有限公司 The method of calibration and device of interface testing result
CN105117342A (en) * 2015-09-16 2015-12-02 上海斐讯数据通信技术有限公司 Test method based on object-oriented switchboard software test cases

Similar Documents

Publication Publication Date Title
CN102141962B (en) Safety distributed test framework system and test method thereof
CN102331967B (en) Method for managing chip verification test cases
CN112946404B (en) Comprehensive test method for batch production satellite
CN102662644B (en) Method for generating test case by using flow chart
Gao et al. A component testability model for verification and measurement
CN102141960A (en) Automatic test method based on Android
CN103530223A (en) Method and device for automatically generating unit test cases
CN105022691A (en) Highly automatic software testing method based on UML diagram
CN105301419A (en) Cloud-technology-based automatic test system for protective relaying device
CN103279416A (en) Storage software automated testing system and method
CN110688313B (en) Fault injection method for software testing under VxWorks operating system
CN110321292A (en) Chip detecting method, device, electronic equipment and computer readable storage medium
CN109739759A (en) A method of verifying Black-box testing Cases design integrity
CN102707712B (en) Electronic equipment fault diagnosis method and system
CN112367680A (en) External communication test method and device based on intelligent electric meter and computer equipment
CN105279092A (en) Software testing method and apparatus
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN111176989A (en) Fault injection test scenario case model and framework based on service arrangement
CN112506802B (en) Test data management method and system
CN102375777A (en) Object-oriented test platform
CN109508204B (en) Front-end code quality detection method and device
CN105574178A (en) Basic database for satellite testing as well as device and method for batch satellite testing
CN103368762A (en) Testing method, system and device for big data comparison
CN112181784A (en) Code fault analysis method and system based on bytecode injection
CN114661615B (en) FPGA software testing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120314