Summary of the invention
Can only be for a user, towards fc-specific test FC instrument design in order to solve existing method of testing, and the technical matters such as poor compatibility, the invention provides a kind of visual universal testing method.
Technical solution of the present invention:
A kind of visual universal test system, its special character is: comprise that database, development platform, operation platform and instrument exchange configurator;
Described database comprises a plurality of basic test step models, described basic test step model comprises data model and iconic model, described data model comprises attribute and the method for testing of a plurality of basic test steps, described attribute is that affiliated basic test step is moved required satisfied condition, iconic model is used for the data model is carried out image expression, and iconic model and data model are corresponding one by one;
Described development platform comprises workflow editor, interface editing device and file derivation module,
Described workflow editor comprises flow process tool box and flow scheme design interface, and described flow process tool box is be used to the basic test step that provides the testing process designing institute to need, and also comprises the event node of man-machine interaction element;
Described flow scheme design interface is that the flow scheme design personnel are according to the container of flow process tool box design test flow process;
Described interface editing device comprises interface tool case and test interactive interface, described interface tool case provides basic man-machine interaction element in the process of implementation for testing process, described test interactive interface is the container of the basic man-machine interaction element of carrying, for the tester provides operation interface in the test process;
Described file is derived module and is exported to the TPS file for the testing process that will generate;
Described operation platform comprises that file imports module, testing engine and administration module,
It is for the TPS file is directed into testing engine that described file imports module;
Described testing engine is used for carrying out the testing process of TPS file and outputing test result to administration module;
Described administration module is used for test result is managed;
Described instrument exchanges configurator and according to function testing tool is divided, and testing tool is carried out initial configuration, distributes the address to testing tool.
Above-mentioned instrument exchanges configurator and comprises the instrument emulation component, and described instrument emulation component is used for simulation entity testing tool.
A kind of visual universal testing method, its special character is: may further comprise the steps:
1] building database:
Create the model of a plurality of basic test steps and be stored in the database,
Basic test step model comprises data model and iconic model,
Described data model comprises attribute and the method for testing of a plurality of basic test steps, and described attribute is that affiliated basic test step is moved required satisfied condition,
Described iconic model is used for the data model is carried out image expression, and iconic model and data model are corresponding one by one;
2] build development platform, the design test flow process:
2.1] set up development platform:
Development platform comprises workflow editor, interface editing device and file derivation module:
Described workflow editor comprises flow process tool box and flow scheme design interface, and the flow process tool box is be used to the basic test step that provides the testing process designing institute to need, and also comprises the event node of man-machine interaction element,
Described flow scheme design interface is that the flow scheme design personnel are according to the container of flow process tool box design test flow process.
Described interface editing device comprises interface tool case and test interactive interface, described interface tool case provides basic man-machine interaction element for the execution of testing process, described test interactive interface is be used to the container that carries basic man-machine interaction element, for the tester provides operation interface.
2.2] utilize workflow editor to carry out the testing process design according to user's request, generate testing process.
3] file of development platform is derived module testing process is exported to the TPS file;
4] build operation platform, carry out test:
4.1] set up operation platform:
Operation platform comprises that file imports module, testing engine and administration module, and described file imports module and is used for the TPS file is directed into testing engine; Described testing engine is used for carrying out the testing process of TPS file and outputing test result to administration module; Described administration module is used for test result is managed;
4.2] file imports module the TPS file is directed into testing engine;
4.3] testing engine be used for to carry out the testing process of TPS file and outputs test result to administration module:
Testing engine is carried out according to designed testing process, and according to the basic test step in the testing process in step 1] set attribute, carry out the method for testing of corresponding basic test step;
4.4] administration module is used for test result is managed;
Also comprise the demonstration that utilizes interface editing device design test flow process, the step at control interface in the testing process design:
Utilize the interface tool case to increase interface display or control assembly at the test interactive interface, the corresponding event node that increases corresponding basic man-machine interaction element at the flow scheme design interface of workflow editor is inserted into event node in the testing process again.
The basic test step comprises the testing tool initialization, closes testing tool, data analysis, multithreading.
The testing tool initialization comprises that using instrument to exchange configurator is configured and uses instrument to exchange the instrument emulation component simulation entity testing tool of configurator to testing tool.
The present invention has advantages of:
1, the present invention supplies the designer according to actual test service design cycle by workflow editor in patterned mode, built-in interface editing device, and man-machine interaction efficient is improved at interface when providing abundant interface control to supply developer's design and operation.
2, the present invention has complete debug function, support single step, continuously, the debug function such as breakpoint, in the flow process performance history, check process ruuning situation, checking flow process correctness.
3, the invention provides the instrument copying, simulation common type instrumental function, the hardware so that the exploitation of testing process can lose contact with reality.
4, the invention provides exchange support to programmable instrument, integrated circuit board, for different instruments, integrated circuit board with identical function, the instrument that utilizes software to provide exchanges configurator and is configured, can be in the situation that do not change (or less change) flow process, assurance flow process versatility.The instrumental function of having supported comprises: analog acquisition, analog output, digital data acquisition, digital output, power supply output etc.
Embodiment
Embodiment
Take analog acquisition as example, a simple analog acquisition flow process is roughly:
1) initialization capture card;
2) the capture card parameter is set;
3) start capture card;
4) read collection result;
5) show collection result;
6) stop capture card
The performance history of using development platform that above-mentioned business is carried out is as follows:
1) test interface design.Use the interface editing device of development platform, selecting " button " control in its tool box, and putting it into the interface editing district, the button title is set to " startup ", starts capture card when this button is used for test.Similarly method is put into " stopping " button, is used for stopping to gather and closing device, in order to show collection result, selects " two-dimensional curve " control from the tool box, puts into the interface editing district, and the test interface of final design as shown in Figure 1.
2) testing process design.Use the workflow editor of development platform, the testing procedures such as difference " initialization apparatus ", " analog acquisition " from its tool box, and connect successively, put into the testing procedures such as " stopping analog acquisition ", " off device ", and connect successively, the testing process of final design is as shown in Figure 2.
3) setup of attribute.As required wherein each testing procedure attribute is arranged.Different testing procedures can have different attributes, and for example the attribute of " initialization apparatus " testing procedure as shown in Figure 3, comprises the function logic name, equipment timeout value etc.The testing tool configuration that " function logic name " attribute herein reads comes from " instrument exchange configurator ".
4) derive.Use file to derive module the testing process of working out is above exported as the TPS file, carry out actual test after can being imported by operation platform.
System's additional function:
1) data management
Maintenance function to data objects such as test assignment, testing process, tested equipment is provided.
2) test report
Support report generation, can be edited and custom built forms by the user, finish report generation and printing.
3) multitype database support
In order to satisfy reliability and high performance requirements, acquiescence is used oracle database.Owing to using the general-purpose interface accessing database, can migrate to easily different databases, satisfy the demand under the varying environment.
Software also provides the database link standard interface, supports self-defining database manipulation.
4) secondary development
Software provides second development interface, for the required basic function of user's extend testing flow process.