CN1519721A - Dynamic extendable computer testing system as well as method - Google Patents
Dynamic extendable computer testing system as well as method Download PDFInfo
- Publication number
- CN1519721A CN1519721A CNA031019048A CN03101904A CN1519721A CN 1519721 A CN1519721 A CN 1519721A CN A031019048 A CNA031019048 A CN A031019048A CN 03101904 A CN03101904 A CN 03101904A CN 1519721 A CN1519721 A CN 1519721A
- Authority
- CN
- China
- Prior art keywords
- test item
- test
- module
- configuration
- interface
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The system includes base of testing items, management module, configuration module as well as error and log management module. The method includes loading module of testing items and obtainning relevant information; creating data access interface for testing item, and binding the data access interface on the configuration interface; collecting and saving configuration data from configuration interface; calling configuration data to the data access interface, and transferring data access interface to testing item; based on configuration data, testing procedure is carried out by testing item. When extending testing region is needed, one thing needed to do is put new added testing item to assigned position without need of modifying main controlling program.
Description
Technical field
The present invention relates to a kind of computer testing system and method, particularly relevant for a kind of system and method that can dynamically expand test event.
Background technology
For existing computer line, the test of its hardware system, be specifically to customize different test procedures with test item mostly according to different testing apparatuss, when CPU and hard disk being tested as needs, just formulate corresponding testing process and scheme according to the needs of the test item of these two equipment, and when system need increase testing apparatus or test item, the transformation of original test procedure is just seemed suitable loaded down with trivial details and complicated, have to sometimes simply overthrow original flow scheme design and reformulate testing scheme.
This be because, existing test macro is fixing testing apparatus of basis and test item customized development mostly, though specific aim is stronger, but extendability is relatively poor, in original test procedure, increase a testing apparatus or test item, all suitable big of involved modification, configuration and debugging work load, for example, when in original test procedure, increasing a test item, there is following problem:
1, the outward appearance data presented file that needs one of edit storage test item, if in case editing make a fault, then can't normal load or show this test item.
2, because all configuration interface, data structures relevant with the configuration parameter of test item all are placed in the primary control program, so need to adjust all these relevant contents, this means the adding of each test item, primary control program all will change thereupon.
When increasing a testing apparatus in original test procedure: then there are the following problems equally:
1, need the manual equipment identification information that increases, discerning this newly added equipment, in case and identification information is wrong, then can't find this Devices to test at all.
2, no matter have or not certain deploy content, all need a configuration interface, this just relates to the variation of primary control program resource, the variation of program, and the distribution of some contents in addition, may be dispersed in the different piece of primary control program, revised quite trouble, it can safeguard that degree is almost to the degree of having only the author oneself of primary control program to safeguard.
Summary of the invention
In view of this, for solving the relatively poor problem of aforementioned calculation machine test macro extendability, the objective of the invention is for a kind of computer testing system that can dynamically expand and method thereof are provided, when needs extend testing scope, only need the test item module that increases newly is put into assigned address, just can realize expansion, and need not to revise any existing program module existing test function.
For reaching above-mentioned purpose, the present invention comprises following content:
A kind of computer testing system that can dynamically expand, this system comprises:
The test item storehouse is used to leave concentratedly the test item module;
The test item administration module is used for loading, management testing item module, and safeguards its lifetime;
The test item configuration module is acted on behalf of the management maintenance of test item modules configured and configuration file by this test item administration module; And
Mistake and log management module are acted on behalf of the output of test item daily record and error message and the management of file thereof by this test item administration module.
A kind of computer test method that can dynamically expand, this method comprises:
Load the test item module one by one and obtain it for information about;
For test item is created data access interface, and bind with configuration interface;
Collect and preserve user's configuration data from configuration interface;
Configuration data is called in this data access interface;
This data access interface is passed to test item; And
Test item is carried out test process according to this configuration data.
Computer testing system that can dynamically expand provided by the present invention and method, it is compared with prior art, has following beneficial functional:
1, the present invention is that the News Search formula loads to the test item module, determines so put into assigned address as long as will meet the test item of interface specification before loading, to have good expandability when loading for the number of test item.And the outward appearance of test item administration module is presented at when loading test item and generates automatically according to the naming rule of the sign identity of test item, makes mistakes easily when having avoided edit.
2, because the present invention has stipulated unified interface specification for test item and administration module, each test item is all understood all parameters relevant with the test of oneself, by data access interface finish storage, read data, management such as transmission, therefore, the increase of test item can not cause the variation of primary control program.
3, acted on behalf of the visit of other module to test item by the test item administration module, made other modules " transparent " content at test item, program structure " coupling " is reduced, and elasticity increases.
Description of drawings
The embodiment Organization Chart of the computer testing system that Fig. 1 can dynamically expand for the present invention;
Fig. 2 is that the outward appearance of test item administration module provided by the present invention shows synoptic diagram;
Fig. 3 a is an example displayed map of test item interface provided by the present invention;
Fig. 3 b is an example displayed map of data access interface provided by the present invention;
The process flow diagram of the computer test method that Fig. 4 can dynamically expand for the present invention;
Fig. 5 is a loading procedure process flow diagram provided by the present invention; And
Fig. 6 is a layoutprocedure process flow diagram provided by the present invention.
Embodiment
The present invention also will be described in further detail embodiment in conjunction with the accompanying drawings:
Please refer to the embodiment Organization Chart of the computer testing system that Fig. 1 can dynamically expand for the present invention, it is made up of test item storehouse 100, test item administration module 200, test item configuration module 201, mistake and log management module 202 and test dispatching module 203.
Wherein, test item storehouse 100 is to be used to leave concentratedly the test item module, and it is made up of several test item modules; Test item administration module 200 is used for loading, management testing item module, and safeguards its lifetime, and test item administration module 200 is externally acted on behalf of the visit of other module to test item by unified interface specification Dynamic Recognition, loading test item; Test item configuration module 201 is acted on behalf of the management maintenance of test item modules configured and configuration file by the test item administration module; Mistake and log management module 202 are acted on behalf of the output of test item daily record and error message and the management of file thereof by the test item administration module.
Wherein, when the test item assembly testing, can also comprise a test dispatching module 203, carry out the management and running of multithreading test by 200 pairs of test item modules of this test item administration module.
Fig. 2 is that the outward appearance of test item administration module shows synoptic diagram.The data file of this kind form is in the dynamic load test item, generates automatically according to the sign identity of test item.
Each test item of depositing in the test item storehouse all has a unique sign, provided voluntarily according to the characteristic of itself by test item, and its generating mode is to show with the outward appearance of Fig. 2 to match.Sequential search (Sequential Seek) with hard disk (HardDisk) is the example explanation below:
The sequential search test item sign (ID) of hard disk: " Computer.Hard Disk.0.SequentialSeek "; In like manner, floppy disk (Floppy Disk) test item ID: " computer.Floppy Disk.FD Test ".
For convenience of description, we can be interpreted as test item ID by three parts and form: " device name ", " device numbering " and " content measurement title "." device name " as " System.Hard Disk.HDl.Sequential Seek " is " System.Hard Disk ", and " device numbering " is " 0 ", and " test name " is " Sequential Seek ".
Wherein, this partly belongs to option " device numbering ", it at be the situation that on a machine, may have a plurality of same type equipment, for example on a machine several hard disks (its number may come from the result or the user's of detection of dynamic setting) can be arranged.
With the test item module that contains Computer.Hard Disk.O.Sequential Seek is example, and its content that should have comprises: identification interface (bool isInventecTestItem ()), the operating system (interface (void Test (Configuration cfg)) of OS (DWORD getSupportOs ()), the interface (LPCTSTRgetTestId ()) of obtaining test I D, the interface (getDiagUI ()) of obtaining configuration interface, execution test action etc. that can support.
The present invention has realized loading and management to dynamic module by providing general, unified interface for test item (existing with the dynamic module form), so the interface of test item also is important some, and a kind of concrete example is shown in Fig. 3 a:
Configuration interface: be used for the test parameter of configuration testing item self, characteristic, style or the like details, it is by test item self decision, and test platform only provides the viewing area for it, comprising:
Obtain configuration interface: getConfigurationUI (),
Configuration file: setConfiguration () is set,
Preserve configuration file: save ();
Test execution interface: comprising:
The execution body of test action: launchTest (),
Common interface: comprising:
Obtain the operating system (OS) that test item is supported: getSupportOS (),
Row interface does not in the drawings also have, but is not limited to:
After get the overall situation and set: getGlobalSetting (),
Output journal: writeLog (),
Output error message: writeError (),
Testing progress is upgraded: updateProgress ().
Referring to Fig. 4, be the computer test method process flow diagram that can dynamically expand of the present invention, at first, load the test item module one by one and obtain it for information about, the display Name (step 401) of the test function that can support as test item; Then, be test item establishment data access interface, and bind (Binding) (step 402) with configuration interface; Then, collect and preserve user's configuration data (step 403) from configuration interface; Configuration data is called in this data access interface (step 404); This data access interface is passed to test item (step 405); At last, test item is carried out test process (step 406) according to this configuration data.
In test process, when test errors, test item can call getPlatform () interface and obtain the cover service interface (for example writeError (LPCTSTR err), writeLog (LPCTSTR log) etc.) that test item administration module 200 provides and come output information, is finished by mistake and log management module 202 for wrong, daily record meeting.These cover service interface additions and deletions as required concentrate on a place but change, and are convenient to safeguard.
Fig. 3 b is exactly an example demonstration of data access interface provided by the present invention.
The above-mentioned step that loads the test item module one by one can customize their loading sequence by an external file.
Above-mentioned loading procedure sees also Fig. 5, at first needs to retrieve test item storing directory (step 501); Then, load one of them test item (step 502); Verify the identify label (step 503) of this test item,, then abandon and attempt loading next test item if this sign is undesirable; Simultaneously,, verify then whether this test item supports current operating system (step 504),, then abandon and attempt loading next test item if do not support if this sign meets the requirements; Then, obtain and put in order the relevant information (step 505) of this test item; At last, check in the storing directory whether also have the test item that does not load, if having then reload (step 506).
Layoutprocedure provided by the present invention, after the user caused action of configuration, its flow processing saw also Fig. 6: at first, the test item administration module sends configuration notification to test item configuration module (step 601); The test item configuration module loads the data that the original configuration of user is finished according to notice, and creates data access interface (step 602); The test item configuration module is given test item administration module (step 603) with data access interface; The test item administration module obtains the configuration interface of test item, and data access interface is passed to test item (step 604); Test item is bound data access interface and configuration interface, and passes configuration interface back to test item administration module (step 605); The test item administration module passes to the test item configuration module for showing (step 606) with configuration interface.
With Computer.Hard Disk.O.Sequential Seek is example, and this test needs the user to specify coverage rate (coverage rate) %.Platform is at first obtained the interface of configuration interface to it, simultaneously data access interface is connected on the Computer.Hard Disk.O.Sequential Seek test item, the configuration interface of test item with the coverage rate of user's appointment (for example like this, 15% coverage rate, call Configuration.setInt (" coverage rate ", 15)) just can deposit data access interface (to the data in this interface, the principle that platform adopts is the former state transmission, the former state storage, read, do not go to understand the wherein implication of data, have only p-wire oneself " to know " meaning of these data).
After loading is finished, can use the parameter of dispatching from the factory of Computer.Hard Disk.O.Sequential Seek directly to move test, if through layoutprocedure, that just need to read or just disposed the data of finishing and called in data access interface, and this interface is transferred to test item carry out the interface of test action and visit data.Just the data former state of the item of self-test in the future " flows back to " test item, call Configuration.getInt (" coverage rate ", 15), so far, platform is the concrete implication of " understanding " " coveragerate " not, but moves by the collection and the transmission of configuration data, gives the test item of understanding its implication with " coverage rate ", will know that in the interface of carrying out test action the user wishes to carry out test this time according to 15% coverage rate.
Wherein when the test item assembly testing, can repeat the collection and the transmission step of described configuration data, selection according to the user, the supplemental characteristic that user's configuration is finished passes to test item one by one, and, the test item of user's selection is carried out the management and running of concurrent testing by test item administration module 200 notice test item scheduler modules 203.
In scheduling process, system can use two formations: test item formation and scheduling queue.All pending test items have been held in the test item formation.Scheduling queue has held certain test item of constantly carrying out.When initial, the test item formation has been held whole to be tested, scheduling queue is empty, then, system obtains a test item and puts into scheduling queue from the test item formation, and generation test thread, then, all test items in the formation of sweep test item are therefrom found out the test item that test item in all and the scheduling queue can parallel running, if find, then this test item is moved in the scheduling queue, and produce the test thread, last, if a certain test item in the scheduling queue is finished, then it is removed from scheduling queue, judge and then more whether all test items in the test item formation are finished, if do not have, then repeat, until all test items in this test item formation are finished.
The above only is this creation preferred embodiment wherein, is not the practical range that is used for limiting this creation; All equalizations of being done according to the present patent application claim change and modify, and are all this creation claim and contain.
Claims (16)
1, a kind of computer testing system that can dynamically expand, this system comprises:
One test item storehouse is used to leave concentratedly the test item module;
One test item administration module is used for loading, management testing item module, and safeguards its lifetime;
One test item configuration module is acted on behalf of the management maintenance of test item modules configured and configuration file by this test item administration module; And
One mistake and log management module are acted on behalf of the output of test item daily record and error message and the management of file thereof by this test item administration module.
2, the computer testing system that can dynamically expand as claimed in claim 1 is characterized in that this system further comprises:
One test dispatching module is carried out the management and running of multithreading test to the test item module by this test item administration module.
3, the computer testing system that can dynamically expand as claimed in claim 1 is characterized in that this test item storehouse is made up of at least one test item module.
4, the computer testing system that can dynamically expand as claimed in claim 1 is characterized in that this test item administration module and each test item have unified data-interface standard.
5, the computer testing system that can dynamically expand as claimed in claim 1 is characterized in that this each test item all has a unique identification information that generates automatically according to himself characteristic.
6, the computer testing system that can dynamically expand as claimed in claim 5 is characterized in that this identification information is made up of device name and content measurement title.
7, the computer testing system that can dynamically expand as claimed in claim 5 is characterized in that this identification information is made up of device name, device numbering and content measurement title.
8, the computer testing system that can dynamically expand as claimed in claim 1, the outward appearance that it is characterized in that this test item administration module show that when loading the test item module naming rule according to the identification information of test item generates.
9, a kind of computer test method that can dynamically expand, this method comprises:
Load the test item module one by one and obtain it for information about;
For test item is created data access interface, and bind with configuration interface;
Collect and preserve user's configuration data from configuration interface;
Configuration data is called in this data access interface;
This data access interface is passed to test item; And
Test item is carried out test process according to this configuration data.
10, the computer test method that can dynamically expand as claimed in claim 9 is characterized in that this loads test item module step one by one, can customize their loading sequence by external file.
11, the computer test method that can dynamically expand as claimed in claim 9 is characterized in that this test item comprises the display Name of the test function that test item can be supported for information about.
12, the computer test method that can dynamically expand as claimed in claim 9 is characterized in that this loads the test item module one by one and obtains its step for information about, comprising:
Retrieval test item storing directory;
Load one of them test item;
Verify the identify label of this test item;
Verify whether this test item supports current operating system;
Obtain and put in order the relevant information of this test item; And
Check in the storing directory whether also have the test item that does not load, if having then reload.
13, the computer test method that can dynamically expand as claimed in claim 9 is characterized in that this is that test item creates data access interface, and with the step of configuration interface binding, comprising:
The test item administration module sends configuration notification to the test item configuration module;
The test item configuration module loads the data that the original configuration of user is finished according to notice, and creates data access interface;
The test item configuration module is given the test item administration module with data access interface;
The test item administration module obtains the configuration interface of test item, and data access interface is passed to test item;
Test item is bound data access interface and configuration interface, and passes configuration interface back to the test item administration module; And
The test item administration module passes to the test item configuration module for demonstration with configuration interface.
14, the computer test method that can dynamically expand as claimed in claim 9, it is characterized in that when the test item assembly testing, can repeat the collection and the transmission step of described configuration data, according to user's selection, the supplemental characteristic that user's configuration is finished passes to test item one by one.
15, the computer test method that can dynamically expand as claimed in claim 9 is characterized in that also comprising following steps:
By test item administration module notice test item scheduler module, the test item of user's selection is carried out the management and running of concurrent testing.
16, the computer test method that can dynamically expand as claimed in claim 9 is characterized in that when mistake appearred in test process, the test item administration module was by mistake and log management module output error and log information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA031019048A CN1519721A (en) | 2003-01-23 | 2003-01-23 | Dynamic extendable computer testing system as well as method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA031019048A CN1519721A (en) | 2003-01-23 | 2003-01-23 | Dynamic extendable computer testing system as well as method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1519721A true CN1519721A (en) | 2004-08-11 |
Family
ID=34281502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA031019048A Pending CN1519721A (en) | 2003-01-23 | 2003-01-23 | Dynamic extendable computer testing system as well as method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1519721A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100377105C (en) * | 2004-11-18 | 2008-03-26 | 华为技术有限公司 | Automatic alarm testing method |
CN100435113C (en) * | 2005-03-08 | 2008-11-19 | 中国科学院软件研究所 | TTCN-3 testing system basedon C++ mapping and its testing method |
CN100462938C (en) * | 2005-12-09 | 2009-02-18 | 鸿富锦精密工业(深圳)有限公司 | System and method for simulating programe mounting and operating |
CN103136077A (en) * | 2011-11-25 | 2013-06-05 | 致伸科技股份有限公司 | Automatic test method |
CN103164336A (en) * | 2013-02-22 | 2013-06-19 | 广东欧珀移动通信有限公司 | Automation test method and device of application programs of mobile terminals |
CN103164336B (en) * | 2013-02-22 | 2016-11-30 | 广东欧珀移动通信有限公司 | The automated testing method of application program and device on a kind of mobile terminal |
CN106598857A (en) * | 2016-12-14 | 2017-04-26 | 英业达(重庆)有限公司 | Method and device for testing electronic equipment based on automatic testing tool |
CN108717386A (en) * | 2018-05-17 | 2018-10-30 | 郑州云海信息技术有限公司 | A kind of server automated diagnostic method and system |
CN108804271A (en) * | 2018-06-28 | 2018-11-13 | 北京潘达互娱科技有限公司 | Interface tolerating measure method and device |
CN113342693A (en) * | 2021-07-06 | 2021-09-03 | 阳光电源股份有限公司 | Test data generation method, device and system and controller |
-
2003
- 2003-01-23 CN CNA031019048A patent/CN1519721A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100377105C (en) * | 2004-11-18 | 2008-03-26 | 华为技术有限公司 | Automatic alarm testing method |
CN100435113C (en) * | 2005-03-08 | 2008-11-19 | 中国科学院软件研究所 | TTCN-3 testing system basedon C++ mapping and its testing method |
CN100462938C (en) * | 2005-12-09 | 2009-02-18 | 鸿富锦精密工业(深圳)有限公司 | System and method for simulating programe mounting and operating |
CN103136077A (en) * | 2011-11-25 | 2013-06-05 | 致伸科技股份有限公司 | Automatic test method |
CN103164336A (en) * | 2013-02-22 | 2013-06-19 | 广东欧珀移动通信有限公司 | Automation test method and device of application programs of mobile terminals |
CN103164336B (en) * | 2013-02-22 | 2016-11-30 | 广东欧珀移动通信有限公司 | The automated testing method of application program and device on a kind of mobile terminal |
CN106598857A (en) * | 2016-12-14 | 2017-04-26 | 英业达(重庆)有限公司 | Method and device for testing electronic equipment based on automatic testing tool |
CN108717386A (en) * | 2018-05-17 | 2018-10-30 | 郑州云海信息技术有限公司 | A kind of server automated diagnostic method and system |
CN108804271A (en) * | 2018-06-28 | 2018-11-13 | 北京潘达互娱科技有限公司 | Interface tolerating measure method and device |
CN113342693A (en) * | 2021-07-06 | 2021-09-03 | 阳光电源股份有限公司 | Test data generation method, device and system and controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113645300B (en) | Intelligent node scheduling method and system based on Kubernetes cluster | |
US9104673B2 (en) | Method for supporting multiple filesystem implementations | |
CN1858704A (en) | Method of upgrading sequence | |
CN1264106C (en) | Method for accessing database system uniformly | |
CN101079902A (en) | A great magnitude of data hierarchical storage method | |
US20170124128A1 (en) | Scalable index build techniques for column stores | |
CN100530100C (en) | System and method for application execution allowable for storing in external drive | |
CN1645330A (en) | Method and system for grid-enabled virtual machines with distributed management of applications | |
CN1959640A (en) | System and method for representing user process to software package in software package management system | |
CN1904837A (en) | Method and system for software multi-version upgrading | |
CN1577287A (en) | Synchronizing logical views independent of physical storage representations | |
CN1804840A (en) | Data access layer class generator | |
CN1906580A (en) | Method and system for a grid-enabled virtual machine with movable objects | |
CN101042645A (en) | Method, equipment and system for unionize software development environment | |
CN1140500A (en) | Distributed data base system | |
CN1955958A (en) | Sort data storage and split catalog inquiry method based on catalog tree | |
CN1577322A (en) | Method and system for application installation and management using an application-based naming system including aliases | |
CN1993676A (en) | Method and apparatus for discovering hardware in a data processing system | |
US8458215B2 (en) | Dynamic functional module availability | |
CN1848851A (en) | Computer and method for establishing light weight catalog access data protocol exchange format fragment | |
CN101079004A (en) | Method and device for implementing test script management and distribution | |
CN1740997A (en) | Network equipment and method for distributing its peripheral device interconnection resources | |
CN1519721A (en) | Dynamic extendable computer testing system as well as method | |
CN104781793A (en) | Systems and methods for integrating storage usage information | |
CN109408529A (en) | A kind of processing method and system of bottom data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |