CN110096445A - A kind of model is in ring test method and device - Google Patents
A kind of model is in ring test method and device Download PDFInfo
- Publication number
- CN110096445A CN110096445A CN201910371768.2A CN201910371768A CN110096445A CN 110096445 A CN110096445 A CN 110096445A CN 201910371768 A CN201910371768 A CN 201910371768A CN 110096445 A CN110096445 A CN 110096445A
- Authority
- CN
- China
- Prior art keywords
- test
- test case
- input module
- data
- case data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of models in ring test method and device, it is related to embedded system test technical field, optimize the method for importing test case data to test model, the attribute information of the test case data of importing can also be increased according to testing requirement and neatly when importing simultaneously, to both make designed test case meet functional requirement and coverage, tester is facilitated to execute retrospect, maintenance and change, main technical schemes of the invention are as follows: test case data is obtained from test case template, test case data includes at least one set of test case, the corresponding functional requirement of every group of test case, test case includes multiple attribute informations;By calling default script to generate the corresponding test input module of test case data, tests in input module and be loaded with test case data;Test input module is called, the test case data loaded in test input module is executed, exports test report.The present invention is applied to Optimized model in ring test.
Description
Technical field
The present invention relates to embedded system test technical fields more particularly to a kind of model in ring test method and device.
Background technique
Model is tested at ring (Model-in-the-Loop, MIL), is using based on model (Model-based, MBD)
One of design process test verification method is developed, is for the test from model to demand.MIL test is commonly used to verifying
The realization of function, it is ensured that model can accurately, completely capture demand, be the common method of engineer's verification algorithm.
When carrying out MIL test, primary committed step is exactly testing example design.Currently, usually using following
Two methods design test case: one is the components for using matrix labotstory (Matrix Laboratory, Matlab) included
Generate test case, but this kind of method can only from coverage verifying logic reasonability;Another kind is according to function need
Design test case is sought, for example, writing a large amount of test case in Excel, is then introduced into test input module
In (Signal Builder), still, if be unsatisfactory for test case import format requirement during importing, test defeated
Enter module cannot successfully load test use-case, so this just need may only be according to fixed grating when writing test case
Formula, for example, only editing test case in Excel includes testing time and test input, if a more attribute information (ratios again
Such as: desired output), then being just unsatisfactory for test case import format requirement, so this method to edit test case excessively
It is inflexible, to also be not convenient for the retrospect to test execution, maintenance and change.
Summary of the invention
In view of this, the present invention provides a kind of model in ring test method and device, main purpose is to optimize to survey
The method that die trial type imports test case data, while importing can also be increased according to testing requirement and neatly when importing
The attribute information of test case data, to not only make designed test case meet functional requirement and coverage, but also more
Test case data intuitively is shown to tester, is also convenient to tester to test after terminating a test assignment
Retrospect, maintenance and the change of case data.
In order to achieve the above object, present invention generally provides following technical solutions:
On the one hand, the present invention provides a kind of models in ring test method, this method comprises:
Test case data is obtained from test case template, the test case data includes that 1 group or multiple groups test are used
Example, the corresponding functional requirement of every group of test case, the test case includes multiple attribute informations;
By calling default script to generate the corresponding test input module of the test case data, the test inputs mould
The test case data is loaded in block;
The test input module is called, the test case data loaded in the test input module is executed, output is surveyed
Examination report.
Optionally, before obtaining test case data from test case template described, the method also includes:
Test case template is constructed, the template is equipped with one or more worksheets, the corresponding function of each worksheet
Demand, each worksheet include multiple attribute columns, and the attribute column is for storing attribute-name and its corresponding attribute information;
After the test case data for receiving user's input, the corresponding functional requirement of the test case data is judged
Number;
According to different functional requirements, the test case data is executed into grouping, the corresponding one group of survey of each functional requirement
Example on probation;
Every group of test case is added separately in different worksheets;
Prompt user inputs the attribute-name and attribute information of the test case in the worksheet.
Optionally, described by calling default script to generate the corresponding test input module of the test case data, packet
It includes:
It calls and presets the corresponding test input module of every group of test case of script generation, in the test input module
It is loaded with corresponding one group of test case;And/or
It calls and presets the corresponding test input module of script generation multiple groups test case, in the test input module
It is loaded with the multiple groups test case.
Optionally, described to call the test input module, execute the test case loaded in the test input module
Data, comprising:
After generate the corresponding test input module of every group of test case, inquires and edited in every group of test case
Variable;
Judge that multiple groups test case is different with the presence or absence of same variable instruction content information;
If it exists, then sequence is executed according to default, gradually executes and loads respectively in the different test input module
Test case;
If it does not exist, then the corresponding test input module of the multiple groups test case is called together, while being held respectively
The test case loaded in each test input module of row.
Optionally, after obtaining test case data from test case template described, the method also includes:
According to different attribute information institute, matched data format is regular in advance, the multiple categories for including to the test case
Property information carry out data validity inspection.
Optionally, multiple attribute informations that the test case includes are at least are as follows: test ID, the testing time, test specification,
Test input and desired output.
On the other hand, the present invention also provides a kind of models in ring test device, which includes:
Acquiring unit, for obtaining test case data from test case template, the test case data includes 1 group
Or multiple groups test case, the corresponding functional requirement of every group of test case, the test case includes multiple attribute informations;
Generation unit, for corresponding by calling default script to generate the test case data that the acquiring unit obtains
Input module is tested, is loaded with the test case data in the test input module;
Execution unit executes the test input module that the generation unit generates for calling the test input module
The test case data of interior load exports test report.
Optionally, described device further include:
Construction unit, for constructing test case template, the template is equipped with one or more worksheets, each work
Table corresponds to a functional requirement, and each worksheet includes multiple attribute columns, the attribute column for store attribute-name and its
Corresponding attribute information;
Judging unit, for judging the test case data after the test case data for receiving user's input
The number of corresponding functional requirement;
Grouped element, for the test case data being executed grouping, each function is needed according to different functional requirements
Seek corresponding one group of test case;
Adding unit, for every group of test case to be added separately in different worksheets;
Prompt unit, for prompting user to input the attribute-name and attribute letter of the test case in the worksheet
Breath.
Optionally, the generation unit includes:
Generation module, it is described for calling default script to generate the corresponding test input module of every group of test case
Corresponding one group of test case is loaded in test input module;And/or
The generation module is also used to that default script is called to generate the corresponding test input mould of multiple groups test case
Block is loaded with the multiple groups test case in the test input module.
Optionally, the execution unit includes:
Enquiry module, for inquiring every group of survey after generating the corresponding test input module of every group of test case
The variable edited in example on probation;
Judgment module, for judging that multiple groups test case is different with the presence or absence of same variable instruction content information;
Execution module, for if it exists, then executing sequence according to default, gradually executing the different test input module
The test case inside loaded respectively;
The execution module is also used to if it does not exist, then calls the corresponding test of the multiple groups test case together
Input module, while the test case loaded in each test input module is executed respectively.
Optionally, described device further include:
Inspection unit, for using the test according to matched data format is regular in advance to different attribute information institute
Multiple attribute informations that example includes carry out data validity inspection.
Optionally, multiple attribute informations that the test case includes are at least are as follows: test ID, the testing time, test specification,
Test input and desired output.
By above-mentioned technical proposal, technical solution provided by the invention is at least had the advantage that
For a kind of model provided by the invention in ring test method and device, the present invention is to obtain to survey from test case template
Case data is tried, calls default script to automatically generate the test input module for being loaded with the test case data, then passes through tune
Test case data is imported into model with test input module, completes model in ring test.Compared to the prior art, full at the same time
On sufficient functional requirement and coverage, the present invention is artificial design test case data according to testing requirement, is better than existing benefit
The test case automatically generated with Matlab, in addition, test case data of the invention is also to be adapted to different tests to need
It asks and includes different, multiple attribute informations, be automatically generated due to test input module of the invention, so also just not
If will appear the situation for being unsatisfactory for fixed test case data import format and importing data failure.More than, it solves existing
The method for two kinds of design test cases for having technology to refer to is unable to satisfy functional requirement and coverage and writes test case mistake
In inflexible technical problem.Present invention optimizes the methods for importing test case data to test model, while also when importing
The attribute information of the test case data of importing can be increased according to testing requirement and neatly, to both make designed survey
Example on probation meets functional requirement and coverage, and more intuitively shows test case data to tester, is terminating once
Also retrospect, maintenance and change of the tester to test case data are convenient to after test assignment.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of model provided in an embodiment of the present invention in ring test method flow chart;
Fig. 2 is another model provided in an embodiment of the present invention in ring test method flow chart;
Fig. 3 is a kind of composition block diagram of the model provided in an embodiment of the present invention in ring test device;
Fig. 4 is composition block diagram of another model provided in an embodiment of the present invention in ring test device.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of models in ring test method, as shown in Figure 1, this method is to survey in model in ring
The method for importing test case data to test model is optimized during examination, and the offer of this embodiment of the present invention is walked in detail below
It is rapid:
101, test case data is obtained from test case template.
Wherein, test case data includes 1 group or multiple groups test case, and every group of test case corresponds to a functional requirement,
Test case includes multiple attribute informations, and multiple attribute informations are used to carry out detailed explanation to test case.
In embodiments of the present invention, test case template is preset according to testing requirement, utilizes the test case mould
Plate can pre-enter one group or multiple groups test case of design, can with multiple attribute informations of input test use-case, than
Such as: test ID, testing time, test specification, test input and desired output, thus when being obtained from test case template
When to test case data, it is convenient to execute the tester of this test assignment and other testers can be clear
Know that obtaining the attribute information of several groups of test cases and every group of test case is what, to be convenient to all testers
Member is simple, quickly appreciates that test case data.
102, by calling default script to generate the corresponding test input module of the test case data.
Wherein, it tests in input module and is loaded with test case data, which is exactly SignalBuilder
Module, it is based on the data input module in model development design process.
For the embodiment of the present invention, the side of test case data is imported to test model during model is in ring test
Method: not being first to call already present test input module from model, then test case data is imported into this test input mould
Block, but by calling default script to directly generate the test input module comprising test case data.So the present invention is implemented
Example does not need to execute the step of importing data to known test input module, if would not occur being unsatisfactory for fixed survey yet
Examination case data import format and import the situation of data failure, must be according to certain so that also there is no need to test case datas
Specified fixed format editor can include neatly multiple attribute informations, avoid test case data from being designed inflexible, no
Understand convenient for other testers, read.
103, test input module is called, the test case data loaded in test input module, output test report are executed
It accuses.
In embodiments of the present invention, after successfully importing test case data to test model, so that it may start to hold
Row model is in ring test: executing the test case data loaded in test input module, exports test report.
For a kind of model provided in an embodiment of the present invention in ring test method, the embodiment of the present invention is from test case template
Test case data is obtained, calls default script to automatically generate the test input module for being loaded with the test case data, then
By calling test input module that test case data is imported model, model is completed in ring test.Compared to the prior art, exist
Meet on functional requirement and coverage simultaneously, the present invention is artificial design test case data according to testing requirement, better than existing
The test case that some is automatically generated using Matlab, in addition, the test case data of the embodiment of the present invention is also to be adapted to
In different testing requirements comprising different, multiple attribute informations, since the test input module of the embodiment of the present invention is certainly
Dynamic generation, if so would not also occur being unsatisfactory for fixed test case data import format and importing data failure
Situation.More than, the method for solving two kinds of design test cases that the prior art refers to be unable to satisfy functional requirement and coverage,
And write the excessively inflexible technical problem of test case.The embodiment of the present invention optimizes to test model and imports test case number
According to method, while import when can also increase according to testing requirement and neatly importing test case data attribute letter
Breath so that designed test case not only made to meet functional requirement and coverage, but also is more intuitively shown to tester
Test case data is also convenient to retrospect, maintenance of the tester to test case data after terminating a test assignment
And change.
In order to make more detailed explanation to above-described embodiment, the embodiment of the invention also provides alternate models to survey in ring
Method for testing, as shown in Fig. 2, this method be can choose to generate the corresponding test input module of every group of test case, and or
Person is that the corresponding test input module of multiple groups test case is convenient to neatly be led to test model according to testing requirement
Enter test case data, provide step in detail below to this embodiment of the present invention:
201, test case data is obtained from test case template.
Wherein, test case data includes 1 group or multiple groups test case, and every group of test case corresponds to a functional requirement,
Test case includes multiple attribute informations.
In embodiments of the present invention, it for the specific steps of building test case template, can be such that
Firstly, building test case template, which is equipped with one or more worksheets, and each worksheet is one corresponding
Functional requirement, each worksheet include multiple attribute columns, and attribute column is for storing attribute-name and its corresponding attribute information.
Such as: for testing automobile storage battery, an Excel test case template can be constructed, to different working condition measurements
Demand creates Sheet list, such as: power on operating condition, lower electrician's condition, driving operating condition etc. so that the Excel contain it is multiple
Worksheet (Sheet list), each Sheet list are used to store one group of test case of corresponding operating condition.For each Sheet table
It is single, multiple attribute columns can also be preset, for storing attribute-name and its corresponding attribute information, the attribute column and attribute information
It is for test case to be described in detail.
Secondly, after having constructed test case template, so that it may store test case number with the test case template
According to.In embodiments of the present invention, the test case data that user is manually entered can be directly received, or is from other texts
Part obtains test case data, such as: the test case data that multiple alternative documents store is imported into the test case template.
After receiving test case data, need preferentially to judge the data of the corresponding functional requirement of a large amount of test case datas, with
It is convenient to that test case data is executed grouping according to different functional requirements, every group of test case is added separately to difference
Sheet list in.
For example, the test case data of different function demand is logical when receiving the test case data of alternative document storage
It is often to separate editor or with different identification, it is possible to be convenient to distinguish the corresponding one group of test of each functional requirement
Which use-case is, then according still further to the framework of test case template, the corresponding one group of test case of different function demand is stored
In different Sheet lists.
Finally, can prompt user in Sheet list with trigger command after Sheet list stores test case
The attribute-name and attribute information of input test use-case.Attribute-name and attribute information are manually set according to testing requirement,
It is simple in all testers for convenience, quickly appreciate that test case, the tester of design test case can survey
Attribute-name and attribute information are filled in the Sheet list under example template on probation, such as: test ID, testing time, test are said
Bright, test input and desired output etc..
It should be noted that in embodiments of the present invention, after the test case data for receiving user's input, and
After test case data is got from test case template, attribute information matched data format rule in advance may be by
Data validity inspection is carried out to multiple attribute informations that test case includes, to improve test case data.Such as: attribute letter
Whether breath is sky, and testing input and desired output, perhaps whether the letter testing time is empty or letter with the presence or absence of sky, etc.
Deng.
202a, default script is called to generate the corresponding test input module of every group of test case.
In embodiments of the present invention, the test case data got from test case template can be 1 group or more
Group test case can call default script to generate the corresponding test input module of every group of test case, so that each survey
Examination input module is loaded with corresponding one group of test case data.In model during ring test, for being led to test model
Enter test case data, when which test input module imported to test model, is carried out load in the test input module
Test case.
202b, default script is called to generate the corresponding test input module of multiple groups test case.
In embodiments of the present invention, the test case data got from test case template can be 1 group or more
Group test case may call upon default script and generate the corresponding test input module of multiple groups test case, so that test
Multiple groups test case is loaded in input module.In model during ring test, for importing test case to test model
Data are carried out the multiple groups test loaded in the test input module when importing this test input module to test model
Use-case.
203, test input module is called, the test case data loaded in test input module, output test report are executed
It accuses.
In embodiments of the present invention, after successfully importing test case data to test model, so that it may start to hold
Row model is in ring test: executing the test case data loaded in test input module, exports test report.
It should be noted that obtaining the application of the corresponding test input module of every group of test case for step 202a
Scene executes survey in addition to importing corresponding test input module according to testing requirement when importing input module to test model
Examination to model while can also import multiple test input modules, but it is emphasized that: it should preferentially inquire every group of test and use
The variable edited in example judges that multiple groups test case indicates content information different situations with the presence or absence of same variable, to avoid
Cause to test since every group of test case corresponds to different content information there are identical variable when being performed simultaneously multiple groups test case
The problem of causing confusion.If there is no said circumstances, so that it may call the corresponding test of multiple groups test case defeated together
Enter module, while executing the test case loaded in each test input module respectively, improves testing efficiency;But if there is
Said circumstances then execute sequence according to default, gradually call different test input modules, execute in different test input modules
The test case loaded respectively.
In embodiments of the present invention, test case template is artificially designed according to testing requirement, but the template packet
The multiple Sheet lists contained can be adapted for multiple testing requirements, with realize obtain test case data using the template can be with
Execute a variety of test operations.After having executed test case, it is also necessary to according to output test report, judge this test assignment
Whether functional requirement and coverage are met, and whether analysis test result meets Functional Design demand, determines coverage rate, Condition Coverage Testing
Rate and correction conditions/judgement coverage rate, since test case data is obtained from test case template, and test case mould
Test case data is clearly grouped by plate, multiple attribute informations comprising test case, so being convenient to tester couple
Retrospect, maintenance and the change of test execution.
Further, as the realization to method shown in above-mentioned Fig. 1, Fig. 2, the embodiment of the invention provides a kind of models to exist
Ring test device.The Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is no longer to aforementioned
Detail content in embodiment of the method is repeated one by one, it should be understood that before the device in the present embodiment can correspond to realization
State the full content in embodiment of the method.The device is applied to complete to import to model test case data to execute model in ring
Test, specifically as shown in figure 3, the device includes:
Acquiring unit 31, for obtaining test case data from test case template, the test case data includes 1
Group or multiple groups test case, the corresponding functional requirement of every group of test case, the test case includes multiple attribute informations;
Generation unit 32, for by calling default script to generate the test case data pair that the acquiring unit 31 obtains
The test input module answered is loaded with the test case data in the test input module;
Execution unit 33 executes the test input that the generation unit 32 generates for calling the test input module
The test case data loaded in module exports test report.
Further, as shown in figure 4, described device further include:
Construction unit 34, for constructing test case template, the template is equipped with one or more worksheets, Mei Gegong
Make the corresponding functional requirement of table, each worksheet includes multiple attribute columns, the attribute column for store attribute-name and
Its corresponding attribute information;
Judging unit 35, for judging the test case number after the test case data for receiving user's input
According to the number of corresponding functional requirement;
Grouped element 36, for according to different functional requirements, the test case data to be executed grouping, each function
Demand corresponds to one group of test case;
Adding unit 37, for every group of test case to be added separately in different worksheets;
Prompt unit 38, for prompting user to input the attribute-name and attribute of the test case in the worksheet
Information.
Further, as shown in figure 4, the generation unit 32 includes:
Generation module 321, for calling default script to generate the corresponding test input module of every group of test case, institute
It states and is loaded with corresponding one group of test case in test input module;And/or
The generation module 321 is also used to that default script is called to generate the corresponding test input of multiple groups test case
Module is loaded with the multiple groups test case in the test input module.
Further, as shown in figure 4, the execution unit 33 includes:
Enquiry module 331, for inquiring every group after generating the corresponding test input module of every group of test case
The variable edited in test case;
Judgment module 332, for judging that multiple groups test case is different with the presence or absence of same variable instruction content information;
Execution module 333 gradually executes the different test input for if it exists, then executing sequence according to default
The test case loaded respectively in module;
The execution module 333, is also used to if it does not exist, then calls the corresponding survey of the multiple groups test case together
Input module is tried, while executing the test case loaded in each test input module respectively.
Further, as shown in figure 4, described device further include:
Inspection unit 39, for basis, to different attribute information institute, matched data format is regular in advance, to the test
Multiple attribute informations that use-case includes carry out data validity inspection.
Further, as shown in figure 4, the test case include multiple attribute informations at least are as follows: test ID, test when
Between, test specification, test input and desired output.
The embodiment of the present invention also provides a kind of electronic equipment, comprising: memory, processor and storage are on a memory and can
The program run on a processor realizes model as described above in ring test method when the processor executes described program.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Realize model as described above in ring test method when sort run.
In conclusion a kind of model provided in an embodiment of the present invention is in ring test method and device, the embodiment of the present invention is
It can choose and generate the corresponding test input module of every group of test case, or be multiple groups test case corresponding one
A test input module is convenient to according to testing requirement, neatly imports test case data to test model, is completed model and is existed
Ring test.Compared to the prior art, meet on functional requirement and coverage at the same time, the present invention is artificial according to testing requirement
Design test case data, better than the existing test case automatically generated using Matlab, in addition, test case of the invention
Data are also to be adapted to different testing requirements and include different, multiple attribute informations, since test of the invention is defeated
Enter what module was automatically generated, if so would not also occur being unsatisfactory for fixed test case data import format and importing
The situation of data failure.More than, the method for solving two kinds of design test cases that the prior art refers to is unable to satisfy function and needs
Summation coverage and write the excessively inflexible technical problem of test case.Present invention optimizes import to test to test model
The method of case data, while the test case data of importing can also be increased when importing according to testing requirement and neatly
Attribute information, to not only make designed test case meet functional requirement and coverage, but also more intuitively to tester
Member shows test case data, is also convenient to tester after terminating a test assignment and chases after to test case data
It traces back, safeguard and changes.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (traHsitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (10)
1. a kind of model is in ring test method, which is characterized in that the described method includes:
Test case data is obtained from test case template, the test case data includes at least one set of test case, often
The corresponding functional requirement of group test case, the test case include multiple attribute informations;
The corresponding test input module of the script generation test case data is preset by calling, in the test input module
It is loaded with the test case data;
The test input module is called, the test case data loaded in the test input module, output test report are executed
It accuses.
2. the method according to claim 1, wherein obtaining test case number from test case template described
According to before, the method also includes:
Test case template is constructed, the template is equipped at least one worksheet, and each worksheet corresponds to a functional requirement,
Each worksheet includes multiple attribute columns, and the attribute column is for storing attribute-name and its corresponding attribute information;
After the test case data for receiving user's input, the number of the corresponding functional requirement of the test case data is judged
Mesh;
According to different functional requirements, the test case data is executed into grouping, the corresponding one group of test of each functional requirement is used
Example;
Every group of test case is added separately in different worksheets;
Prompt user inputs the attribute-name and attribute information of the test case in the worksheet.
3. the method according to claim 1, wherein described by calling default script to generate the test case
The corresponding test input module of data, comprising:
Default script is called to generate the corresponding test input module of every group of test case, load in the test input module
There is corresponding one group of test case;And/or
Default script is called to generate the corresponding test input module of multiple groups test case, load in the test input module
There is the multiple groups test case.
4. according to the method described in claim 3, it is characterized in that, the calling test input module, executes the survey
Try the test case data loaded in input module, comprising:
After generating the corresponding test input module of every group of test case, the change edited in every group of test case is inquired
Amount;
Judge that multiple groups test case is different with the presence or absence of same variable instruction content information;
If it exists, then sequence is executed according to default, gradually executes the test loaded respectively in the different test input module
Use-case;
If it does not exist, then the corresponding test input module of the multiple groups test case is called together, while being executed respectively every
The test case loaded in a test input module.
5. the method according to claim 1, wherein obtaining test case number from test case template described
According to later, the method also includes:
According to different attribute information institute, matched data format is regular in advance, multiple attributes that the test case includes are believed
Breath carries out data validity inspection.
6. according to claim 1 to method described in 5, which is characterized in that multiple attribute informations that the test case includes are extremely
It is few are as follows: test ID, testing time, test specification, test input and desired output.
7. a kind of model is in ring test device, which is characterized in that described device includes:
Acquiring unit, for obtaining test case data from test case template, the test case data includes at least one
Group test case, the corresponding functional requirement of every group of test case, the test case includes multiple attribute informations;
Generation unit, for by calling default script to generate the corresponding test of test case data that the acquiring unit obtains
Input module is loaded with the test case data in the test input module;
Execution unit executes in the test input module that the generation unit generates and adds for calling the test input module
The test case data of load exports test report.
8. device according to claim 7, which is characterized in that described device further include:
Construction unit, for constructing test case template, the template is equipped at least one worksheet, and each worksheet is corresponding
One functional requirement, each worksheet include multiple attribute columns, and the attribute column is used to store attribute-name and its is corresponding
Attribute information;
Judging unit, for after the test case data for receiving user's input, judging that the test case data is corresponding
Functional requirement number;
Grouped element, for according to different functional requirements, the test case data to be executed grouping, each functional requirement pair
Answer one group of test case;
Adding unit, for every group of test case to be added separately in different worksheets;
Prompt unit, for prompting user to input the attribute-name and attribute information of the test case in the worksheet.
9. a kind of electronic equipment characterized by comprising memory, processor and storage are on a memory and can be in processor
The program of upper operation when the processor executes described program, is realized and is surveyed such as model as claimed in any one of claims 1 to 6 in ring
Method for testing.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that when described program is run
It realizes if model as claimed in any one of claims 1 to 6 is in ring test method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910371768.2A CN110096445A (en) | 2019-05-06 | 2019-05-06 | A kind of model is in ring test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910371768.2A CN110096445A (en) | 2019-05-06 | 2019-05-06 | A kind of model is in ring test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110096445A true CN110096445A (en) | 2019-08-06 |
Family
ID=67447019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910371768.2A Pending CN110096445A (en) | 2019-05-06 | 2019-05-06 | A kind of model is in ring test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110096445A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111709117A (en) * | 2020-05-13 | 2020-09-25 | 中核武汉核电运行技术股份有限公司 | Method and device for managing life-cycle process of nuclear power analog machine |
CN112084111A (en) * | 2020-09-10 | 2020-12-15 | 广州小鹏汽车科技有限公司 | Data processing method, system and device |
CN113360132A (en) * | 2020-03-05 | 2021-09-07 | 北京车和家信息技术有限公司 | Real vehicle test data analysis method and device |
CN114356756A (en) * | 2021-12-22 | 2022-04-15 | 重庆长安汽车股份有限公司 | Model-in-loop automatic testing method for intelligent driving model development |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186457A (en) * | 2011-12-29 | 2013-07-03 | 阿里巴巴集团控股有限公司 | Method and device for automatically generating test case |
US20160342501A1 (en) * | 2015-05-18 | 2016-11-24 | Hcl Technologies Limited | Accelerating Automated Testing |
CN107729243A (en) * | 2017-10-12 | 2018-02-23 | 上海携程金融信息服务有限公司 | API automated testing method, system, equipment and storage medium |
CN107748713A (en) * | 2017-09-04 | 2018-03-02 | 中国航空工业集团公司西安飞行自动控制研究所 | A kind of software verification method based on emulation testing use-case |
CN108197026A (en) * | 2017-12-30 | 2018-06-22 | 北京金风科创风电设备有限公司 | Method, device and equipment for testing simulation software of wind generating set and storage medium |
-
2019
- 2019-05-06 CN CN201910371768.2A patent/CN110096445A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186457A (en) * | 2011-12-29 | 2013-07-03 | 阿里巴巴集团控股有限公司 | Method and device for automatically generating test case |
US20160342501A1 (en) * | 2015-05-18 | 2016-11-24 | Hcl Technologies Limited | Accelerating Automated Testing |
CN107748713A (en) * | 2017-09-04 | 2018-03-02 | 中国航空工业集团公司西安飞行自动控制研究所 | A kind of software verification method based on emulation testing use-case |
CN107729243A (en) * | 2017-10-12 | 2018-02-23 | 上海携程金融信息服务有限公司 | API automated testing method, system, equipment and storage medium |
CN108197026A (en) * | 2017-12-30 | 2018-06-22 | 北京金风科创风电设备有限公司 | Method, device and equipment for testing simulation software of wind generating set and storage medium |
Non-Patent Citations (1)
Title |
---|
孙名扬 等: "AMT控制软件测试平台开发", 《汽车技术》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360132A (en) * | 2020-03-05 | 2021-09-07 | 北京车和家信息技术有限公司 | Real vehicle test data analysis method and device |
CN113360132B (en) * | 2020-03-05 | 2023-12-19 | 北京车和家信息技术有限公司 | Real vehicle test data analysis method and device |
CN111709117A (en) * | 2020-05-13 | 2020-09-25 | 中核武汉核电运行技术股份有限公司 | Method and device for managing life-cycle process of nuclear power analog machine |
CN112084111A (en) * | 2020-09-10 | 2020-12-15 | 广州小鹏汽车科技有限公司 | Data processing method, system and device |
CN114356756A (en) * | 2021-12-22 | 2022-04-15 | 重庆长安汽车股份有限公司 | Model-in-loop automatic testing method for intelligent driving model development |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096445A (en) | A kind of model is in ring test method and device | |
CN108897724B (en) | Function completion progress determining method and device | |
CN109614324A (en) | A kind of method for generating test case and device | |
CN109492288B (en) | Ship cable design method, system, equipment and medium based on three-dimensional model | |
CN109933535A (en) | Generation method, device and the server of test case | |
CN109145981B (en) | Deep learning automatic model training method and equipment | |
CN110209584A (en) | A kind of automatic generation of test data and relevant apparatus | |
CN105468797A (en) | Information processing method and apparatus | |
CN106980571A (en) | The construction method and equipment of a kind of test use cases | |
CN108829604A (en) | Method for generating test case and device based on vehicle control device | |
CN111026080A (en) | Hardware-in-loop test method and device for controller | |
CN109934507A (en) | A kind of method and device of operation flow scheduling | |
CN104133768A (en) | Program code review method and program code review device | |
US20050137839A1 (en) | Methods, apparatus and programs for system development | |
CN113641592B (en) | Test sequence generation method and device | |
CN111190814A (en) | Software test case generation method and device, storage medium and terminal | |
CN111859571B (en) | Stacker safety evaluation method and system based on parameterized design | |
CN110069414A (en) | Regression testing method and system | |
CN114692383A (en) | Modeling method and device for full-range analog machine simulation object and computer equipment | |
CN110399284A (en) | A kind of test case writes and executes method and device | |
CN117235527A (en) | End-to-end containerized big data model construction method, device, equipment and medium | |
CN116595588A (en) | Safety analysis method and device for railway signal system development process | |
CN109522234A (en) | Show method, system and the automated testing method of test case implementation progress | |
CN115987821A (en) | Gateway routing test method and device | |
CN109446719A (en) | A kind of implementation method of the customized product tree of element type |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190806 |
|
WD01 | Invention patent application deemed withdrawn after publication |