CN103914370A - XML (Extensive Markup Language) configuration file based test method and device - Google Patents

XML (Extensive Markup Language) configuration file based test method and device Download PDF

Info

Publication number
CN103914370A
CN103914370A CN201210591426.XA CN201210591426A CN103914370A CN 103914370 A CN103914370 A CN 103914370A CN 201210591426 A CN201210591426 A CN 201210591426A CN 103914370 A CN103914370 A CN 103914370A
Authority
CN
China
Prior art keywords
test
configuration file
xml configuration
tested
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210591426.XA
Other languages
Chinese (zh)
Other versions
CN103914370B (en
Inventor
李九宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu International Technology Shenzhen Co Ltd
Original Assignee
Baidu International Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Baidu International Technology Shenzhen Co Ltd filed Critical Baidu International Technology Shenzhen Co Ltd
Priority to CN201210591426.XA priority Critical patent/CN103914370B/en
Publication of CN103914370A publication Critical patent/CN103914370A/en
Application granted granted Critical
Publication of CN103914370B publication Critical patent/CN103914370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an XML (Extensive Markup Language) configuration file based test method. The XML configuration file based test method comprises the following steps of obtaining a product to be tested, wherein the product to be tested comprises a plurality of function points to be tested; forming an XML configuration file according to the plurality of function points to be tested, wherein the XML configuration file comprises a plurality of test nodes, the test nodes and the function points to be tested are arranged in a one-to-one correspondence mode, every test node comprises a plurality of marker pairs comprising attribute identifications and the content information, and the content information is the information for test items corresponding to the test nodes; obtaining the product to be tested and the XML configuration file through an automated test frame; obtaining the corresponding test codes and the corresponding test item information according to the XML configuration file through the automated test frame; testing the test nodes according to the test items through the automated test frame. The invention also provides an XML configuration file based device. According to the XML configuration file based test method and device, the execution efficiency is high, the accuracy is high, the maintenance is simple and convenient, and the test efficiency of the product can be improved.

Description

Method of testing based on expandable mark language XML configuration file and device
Technical field
The present invention relates to field of computer technology, particularly a kind of method of testing and device based on expandable mark language XML configuration file
Background technology
Product test need to be at a large amount of uncorrelated position deployment file and registry entries of specifying, to check the function of product.Conventional manual deployment meeting is very consuming time and easily make mistakes, and the method for batch processing script is difficult to again safeguard.While particularly increasing file and registry entry on existing position, be more difficult to safeguard.As from the foregoing, existing method of testing has the low and low defect of accuracy of efficiency.Manual deployment, test, the inspection work of carrying out these files and registry entry, the time, more than 60 minutes, also cannot guarantee the accuracy of carrying out.
Summary of the invention
Object of the present invention is intended at least solve one of above-mentioned technological deficiency.
For this reason, first object of the present invention is to propose the method for testing based on expandable mark language XML configuration file that a kind of efficiency is high and accuracy is high.Second object of the present invention is to propose a kind of proving installation based on XML configuration file.
For achieving the above object, the embodiment of first aspect present invention provides a kind of method of testing based on expandable mark language XML configuration file, comprises the following steps:
Obtain product to be tested, described product to be tested comprises multiple function points to be tested;
Form XML configuration file according to described multiple function points to be tested, wherein, described XML configuration file comprises multiple test nodes, wherein, each test node is corresponding with a described function point to be tested, and described each test node comprises multiple marks pair, described mark is to comprising attribute-bit and content information, and described content information is the information of the test item corresponding for described test node;
Automated test frame obtains described product to be tested and described XML configuration file;
Described automated test frame obtains corresponding test node and corresponding test item information according to described XML configuration file; And
Described automated test frame is tested described test node according to described test item information.
According to the method for testing based on XML configuration file of the embodiment of the present invention, have the following advantages:
(1) node administration is convenient: a corresponding function point of node, only need increase new node while increasing new function point; While strengthening old function point, in regard to node, increase new child node.
(2) unified processing, intuitively quick: use script to call this XML configuration file, can carry out the operations such as file generated, file checking, absolute path modification, only revise script and just can play the effect of revising the corresponding results of all nodes; As increase quantity, the change target drive etc. of file and registry entry.
(3) supporting specified node processing, is not to use whole nodes, can arbitrarily specify use by testing requirement, uses the text of father node when appointment.
(4) function expands extremely simple: when function to be tested has variation, in indivedual nodes, increase new tag bits, then in the script of call XML configuration file, label is processed.
In one embodiment of the invention, described each function point to be tested comprises multiple test positions, each described test point comprises a test father node and multiple test child node, wherein, each test child node is corresponding with a test position, and described each test child node comprises corresponding mark pair.
Wherein, described test item comprises test file and/or registry entry.The information of described test item comprises one or more in the path, quantity, type, file size, prefix name of described test file, and one or more in registry-location, key assignments, key name, value content.
Further, also comprise:
Described automated test frame analyzes to obtain test item corresponding to described XML configuration file by test script to described XML configuration file;
Described automated test frame detects described test item by described test script and whether is deployed in corresponding position.
In yet another embodiment of the present invention, described each test child node also comprises label, and wherein, described label comprises default label and increases performance test label.
The embodiment of second aspect present invention provides a kind of proving installation based on XML configuration file, comprising: acquisition module, and for obtaining product to be tested, described product to be tested comprises multiple function points to be tested; XML configuration file generation module, for forming XML configuration file according to described multiple function points to be tested, wherein, described XML configuration file comprises multiple test nodes, wherein, each test node is corresponding with a described function point to be tested, and described each test node comprises multiple marks pair, described mark is to comprising attribute-bit and content information, and described content information is the information of the test item corresponding for described test node; Automated test frame module, be used for obtaining described product to be tested and described XML configuration file, and obtain corresponding test node and corresponding test item information according to described XML configuration file, and according to described test item information, described test node is tested.
According to the proving installation based on XML configuration file of the embodiment of the present invention, have the following advantages:
(1) node administration is convenient: a corresponding function point of node, only need increase new node while increasing new function point; While strengthening old function point, in regard to node, increase new child node.
(2) unified processing, intuitively quick: use script to call this XML configuration file, can carry out the operations such as file generated, file checking, absolute path modification, only revise script and just can play the effect of revising the corresponding results of all nodes; As increase quantity, the change target drive etc. of file and registry entry.
(3) supporting specified node processing, is not to use whole nodes, can arbitrarily specify use by testing requirement, uses the text of father node when appointment.
(4) function expands extremely simple: when function to be tested has variation, in indivedual nodes, increase new tag bits, then in the script of call XML configuration file, label is processed.
Further, described each function point to be tested comprises multiple test positions, and each described test point comprises a test father node and multiple test child node, wherein, each test child node is corresponding with a test position, and described each test child node comprises corresponding mark pair.
Wherein, described test item comprises test file and/or registry entry.The information of described test item comprises one or more in the path, quantity, type, file size, prefix name of described test file, and one or more in registry-location, key assignments, key name, value content.
In yet another embodiment of the present invention, the proving installation based on XML configuration file of the embodiment of the present invention, also comprise: test script module, for described XML configuration file is analyzed to obtain test item corresponding to described XML configuration file, and detect described test item and whether be deployed in corresponding position.
In yet another embodiment of the present invention, described each test child node also comprises label, and wherein, described label comprises default label and increases performance test label.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein:
Fig. 1 is the process flow diagram of the method for testing based on XML configuration file according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the method for testing based on XML configuration file in accordance with another embodiment of the present invention;
Fig. 3 is the schematic diagram of the proving installation based on XML configuration file according to an embodiment of the invention; And
Fig. 4 is the schematic diagram of the proving installation based on XML configuration file in accordance with another embodiment of the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
Disclosing below provides many different embodiment or example to be used for realizing different structure of the present invention.Of the present invention open in order to simplify, hereinafter the parts to specific examples and setting are described.Certainly, they are only example, and object does not lie in restriction the present invention.In addition, the present invention can be in different examples repeat reference numerals and/or letter.This repetition is in order to simplify and object clearly, itself do not indicate the relation between discussed various embodiment and/or setting.In addition, the various specific technique the invention provides and the example of material, but those of ordinary skills can recognize the property of can be applicable to of other techniques and/or the use of other materials.In addition, First Characteristic described below Second Characteristic it " on " structure can comprise that the first and second Characteristics creations are the direct embodiment of contact, also can comprise the embodiment of other Characteristics creation between the first and second features, such the first and second features may not be direct contacts.
In description of the invention, it should be noted that, unless otherwise prescribed and limit, term " installation ", " being connected ", " connection " should be interpreted broadly, for example, can be mechanical connection or electrical connection, also can be the connection of two element internals, can be to be directly connected, and also can indirectly be connected by intermediary, for the ordinary skill in the art, can understand as the case may be the concrete meaning of above-mentioned term.
With reference to description and accompanying drawing below, these and other aspects of embodiments of the invention will be known.In these descriptions and accompanying drawing, specifically disclose some specific implementations in embodiments of the invention, represent some modes of the principle of implementing embodiments of the invention, but should be appreciated that the scope of embodiments of the invention is not limited.On the contrary, embodiments of the invention comprise all changes, modification and the equivalent within the scope of spirit and the intension that falls into additional claims.
Below with reference to Fig. 1 and Fig. 2, the method for testing based on XML configuration file of the embodiment of the present invention is described.
As shown in Figure 1, the method for testing based on XML configuration file of the embodiment of the present invention, comprises the steps:
Step S101, obtains test products.
Test products comprises multiple function points to be tested.Particularly, according to demand, list large function point to be tested, to each function point to be tested newly-built father node in xml configuration file; Intra-node, each position that need to dispose is to a child node
In one embodiment of the invention, each function point to be tested comprises multiple test positions.Wherein, each test point comprises a test father node and multiple test child node.Each test child node is corresponding with a test position, and each test child node comprises corresponding mark pair.
Further, each test child node also comprises label.Wherein, label can comprise default label and increase performance test label.The information such as file path that wherein, the inner tag/text of use of each test child node label needs to dispose to definition, quantity, type, size, prefix name etc. or registry-location, key assignments, key name, value content.
Step S102, forms XML configuration file according to multiple function points to be tested.
XML configuration file comprises multiple test nodes.Each test node is corresponding with a function point to be tested, and each test node comprises multiple marks pair, and mark is to comprising attribute-bit and content information, and content information is the information of the test item corresponding for test node.
Step S103, automated test frame obtains product to be tested and XML configuration file.
Step S104, automated test frame obtains corresponding test node and corresponding test item information according to XML configuration file.
In one embodiment of the invention, test item comprises test file and/or registry entry.Wherein, the information of test item comprises one or more in the path of test file, quantity, type, file size, prefix name, and one or more in registry-location, key assignments, key name, value content.
In one embodiment of the invention, step S104 also comprises: automated test frame analyzes to obtain to XML configuration file the test item that XML configuration file is corresponding by test script; Automated test frame detects test item by test script and whether is deployed in corresponding position.
Particularly, resolve xml file, script, according to the tag/text label pair of the hierarchical information of file and the bottom, is determined absolute path (registry-location), all filenames that will create (registry key, value, the full name of content), file size etc.; Automatically generate list, then script sequential processes, the demand of pressing are disposed; Support by the rule of specified node dispose,
For above-mentioned hierarchical structure and deployment design, resolve script and only need read and process according to certain rule information of carrying out.While importing <Trash>, <Track> or <Registry> as parameter into, script is with regard to All Files and registry key under corresponding node in energy automatic deployment xml file.If do not need to dispose so on a large scale, the tag that can only import sub-project into is as parameter, as: <Trash/WindowsPrereadingFilesGreatT.GreaT.G T, script only can be carried out the deployment of this sub-project like this.
It is easier for XML file is disposed, script is processed the function also with path intelligently parsing, dispose path for the file in XML file or registry entry object, script can automatic decision driving-disc, resolve the path of relative path, resolution system variable-definition etc.In the time writing XML file, can think that mode is filled in routing information easily according to user's oneself custom or its.
In the details that file and registry key are disposed, file type (content of registry value) is that support is multinomial, without newly-built new node, directly in <type></typeGrea tT.GreaT.GT, increase type to be disposed and distinguish with separator.As: <type>doc, txt, pdf</type>;
Script is also supported to increase more file and registry information in XML file, as the time, and can User Defined deployment time and do not use the invoked time of script.File attributes can be hidden, and abandons file permission rank also controlled.
Simultaneously, the attribute <Default> under <Trash/WindowsPrereadingFilesGreatT.GreaT.G T node can be considered and process to script, and this is the attribute of the application needs of the method for testing based on XML configuration file of the present invention.By the method for testing based on XML configuration file of the present invention, can according to application spread and enrich object properties, to be applicable to application demand.In a word, very abundant, flexibly of the extensibility of script, application prospect is very wide.
Step S105, automated test frame is tested test node according to test item information.
According to XML configuration file, script checks whether required deployment file, registry entry put in place right.Check and carry out after specific function, whether corresponding file existence is correct, and supports all node inspections of whole xml file, supports single child node inspection and single father node inspection simultaneously, and wherein father node comprises large quantum nodes.And according to XML configuration file, script is test products appellative function arbitrarily.
While being integrated into automated test frame inside, without any modification, directly in robotization framework, call the code of analyzing XML configuration file, can practical function test automation without any need for extra input.
Utilize XML configuration file can check the postrun file of some function of product and registry entry state, the inspection link that must complete is tested in zero cost support.And, check to be consuming timely no more than 1 minute.When manual execution, the workload of hand inspection and these files of deployment, registry entry are suitable, and the directly integrated automated test frame that enters without any change, thereby has significantly improved efficiency and the quality of test.
Describe take table 1 and table 2 as the hierarchical relationship of the test node of example to this step below.
Table 1 shows the hierarchical relationship of node.The root node that table 1 uses comprises three child nodes, and three objects of corresponding practical application all need to dispose corresponding document case registry key in these three objects.In above-mentioned three child nodes, each child node comprises again the child node of lower one deck.
Table 1
Table 2 shows the child node of the lower one deck comprising under each child node.As shown in table 2: Trash child node has comprised multiple subordinates child node, each child node is the sub-project in this patent practical application, needs to dispose concrete file or registry key in sub-project.
Table 2
Take Trash/WindowsPrereadingFiles in table 2 as example, the <TargetFile> of this child node subordinate is other node of lowermost level, has comprised concrete file deployment information: position, quantity, size, file prefix name, type etc.; Simultaneously herein also by <Default> label the attribute of this project, attribute can infinite expanding;
Table 3 has provided certain Registry Subkeys object lowest level of nodes information, is that the information in node is for registry key with file difference.
Table 3
By setting forth hierarchical structure of the present invention and node deployment above, the present invention can, for various files and registry entry object deployment requirements, carry out infinite expanding, application.Just can increase the behavioral characteristic of concrete file and registry key and large project because only need to just can add sport, increase bottom child node information or attribute etc. by increase upper strata child node.
Below with reference to Fig. 2, the method for testing based on XML configuration file of the embodiment of the present invention is described in detail.
Step S201, analytical test demand.
Step S202, writes XML file.
Step S203, the deployment based on XML file and test, for conventional demand growth, execution step S204, increases for specific demand, execution step S205;
Step S204, in the time of conventional demand growth, safeguards XML file, then returns to step S202.
Step S2041, increases testing requirement, while having new function point, increases new father node or child node.
Step S2042, when old function need to strengthen, finds corresponding node to modify to the text content in corresponding tag.
Step S205, in the time supporting specific demand, safeguards XML file, then returns to step S202.
Step S2051, increases to give tacit consent to and disposes logic, and some project acquiescence of demand the inside needs test, and unification adds " Default " label, directly uses the rule of these nodes when script calls xml file, there will not be omission.
Step S2052, increases performance test and disposes logic, and demand the inside needs the part of nodes that only has of execution performance test, adds " PerfTest " label inside, only processes node, the deployment performance detection environment of tape label when script calls.Quantity to file and registry entry in deployment meeting ignore rule now, the appointment of size, to meet performance test demand.
Step S2053, " specified file " disposes logic, in test, needs to use create name, specifies big or small file or registry entry, revises and represents that the tag of quantity is-1, represents unique.
Step S206, automatic test is integrated.
It should be noted that, when specific function expansion and demand growth, maintenance cost is low, and the full maintenance of maximal workload is no more than 10 minutes at present.
According to the method for testing based on XML configuration file of the embodiment of the present invention, the file and the registration table that adopt XML node mode organization need to dispose, each node is a product function point to be tested, needs deployment information with tag/text mark to recording.To all nodes, use same script file to process, thus file and registry keys one-touch, that generate accurately all needs deployment.In addition, the present invention creates initial XML configuration file by demand, and analyzing XML configuration file is carried out deployment task, is integrated in automated test frame.Safeguard xml file according to specific demand and conventional demand, thus the accuracy of raising the efficiency and disposing.
In addition, the innovative point of the method for testing based on XML configuration file of the present invention and advantage are also embodied in:
(1) node administration is convenient: a corresponding function point of node, only need increase new node while increasing new function point; While strengthening old function point, in regard to node, increase new child node.
(2) unified processing, intuitively quick: use script to call this XML configuration file, can carry out the operations such as file generated, file checking, absolute path modification, only revise script and just can play the effect of revising the corresponding results of all nodes; As increase quantity, the change target drive etc. of file and registry entry.
(3) supporting specified node processing, is not to use whole nodes, can arbitrarily specify use by testing requirement, uses the text of father node when appointment.
(4) function expands extremely simple: when function to be tested has variation, in indivedual nodes, increase new tag bits, then in the script of call XML configuration file, label is processed.
To sum up, the XML configuration file orderliness of the method for testing based on XML configuration file of the present invention is clear, logicality is strong, and deployment file and registry entry are rapidly, accurately.In addition, within 2 minutes, can complete all and map out the work.In the time that reality is used, have carry out fast, accuracy rate is high, easy maintenance special, improved very significantly the testing efficiency of product.
The embodiment of second aspect present invention provides a kind of proving installation based on XML configuration file.
As shown in Figure 3, the proving installation based on XML configuration file 300 of the embodiment of the present invention comprises acquisition module 310, XML configuration file generation module 320 and automated test frame module 330.
Particularly, acquisition module 310 is for obtaining product to be tested.Wherein, product to be tested comprises multiple function points to be tested.Each function point to be tested comprises multiple test positions, and each test point comprises a test father node and multiple test child node.Wherein, each test child node is corresponding with a test position, and each test child node comprises corresponding mark pair.
Further, each test child node also comprises label.Wherein, label comprises default label and increases performance test label.
XML configuration file generation module 320 is connected with acquisition module 310, for forming XML configuration file according to multiple function points to be tested.
Wherein, XML configuration file comprises multiple test nodes.Each test node is corresponding with a function point to be tested, and each test node comprises multiple marks pair.Mark is to comprising attribute-bit and content information, and wherein content information is the information of the test item corresponding for test node.
Automated test frame module 330 is connected with XML configuration file generation module 320 with acquisition module 310 respectively, be used for obtaining product to be tested and XML configuration file, and obtain corresponding test node and corresponding test item information according to XML configuration file, and according to test item information, test node is tested.
In one embodiment of the invention, test item comprises test file and/or registry entry.The information of test item comprises one or more in the path, quantity, type, file size, prefix name of test file, and one or more in registry-location, key assignments, key name, value content.
As shown in Figure 4, the proving installation based on XML configuration file 300 of the embodiment of the present invention also comprises test script module 340.Wherein, test script module 340 is connected with automated test frame module 330 with XML configuration file generation module 320 respectively, for XML configuration file is analyzed to obtain the test item that XML configuration file is corresponding, and detect test item and whether be deployed in corresponding position.
Particularly, test script module 340, according to the tag/text label pair of the hierarchical information of file and the bottom, is determined absolute path (registry-location), all filenames that will create (registry key, value, the full name of content), file size etc.; Automatically generate list, then script sequential processes, the demand of pressing are disposed; Support by the rule of specified node dispose,
For above-mentioned hierarchical structure and deployment design, 340 of test script modules need read and process according to certain rule information of carrying out.While importing <Trash>, <Track> or <Registry> as parameter into, script is with regard to All Files and registry key under corresponding node in energy automatic deployment xml file.If do not need to dispose so on a large scale, the tag that can only import sub-project into is as parameter, as: <Trash/WindowsPrereadingFilesGreatT.GreaT.G T, script only can be carried out the deployment of this sub-project like this.
It is easier for XML file is disposed, the script of test script module 340 is processed the function also with path intelligently parsing, dispose path for the file in XML file or registry entry object, script can automatic decision driving-disc, resolve the path of relative path, resolution system variable-definition etc.In the time writing XML file, can think that mode is filled in routing information easily according to user's oneself custom or its.
In the details that file and registry key are disposed, file type (content of registry value) is that support is multinomial, without newly-built new node, directly in <type></typeGrea tT.GreaT.GT, increase type to be disposed and distinguish with separator.As: <type>doc, txt, pdf</type>;
Script is also supported to increase more file and registry information in XML file, as the time, and can User Defined deployment time and do not use the invoked time of script.File attributes can be hidden, and abandons file permission rank also controlled.
Simultaneously, the attribute <Default> under <Trash/WindowsPrereadingFilesGreatT.GreaT.G T node can be considered and process to script, and this is the attribute of the application needs of the method for testing based on XML configuration file of the present invention.By the method for testing based on XML configuration file of the present invention, can according to application spread and enrich object properties, to be applicable to application demand.In a word, very abundant, flexibly of the extensibility of script, application prospect is very wide.
According to the proving installation based on XML configuration file of the embodiment of the present invention, the file and the registration table that adopt XML node mode organization need to dispose, each node is a product function point to be tested, needs deployment information with tag/text mark to recording.To all nodes, use same script file to process, thus file and registry keys one-touch, that generate accurately all needs deployment.In addition, the present invention creates initial XML configuration file by demand, and analyzing XML configuration file is carried out deployment task, is integrated in automated test frame.Safeguard xml file according to specific demand and conventional demand, thus the accuracy of raising the efficiency and disposing.
In addition, the innovative point of the method for testing based on XML configuration file of the present invention and advantage are also embodied in:
(1) node administration is convenient: a corresponding function point of node, only need increase new node while increasing new function point; While strengthening old function point, in regard to node, increase new child node.
(2) unified processing, intuitively quick: use script to call this XML configuration file, can carry out the operations such as file generated, file checking, absolute path modification, only revise script and just can play the effect of revising the corresponding results of all nodes; As increase quantity, the change target drive etc. of file and registry entry.
(3) supporting specified node processing, is not to use whole nodes, can arbitrarily specify use by testing requirement, uses the text of father node when appointment.
(4) function expands extremely simple: when function to be tested has variation, in indivedual nodes, increase new tag bits, then in the script of call XML configuration file, label is processed.
To sum up, the XML configuration file orderliness of the method for testing based on XML configuration file of the present invention is clear, logicality is strong, and deployment file and registry entry are rapidly, accurately.In addition, within 2 minutes, can complete all and map out the work.In the time that reality is used, have carry out fast, accuracy rate is high, easy maintenance special, improved very significantly the testing efficiency of product.
Any process of otherwise describing in process flow diagram or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in process flow diagram, represent or otherwise describe at this, for example, can be considered to the sequencing list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, device that storage, communication, propagation or transmission procedure use for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random-access memory (ram), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanning, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in storer and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.

Claims (12)

1. the method for testing based on expandable mark language XML configuration file, is characterized in that, comprises the following steps:
Obtain product to be tested, described product to be tested comprises multiple function points to be tested;
Form XML configuration file according to described multiple function points to be tested, wherein, described XML configuration file comprises multiple test nodes, wherein, each test node is corresponding with a described function point to be tested, and described each test node comprises multiple marks pair, described mark is to comprising attribute-bit and content information, and described content information is the information of the test item corresponding for described test node;
Automated test frame obtains described product to be tested and described XML configuration file; Described automated test frame obtains corresponding test node and corresponding test item information according to described XML configuration file; And
Described automated test frame is tested described test node according to described test item information.
2. the method for testing based on XML configuration file as claimed in claim 1, it is characterized in that, described each function point to be tested comprises multiple test positions, each described test point comprises a test father node and multiple test child node, wherein, each test child node is corresponding with a test position, and described each test child node comprises corresponding mark pair.
3. the method for testing based on XML configuration file as claimed in claim 2, is characterized in that, described test item comprises test file and/or registry entry.
4. the method for testing based on XML configuration file as claimed in claim 3, it is characterized in that, the information of described test item comprises one or more in the path, quantity, type, file size, prefix name of described test file, and one or more in registry-location, key assignments, key name, value content.
5. the method for testing based on XML configuration file as described in claim 1-4 any one, is characterized in that, also comprises:
Described automated test frame analyzes to obtain test item corresponding to described XML configuration file by test script to described XML configuration file;
Described automated test frame detects described test item by described test script and whether is deployed in corresponding position.
6. the method for testing based on XML configuration file as described in claim 1-5 any one, is characterized in that, described each test child node also comprises label, and wherein, described label comprises default label and increases performance test label.
7. the proving installation based on XML configuration file, is characterized in that, comprising:
Acquisition module, for obtaining product to be tested, described product to be tested comprises multiple function points to be tested;
XML configuration file generation module, for forming XML configuration file according to described multiple function points to be tested, wherein, described XML configuration file comprises multiple test nodes, wherein, each test node is corresponding with a described function point to be tested, and described each test node comprises multiple marks pair, described mark is to comprising attribute-bit and content information, and described content information is the information of the test item corresponding for described test node;
Automated test frame module, be used for obtaining described product to be tested and described XML configuration file, and obtain corresponding test node and corresponding test item information according to described XML configuration file, and according to described test item information, described test node is tested.
8. the proving installation based on XML configuration file as claimed in claim 7, it is characterized in that, described each function point to be tested comprises multiple test positions, each described test point comprises a test father node and multiple test child node, wherein, each test child node is corresponding with a test position, and described each test child node comprises corresponding mark pair.
9. the proving installation based on XML configuration file as claimed in claim 8, is characterized in that, described test item comprises test file and/or registry entry.
10. the proving installation based on XML configuration file as claimed in claim 9, it is characterized in that, the information of described test item comprises one or more in the path, quantity, type, file size, prefix name of described test file, and one or more in registry-location, key assignments, key name, value content.
11. proving installations based on XML configuration file as claimed in claim 7, is characterized in that, also comprise:
Test script module, for described XML configuration file being analyzed to obtain test item corresponding to described XML configuration file, and detects described test item and whether is deployed in corresponding position.
12. proving installations based on XML configuration file as claimed in claim 7, is characterized in that, described each test child node also comprises label, and wherein, described label comprises default label and increases performance test label.
CN201210591426.XA 2012-12-31 2012-12-31 XML (Extensive Markup Language) configuration file based test method and device Active CN103914370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210591426.XA CN103914370B (en) 2012-12-31 2012-12-31 XML (Extensive Markup Language) configuration file based test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210591426.XA CN103914370B (en) 2012-12-31 2012-12-31 XML (Extensive Markup Language) configuration file based test method and device

Publications (2)

Publication Number Publication Date
CN103914370A true CN103914370A (en) 2014-07-09
CN103914370B CN103914370B (en) 2017-05-10

Family

ID=51040072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210591426.XA Active CN103914370B (en) 2012-12-31 2012-12-31 XML (Extensive Markup Language) configuration file based test method and device

Country Status (1)

Country Link
CN (1) CN103914370B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227652A (en) * 2016-07-12 2016-12-14 合网络技术(北京)有限公司 Automated testing method and system
CN106301993A (en) * 2015-06-12 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus of test router
CN106502896A (en) * 2016-10-21 2017-03-15 武汉斗鱼网络科技有限公司 A kind of generation method of function test code and device
CN106855835A (en) * 2015-12-08 2017-06-16 中国航空工业第六八研究所 A kind of flight control system electrifying startup self-sensing method based on XML technology
CN106886421A (en) * 2017-04-07 2017-06-23 广东浪潮大数据研究有限公司 A kind of method that configuration file unification based on Python is replaced
CN107231337A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Method of calibration and device applied to financial message
CN107315681A (en) * 2017-06-09 2017-11-03 上海爱优威软件开发有限公司 Application program self-starting test system, medium and method
CN108399125A (en) * 2018-02-08 2018-08-14 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN108521350A (en) * 2018-03-16 2018-09-11 重庆邮电大学 A kind of industrial gateway equipment automatization test method driving script based on XML
CN109214172A (en) * 2018-09-20 2019-01-15 郑州云海信息技术有限公司 Obtain the method and device of active registration table key assignments name
CN109558290A (en) * 2018-11-12 2019-04-02 平安科技(深圳)有限公司 Server, automatic interface testing method and storage medium
CN109976828A (en) * 2019-03-12 2019-07-05 北京奇艺世纪科技有限公司 A kind of method and device of configuration file
CN110069277A (en) * 2019-03-16 2019-07-30 平安普惠企业管理有限公司 Using loading method, using online equipment, storage medium and device
CN111382437A (en) * 2020-03-03 2020-07-07 思客云(北京)软件技术有限公司 Defect detection method, device and computer readable storage medium based on configuration analysis engine
CN111930606A (en) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 Automatic generation method of data processing flow test report and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258600A1 (en) * 2010-04-19 2011-10-20 Microsoft Corporation Using a dsl for calling apis to test software
CN102567164A (en) * 2011-12-23 2012-07-11 中国科学院自动化研究所 Instruction set batch testing device and method for processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258600A1 (en) * 2010-04-19 2011-10-20 Microsoft Corporation Using a dsl for calling apis to test software
CN102567164A (en) * 2011-12-23 2012-07-11 中国科学院自动化研究所 Instruction set batch testing device and method for processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘晓隽: "基于XML的自动化测试系统技术研究及实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301993A (en) * 2015-06-12 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus of test router
CN106855835A (en) * 2015-12-08 2017-06-16 中国航空工业第六八研究所 A kind of flight control system electrifying startup self-sensing method based on XML technology
CN107231337A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Method of calibration and device applied to financial message
CN107231337B (en) * 2016-03-25 2020-05-22 阿里巴巴集团控股有限公司 Verification method and device applied to financial messages
CN106227652B (en) * 2016-07-12 2019-05-28 合一网络技术(北京)有限公司 Automated testing method and system
CN106227652A (en) * 2016-07-12 2016-12-14 合网络技术(北京)有限公司 Automated testing method and system
CN106502896A (en) * 2016-10-21 2017-03-15 武汉斗鱼网络科技有限公司 A kind of generation method of function test code and device
CN106502896B (en) * 2016-10-21 2019-08-23 武汉斗鱼网络科技有限公司 A kind of generation method and device of function test code
CN106886421A (en) * 2017-04-07 2017-06-23 广东浪潮大数据研究有限公司 A kind of method that configuration file unification based on Python is replaced
CN107315681A (en) * 2017-06-09 2017-11-03 上海爱优威软件开发有限公司 Application program self-starting test system, medium and method
CN108399125A (en) * 2018-02-08 2018-08-14 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN108521350A (en) * 2018-03-16 2018-09-11 重庆邮电大学 A kind of industrial gateway equipment automatization test method driving script based on XML
CN109214172A (en) * 2018-09-20 2019-01-15 郑州云海信息技术有限公司 Obtain the method and device of active registration table key assignments name
CN109558290A (en) * 2018-11-12 2019-04-02 平安科技(深圳)有限公司 Server, automatic interface testing method and storage medium
CN109558290B (en) * 2018-11-12 2023-06-02 平安科技(深圳)有限公司 Server, interface automatic test method and storage medium
CN109976828A (en) * 2019-03-12 2019-07-05 北京奇艺世纪科技有限公司 A kind of method and device of configuration file
CN110069277A (en) * 2019-03-16 2019-07-30 平安普惠企业管理有限公司 Using loading method, using online equipment, storage medium and device
CN111930606A (en) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 Automatic generation method of data processing flow test report and related device
CN111382437A (en) * 2020-03-03 2020-07-07 思客云(北京)软件技术有限公司 Defect detection method, device and computer readable storage medium based on configuration analysis engine

Also Published As

Publication number Publication date
CN103914370B (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN103914370A (en) XML (Extensive Markup Language) configuration file based test method and device
CN110888808B (en) Web intelligent test method based on knowledge graph
CN104598376B (en) The layering automatization test system and method for a kind of data-driven
CN108845940B (en) Enterprise-level information system automatic function testing method and system
CN101770423B (en) Test data generation method and test system
CN102426519B (en) Linked data-based multiplexing method of business process execution language (BPEL) templates and services, and system thereof
US9514164B1 (en) Selectively migrating data between databases based on dependencies of database entities
CN106708891A (en) Network management data synchronizing method and device
CN103268226A (en) Test script file generation method and device
CN104679519A (en) Method and device for acquiring functions of graphic user interface software
CN105279089B (en) A kind of method and device for obtaining page elements
CN104657274A (en) Method and device for testing software interface
US20200394055A1 (en) System and method for providing a configurable user interface using a self-describing data system
CN104516813A (en) Method and device for selecting testing node of web page
CN104484358A (en) Process template displaying method and system
CN103761186A (en) Plane cockpit display system server software testing method conforming to ARINC661 standard
CN101814064B (en) Establishment method of report template, report generation method and report system
US9665668B2 (en) Configuring a dispatching rule for execution in a simulation
CN101673200A (en) Method and device for detecting user input model
CN102999556B (en) Text search method, device and terminal device
CN105354671A (en) Universal configuration management system and enterprise-level information system comprising same
CN104881455B (en) A kind of architectural difference processing method and system based on MYSQL
CN106155665A (en) Accordance puts to the proof system and method
EP3001330A1 (en) Data processing device and method
Cleland-Huang Thinking about quoins: strategic traceability of architecturally significant requirements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant