CN100382075C - Hardware-level based test script automatic generating system and method - Google Patents
Hardware-level based test script automatic generating system and method Download PDFInfo
- Publication number
- CN100382075C CN100382075C CNB2003101243888A CN200310124388A CN100382075C CN 100382075 C CN100382075 C CN 100382075C CN B2003101243888 A CNB2003101243888 A CN B2003101243888A CN 200310124388 A CN200310124388 A CN 200310124388A CN 100382075 C CN100382075 C CN 100382075C
- Authority
- CN
- China
- Prior art keywords
- script
- file
- data
- information
- test script
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to an automatic generating system for test scripts on the basis of hardware levels and a method thereof. The system comprises a hardware component database, a configuring module of a single machine component, a data collecting module of a complete machine component, a universal test script database and a final script generating module. The method comprises: firstly, the type and the parameter of a component are determined; a hardware configuring file and a parameter describing file are generated; accordingly, an index file is generated; then, a corresponding universal test script is obtained according to the type of the current component to be tested; the test data of the component is integrated to the universal test script for generating a final test script. The present invention enhances the availability and the extensibility of a test system. Accordingly, the present invention enhances production efficiency.
Description
Technical field
The present invention relates to a kind of test script generation system and method, particularly about a kind of system and method for the automatic generation test script based on hardware level.
Background technology
Existing computing machine production model, major part only is applicable to the large-scale mass production of the computing machine of identical configuration, produces powerless for the mixing of the computing machine of difference configuration.
At present, as a kind of advanced person's the mode of production, CTO (Customer To Order) is becoming a trend, becomes the scale of weighing plant capacity and management level.In existing C TO test macro, use following method test:
For each type, the operator can formulate the script (to call Script in the following text) of a test, and system can obtain corresponding Script according to the type under this SUV behind the test request of receiving machine to be measured (to call SUV in the following text).If there are several SUV that special configuration (each SUV all has different configurations) is arranged, then need formulate different test scripts at each SUV.As can be seen, this system can only satisfy very small-scale CTO production, if the SUV quantity of above-mentioned particular arrangement is very many, then needs to customize very many Script, has not only strengthened and has produced burden, and caused a lot of artificial mistakes easily.The hanging down of its efficient is conspicuous.
If be script of each computer hardware component (Part) customization in advance, then same type parts are because detailed parameter difference needs the different script of definition to satisfy the test needs.For example all be CPU, dominant frequency is that CPU and the dominant frequency of 3G is that the cpu test method of the CPU of CPU, Intel of 2.5G and AMD may be different.Like this,, strengthened the workload of system maintenance, increased manually-operated number of times, increased the possibility of makeing mistakes, had potential unsafe factor if all define script at each parts.In addition, if added new parts in the future, also need service data again.These have all reduced the ease for use of test macro.
Therefore, how on the CTO production model, provide a kind of System and method for of the automatic configuration testing script based on hardware level, become problem anxious to be solved in the industry.
Summary of the invention
The present invention is for the system and method that provides a kind of test script based on hardware level (Script) to generate automatically is provided, on the computer assemblies test streamline that solves CTO (Customer To Order) production model, along with the problem that must increase corresponding test script that increases of machine quantity to be measured and kind, and the scalability problem of test macro.
The invention provides a kind of test script automatic creation system based on hardware level, being applied to CTO is the computer assemblies test streamline of production model, this system comprises: the computer hardware component database is used to store all hardware component information on this assembly line; Unit component configuration module is in order to determine the computer hardware component data in each unit according to the information in this parts data storehouse; Complete machine parts data collection module distributes a unique sequence number in order to the unit data according to this unit component configuration module for each unit, and respectively sets up related with the parts in this unit this sequence number; The universal test script database is in order to store the universal test script of corresponding dissimilar computer hardware component; And final script generation module, in order to generating an index file, and will be incorporated into the universal test script by the parts data that this data collection module is collected according to this index file, generate final script.
The present invention and then provide a kind of test script to generate method automatically based on hardware level, being applied to CTO is the computer assemblies test streamline of production model, this method is at first determined the type and the parameter thereof of each computer hardware component; Then generate hardware profile and parametric description file according to the type and parameter; Obtain corresponding universal test script according to the type of this current UUT; Generate index file according to this hardware profile and parametric description file then; At last the test data of these parts is incorporated into this universal test script and generates the final test script according to this index file.
The present invention regards each machine to be measured as a set of being made up of some parts, the operator is as long as customized the universal test script at each machine element, the present invention will form according to the parts of machine to be measured, automatically configure required test script, thereby improved production efficiency greatly, reduced operator's work load, simultaneously, the present invention can each machine element of dynamic calculation configuration rule, therefore, same type parts only need to safeguard that a test script gets final product, and make that the extensibility of system is extended.
Description of drawings
Fig. 1 is the test script automatic creation system module map based on hardware level of the present invention;
Fig. 2 is the structural drawing of final script generation module provided by the present invention;
Fig. 3 generates method flow diagram automatically for the test script based on hardware level of the present invention;
Fig. 4 is the flow chart of steps of generation index file provided by the present invention; And
Fig. 5 is the flow chart of steps of integration final test script provided by the present invention.
Wherein, description of reference numerals is as follows:
101 computer hardware component databases
102 unit component configuration modules
103 complete machine parts data collection modules
104 universal test script databases
105 final script generation module
1051 hardware profile generation modules
1052 parametric description file generating module
1053 index file generation modules
1054 script integrate modules
Embodiment
As shown in Figure 1, for the test script automatic creation system module map based on hardware level of the present invention, comprise a computer hardware component database 101, unit component configuration module 102, complete machine parts data collection module 103, universal test script database 104 and final script generation module 105.
Wherein, this computer hardware component database 101 is used to store all hardware component information on this assembly line; This unit component configuration module 102 is in order to determine the computer hardware component data in each unit according to the information in this parts data storehouse; This complete machine parts data collection module 103 distributes a unique sequence number in order to the unit data according to this unit component configuration module for each unit, and respectively sets up related with the parts in this unit this sequence number; This universal test script database 104 is in order to store the universal test script of corresponding dissimilar computer hardware component; This final script generation module 105 generates final script in order to being incorporated into the universal test script by the parts data that this data collection module is collected.
See also Fig. 2, in final script generation module 105, also comprise a hardware profile generation module 1051, a parametric description file generating module 1052, an index file generation module 1053 and a script integrate module 1054.
Wherein hardware profile generation module 1051 is described this configuration of components file in order to assembling rule and generic script generation one according to this hardware component; Parametric description file generating module 1052 is in order to describe the file of its parameter according to the supplemental characteristic generation one of this hardware component; Index file generation module 1053 is in order to generate an index file according to this configuration file and parametric description file; Script integrate module 1054 is in order to form final script according to this index file in the generic script data with information integrated in this configuration file and the Parameter File.
In the reality test, script integrate module 1054 can be each different crossover tool that testing tool provided, so, the final script format that generates is determined by testing tool, isolate the definition of configuration file, Parameter File and internal rule fully by index file, accomplished extensibility.
See also Fig. 3,, at first determine the type and the parameter (step 301) thereof of each computer hardware component for the test script based on hardware level of the present invention generates method automatically; Then generate hardware profile and parametric description file (step 302) according to the type and parameter; Obtain corresponding universal test script (step 303) according to the type of this current UUT; Generate index file (step 304) according to this hardware profile and parametric description file then; At last the test data of these parts is incorporated into this universal test script and generates final test script (step 305) according to this index file.
See also Fig. 4, be the flow chart of steps of generation index file provided by the present invention, at first scanning hardware configuration file and parametric description file (step 401); Then from this configuration file, obtain when the information of forepiece and from this Parameter File, obtain its device type and parameter (step 402); Fill the information (step 403) of parts number, device type, script data position and size of data in this index file then according to scanning result; From this configuration file, obtain the hardware Rule Information at last, and use this rule in conjunction with the device type of these parts and parameter and fill in slot number (step 404).
See also Fig. 5, be the flow chart of steps of generation final test script provided by the present invention, at first from index file, read data line (step 501); Then read generic script information (step 502) according to script data in the index file and data size information; From the parametric description file, inquire about the parameter information (step 503) of these parts then according to the parts number in the index file; At last this parameter information is incorporated in this generic script in conjunction with the Rule Information in the index file, generates final script data (step 504).
The present invention for each parts has all defined type (type) data, corresponds to CPU, HDD, CDROM, MEMORY, MOUSE or the like in computer testing system.The parts of each type all define relevant parameters (parameter), CPU for example, can its Vender ID, FamilyLevel, L2Cache, Speed, Processor, Stepping Level, FPU, MMX, Model Level be tested, need to safeguard in advance these data so.Because on production line, the number of parts is determined, so this part data system manager when system sets up can safeguard, does not need to be serviced in the later production run, and this has just reduced the maintenance workload of system.
The Production Engineer is the one or more generic scripts of the component maintenance of each type, when test, the present invention obtains the component information that SUV comprises from complete machine parts data collection module, obtain type (type) information of each parts respectively, obtain generic script with this, according to the supplemental characteristic of these parts, calculate the final test script then.
The present invention is according to the type and the parameter information of parts, the final script that dynamic calculation goes out, its form are the needs that will meet testing tool, and employed script can be accomplished and system independence, only with parts and to be used for testing the instrument of these parts relevant, thereby strengthened the extensibility of system.
In addition, in assembly line, can produce the problem of some parts orders, for example, 2 HDD are arranged, and are respectively the capacity of 120G and 80G, may require the front that will be inserted in 80G of 120G, or further, require 120G to be inserted on the IDEO, 80G is inserted on the IDE2, and IDE1 must be idle, because the user wishes to increase from now on a CD-ROM on this socket, the present invention is referred to as rule (Rule).So in the calculating of final script, use to rule.
Below just with the process of specific embodiment explanation dynamic calculation final test script of the present invention.
The parameter of parts: the script of safeguarding in the system all is to write at the type of parts, for example need to test CPU, will write a kind of or several general script to CPU, when generating final script, need be in conjunction with the actual parameter of CPU to be measured, for example speed, venderid, L2 cache etc.
According to above-mentioned situation, system can transmit two message files (Information File) when machine to be measured transmits generic script, is respectively config.dat and hwpn.txt.
Config.dat introduces:
Be the form of config.dat below
Each parts of SUV all can have a config information, and config.dat is formed in the set of these information.
At first be part number, it is that a character string with the O ending is the Rule content of these parts then, be the applied generic script content of parts of this type then, because this part is a binary format, so at first will describe its length, therefore have " Size of script for this kind of part ".
The form of Hwpn.txt:
Each parts of SUV all can have a hwpn information, and hwpn.txt is formed in the set of these information.
In test process, each testing tool only need provide a crossover tool, just can by index file with the data integration of parts in generic script, generate final script.Owing to relate to the application of rule,, generate index file so at first scan config.dat and hwpn.txt file.The advantage of doing like this is, the form of the final script that generates is determined by testing tool, yet still rule of config.dat and hwpn.txt file no matter, it all is the rule that test macro is formulated, use index file to isolate the rule of test macro inside and the contact between the instrument fully, accomplish to have nothing to do, make the extensibility of system increase greatly with testing tool.
The form of index file can be as follows:
Part Number | Device type | Slot Number | Script Data Position | Data Size |
12345678-001 | IDE | 0 | 39 | 32 |
12345678-002 | IDE | 3 | 72 | 36 |
The implication of above-mentioned sample data is as follows:
PN is that the device type of 12345678-001 is IDE, and it should be inserted on the IDE 0, and its reference position of data information in the config.dat file is 39, and length is 32bytes.
PN is that the device type of 12345678-002 is IDE, and it should be inserted on the IDE 3 and (use Rule), and its reference position of data information in the config.dat file is 72, and length is 36bytes.
After this data file has been arranged, when calculating final script, can travel through all PN in proper order, because PN has used all Rule.
The process that this embodiment generates final script mainly is to generate the process and the final script integration process of index file, below division as follows:
When generating index file, at first from config.dat, obtain the information of a part, and from hwpn.txt, obtain device type and the parameter of this part, fill in the part number of index file, devicetype, script data position and data size information, from part information, obtain the information of rule then, and in conjunction with the device type of this part, parameter uses rule, the part of same kind is arranged in together in the index file, fill in slot number according to the definition of rule, judge whether all part that disposes at last, if all dispose, then finish, otherwise re-execute.
When integrating the final test script, at first from index file, read data line; Then according to scriptdata position and data size, read script information, from hwpn.txt, search out the parameter information of this part according to part number, generate the script of the own form of tool in conjunction with slot number, travel through all row of index file at last, repeat above-mentioned steps.
The above only is the present invention's preferred embodiment wherein, is not to be used for limiting practical range of the present invention; All equalizations of being done without departing from the spirit and scope of the present invention according to the present patent application claim change and modify, and all should belong in claims of the present invention claim required for protection.
Claims (11)
1. test script automatic creation system based on hardware level, this system applies is in the computer assemblies test streamline that with CTO is production model, and wherein this system comprises:
One computer hardware component database is used to store all hardware component information on this assembly line;
One unit component configuration module is in order to determine the computer hardware component data in each unit according to the information in this parts data storehouse;
One complete machine parts data collection module distributes a unique sequence number in order to the unit data according to this unit component configuration module for each unit, and respectively sets up related with the parts in this unit this sequence number;
One universal test script database is in order to store the universal test script of corresponding dissimilar computer hardware component; And
One final script generation module in order to generating an index file, and will be incorporated into the universal test script by the parts data that this data collection module is collected according to this index file, generate final script.
2. test script automatic creation system as claimed in claim 1, wherein this final script generation module comprises:
One hardware profile generation module is described this configuration of components file in order to assembling rule and generic script generation one according to this hardware component;
One parametric description file generating module is in order to describe the file of its parameter according to the supplemental characteristic generation one of this hardware component;
One index file generation module is in order to generate this index file according to this configuration file and parametric description file; And
One script integrate module is in order to form final script according to this index file in the generic script data with information integrated in this configuration file and the Parameter File.
3. test script automatic creation system as claimed in claim 2 wherein comprises the size and the content for script information of parts number, Rule content, this unit type script in this hardware profile.
4. test script automatic creation system as claimed in claim 2 wherein comprises parts number, device type and various parameter information in this parametric description file.
5. test script automatic creation system as claimed in claim 2 wherein comprises parts number, device type, slot number, script data position and data size information in this index file.
6. the test script based on hardware level generates method automatically, and being applied to CTO is the computer assemblies test streamline of production model, and wherein this method comprises the steps:
Determine the type and the parameter thereof of each computer hardware component;
Generate hardware profile and parametric description file according to the type and parameter;
Obtain corresponding universal test script according to the type of this current UUT;
Generate index file according to this hardware profile and parametric description file; And
According to this index file the test data of these parts is incorporated into this universal test script and generates the final test script.
7. test script as claimed in claim 6 generates method automatically, wherein comprises the size and the content for script information of parts number, Rule content, this unit type script in this hardware profile.
8. test script as claimed in claim 6 generates method automatically, wherein comprises parts number, device type and various parameter information in this parametric description file.
9. test script as claimed in claim 6 generates method automatically, wherein comprises parts number, device type, slot number, script data position and data size information in this index file.
10. test script as claimed in claim 6 generates method automatically, wherein should comprise the steps: according to the step of hardware profile and parametric description file generation index file
Scanning hardware configuration file and parametric description file;
From this configuration file, obtain when the information of forepiece and from this Parameter File, obtain its device type and parameter;
Fill the information of parts number, device type, script data position and size of data in this index file according to scanning result;
From this configuration file, obtain the hardware Rule Information, and use this rule in conjunction with the device type of these parts and parameter and fill in the slot number.
11. test script as claimed in claim 6 generates method automatically, wherein should generate the step of final test script, comprises the steps:
From index file, read data line;
Read generic script information according to script data in the index file and data size information;
From the parametric description file, inquire about the parameter information of these parts according to the parts number in the index file; And
This parameter information is incorporated in this generic script in conjunction with the Rule Information in the index file, generates final script data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101243888A CN100382075C (en) | 2003-12-30 | 2003-12-30 | Hardware-level based test script automatic generating system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101243888A CN100382075C (en) | 2003-12-30 | 2003-12-30 | Hardware-level based test script automatic generating system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1635497A CN1635497A (en) | 2005-07-06 |
CN100382075C true CN100382075C (en) | 2008-04-16 |
Family
ID=34845000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2003101243888A Expired - Fee Related CN100382075C (en) | 2003-12-30 | 2003-12-30 | Hardware-level based test script automatic generating system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100382075C (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102005036321A1 (en) * | 2005-07-29 | 2007-02-01 | Siemens Ag | Test scenarios generating method for e.g. computer tomography system, involves determining dependences between individual processing steps and/or classes of steps, and generating scenarios based on selection of steps, classes or rules |
CN100361088C (en) * | 2005-08-09 | 2008-01-09 | 华为技术有限公司 | Method for realizing device test |
CN100395724C (en) * | 2006-02-15 | 2008-06-18 | 华为技术有限公司 | Graphic user interface test method and system |
CN101047555A (en) * | 2006-06-19 | 2007-10-03 | 华为技术有限公司 | Detection method for quality of equipment |
CN100442729C (en) * | 2006-12-06 | 2008-12-10 | 中国科学院计算技术研究所 | Configuration method of tested system in conformance test of network protocol |
CN100583920C (en) * | 2007-01-26 | 2010-01-20 | 华为技术有限公司 | Method and apparatus for generating testing script, testing method, apparatus and system |
CN101782869B (en) * | 2010-03-09 | 2013-10-02 | 南京航空航天大学 | Method for testing function of panel based on Bash shell script |
CN103186639B (en) * | 2011-12-31 | 2017-10-10 | 腾讯科技(北京)有限公司 | Data creation method and system |
CN103345442B (en) * | 2013-06-06 | 2016-06-01 | 莱诺斯科技(北京)有限公司 | Equipment automatization test service integrated system |
CN109284115A (en) * | 2017-07-20 | 2019-01-29 | 北京国双科技有限公司 | A kind of method and device generating tracker script |
CN108037948A (en) * | 2017-12-11 | 2018-05-15 | 福建中金在线信息科技有限公司 | Script management method, apparatus and system |
CN108153188B (en) * | 2017-12-14 | 2020-06-16 | 上海索广电子有限公司 | Script data based adjustment and inspection flow switching method |
CN110674171A (en) * | 2019-09-12 | 2020-01-10 | 苏州浪潮智能科技有限公司 | Script generation method and device and data processing method and device |
CN111239626B (en) * | 2020-01-21 | 2022-06-14 | 福建时代星云科技有限公司 | Method for automatically generating automobile battery rapid detection scheme |
CN112597067B (en) * | 2021-03-05 | 2021-09-03 | 湖南广播电视大学(湖南网络工程职业学院) | Test method, test system, electronic device and test medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5754755A (en) * | 1996-10-10 | 1998-05-19 | Microsoft Corporation | Method and system for generating test scripts |
CN1230720A (en) * | 1997-08-29 | 1999-10-06 | 戴尔美国公司 | Software installation and testing for build-to-order computer system |
CN1325062A (en) * | 2000-05-19 | 2001-12-05 | 英业达股份有限公司 | Intelligent hardware installing method |
CN1428700A (en) * | 2001-12-27 | 2003-07-09 | 联想(北京)有限公司 | Method for producing test scheme and its system |
CN1459716A (en) * | 2002-05-22 | 2003-12-03 | 华为技术有限公司 | Automatic checking device of printed-wiring board designing and its method |
-
2003
- 2003-12-30 CN CNB2003101243888A patent/CN100382075C/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5754755A (en) * | 1996-10-10 | 1998-05-19 | Microsoft Corporation | Method and system for generating test scripts |
CN1230720A (en) * | 1997-08-29 | 1999-10-06 | 戴尔美国公司 | Software installation and testing for build-to-order computer system |
CN1325062A (en) * | 2000-05-19 | 2001-12-05 | 英业达股份有限公司 | Intelligent hardware installing method |
CN1428700A (en) * | 2001-12-27 | 2003-07-09 | 联想(北京)有限公司 | Method for producing test scheme and its system |
CN1459716A (en) * | 2002-05-22 | 2003-12-03 | 华为技术有限公司 | Automatic checking device of printed-wiring board designing and its method |
Also Published As
Publication number | Publication date |
---|---|
CN1635497A (en) | 2005-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100382075C (en) | Hardware-level based test script automatic generating system and method | |
CN108512719B (en) | Integrated resource monitoring system based on open-source cloud platform | |
CN105550241B (en) | Multi-dimensional database querying method and device | |
CN101908015B (en) | Device and method for creating test case based on components | |
CN102542367B (en) | Cloud computing network workflow processing method, device and system based on domain model | |
CN100495678C (en) | Semiconductor test management system and method | |
CN110147470B (en) | Cross-machine-room data comparison system and method | |
CN104112084B (en) | Execution-based license discovery and optimization method and device | |
CN101894058A (en) | Method and device for analyzing test coverage automatically aiming at automatic test system | |
CN101218585B (en) | Method and tool for searching in several data sources for a selected community of users | |
CN113704077A (en) | Test case generation method and device | |
CN105868956A (en) | Data processing method and device | |
CN101430660A (en) | Pressure model analysis method based on TPS in software performance test | |
CN109582906A (en) | Determination method, apparatus, equipment and the storage medium of data reliability | |
CN107506422A (en) | The distributed information log processing system and method for a kind of multi-data source | |
CN111414410A (en) | Data processing method, device, equipment and storage medium | |
EP3945416B1 (en) | Software query information management system and software query information management method | |
CN111125226B (en) | Configuration data acquisition method and device | |
CN111339560A (en) | Data isolation method, device and system | |
CN115374109B (en) | Data access method, device, computing equipment and system | |
CN116069725A (en) | File migration method, device, apparatus, medium and program product | |
TWI236619B (en) | Automatic generation system and method for hardware-based testing script | |
CN109885472A (en) | Test and management method and system and computer readable storage medium | |
CN108829968A (en) | Circuit diagram checking method based on Python spread function | |
CN112669131A (en) | Intelligent account checking method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080416 Termination date: 20101230 |