CN110334024A - A kind of testing case management based on tree, device and terminal - Google Patents

A kind of testing case management based on tree, device and terminal Download PDF

Info

Publication number
CN110334024A
CN110334024A CN201910577577.1A CN201910577577A CN110334024A CN 110334024 A CN110334024 A CN 110334024A CN 201910577577 A CN201910577577 A CN 201910577577A CN 110334024 A CN110334024 A CN 110334024A
Authority
CN
China
Prior art keywords
node
default
test case
tree
data
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
CN201910577577.1A
Other languages
Chinese (zh)
Other versions
CN110334024B (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.)
Hangzhou Yu Hang Science And Technology Co Ltd
Zhejiang Geely Holding Group Co Ltd
Original Assignee
Hangzhou Yu Hang Science And Technology Co Ltd
Zhejiang Geely Holding Group 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 Hangzhou Yu Hang Science And Technology Co Ltd, Zhejiang Geely Holding Group Co Ltd filed Critical Hangzhou Yu Hang Science And Technology Co Ltd
Priority to CN201910577577.1A priority Critical patent/CN110334024B/en
Publication of CN110334024A publication Critical patent/CN110334024A/en
Application granted granted Critical
Publication of CN110334024B publication Critical patent/CN110334024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a kind of testing case management based on tree, device and terminal, the method includes: acquisition test case file;Obtain data store strategy and data space;The test case file is read, to establish node tree, and the node tree is recorded in the data space according to the data store strategy;The node tree is read, splice point and the corresponding data of the splice point are obtained;According to the splice point, the corresponding data of the splice point, test case title and test case step are obtained based on the default splicing rule;Leaf node in node tree is directly carried out being spliced to form test case title and test case step, is reduced cost of labor and improve transfer efficiency by the present invention by the node tree of building.

Description

A kind of testing case management based on tree, device and terminal
Technical field
The present invention relates to the technical field of data processing of big data more particularly to a kind of test cases based on tree Management method, device and terminal.
Background technique
When Test Sample Design, needs to disassemble a complete demand, split into module and smaller module; Again from each dimension, such as basic function, scene workflow, control life cycle, abnormal scene etc. to small after the completion of dismantling Function point is split again;
Technical solution general at present is first to be divided by big module, then begins to the title for writing test case, with And the step of test case.When test case is uploaded to test case management platform from open management (xmind) file, people Work writes conversion, needs to take considerable time.
Summary of the invention
In order to solve the above-mentioned technical problem, point in view of the above problems, the invention discloses the test use based on tree Example management method directly carries out the leaf node in node tree to be spliced to form test case title by the node tree of building With test case step, reduces cost of labor and improve transfer efficiency.
In order to achieve the above object of the invention, the present invention provides a kind of testing case management based on tree, The method includes:
Obtain test case file;
Obtain data store strategy and data space;
The test case file is read, to establish node tree, and according to the data store strategy by the node tree It is recorded in the data space;
The node tree is read, splice point and the corresponding data of the splice point are obtained;
According to the splice point, the corresponding data of the splice point, test case is obtained based on the default splicing rule Title and test case step.
Further, the acquisition test case file includes:
Obtain the management file of the opening comprising test case;
The management file of the opening is decompressed, to obtain the test case text using extensible markup language format record Part.
Further, described to read the test case file, to establish node tree, and according to the data store strategy The node tree is recorded in the data space and includes:
The test case file is read, to obtain node data, the node data includes root node data and each The data of a leaf node;
The node data is recorded in the data space according to the data store strategy, to generate node Tree.
Further, described to read the node tree, obtain splice point and the corresponding data of the splice point, comprising:
The test function node on the node tree is obtained, the test function node data is the leaf with preset mark Child node;
According to default first leaf node, the test function node, default the in the same branch of the node tree Two leaf nodes obtain default first leaf node, the test function node, the default corresponding number of second leaf node According to;
By default first leaf node, the test function node, default second leaf node, be located at it is described The test function node and described is made and be located to node between default first leaf node and the test function node Node between default second leaf node is splice point.
Further, described according to the splice point, the corresponding data of the splice point, based on the default splicing rule Then obtain test case title and test case step, comprising:
Capture is according to default first leaf node, the test function node and is located at default first leaf Node between node and the test function node and default first leaf node, the test function node with And the corresponding data of node between default first leaf node and the test function node;
According to described according to default first leaf node, the test function node and positioned at described default first Node and default first leaf node, the test function section between leaf node and the test function node Point and the corresponding data of node between default first leaf node and the test function node, based on default Splicing rule splicing obtains test case title.
Further, described according to the splice point, the corresponding data of the splice point, based on the default splicing rule Then obtain test case title and test case step, further includes:
It captures the test function node, default second leaf node and is located at the test function node and institute State node and the test function node, default second leaf node and position between default second leaf node The corresponding data of node between the test function node and default second leaf node;
According to the test function node, default second leaf node and it is located at the test function node and institute State node and the test function node, default second leaf node and position between default second leaf node The corresponding data of node between the test function node and default second leaf node, based on default splicing rule Splicing obtains test case step.
Further, described according to the splice point, the corresponding data of the splice point, based on the default splicing rule After acquisition test case title and test case step, further includes:
Obtain test case module and test case type;
The test case module, the test case type and the node data information are imported into preset electronic table Lattice, to obtain electronic form file.
The present invention provides a kind of test case management device based on tree, the device includes:
File acquisition module, for obtaining test case file;
First obtains module, for obtaining data store strategy and data space;
Document processing module to establish node tree, and is stored for reading the test case file according to the data The node tree is recorded in the data space by strategy;
Second obtains module, for reading the node tree, obtains splice point and the corresponding data of the splice point;
Data processing module, for being based on the default splicing according to the splice point, the corresponding data of the splice point Rule obtains test case title and test case step.
Further, further includes:
Third obtains module, for obtaining test case module and test case type;
Data import modul, for by the test case module, the test case type and the number of nodes it is believed that Breath imports preset electronic table, to obtain electronic form file.
The test case management terminal based on tree that the present invention provides a kind of, the terminal include processor and deposit Reservoir;
The processor is adapted for carrying out one or one or more instruction;
The memory, be stored with one or one or more instruction, described one or one or more be suitable for the processor It loads and executes to realize the testing case management as described above based on tree.
The implementation of the embodiments of the present invention has the following beneficial effects:
Testing case management disclosed by the invention based on tree directly will section by the node tree of building Point tree in leaf node carry out being spliced to form test case title and test case step, reduce cost of labor improve turn Change efficiency.
Detailed description of the invention
In order to illustrate more clearly of the testing case management based on tree, device and end of the present invention End, below will be briefly described attached drawing required for embodiment, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of process signal of testing case management based on tree provided in an embodiment of the present invention Figure;
Fig. 2 is a kind of flow diagram for obtaining splicing point methods provided in an embodiment of the present invention;
Fig. 3 is a kind of example schematic diagram of node tree provided in an embodiment of the present invention;
Fig. 4 is a kind of example schematic diagram of electronic form file provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the test case management device based on tree provided in an embodiment of the present invention Figure;
Fig. 6 is a kind of structural representation of the test case management terminal based on tree provided in an embodiment of the present invention Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its His embodiment, shall fall within the protection scope of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or server need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
Present invention could apply to when design test case, lead to the node tree using open management file generated, from one A node hierarchy Chai Xie not arrive the granularity of individual feature point, single dimension, according to the class of segmentation, by leaf node combination producing One complete test case title.
Referring to FIG. 1, it show a kind of test case management side based on tree provided in an embodiment of the present invention The flow diagram of method, present description provides the method operating procedures as described in embodiment or flow chart, but based on conventional or Person may include more or less operating procedure without creative labor.The step of enumerating in embodiment sequence is only crowd One of multi-step execution sequence mode, do not represent it is unique execute sequence, can be by practice when design test case It is executed according to embodiment or method shown in the drawings sequence.It is specific as shown in Figure 1, which comprises
S101 obtains test case file;
It should be noted that obtaining test case file includes: in this specification embodiment
Obtain the management file of the opening comprising test case;
In this specification embodiment, the management file of the opening can be xmind formatted file, specifically, xmind Formatted file is substantially the structure composition by XML+ZIP, is a kind of file format of opening, and user can be opened by XMind The API put develops plug-in unit for it or carries out secondary development.
The management file of the opening is decompressed, to obtain the test case text using extensible markup language format record Part.
In this specification embodiment, the management file for decompressing the opening be can be in decompression xmind formatted file Zip file, to obtain the test case file using extensible markup language format record;Specifically, the extensible markup Language format can be xml formatted file.
S103 obtains data store strategy and data space;
In this specification embodiment, data store strategy can be preset data store strategy, such as can be basis Preset data memory topology saves data;It is empty that data space can be preset storage on test case management platform Between, it such as can be the data space in the java program of foundation.
S105 reads the test case file, to establish node tree, and according to the data store strategy by the section Point tree is recorded in the data space;
It is described to read the test case file in this specification embodiment, to establish node tree, and according to the number The node tree is recorded in the data space according to storage strategy and includes:
S1 reads the test case file, and to obtain node data, the node data includes root node data and every The data of one leaf node;
In this specification embodiment, mapping use-case file can be read by the way of circular recursion (such as xml format Test case file);Specifically, the text information and parent information of the test case file of xml format can be read;It is saved Point data;
The node data is recorded in the data space by S2 according to the data store strategy, to generate Node tree.
As shown in figure 3, node data can be saved according to preset data memory topology in this specification embodiment, It generates and topologically corresponding node tree.
In one preferred embodiment of this specification, when reading xml formatted file, first topic is read first, so After begin to use recursive method, read title the and children node in topic: finally storing the result into Topic In, then by Topic the assignment id and parent_id of storage;
Specifically, reading first topic, include the following steps:
When reading title node, title is stored in TopicTree;
When reading children node, because children node is recursive node, start that recursion method is called to read The children of reading is stored in topicTreeList by children,
Specifically, when recurrence reads children node
Include topics in children node, includes the topic of a column in topics, be successively read topic;Its In, when reading the title node in topic structure, title is stored in TopicTree;
When reading the children node in topic structure, recursion method is called;Last result is stored in In Topic.
By Topic the assignment id and parent_id of storage, specifically, as follows:
First by father node assignment id and parent_id, other leaf nodes carry out assignment using recursion method.
S107 reads the node tree, obtains splice point and the corresponding data of the splice point;
As shown in Fig. 2, Fig. 2 is a kind of acquisition splice point side provided in an embodiment of the present invention in this specification embodiment The flow diagram of method;Specifically, as follows:
S201, obtains the test function node on the node tree, and the test function node data is with pre- bidding The leaf node of note;
In this specification embodiment, node tree can be read using recursive method, to obtain the test on node tree Functional node, the test function node can be the leaf node with Chinese bracket mark.
S203, according to default first leaf node, the test function node, pre- in the same branch of the node tree If the second leaf node, it is corresponding to obtain default first leaf node, the test function node, default second leaf node Data;
In this specification embodiment, default first leaf node can be adjacent with father node on node tree first Leaf node, default second leaf node can be the last layer leaf node with the default same branch of first leaf node;
Specifically, default first leaf node, the test function node, default the can be read using recursive method Two leaf nodes, preset node between the first leaf node and the test function node and the test function node with Node between default second leaf node, to obtain default first leaf node, the test function node, default second leaf Child node is preset node and the test function node between the first leaf node and the test function node and is preset The corresponding data of node between second leaf node.
S205, by default first leaf node, the test function node, default second leaf node, position The test function node is made and be located to node between default first leaf node and the test function node Node between default second leaf node is splice point.
In this specification embodiment, by default first leaf node, the test function node, default second leaf section Point presets node and the test function node and default second between the first leaf node and the test function node The corresponding data of node between leaf node are as the corresponding data of splice point.
S109 is tested according to the splice point, the corresponding data of the splice point based on the default splicing rule Use-case title and test case step;
It is described according to the splice point, the corresponding data of the splice point in this specification embodiment, based on described pre- If splicing rule obtains test case title and test case step includes:
A, capture is according to default first leaf node, the test function node and is located at default first leaf Node and default first leaf node, the test function node between child node and the test function node And the corresponding data of node between default first leaf node and the test function node;
B according to default first leaf node, the test function node and is located at described default the according to described Node and default first leaf node, the test function between one leaf node and the test function node Node and the corresponding data of node between default first leaf node and the test function node, based on pre- If splicing rule splicing obtains test case title.
In this specification embodiment, the default splicing rule, which can be, spells splice point according to the sequence of setting It connects, such as can be the first leaf node, the section between default first leaf node and the test function node Point and the test function node, are arranged successively according to precedence, by the first leaf node, are located at default first leaf The corresponding data of node and the test function node between child node and the test function node are stitched together To test case title.
It is described according to the splice point, the corresponding data of the splice point in this specification embodiment, based on described pre- If splicing rule obtains test case title and test case step further include:
C, capture the test function node, default second leaf node and be located at the test function node with Node and the test function node, default second leaf node between default second leaf node and The corresponding data of node between the test function node and default second leaf node;
D, according to the test function node, default second leaf node and be located at the test function node with Node and the test function node, default second leaf node between default second leaf node and The corresponding data of node between the test function node and default second leaf node, based on default splicing rule Then splicing obtains test case step.
In this specification embodiment, in this specification embodiment, the default splicing rule be can be according to setting Sequence splice point is spliced, such as can be the test function node, be located at the test function node with it is described pre- If node and default second leaf node between the second leaf node, are arranged successively, by the test according to precedence Functional node, node and default second leaf between the test function node and default second leaf node The corresponding data of node are stitched together to obtain test case step.The present invention combines leaf node according to the class of segmentation A complete test case title is generated, is met from a node, classification Chai Xie not arrive the grain of individual feature point, single dimension Degree, reduces cost of labor and improves transfer efficiency.
It is described according to the splice point, the corresponding data of the splice point in this specification embodiment, based on described pre- If splicing rule obtains after test case title and test case step, further includes:
S111 obtains test case module and test case type;
In this specification embodiment, the test case module can be buddhist road module No., i.e. test case module exists Abdicate the title on road;
The test case module, the test case type and the node data information are imported default electricity by S113 Sub-table, to obtain electronic form file.
As shown in figure 4, electrical form can be excel table in one preferred embodiment of this specification, it will be described Test case module, the test case type and the node data information are according to preset test case template, write-in Excel table, and directly export;Derived excel file can be used directly on test case management platform.Of the invention this Kind method, so that the fining degree of test case granularity is higher, therefore the extent for multiplexing of test case is also higher;Further drop Low cost of labor.
The embodiment of the testing case management based on tree, device and the terminal that are provided by aforementioned present invention can See, the embodiment of the present invention obtains test case file;Obtain data store strategy and data space;The test is read to use The node tree to establish node tree, and is recorded in the data space according to the data store strategy by example text part It is interior;The node tree is read, splice point and the corresponding data of the splice point are obtained;According to the splice point, the splicing The corresponding data of point obtain test case title and test case step based on the default splicing rule;Obtain test case Module and test case type;The test case module, the test case type and the node data information are imported Preset electronic table, to obtain electronic form file;The technical solution provided using this specification embodiment, passes through the section of building Point tree, the leaf node in node tree is directly carried out being spliced to form test case title and test case step, reduce people Work cost transfer efficiency.
The embodiment of the invention also provides a kind of test case management devices based on tree, as shown in figure 3, its institute It is shown as a kind of structural schematic diagram of test case management device based on tree provided in an embodiment of the present invention;Specifically, The device includes:
File acquisition module 510, for obtaining test case file;
First obtains module 520, for obtaining data store strategy and data space;
Document processing module 530, for reading the test case file, to establish node tree, and according to the data The node tree is recorded in the data space by storage strategy;
Second obtains module 540, for reading the node tree, obtains splice point and the corresponding number of the splice point According to;
Data processing module 550, for being preset based on described according to the splice point, the corresponding data of the splice point Splicing rule obtains test case title and test case step.
In this specification embodiment, the file acquisition module 510 includes:
First acquisition unit, for obtaining the management file of the opening comprising test case;
Decompression units are recorded with obtaining using extensible markup language format for decompressing the management file of the opening Test case file.
In this specification embodiment, the document processing module 530 includes:
First reading unit, for reading the test case file, to obtain node data, the node data includes The data of root node data and each leaf node;
First recording unit is stored for the node data to be recorded in the data according to the data store strategy In space, to generate node tree.
In this specification embodiment, the second acquisition module 540 includes:
Second acquisition unit, for obtaining the test function node on the node tree, the test function node data For the leaf node with preset mark;
Third acquiring unit, default first leaf node, the survey in the same branch according to the node tree Functional node, default second leaf node are tried, default first leaf node, the test function node, default the are obtained The corresponding data of two leaf nodes;
Execution unit, for presetting the first leaf node, the test function node, default second leaf for described The test function is made and are located to node, the node between default first leaf node and the test function node Node between energy node and default second leaf node is splice point.
In this specification embodiment, the data processing module 550 includes:
First capturing unit, for capturing according to default first leaf node, the test function node and position Node and default first leaf node between default first leaf node and the test function node, The test function node and corresponding with the node between the test function node positioned at default first leaf node Data;
First concatenation unit, for according to it is described according to default first leaf node, the test function node with And node and the default first leaf section between default first leaf node and the test function node Point, the test function node and the node pair between default first leaf node and the test function node The data answered obtain test case title based on default splicing rule splicing.
In this specification embodiment, the data processing module 550 further include:
Second capturing unit, for capturing the test function node, default second leaf node and being located at institute State node between test function node and default second leaf node and the test function node, described default Second leaf node and the corresponding number of node between the test function node and default second leaf node According to;
Second concatenation unit, for according to the test function node, default second leaf node and positioned at institute State node between test function node and default second leaf node and the test function node, described default Second leaf node and the corresponding number of node between the test function node and default second leaf node According to obtaining test case step based on default splicing rule splicing.
In this specification embodiment, further includes:
Third obtains module, for obtaining test case module and test case type;
Data import modul, for by the test case module, the test case type and the number of nodes it is believed that Breath imports preset electronic table, to obtain electronic form file.
The test case management terminal based on tree that the embodiment of the invention provides a kind of, which includes processor And memory;
The processor is adapted for carrying out one or one or more instruction;
The memory, be stored with one or one or more instruction, described one or one or more be suitable for the processor It loads and executes to realize the testing case management based on tree as described in above method embodiment.
Memory can be used for storing software program and module, and processor is stored in the software program of memory by operation And module, thereby executing various function application and data processing.Memory can mainly include storing program area and storage number According to area, wherein storing program area can application program needed for storage program area, function etc.;Storage data area can store basis The equipment uses created data etc..In addition, memory may include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory can also include Memory Controller, to provide access of the processor to memory.
Fig. 6 is a kind of structural representation of the test case management terminal based on tree provided in an embodiment of the present invention Figure, should the internal structure of test case management terminal based on tree may include but be not limited to: processor, network interface and Memory, wherein processor, network interface and the memory in the test case management terminal based on tree can pass through Bus or other modes connect, in Fig. 6 shown in this specification embodiment for being connected by bus.
Wherein, processor (or CPU (Central Processing Unit, central processing unit)) is based on tree-shaped knot The calculating core and control core of the test case management terminal of structure.Network interface optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI, mobile communication interface).Memory (Memory) is the test case pipe based on tree The memory device in terminal is managed, for storing program and data.It is understood that memory herein can be high-speed RAM Equipment is stored, non-labile storage equipment (non-volatile memory), for example, at least a disk storage are also possible to Equipment;It optionally can also be that at least one is located remotely from the storage device of aforementioned processor.Memory provides memory space, should Memory space stores the operating system of the test case management terminal based on tree, it may include but be not limited to: Windows System (a kind of operating system), Linux (a kind of operating system) etc., the present invention is to this and is not construed as limiting;Also, in the storage It also houses and is suitable for by one or more than one instructions that processor loads and executes in space, these instructions can be one Or more than one computer program (including program code).In this specification embodiment, processor loads and executes storage One stored in device or one or more instruction, to realize the test case based on tree of above method embodiment offer Management method.
The embodiments of the present invention also provide a kind of storage medium, the storage medium be may be disposed at based on tree The test case pipe for realizing one of embodiment of the method based on tree is saved among test case management terminal Relevant at least one instruction of reason method, at least a Duan Chengxu, code set or instruction set, at least one instruction, this at least one Duan Chengxu, the code set or instruction set can be loaded and be executed by the processor of electronic equipment to realize that above method embodiment provides The testing case management based on tree.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
The embodiment of the testing case management based on tree, device and the terminal that are provided by aforementioned present invention can See, the embodiment of the present invention obtains test case file;Specifically, including: the management file for obtaining the opening comprising test case; The management file of the opening is decompressed, to obtain the test case file using extensible markup language format record.Obtain number According to storage strategy and data space;The test case file is read, to establish node tree, and is stored according to the data The node tree is recorded in the data space by strategy;Specifically, include: to read the test case file, with Node data is obtained, the node data includes the data of root node data He each leaf node;It is deposited according to the data The node data is recorded in the data space by storage strategy, to generate node tree.The node tree is read, is obtained Splice point and the corresponding data of the splice point;Specifically, including: the test function node obtained on the node tree, institute Stating test function node data is the leaf node with preset mark;According to default the in the same branch of the node tree One leaf node, the test function node, default second leaf node obtain default first leaf node, the survey Try functional node, the default corresponding data of second leaf node;By default first leaf node, the test function section Point, default second leaf node, the node between default first leaf node and the test function node Make and the node between the test function node and default second leaf node is splice point.According to the spelling Contact, the corresponding data of the splice point obtain test case title and test case step based on the default splicing rule; Specifically, including: capture according to default first leaf node, the test function node and positioned at described default first Node and default first leaf node, the test function section between leaf node and the test function node Point and the corresponding data of node between default first leaf node and the test function node;According to described According to default first leaf node, the test function node and it is located at default first leaf node and the survey It tries the node between functional node and default first leaf node, the test function node and is located at described pre- If the corresponding data of node between the first leaf node and the test function node, are obtained based on default splicing rule splicing Test case title.Further include: it captures the test function node, default second leaf node and is located at the test Node and the test function node, default second leaf between functional node and default second leaf node Child node and the corresponding data of node between the test function node and default second leaf node;According to The test function node, default second leaf node and it is located at the test function node and default second leaf Node and the test function node between child node, default second leaf node and it is located at the test function Can the corresponding data of node between node and default second leaf node, spliced based on default splicing rule and tested Use-case step.Obtain test case module and test case type;By the test case module, the test case type and The node data information imports preset electronic table, to obtain electronic form file;It is provided using this specification embodiment Technical solution, by the node tree of building, according to the class of segmentation, by one complete test case of leaf node combination producing Title meets from a node, and classification Chai Xie not arrive the granularity of individual feature point, single dimension, reduce cost of labor promotion Transfer efficiency;And make the fining degree of test case granularity higher, therefore the extent for multiplexing of test case is also higher;Into One step reduces cost of labor.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments. And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and For server example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side The part of method embodiment illustrates.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly Sharp range, therefore equivalent changes made in accordance with the claims of the present invention, are still within the scope of the present invention.

Claims (10)

1. a kind of testing case management based on tree, it is characterised in that: the method includes:
Obtain test case file;
Obtain data store strategy and data space;
The test case file is read, to establish node tree, and is recorded the node tree according to the data store strategy In the data space;
The node tree is read, splice point and the corresponding data of the splice point are obtained;
According to the splice point, the corresponding data of the splice point, test case title is obtained based on the default splicing rule With test case step.
2. the testing case management according to claim 1 based on tree, it is characterised in that: the acquisition is surveyed Trying out example text part includes:
Obtain the management file of the opening comprising test case;
The management file of the opening is decompressed, to obtain the test case file using extensible markup language format record.
3. the testing case management based on tree stated according to claim 1, it is characterised in that: described in the reading The node tree to establish node tree, and is recorded in the data according to the data store strategy and deposited by test case file It stores up in space and includes:
The test case file is read, to obtain node data, the node data includes root node data and each leaf The data of child node;
The node data is recorded in the data space according to the data store strategy, to generate node tree.
4. the testing case management according to claim 1 based on tree, it is characterised in that: the reading institute Node tree is stated, splice point and the corresponding data of the splice point are obtained, comprising:
The test function node on the node tree is obtained, the test function node data is the leaf section with preset mark Point;
According to default first leaf node, the test function node, default second leaf in the same branch of the node tree Child node obtains default first leaf node, the test function node, the default corresponding data of second leaf node;
By default first leaf node, the test function node, default second leaf node, it is located at described preset The test function node and described default is made and be located to node between first leaf node and the test function node Node between second leaf node is splice point.
5. the testing case management according to claim 4 based on tree, it is characterised in that: described according to institute Splice point, the corresponding data of the splice point are stated, test case title and test case are obtained based on the default splicing rule Step, comprising:
Capture is according to default first leaf node, the test function node and is located at default first leaf node Node and default first leaf node, the test function node and position between the test function node The corresponding data of node between default first leaf node and the test function node;
According to described according to default first leaf node, the test function node and positioned at default first leaf Node between node and the test function node and default first leaf node, the test function node with And the corresponding data of node between default first leaf node and the test function node, based on default splicing Rule splicing obtains test case title.
6. the testing case management according to claim 4 based on tree, it is characterised in that: described according to institute Splice point, the corresponding data of the splice point are stated, test case title and test case are obtained based on the default splicing rule Step, further includes:
Capture the test function node, default second leaf node and be located at the test function node with it is described pre- If node and the test function node between the second leaf node, default second leaf node and being located at institute State the corresponding data of node between test function node and default second leaf node;
According to the test function node, default second leaf node and be located at the test function node with it is described pre- If node and the test function node between the second leaf node, default second leaf node and being located at institute The corresponding data of node between test function node and default second leaf node are stated, based on default splicing rule splicing Obtain test case step.
7. the testing case management based on tree stated according to claim 1, it is characterised in that: described according to Splice point, the corresponding data of the splice point obtain test case title and test case step based on the default splicing rule After rapid, further includes:
Obtain test case module and test case type;
The test case module, the test case type and the node data information are imported into preset electronic table, with Obtain electronic form file.
8. a kind of test case management device based on tree, it is characterised in that: the device includes:
File acquisition module, for obtaining test case file;
First obtains module, for obtaining data store strategy and data space;
Document processing module, for reading the test case file, to establish node tree, and according to the data store strategy The node tree is recorded in the data space;
Second obtains module, for reading the node tree, obtains splice point and the corresponding data of the splice point;
Data processing module, for being based on the default splicing rule according to the splice point, the corresponding data of the splice point Obtain test case title and test case step.
9. the test case management device according to claim 8 based on tree, it is characterised in that: further include:
Third obtains module, for obtaining test case module and test case type;
Data import modul, for leading the test case module, the test case type and the node data information Enter preset electronic table, to obtain electronic form file.
10. a kind of test case management terminal based on tree, it is characterised in that: the terminal includes processor and storage Device;
The processor is adapted for carrying out one or one or more instruction;
The memory, be stored with one or one or more instruction, described one or one or more be suitable for the processor load And it executes to realize the testing case management as claimed in any one of claims 1 to 7 based on tree.
CN201910577577.1A 2019-06-28 2019-06-28 Test case management method, device and terminal based on tree structure Active CN110334024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577577.1A CN110334024B (en) 2019-06-28 2019-06-28 Test case management method, device and terminal based on tree structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910577577.1A CN110334024B (en) 2019-06-28 2019-06-28 Test case management method, device and terminal based on tree structure

Publications (2)

Publication Number Publication Date
CN110334024A true CN110334024A (en) 2019-10-15
CN110334024B CN110334024B (en) 2023-08-08

Family

ID=68144598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910577577.1A Active CN110334024B (en) 2019-06-28 2019-06-28 Test case management method, device and terminal based on tree structure

Country Status (1)

Country Link
CN (1) CN110334024B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559318A (en) * 2020-11-02 2021-03-26 浙江诺诺网络科技有限公司 Test case generation method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
CN105893254A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Test case input method and device
US20180089070A1 (en) * 2016-09-26 2018-03-29 International Business Machines Corporation White box testing
US20180089058A1 (en) * 2016-09-26 2018-03-29 Cognizant Technology Solutions India Pvt. Ltd. Method and system for analyzing test cases for automatically generating optimized business models
US20180089066A1 (en) * 2016-09-23 2018-03-29 American Express Travel Related Services Company, Inc. Software testing management
CN109726125A (en) * 2018-12-21 2019-05-07 郑州云海信息技术有限公司 The processing method and processing device of test case in a kind of mind map
CN109726113A (en) * 2018-08-17 2019-05-07 平安普惠企业管理有限公司 Method for generating test case, unit and computer readable storage medium
CN109740122A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The conversion method and device of mind map use-case file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
CN105893254A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Test case input method and device
US20180089066A1 (en) * 2016-09-23 2018-03-29 American Express Travel Related Services Company, Inc. Software testing management
US20180089070A1 (en) * 2016-09-26 2018-03-29 International Business Machines Corporation White box testing
US20180089058A1 (en) * 2016-09-26 2018-03-29 Cognizant Technology Solutions India Pvt. Ltd. Method and system for analyzing test cases for automatically generating optimized business models
CN109726113A (en) * 2018-08-17 2019-05-07 平安普惠企业管理有限公司 Method for generating test case, unit and computer readable storage medium
CN109740122A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The conversion method and device of mind map use-case file
CN109726125A (en) * 2018-12-21 2019-05-07 郑州云海信息技术有限公司 The processing method and processing device of test case in a kind of mind map

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SUN-OF-SUN: "XmindToExcelJava", 《HTTPS://GITHUB.COM/SUN-OF-SUN/XMINDTOEXCELJAVA/TREE/53B3747CD48C005BE182C9B3522D0DBBD777C3FE》 *
SUN-OF-SUN: "XmindToExcelJava", 《HTTPS://GITHUB.COM/SUN-OF-SUN/XMINDTOEXCELJAVA/TREE/53B3747CD48C005BE182C9B3522D0DBBD777C3FE》, 14 February 2019 (2019-02-14), pages 1 - 19 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559318A (en) * 2020-11-02 2021-03-26 浙江诺诺网络科技有限公司 Test case generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110334024B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN103970737B (en) A kind of data configuration method and apparatus
CN106681698B (en) Dynamic list generation method and device
CN104360865A (en) Serialization method, deserialization method and related equipment
CN106354843A (en) Web crawler system and method
CN109885476A (en) Automated testing method and device, terminal and computer readable storage medium
CN105404757A (en) Intelligent transformer station SCD file standardization degree verification method
CN104391731B (en) A kind of edit methods unrelated with data type based on C#
KR101843333B1 (en) The Monitoring System for Photovoltaic Power Generation and the Method Thereof
CN113094355A (en) Model instantiation method, device, equipment and medium based on domestic communication protocol
CN110334024A (en) A kind of testing case management based on tree, device and terminal
CN103942140A (en) Automatic testing program conversion method
CN106951373A (en) A kind of automated testing method and device that O&M software is moved for power network webmaster
CN105988863A (en) Event processing method and device
CN106802928A (en) Power network historical data management method and its system
CN101859293B (en) Electronic reader and edition document storage method
CN116860860B (en) All-engineering data streaming method and equipment based on substation electrical equipment model
CN105242958A (en) Virtual testing system and HLA simulation system data exchange method
CN104102411B (en) A kind of method for editing text and text editing apparatus
CN103020186B (en) A kind of document retrieval method based on embedded device, device and equipment
CN104598464B (en) A kind of information processing method and electronic equipment
CN109254918A (en) Code tester system based on path difference
CN110659393A (en) Method and system for generating xml code
CN105793842B (en) Conversion method and device between serialized message
CN110427366A (en) Index synchronous method, apparatus and system based on the phoenix transformation old system of hbase
CN110989975A (en) Avionics system functional requirement generation method, system and storage medium

Legal Events

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