A kind of automatization test system mathematics library device and method
Technical field
The present invention relates to a kind of automatization test system mathematics library device and method, it and computer information system
Modeling technique is relevant with computer picture data processing technique, belongs to automatization testing technique field.
Background technology
Automatization test system refers to that, in the case where people seldom participates in or is not involved in, automatic device under test is surveyed
Amount, processing data, and the system for showing or outputing test result by rights.Compared with manual testing, automatic test
It is time saving, laborsaving, it can raise labour productivity and product quality.The hardware of automatization test system constitutes and generally includes tester
Device, switching system, main control computer, test connector and Devices to test etc., tester design certain Test Strategy, pass through
Cable connects tester, switching system, main control computer, test connector and Devices to test, is that Devices to test is applied
Plus pumping signal, and measure the output signal of Devices to test.
Along with the appearance of new product, the complexity of Devices to test is also in sustainable growth, and this causes Devices to test to connect
The test point increasing number connect.The sharp increase of test point quantity not only means tester in automatization test system, open relation
The sharp increase of system and test connector complexity, also results in the increase of signal communication paths complexity in automatization test system.
Current automatization test system, at the initial stage of design, is relied in artificial experience design automation test system
Equipment is constituted, signal relation, and carries out manually recorded, optimization, and the mode of this manual record can not allow other testers fast
The constituent relation of the understanding system of speed, and when system scale is larger, structure is more complicated, model can be difficult to clear hold and pipe
Reason, more allow tester can not the model to automatization test system of What You See Is What You Get be designed and optimize, and manually
The design method knowledge of the record test system that can not be automated in automatic test course is used, it is impossible to improved after meeting
The requirement of automated execution degree.
The content of the invention
It is an object of the invention to provide a kind of automatization test system mathematics library device and method, automation is surveyed
Hardware annexation shows tester in patterned mode in test system, with allowing tester's What You See Is What You Get to automatic
Change test system model to be designed, optimize, simplify the design difficulty of complicated automatization test system, improve test system
The degree of automated execution, shortens the construction cycle of new product.
In order to solve the above technical problems, the present invention is achieved using following technical scheme:
A kind of automatization test system mathematics library device, for building automatization test system model, including figure
Change operation interface, system model library management unit, basic data acquisition unit, drawing modeling unit, graph data converting unit,
Kernel data structure, model file resolver, model storage file and hardware module icon library;
Described graphical operation interface, including receive user management instruction area, system module library management area, module attribute
Configuring area, and automatization test system module and annexation Drawing zone, wherein:System module library management area, including several
Constitute automatization test system hardware module, and can provide system module addition, modification, delete function in any one or
Multiple function;Module attribute configuring area, the attribute of the module for currently being chosen to user is configured, and the attribute refers to described
The incidental hardware attributes of module;Automatization test system module and annexation Drawing zone, include several compositions automatic
Change the hardware module figure of test system, and the line relation between module map, the line of intermodule is represented between the module channels
Signal communication paths, to form automatization test system annexation model;System model library management unit, to provide
Any one in the additions of all kinds of model libraries, modification, removing module model function, including testing station model library, test connection
Connection between device model library, Devices to test model library and test station port, test connector port, Devices to test port is closed
It is model;
Described basic data acquisition unit, the inquiry and modification of the basic hardware information to provide hardware module, bag
Include basic composition, port information, and/or the pin information of hardware module;
Described drawing modeling unit, its utilize kernel data structure essential information, rendering hardware module map, and according to
Annexation in kernel data structure, the line configuration of rendering model, or operated according to the line on interface, by module
Annexation is stored into kernel data structure;
Described graph data converting unit, when kernel data structure changes, interface is changed into by data variation
The change of picture;When interface figure annexation changes, change is converted into the change of internal data structure;
Described kernel data structure, refers to the automatization test system model data stored during system operation in internal memory,
Contain the annexation between the hardware module data and hardware module that constitute automatization test system model;
Described model file resolver, the model storage file of automatization test system is parsed into core data
Structure, or kernel data structure saved as by form the model storage file of automatization test system;
Described model storage file, it preserves all information for constituting automatization test system model, and information includes
Constitute the hardware module information of system model, and the annexation between hardware module;
Described hardware module icon library, to define different graphical icons for different types of hardware module,
During graphic software platform hardware module, graph data converter selects different icons to show according to type of hardware.
In addition, the present invention is it is also mentioned that a kind of automatization test system mathematics library method, this method uses above-mentioned one
Automatization test system mathematics library device is planted, is comprised the following steps:
Step 1 running environment configuration step:Use graphical operation interface, system model library management unit, basic data
Collecting unit, drawing modeling unit, kernel data structure and model file resolver construct a general automatic test system
System mathematics library device;
Step 2 mathematics library step, it includes step:
2.1:An automatization test system model is created using user instruction;
2.2:Devices to test model is set up using user instruction, the initial data of Devices to test is gathered, and advised according to data
Then the data gathered are carried out with configuration generation Devices to test model data;Wherein needing the data of collection includes:Signal port,
Application or the signal type of collection that each signal port needs, data rule refer to the data of collection are counted and divided
After analysis, the unified data descriptor format of formation;
2.3:Test connector model is set up using user instruction, port information and the connection of test connector model is designed
Relation;Wherein, test connector signal port is defined as 2 types, is attached to the signal port of testing station and is connected to
The signal port of Devices to test, the signal port quantity for the Devices to test model set up according to step 2.2, is test connector mould
Type defines the generic port of quantity identical 2, and loads test connector model using graphical operation interface, utilizes graphical tools
Set up and show the annexation in test connector between two kinds of signal port;
2.4:Testing station model is set up using user instruction, the signal port number for the Devices to test set up according to step 2.2
Amount, the signal port and close beta instrument of configuration testing station model, the composition and annexation of switch module;
2.5:System-level line relational model is created using user instruction, and utilizes Graphic Design interface loading testing station
Model, test connector model, Devices to test model, the signal path set up using Graphic Design instrument between their ports
Relation;
2.6:Complete automatization test system modelling.
Preferably, in step 2.4, including
Step 201:Using the signal port of user instruction configuration testing station model, according to be measured the setting of step 2.2 foundation
Standby signal port quantity, is the testing station model definition quantity identical signal port that step 2.4 is created;
Step 202:Using the tester model in the model of user instruction configuration testing station, according in order to complete step
2.2 set up Devices to test model measurements need apply or measure signal type, according to rule be designed to produce or
The tester model of these signals is measured, these tester models are added in the model of testing station using user instruction, are adopted
Collection includes port information, power of test in interior initial data, and tester model has multiple;
Step 203:Use the switch module model in the model of user instruction configuration testing station:Set up according to step 2.2
The signal port of Devices to test model and its signal kinds and signal mutual exclusion demand of generation and/or measurement, are designed to realize
The switch module model that these signals are switched over to test station port is combined, and these switch module moulds are added using user instruction
Type, collection includes port information, internal port handoff relation in interior initial data;
Step 204:Set up testing station internal signal annexation:Using graphical operation interface loading testing station model,
The switch module model that the tester model port of step 202 configuration, step 203 are configured, and set up using graphical tools
Signaling path between testing station model port, tester model port, switch module model port, is outside testing station
Portion provides signal capabilities;
Step 205:Complete testing station modeling.
Preferably, described automatization test system model is by testing station model, test connector model, Devices to test mould
Annexation model composition between type, and test station port, test connector port, Devices to test port.
Preferably, described testing station model is a virtual unit, by tester model, switch module model, with
And the annexation model between tester port, switch module port and test station port is constituted;The port of testing station
It is virtual port, can physically corresponds to port and the switch module of all testers being connected with test connector port
Port.
Preferably, described model file is stored in a structured way, and model file uses XML or database
Form.
Preferably, the rule according to the demand signals of Devices to test design tester model is:Different letters
The design of number type is realized using different tester models;Identical signal type is mutual when being used if there is no signal
Reprimand, design is realized using a tester model, otherwise designs using different tester models to realize;Type phase
Same (input/output) Design of Signal not in the same direction uses different tester model realizations;Each tester mould of design
Type have a port be used for export or measurement signal.
The beneficial effects of the invention are as follows:, will there is provided general automatization test system mathematics library apparatus and method
Complicated automatization test system model is constituted and signal annexation designs a model to standardize, patterned mode is presented to
User, realizes efficient automatization test system modeling directly perceived, facilitates designer to be designed, optimize to model, reduction is set
Difficulty and workload are counted, and model data is stored in the way of formatting, the test execution system energy in measuring executing process
Enough suitably it is route using model data assignment test instrument resource and search and gets through switch, improves automatic test degree.
Brief description of the drawings
Fig. 1 is a kind of overall structure block diagram of automatization test system mathematics library device of the invention.
Fig. 2 is that automatization test system model of the present invention constitutes structured flowchart.
Fig. 3 is that testing station model of the present invention constitutes structured flowchart.
Fig. 4 carries out the flow chart of automatization test system modeling for the present invention using automatic test device.
Fig. 5 builds the flow chart of testing station model for the present invention.
Fig. 6 is the schematic diagram of automatization test system mathematics library device of the present invention.
Embodiment
The present invention is believed the hardware module in automatization test system and intermodule by providing patterned modeling method
Number transmission path is stored using the mode of formatting, sets up automatization test system descriptive model.The present invention is built first
One general automatization test system mathematics library device, most automatic test system can be completed using the present apparatus
The modeling of system;Then the modeling of automatization test system is started using the present apparatus and using modeling method proposed by the present invention:One
Individual automatization test system has Devices to test, it is necessary to set up the mould of automatization test system according to the situation of Devices to test first
Type, therefore first device under test is modeled, gathers the initial data of Devices to test, including port information and port input/
Output signal, the unified data descriptor format formed after these information are analyzed, and then set up the mould of Devices to test
Type;Large-scale, standard test system usually requires to carry out the switching of signal, therefore the method branch of the present invention using test connector
Hold and set up test connector model, the port of test connector is divided into two classes by model building device of the invention, is attached to test
The port stood and the port for being connected to Devices to test, automatic test are exactly to reduce manual operation as far as possible in test process,
This is required to connect the port of a test connector as far as possible for the port of each Devices to test, therefore test connector is connected
To Devices to test port number with Devices to test port number will, equally, test connector is connected to the port of testing station
Number is also intended to being wanted with the port number of Devices to test, so being that test connector is set up with the port number of Devices to test
It is connected to the port of testing station and is connected to the port of Devices to test, sets up after port information, graphically set in the present apparatus
Its patterned configuration interface can be just shown on interface according to the configuration information of test connector, on the surface by two class ends
Mouth links together one by one, completes the modeling of test connector;In automatic test course, it usually needs substantial amounts of tester
Device and switch module carry out the generation, measurement, switching of signal, and signal capabilities are provided for Devices to test, in order to simplify system design,
Control computer, tester, switch module and the annexation between them are virtually sealed in this modeling method
Dress up a testing station, signal capabilities provided by testing station device under test, so can by PROBLEM DECOMPOSITION, simplification, therefore this
Testing station model is set up in device support, and testing station will can provide signal, it is necessary to be testing station for each Devices to test port
Definition and Devices to test port number identical virtual port;Had Devices to test, test connector, testing station model
After, it is possible to system link model is created, and they are set up by mouse What You See Is What You Get in graphical operation interface
Signal relation between three port.
When creating virtual testing station model, it is thus necessary to determine that the tester and switch module that are included in testing station and
Tester port, switch module port and the signal relation of test station port inside testing station.It can lead in modeling process
Crossing analysis Devices to test needs the signal of input/measurement, and tester model is designed according to signal type:Different signal types
Design is realized using different tester models;Mutual exclusion when identical signal type is used if there is no signal, design
Realized using a tester model, otherwise design using different tester models to realize;Type identical is not
(input/output) Design of Signal uses different tester model realizations in the same direction;Each tester model of design has
A port is used to export or measurement signal.These tester models are added in the model of testing station;Analyze Devices to test
The mutex relation of signals between ports, when have same type demand signals between there are different Devices to test ports and it is asynchronous when,
Or identical Devices to test port is when having signal with different type demand, signal path can be realized by stacked switch module
Switching, reaches and saves instrument resource, reduces the purpose that manually participates in, designs switch module model by this method, and
Switch module model (including switch port information) is set up in the model of testing station, and is set up between switch module model internal port
Handoff relation, makes them turn into the composition part of testing station;According to the port signal demand of Devices to test, set up inside testing station
The port connection relationship model of composition, in annexation Drawing zone by all tester models, the switch module in testing station
The model display of model and testing station in itself comes out, and is closed by the signal set up between their threes of mouse What You See Is What You Get
System, completes the modeling of testing station.
The automatization test system model of the present invention contains different types of hardware module:Tester, switch module,
Test connector and Devices to test etc..Designer can be using the operational order of graphical operation interface in automatic test system
The model of each hardware module is set up in system model.When being modeled to each hardware module, their original is gathered first
Beginning data, automatization test system model building device of the invention provide the foundation data acquisition unit for designer realize it is original
The typing of data.The signal stream that further comprises in automatization test system model between each hardware module transfers the registration of Party membership, etc. from one unit to another model, is
Designer is given to provide a kind of quickly and easily design method, and can be by the signal relation model established with intuitively
Mode is presented to designer, and automatization test system model building device of the invention provides patterned signal relation modeling side
Method, in the present apparatus, can adopt the signal annexation graphically created includes:Switch module and test connector
Internal annexation;Annexation between tester, switch module, test station port;Testing station, test connector,
Annexation between Devices to test.The present invention defines a data graphic digitizer to complete to realize mathematics library
Textual data are changed between figure:For different hardware modules, table is carried out using different icons on graphic interface
Show, all module icons are stored in hardware module icon library, converter is read in after automatization test system model, first
Test module is drawn on graphic interface according to different types using icon different in icon library, then reads each mould
The port information of block, is drawn in port as the end points of line on corresponding module icon;Line relation in analysis model, in figure
Connecting line is drawn between the end points of shape icon, you can complete textual model to the conversion of graphical model.When mould in model
After the essential information of block changes, datagraphic converter receives change events, and calls and repaint method update module
Graphical information;On the contrary, when annexation event occurs on graphic interface, datagraphic converter also captures change thing
Part, and change the annexation in internal memory in model data structures.Corresponding hardware device can just be completed according to above-mentioned strategy
Mutual mapping, the conversion of model, signal relation model to graphic software platform and operation.
The automatization test system model of this model building device generation has the storage mode formatted, in measuring executing process
Middle test execution system can read these model datas, obtain between hardware port annexation therein and switch module port
Handoff relation, by the demand signals information and the power of test of tester of Devices to test, selection tester and path
Information is simultaneously switched by the port of switch module, is completed the automatic distribution of test resource, is improved automatic test degree.
1 to 6 couple of present invention is illustrated below in conjunction with the accompanying drawings.
Embodiment 1:
As shown in Figure 1-Figure 3, a kind of automatization test system mathematics library device, for building automatization test system
Model, including graphical operation interface, system model library management unit, basic data acquisition unit, drawing modeling unit, figure
Date Conversion Unit, kernel data structure, model file resolver, model storage file and hardware module icon library;
Described graphical operation interface, including receive user management instruction area, system module library management area, module attribute
Configuring area, and automatization test system module and annexation Drawing zone, wherein:System module library management area, including several
Constitute automatization test system hardware module, and can provide system module addition, modification, delete function in any one or
Multiple function;Module attribute configuring area, the attribute of the module for currently being chosen to user is configured, and the attribute refers to described
The incidental hardware attributes of module;Automatization test system module and annexation Drawing zone, include several compositions automatic
Change the hardware module figure of test system, and the line relation between module map, the line of intermodule is represented between the module channels
Signal communication paths, to form automatization test system annexation model;System model library management unit, to provide
Any one in the additions of all kinds of model libraries, modification, removing module model function, including testing station model library, test connection
Connection between device model library, Devices to test model library and test station port, test connector port, Devices to test port is closed
It is model;
Described basic data acquisition unit, the inquiry and modification of the basic hardware information to provide hardware module, bag
Include basic composition, port information, and/or the pin information of hardware module;
Described drawing modeling unit, its utilize kernel data structure essential information, rendering hardware module map, and according to
Annexation in kernel data structure, the line configuration of rendering model, or operated according to the line on interface, by module
Annexation is stored into kernel data structure;
Described graph data converting unit, when kernel data structure changes, interface is changed into by data variation
The change of picture;When interface figure annexation changes, change is converted into the change of internal data structure;
Described kernel data structure, refers to the automatization test system model data stored during system operation in internal memory,
Contain the annexation between the hardware module data and hardware module that constitute automatization test system model;
Described model file resolver, the model storage file of automatization test system is parsed into core data
Structure, or kernel data structure saved as by form the model storage file of automatization test system;
Described model storage file, it preserves all information for constituting automatization test system model, and information includes
Constitute the hardware module information of system model, and the annexation between hardware module;
Described hardware module icon library, to define different graphical icons for different types of hardware module,
During graphic software platform hardware module, graph data converter selects different icons to show according to type of hardware.
On the basis of above-described embodiment, the present invention provides a kind of method of automatization test system mathematics library, bag
Include following steps:
Step 1 running environment configuration step:Use graphical operation interface, system model library management unit, basic data
Collecting unit, drawing modeling unit, kernel data structure and model file resolver construct a general automation test system
Mathematics library device;
Step 2 mathematics library step (as shown in Figure 4), it includes step:
2.1:An automatization test system model is created using user instruction;
2.2:Devices to test model is set up using user instruction, the initial data of Devices to test is gathered, and advised according to data
Then the data gathered are carried out with configuration generation Devices to test model data;Wherein needing the data of collection includes:Signal port,
The signal type of application or the collection of each signal port needs of test is completed, data rule refers to the data progress to collection
After statistics and analysis, the unified data descriptor format of formation;
2.3:Test connector model is set up using user instruction, port information and the connection of test connector model is designed
Relation;Wherein, design for convenience, test connector signal port is defined as 2 types:It is connected to the signal end of testing station
Mouth and the signal port for being connected to Devices to test, the signal port quantity for the Devices to test model set up according to step 2.2, to survey
The generic port of connector model definition quantity identical 2 is tried, and using Graphic Design interface loading test connector model, is utilized
Graphical tools set up the annexation between two kinds of signal port in test connector;
2.4:Testing station model is set up using user instruction, the signal port number for the Devices to test set up according to step 2.2
Amount and signal type, the signal port and close beta instrument of configuration testing station model, the composition of switch module and connection are closed
System;
2.5:System-level line relational model is created using user instruction, and testing station is loaded using graphical operation interface
Model, test connector model, Devices to test model, the signal path set up using Graphic Design instrument between their ports
Relation;
2.6:Complete automatization test system modelling.
In step 2.4 (as shown in Figure 5), including
Step 201:Using the signal port of user instruction configuration testing station model, according to be measured the setting of step 2.2 foundation
Standby signal port quantity, is the testing station model definition quantity identical signal port that step 2.4 is created;
Step 202:Using the tester model in the model of user instruction configuration testing station, according in order to complete step
2.2 set up Devices to test model measurements need apply or measure signal type, according to rule be designed to produce or
The tester model of these signals is measured, these tester models are added in the model of testing station using user instruction, are adopted
Collect the initial data including port information, power of test, tester model can have multiple;
Step 203:Use the switch module model in the model of user instruction configuration testing station:Set up according to step 2.2
The signal port of Devices to test model and its signal kinds and signal mutual exclusion demand of generation and/or measurement, are designed to realize
The switch module model that these signals are switched over to test station port is combined, and these switch module moulds are added using user instruction
Type, gathers the initial data including port information, internal port handoff relation;
Step 204:Set up testing station internal signal annexation:Using graphical operation interface loading testing station model,
The switch module model that the tester model port of step 202 configuration, step 203 are configured, and set up using graphical tools
Signaling path between testing station model port, tester model port, switch module model port, is outside testing station
Portion provides signal capabilities;
Step 205:Complete testing station modeling.
Described automatization test system model by testing station model, test connector model, Devices to test model, and
The composition such as annexation model tested between station port, test connector port, Devices to test port;The storage of model data
Realized by way of structuring.
Described testing station model is a virtual unit, by tester model, switch module model, and tester
Annexation model between device, switch module and test station port is constituted;The port of testing station is also virtual port, physically
The port of all testers being connected with test connector port and the port of switch module can be corresponded to.
Described model file is stored in a structured way, such as XML or database format.
It is described tester model is designed according to the demand signals of Devices to test rule be:Different signal types are set
Meter is realized using different tester models;Mutual exclusion when identical signal type is used if there is no signal, design makes
Realized with a tester model, otherwise design using different tester models to realize;Type identical is different
Different tester model realizations is used to (input/output) Design of Signal;Each tester model of design has one
Individual port is used to export or measurement signal.
As shown in fig. 6, the schematic diagram of automatization test system mathematics library device of the present invention.In user management instruction area
Including addition, the function of deletion hardware module and some other common functions;The main window left side is automatization test system mould
Block library management area, user can select different hardware modules;The right is module attribute configuring area, automatization test system module
And annexation Drawing zone, module attribute configuring area, the attribute of the hardware module for currently being chosen to user configures, from
Dynamicization test system module and annexation Drawing zone, select several hardware modules by system module library management area and constitute automatically
Change test system, each hardware module is connected, the line of intermodule represents the communication path between the module channels, formed
Automatization test system link model.
Certainly, described above is not limitation of the present invention, and the present invention is also not limited to the example above, this technology neck
The variations, modifications, additions or substitutions that the technical staff in domain is made in the essential scope of the present invention, should also belong to the present invention's
Protection domain.