CN110297756A - Intelligent test system based on logic simulation model - Google Patents
Intelligent test system based on logic simulation model Download PDFInfo
- Publication number
- CN110297756A CN110297756A CN201910335939.6A CN201910335939A CN110297756A CN 110297756 A CN110297756 A CN 110297756A CN 201910335939 A CN201910335939 A CN 201910335939A CN 110297756 A CN110297756 A CN 110297756A
- Authority
- CN
- China
- Prior art keywords
- test case
- product
- test system
- measured
- importation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 87
- 238000004088 simulation Methods 0.000 title claims abstract description 27
- 238000004891 communication Methods 0.000 claims description 24
- 238000004378 air conditioning Methods 0.000 claims description 11
- 238000012795 verification Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 21
- 238000000034 method Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
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)
- Air Conditioning Control Device (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention discloses an intelligent test system, comprising: the verification module is used for receiving an input part of a test case set by a user, operating a simulation model of computational logic of the test case, inputting the input part of the test case to the input data execution device of the product to be tested to enable the product to be tested to operate normally, and comparing the operation results of the simulation model and the product to be tested to obtain a test conclusion. The invention can realize intelligent test and greatly improve the test efficiency.
Description
Technical field
The present invention relates to the measuring technology of product more particularly to a kind of intelligent test systems of logic-based Access Model.
Background technique
Current most product all has logic function book in design, and test organization can be according to the logic function of product
Can book carry out emulation testing, then emulation testing is compared with the actual running results, to obtain test result.
By taking air-conditioning as an example, when test organization is tested for certain air-conditioner set logic function book, it will usually using tradition
Manual compiling test case method, and probably can not fast and accurately write out test case in face of complicated logic
As a result, inefficiency even test case is caused to lose meaning.Even if can calculate as a result, working as the calculating of same set of test case
When different operating conditions, the test case rewritten also needs to carry out manual calculations, inefficiency again Logic application.Then
Prepare the practical condition operated normally of air-conditioning, additionally again to obtain operation of air conditioner as a result, leading to entire testing efficiency so all very
It is low, need to expend a large amount of manpower and material resources and energy.
Summary of the invention
In order to solve the technical problem that product test efficiency is lower in the prior art, the invention proposes a kind of logic-baseds
The intelligent test system of simulation model.The intelligent test system include: receive user setting test case importation simultaneously
The simulation model of the calculating logic of test case is run, the importation of the test case, which is input to the product to be measured, to be made
Its input data executive device operated normally compares the operation result of the simulation model and product to be measured and obtains test knot
The authentication module of opinion.
Specifically, the importation of the test case includes: value, the input parameter for inputting parameter, inputting parameter
Order and duration.
In one embodiment, the duration is realized in the simulation model using the multiple of fixed step size.?
In another embodiment, the test case is divided at least one set, and the step-length of one group of test case is this group of test case
The greatest common divisor of all duration.
Preferably, the title with the mutually convertible input parameter under the different operating conditions of product to be measured is identical.
Preferably, the importation of the corresponding test case of product to be measured of different model or operating condition with the same function
Difference is identical as the calculating logic that the importation mutually maps.
Preferably, the input data executive device includes first for simulating the communication class data for generating product to be measured
Execution module, for simulating the second execution module for generating the communication class data of product to be measured.
In a concrete application embodiment, the product to be measured includes air-conditioning.The communication class data of the air-conditioning include
Communication class data between outdoor unit and indoor unit, the communication data between indoor unit and remote controler.The communication of the air-conditioning
Class data include simulation class data and relay class data.
The present invention, come automatic running test case, while being developed again by way of simulation modeling and a set of survey can be used
The importation of example on probation solves existing manual calculations come the input data executive device for operating normally product to be measured
The inefficiency problem of test case result, also solves the redundancy issue for additionally preparing product normal running (operation) conditions to be measured, most
The intelligent test of product is realized eventually.
Detailed description of the invention
Below with reference to embodiment and attached drawing, the present invention is described in detail, in which:
Flow chart when Fig. 1 is present system verifying.
Specific embodiment
The principle and embodiment that the invention will now be described in detail with reference to the accompanying drawings.
As shown in Figure 1, intelligent test system of the invention mainly includes simulation model, input data executive device and tests
Demonstrate,prove module.Below by taking testing air conditioner as an example, each section to be described in detail.
Simulation model is built according to the function logic function book of product to be measured, the test case write according to user
Importation carry out the calculating logic of automatic running test case, then obtain operation result.Wherein, the input unit of test case
Divide and specifically includes input parameter, the value of input parameter, the order for inputting parameter and duration.
Any function point of air-conditioner set is all made of input Parameter Conditions, calculating logic, timing, output result etc..
For example, often there is XX condition (input Parameter Conditions) to continue 3 minutes in function logic book, then YY condition continues 1 minute etc. again,
Then an output result is obtained.Corresponding, the prior art then needs to have input in the test case for writing the function point
Parameter, duration, order, calculating logic, output these elements of result.And the present invention is when write test case, only
It needs to consider to cover function point to be measured, parameter and its numerical value will be inputted in order and the duration is write out, i.e., manually
Write the importation for only needing to be performed test case.This is the first step of process, such as, function point is when continuous 3
Minute environment temperature is greater than 30, A valve and opens, and it is 30 and some special that the test case that we write, which just surrounds environment temperature,
Value, such as first environment temperature=29, continue 3 minutes, Article 2 environment temperature=30, continue 3 minutes ... and so on.And it is right
In the result drawn according to these corresponding calculating logics of input Parameter Conditions without calculating.
Assuming that there is a function point to be measured in function logic book are as follows: when environment temperature be greater than 30, continue 3 minutes, A valve is opened
It opens.So we are when building simulation model, it is only necessary to prepare the importation of the test case of following table, and exporting result is not
By manual compiling, but in such a way that logical simulation models, pass through the calculating of simulation model automatic running test case
Logic obtains output result.
1 manual compiling of table inputs parameter list
The operation result that 2 simulation model automatic running of table generates
Have during writing the importation of test case, under the different operating conditions of product to be measured mutually convertible described defeated
The title for entering parameter wants identical, it is ensured that versatility of the same model under different operating conditions, meaning mentioned here are mutually all
Physical significance is identical, for example, the compressor operating frequency in some logic function books, is patrolled what another research staff was write
Compressor frequency or running frequency may be written to by collecting in function book, and such case should be unified for a title, for another example
Some outdoor environment temperatures may be written to outdoor dry bulb, the title of this same physical meaning in the logic function book of part
A title should be unified for.In the test of simple function point, the duration of importation can adopt in analogue system
Embodied with the multiple mode of fixed step size, if simulation model step size settings be 1s, then be separately operable three 10 steps of use-case, 20 steps,
10 steps.In a bit complicated function point test process, the overlong time of test case causes simulation time too long, then may be used
To be solved using the means for increasing step-length.Specifically, the test case of simulation model can be divided at least one set, one group of test
The step-length of use-case is the greatest common divisor of this group of test case all duration, and the step-length of difference group test case can not
Together, for example the duration of first test case is 15s, and the duration of Article 2 test case is 10s, Article 3 test
The duration of use-case is that 20s can be designed completely if we only consider this three test cases (assuming that they be one group)
Step-length is 5, is equivalent to 5 times of speed in this way and is calculated.When more than one set test case, this step-length can be variation
, one step-length of first three use-case, behind three can be another step-length, and so on, such variable step is calculated, can
To accelerate calculating speed, that is, it can ensure that and promote simulation velocity in error-free situation, further raising efficiency.Simulation model is realized
Calculating logic can use high-level language (such as C#) Lai Kaifa, and exploitation is according to the logic function book for being exactly the function point, emulation meter
Obtained result is handled as the output par, c of test case, and the test for collectively constituting complete set with above table is used
Example.
Input data executive device needs are built according to the system architecture of product to be measured, for by the input of test case
Part, which is input in product to be measured, to be allowed to operate normally, to obtain actual operation result.Wherein input data executes
Device includes the first execution module for simulating the communication class data for generating product to be measured, and generates production to be measured for simulating
Second execution module of the communication class data of product.
Continue by taking air-conditioning as an example, in the input data executive device for building air-conditioning, need to refer to unit is the present invention
System topological structure, is developed for specific controller characteristic.For example a set of domestic air conditioning unit is by outdoor unit, indoor unit and distant
Control device composition.The input network of this set system has communication network interior, between outdoor unit, the communication between remote controler and indoor unit
Network, remote controler internal key operation display communication network etc..Therefore it needs input parameter being divided into communication class and communication class
Two kinds, communication class data are subdivided into three kinds of different communication networks, and the first execution module is by respective protocol translation at communication
Data input in indoor unit, outdoor unit and the controller of remote controler three.Communication class data refer mainly to simulation class data
(such as temperature sensing package sampled temperature data etc.), relay class data (open and close).This kind of data need to develop independent work
Loading board makes the second execution module, using the means of digital simulation AD value and switching value, and designs a set of agreement as data
Transmission.We press this agreement, and communication class data are input to input data executive device, and then input data executive device has
There is the interface that can be connected into unit, instead of true unit temperature sensing package and switching load.One may finally be reached to use test
Example importation is transmitted to the effect of unit.
When verifying air-conditioner set, it is only necessary to run simulation model and make product to be measured by input data executive device
Then then operation can be obtained by test result by operation result of the authentication module to both this, complete automatic test.
If there is same a function logic, but it is applied under different unit or working condition, test is used at this time
The importation of example is different.It only needs to reformulate importation (such as above-mentioned input parameter list), continues to use
Ready-made simulation model can calculate result.Input data executive device can continue to using.In new input parameter list
Mutually convertible parameter name want identical, as long as meeting this principle, though input parameter list in input parameter order not
Together, mapping algorithm is carried out, the calculating logic mutually mapped with importation can be thus re-used, it can accomplishes to emulate
The reuse of model.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (10)
1. a kind of intelligent test system characterized by comprising receive the importation of the test case of user setting and operation
The simulation model of the calculating logic of test case, the importation of the test case, which is input to the product to be measured, makes it just
The input data executive device often run compares the operation result of the simulation model and product to be measured and obtains test result
Authentication module.
2. intelligent test system as described in claim 1, which is characterized in that the importation of the test case includes: defeated
Enter parameter, the value for inputting parameter, the order for inputting parameter and duration.
3. intelligent test system as claimed in claim 2, which is characterized in that the duration adopts in the simulation model
It is realized with the multiple of fixed step size.
4. intelligent test system as claimed in claim 2, which is characterized in that the test case is divided at least one set, described
The step-length of one group of test case is the greatest common divisor of this group of test case all duration.
5. intelligent test system as claimed in claim 2, which is characterized in that have under the different operating conditions of product to be measured and mutually agree to
The title of the input parameter of justice is identical.
6. intelligent test system as described in claim 1, which is characterized in that different model or operating condition with the same function
The importation of the corresponding test case of product to be measured is different, the calculating logic phase mutually mapped with the importation
Together.
7. intelligent test system as described in claim 1, which is characterized in that the input data executive device includes being used for mould
First execution module of the quasi- communication class data for generating product to be measured, for simulating the communication class data for generating product to be measured
Second execution module.
8. intelligent test system as claimed in claim 7, which is characterized in that the product to be measured includes air-conditioning.
9. intelligent test system as claimed in claim 8, which is characterized in that the communication class data of the air-conditioning include outdoor unit
Communication class data between indoor unit, the communication data between indoor unit and remote controler.
10. intelligent test system as claimed in claim 8, which is characterized in that the communication class data of the air-conditioning include mould
Quasi- class data and relay class data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910335939.6A CN110297756B (en) | 2019-04-24 | 2019-04-24 | Intelligent test system based on logic simulation model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910335939.6A CN110297756B (en) | 2019-04-24 | 2019-04-24 | Intelligent test system based on logic simulation model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110297756A true CN110297756A (en) | 2019-10-01 |
CN110297756B CN110297756B (en) | 2020-11-24 |
Family
ID=68026605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910335939.6A Active CN110297756B (en) | 2019-04-24 | 2019-04-24 | Intelligent test system based on logic simulation model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110297756B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673585A (en) * | 2019-10-15 | 2020-01-10 | 新誉轨道交通科技有限公司 | Test method, test device and test system for train air conditioning system |
WO2021237737A1 (en) * | 2020-05-29 | 2021-12-02 | 深圳市大疆创新科技有限公司 | Data processing method, electronic device, and computer-readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1452400A (en) * | 2002-04-13 | 2003-10-29 | Lg电子株式会社 | Digital TV test stream generator, generating method and its test stream recording medium |
CN1877544A (en) * | 2005-06-06 | 2006-12-13 | 华为技术有限公司 | Keyword-driven automatic testing system and method |
US7581215B1 (en) * | 2003-06-30 | 2009-08-25 | Sun Microsystems, Inc. | Dependency analysis system and method |
US7908518B2 (en) * | 2008-02-08 | 2011-03-15 | International Business Machines Corporation | Method, system and computer program product for failure analysis implementing automated comparison of multiple reference models |
CN102650966A (en) * | 2011-02-24 | 2012-08-29 | 王轶辰 | Multiplexing-oriented embedded software testing method and system |
CN104317715A (en) * | 2014-10-30 | 2015-01-28 | 南京富士通南大软件技术有限公司 | Simulator based automatic functional test implementation method for central processing unit instruction sets |
CN109634842A (en) * | 2018-10-29 | 2019-04-16 | 中惠医疗科技(上海)有限公司 | Test method and system based on QT application program |
-
2019
- 2019-04-24 CN CN201910335939.6A patent/CN110297756B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1452400A (en) * | 2002-04-13 | 2003-10-29 | Lg电子株式会社 | Digital TV test stream generator, generating method and its test stream recording medium |
US7581215B1 (en) * | 2003-06-30 | 2009-08-25 | Sun Microsystems, Inc. | Dependency analysis system and method |
CN1877544A (en) * | 2005-06-06 | 2006-12-13 | 华为技术有限公司 | Keyword-driven automatic testing system and method |
US7908518B2 (en) * | 2008-02-08 | 2011-03-15 | International Business Machines Corporation | Method, system and computer program product for failure analysis implementing automated comparison of multiple reference models |
CN102650966A (en) * | 2011-02-24 | 2012-08-29 | 王轶辰 | Multiplexing-oriented embedded software testing method and system |
CN104317715A (en) * | 2014-10-30 | 2015-01-28 | 南京富士通南大软件技术有限公司 | Simulator based automatic functional test implementation method for central processing unit instruction sets |
CN109634842A (en) * | 2018-10-29 | 2019-04-16 | 中惠医疗科技(上海)有限公司 | Test method and system based on QT application program |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673585A (en) * | 2019-10-15 | 2020-01-10 | 新誉轨道交通科技有限公司 | Test method, test device and test system for train air conditioning system |
WO2021237737A1 (en) * | 2020-05-29 | 2021-12-02 | 深圳市大疆创新科技有限公司 | Data processing method, electronic device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110297756B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107516895B (en) | Power distribution network rapid simulation method and device, storage medium and computer equipment thereof | |
CN109100954A (en) | A kind of controller hardware assemblage on-orbit platform method for building up | |
CN105302950A (en) | Software and hardware cooperation based cross-linking simulation test method for programmable logic device | |
CN110297756A (en) | Intelligent test system based on logic simulation model | |
CN103488098A (en) | Rapid prototyping simulation method of aircraft engine control system | |
CN103593508A (en) | Universal simulation platform for large-sized pumped storage power stations | |
CN103699743A (en) | CPS (cyber physical system) modeling and verifying method based on conversion from CPS-ADL (architecture description language) model into hybrid program | |
Maile et al. | Formalizing approximations, assumptions, and simplifications to document limitations in building energy performance simulation | |
CN105005015A (en) | Circuit fault simulation system based on hardware circuit fault injection | |
CN108038328A (en) | Chip automatic simulation verifies system | |
Li | Development and validation of a dynamic air handling unit model, Part I | |
CN112859645A (en) | Comprehensive energy system performance test platform | |
Nouidui | BacNet and analog/digital interfaces of the building controls virtual testbed | |
Roth et al. | Cyber-physical system development environment for energy applications | |
CN105373013B (en) | Fired power generating unit DCS system Analog control loop simulation tests system and method | |
Reinhold et al. | Simulation environment for investigations of energy flows in residential districts and energy management systems | |
CN103425055A (en) | Semi-virtual functional test device and method for control system | |
CN108006925A (en) | Air-conditioning stress test method, computer installation, computer-readable recording medium | |
CN110110367A (en) | A kind of hot emulation mode of electrochemical energy storage cabinet and system | |
CN109829182A (en) | Air conditioner CAE model automatic processing method and system | |
CN202210037U (en) | Semi-physical simulation testing device for cabinet air conditioners | |
CN110502859A (en) | Multi-rate dynamic simulation method for electric coupling park comprehensive energy system | |
CN114139344A (en) | Human-computer interaction visualization method and device based on simulation model | |
CN204593761U (en) | The control device of multi-connected machine enthalpy difference experiment room | |
CN109684661B (en) | Simulation method of metering instrument based on IEC62056 protocol |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |