CN106033389A - A test use case display method and device - Google Patents

A test use case display method and device Download PDF

Info

Publication number
CN106033389A
CN106033389A CN201510107799.9A CN201510107799A CN106033389A CN 106033389 A CN106033389 A CN 106033389A CN 201510107799 A CN201510107799 A CN 201510107799A CN 106033389 A CN106033389 A CN 106033389A
Authority
CN
China
Prior art keywords
node
mind map
picture
leafy
test case
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
CN201510107799.9A
Other languages
Chinese (zh)
Other versions
CN106033389B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510107799.9A priority Critical patent/CN106033389B/en
Publication of CN106033389A publication Critical patent/CN106033389A/en
Application granted granted Critical
Publication of CN106033389B publication Critical patent/CN106033389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A test use case display method comprises the steps of reading XML data of a mind map of test use cases, information carried by the path from a root node to each leaf node in the mind map forming one test use case; generating a mind map picture with an appointed height according to the XML data, wherein paths in the mind map picture diffuse towards a single side from the root node and the leaf nodes are arranged uniformly in the longitudinal direction; opening a specified EXCEL table which contains a use case column used for recording test use cases and a result column used for recording test results; adjusting the width of the use case column to adapt to the width of the mind map picture and inserting the mind map picture into the use case column and adjusting the row height of the EXCEL table to align each row of the lateral side of the mind map picture with one leaf node of the mind map picture horizontally; displaying the EXCEL table. The method can increase the overall efficiency in a test process. The invention also provides a test use case display device.

Description

Test case methods of exhibiting and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of test case methods of exhibiting and device.
Background technology
Test case (Test Case) is a group of test input, the execution condition worked out for certain special objective And expected results, in order to test certain Program path or examine whether meet certain particular demands.
One software project generally requires the substantial amounts of test case of design to cover different scene, condition and things Part stream, the corresponding different test case of different scene, condition and flows of event.Two different test cases May only have fine distinction, such as, only some in test input performs step difference, or only holds Row condition is the most equal.Therefore, the identical content composition comprised between different test cases is likely to occupy relatively Vast scale.
Using Microsoft Excel design test case is conventional a kind of means.In Microsoft Excel, often One test case takies a line, every substance of test case, such as function point, test input, Execution condition and default result etc., each account for different cells.In Microsoft Excel, can be Recording the information such as test result after each test case, Microsoft Excel can statistical test result efficiently Percent of pass.
But, owing to different test cases itself comprises identical content component, therefore, use EXCEL The test case of Table Design likely comprises substantial amounts of redundancy.Carrying out test case amendment when Often pulling one hair and move the whole body, Test Sample Design is inefficient and easily makes mistakes, thus reduces and tested The whole efficiency of journey.
Summary of the invention
Based on this, it is necessary to provide a kind of test case methods of exhibiting improving testing efficiency and device.
A kind of test case methods of exhibiting, comprises the following steps
The XML data of the mind map of read test use-case, in described mind map, root node is to each leaf One test case of the information structure that the path of node is carried;
The mind map picture of specified altitude assignment is generated, in described mind map picture according to described XML data Path dissipates toward one side from root node, and in described mind map picture, each leafy node is the most uniform Distribution;
Open the Microsoft Excel specified, described Microsoft Excel comprises the use for recording test case Example arranges and for recording the result row of test result;
Adjust described use-case row width to adapt to the width of described mind map picture, by described mind map Picture is inserted in described use-case row, and adjusts the line height of described Microsoft Excel so that described thinking is led Each provisional capital of figure picture side and a leafy node horizontal alignment of described mind map picture;
Show described Microsoft Excel.
A kind of test case exhibiting device, including:
Data acquisition module, for obtaining the XML data of the mind map of test case, described mind map One test case of information structure that the path of middle root node extremely each leafy node is carried;
Image generating module, for generating the mind map picture of specified altitude assignment, institute according to described XML data The path stated in mind map picture dissipates toward one side from root node, each leaf in described mind map picture Child node is uniformly distributed in the vertical;
Form opens module, for opening the Microsoft Excel specified, comprises use in described Microsoft Excel In recording the use-case row of test case and for recording the result row of test result;
Table edit module, for adjusting the width of described use-case row to adapt to the width of described mind map picture Degree, is inserted into described mind map picture in described use-case row, and adjusts the row height of described Microsoft Excel Degree so that each provisional capital of described mind map picture side and a leaf knot of described mind map picture Point horizontal alignment;
Display module, is used for showing described Microsoft Excel.
Above-mentioned test case methods of exhibiting and device, generate according to the XML data of the mind map of test case The mind map picture of specified altitude assignment, the path in this mind map picture dissipates toward one side from root node, And each leafy node is uniformly distributed in the vertical in mind map picture, and this mind map picture is inserted into In Microsoft Excel, and adjust the line height of Microsoft Excel so that mind map picture side every One provisional capital and a leafy node horizontal alignment of mind map picture, thus each leaf in mind map picture The corresponding test result of test case that child node is corresponding can be with horizontal alignment, and testing example design is thought The test result of road and substance and correspondence can be very clear, thus improves test case information greatly Readability;And above-mentioned test case methods of exhibiting and device, it is to avoid utilize mind map design test Use-case can not record and the shortcoming of statistical test result, and avoid and utilize EXCEL design test case superfluous The shortcoming that remaining information is many, and combine the advantage that utilizes the design efficiency of mind map design test case high with And utilize the advantage that the statistical efficiency of Microsoft Excel statistical test result is high, thus test process can be improved Whole efficiency.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the test case methods of exhibiting in an embodiment;
Fig. 2 is the step of the XML data in an embodiment according to Test cases technology correspondence mind map Schematic flow sheet;
Fig. 3 is an exemplary plot of the test case using mind map to present;
Fig. 4 is the schematic flow sheet of step S104 of Fig. 1 in an embodiment;
Fig. 5 is the schematic flow sheet of step S104 of Fig. 1 in another embodiment;
Fig. 6 A is the multiway tree schematic diagram that in an embodiment, the mind map of test case is corresponding;
Fig. 6 B is the mind map picture schematic diagram in an embodiment;
Fig. 7 is the structural representation of the test case exhibiting device in an embodiment;
Fig. 8 is the structural representation of the test case exhibiting device in an embodiment;
Fig. 9 is the structural representation of the image generating module 704 of the Fig. 7 in an embodiment;
Figure 10 is the inside of the equipment that can run test case methods of exhibiting described herein in an embodiment Structural representation.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein Only in order to explain the present invention, it is not intended to limit the present invention.
The test case methods of exhibiting that the application provides, test case based on employing mind map design, with Under first mind map is simply introduced.
Mind map is that a kind of simple and effective image is thought deeply and note tool, and it comes by the method for " picture " Record thinking and the process of creation, be a kind of organizational structure media of thinking.Existing mind map is by connecting into The composition of node one by one of tree;Mind map includes and only includes a root node, root node dissipate Send each layer node;Mind map can clearly show being subordinate to mutually and associating pass between node at different levels System.
Mind map file is substantially a structurized XML file;Each node information in mind map And the layout order of each node can be described by XML data.Such as, XML data as follows In described mind map, the relation between node is: node " test suite " be node " test case1 ", Node " test case2 ", node " test case3 ", node " test case4 ", node " test case5 " and The father node of node " test case6 ";Wherein, node " test case1 " is to node " test case6 " each other Brother, and they are respectively first to the 6th child node of node " test suite ".
As it is shown in figure 1, in one embodiment, a kind of test case methods of exhibiting, comprise the following steps:
Step S102, the XML data of the mind map of read test use-case, in mind map, root node is extremely One test case of the information structure that the path of each leafy node is carried.
Each node in mind map represents a constitution element of test case, a constitution element correspondence One substance of test case (such as function point, test input, perform condition or expected results) or An ingredient in multiple ingredients included by substance is (many included by such as test input An operating procedure in individual operating procedure).
Membership between each node then represents the sequencing between each constitution element of test case, father Ordering relation represented by child node is: the constitution element that constitution element that father node is corresponding is corresponding with child node Adjacent position and constitution element corresponding to the father node composition unit corresponding prior to child node it is in test case Element.
Mind map can be used for design test case.In one embodiment, before step S102, above-mentioned Test case methods of exhibiting further comprises the steps of: the XML data according to Test cases technology correspondence mind map. As in figure 2 it is shown, this step comprises the following steps:
Step S202, generates the constitution element sequence that test case is corresponding.
In one embodiment, can by test case every substance (such as function point, test defeated Enter, execution condition, expected results etc.) be combined into, as constitution element, the constitution element sequence that test case is corresponding Row, in constitution element sequence, the order of each constitution element and the every substance order in test case is protected Hold consistent, wherein, if a certain item substance includes multiple ingredient, then each ingredient is made It is a constitution element, putting in order and between each ingredient of the constitution element that each ingredient is corresponding Sequencing is consistent.Such as, test input comprises multiple operating procedure with sequencing, can be by each Individual operating procedure is as a constitution element, and the priority being had according to operating procedure by these constitution elements Order arranges in constitution element sequence.
Step S204, generates corresponding the representing with XML data format of each constitution element in constitution element sequence Node, wherein, in adjacent two constitution elements after node corresponding to a constitution element be previous constitution element pair The child node of the node answered, the identical stem subsequence of each constitution element sequence shares identical XML data, Obtain the XML data of test case correspondence mind map.
The stem subsequence of one constitution element sequence is its subsequence started from first constitution element.Example As, the constitution element sequence of test case 1 correspondence is: A, B, C, D, E;The structure of test case 2 correspondence One-tenth element sequence is: A, B, G, H;Then the identical stem subsequence of two test cases is: A, B; A XML data is generated just for this sequence;The knot that node corresponding for constitution element C is corresponding with constitution element G Point is all with node corresponding for constitution element B as father node.
Concrete, can generate each constitution element in the constitution element sequence that test case is corresponding corresponding with The node that XML data format represents, by XML number corresponding for a constitution element rear in adjacent two constitution elements In the XML data corresponding according to being nested in previous constitution element, with the node that a constitution element after representing is corresponding it is The child node of the node that previous constitution element is corresponding.
Before generating the XML data of each test case, check current test case and generate XML Whether the test case of data has one section of on all four constitution element subsequence started from stem, from head The constitution element subsequence that portion starts be referred to as headed by sequence, and obtain current test case and generated XML One section of the longest on all four first sequence that the test case of data is had, generates current test case corresponding Constitution element sequence in the XML data of constitution element subsequence after this longest first sequence, and by this The XML data that first constitution element after long first sequence is corresponding is nested in last of this longest first sequence In the XML data that individual constitution element is corresponding, to represent this node corresponding to represent this first constitution element Child node for node corresponding to this last constitution element.
Such as, the constitution element sequence of test case 1 correspondence is: A, B, C, D, E;Test case 2 is right The constitution element sequence answered is: A, B, G, H;The constitution element sequence of test case 3 correspondence is: A, B, C, F;The XML data of test case 1 and test case 2 is generated, then at the XML generating test case 3 During data, the XML data of constitution element subsequence (F) can be only generated, and by XML corresponding for constitution element F Data are nested in the XML data that constitution element C is corresponding, to represent that corresponding for constitution element F node is for being constituted The child node of the node that Elements C is corresponding.
Fig. 3 is an exemplary plot of the test case using mind map to present.Wherein, node 301~node One test case of information structure of 306 carryings.Node 301, node 302, node 303, node 304 are respectively Representing the operating procedure needing to perform successively in the test process that test input includes, node 305 represents execution bar Part, node 306 represents expected results.
Use mind map design test case, testing example design efficiency can be improved and improve test use The readability of example, but can not record and statistical test result.
Step S104, generates the mind map picture of specified altitude assignment according to the XML data of mind map, should Path in mind map picture dissipates toward one side from root node, and each leaf in this mind map picture Node is uniformly distributed in the vertical.
In one embodiment, above-mentioned test case methods of exhibiting also includes that obtaining above-mentioned specified altitude assignment i.e. thinks Dimension leads the step of the height of figure picture.In one embodiment, can show for inputting mind map picture height The interface of degree, is obtained the height of user's input, obtains the height of mind map picture, step by this interface S104 can generate the mind map picture of this height.In the present embodiment, the height of the mind map picture of generation Can be customized according to user's request.
Step S106, opens the Microsoft Excel specified, and comprises for recording test in this Microsoft Excel The use-case of use-case arranges and for recording the result row of test result.
In one embodiment, turn right from root node and dissipate in the path of above-mentioned mind map picture, on State use-case row in Microsoft Excel to be positioned on the left of result row.
In one embodiment, use-case row comprise for record row name (such as " function point, testing procedure, Execution condition and expected results " etc.) compile a name list unit lattice, such as first cell;Result row in with The unit's lattice that compile a name list of example row are in the cell of same a line and are also used for recording the row name that result arranges, such as " test Result " etc..
In one embodiment, this Microsoft Excel also includes the priority for recording priorities of test cases Row, and/or, the out of Memory including the out of Memory for recording test case arranges.Priority arranges and other Information row may be alternatively located at the right side of use-case row.
Step S108, the width of adjustment use-case row is to adapt to the width of mind map picture, by mind map figure Sheet is inserted in use-case row, and adjusts the line height of Microsoft Excel so that mind map picture side every One provisional capital and a leafy node horizontal alignment of mind map picture.
In one embodiment, the width that width adjustment is mind map picture that use-case can be arranged.Further , in one embodiment, mind map picture can be inserted use-case row so that a left side for mind map picture Upper angle and use-case compile a name list in arranging the next cell (such as, second cell of use-case row) of unit's lattice The upper left corner alignment.
In one embodiment, can by the line height of Microsoft Excel or by Microsoft Excel from row name The line height of the n row below line height that cell next line rises or unit's lattice that Microsoft Excel is compiled a name list Being adjusted to h/n, wherein h is the height of mind map picture, and the XML data that n is mind map is comprised Leafy node quantity.
Step S110, shows above-mentioned Microsoft Excel.
As shown in Figure 4, in one embodiment, step S104 comprises the following steps:
Step S402, the XML data the generation that resolve the mind map of test case are used for representing this thinking Lead the data of multiway tree corresponding to figure.
Node one_to_one corresponding in the node of this multiway tree and the mind map of test case, and multiway tree respectively ties Being subordinate between point keeps consistent with incidence relation with described mind map.
In one embodiment, a structure type can be constructed in the mind map representing test case Node;This structure type can include two members, and a member is character string type, is used for representing this node One constitution element of the test case carried (operating procedure included by such as function point, test input, Execution condition or expected results etc.), another member is array, the ground of the child node of this this node of storage of array Location.
Such as, can be according to pseudo code definition as follows for representing the structure class of the node in mind map Type: struct Node{string text;Node*childs[N];};Wherein, " Node " is this structure type Title, this structure includes that the member text of a character string type and one are for storing the address of child node Array member child, N are a default constant.
Further, the change of the said structure type that each node is corresponding in the mind map of test case is generated Amount;Wherein, a corresponding variable of node, it is right that the character string type member of each variable is assigned Answer the content of text (content of text that in such as Fig. 3, node 101 is carried of the constitution element that node carried " entrance phone ");And each array element of the array member of each variable is entered as this variable successively The address of the variable of the child node of corresponding node, and suitable between order and the child node that address is in array Sequence keeps consistent.The quantity that the variable that each node is corresponding is carried i.e. constitutes the data of multiway tree.
Such as, the variable for the said structure type of some node application is node0, for the first of this node The variable of the said structure type of individual child node and second child node application is node1 and node2, then can be by First array element of the array member of node0 is entered as the address of node1, and the array of node0 is become Second array element of member is entered as the address of node2.
Step S404, travels through this multiway tree, the leafy node total quantity of statistics multiway tree;
The total quantity of the leafy node of this multiway tree, the leafy node number being in the mind map of test case Amount, the leafy node quantity that the XML data of the mind map being also test case is comprised.
In one embodiment, (i.e. level first traversal) can be traveled through from the root node sequence of multiway tree Multiway tree, to obtain leafy node total quantity.In one embodiment, a queue can be applied for, first will Multiway tree root node enqueue;Then whether detection queue is empty, and circulation follows the steps below until queue is Empty: queue head node to be ejected queue, checks whether the node of queue is leaf node, the most then The leafy node quantity counted on is increased by 1, the otherwise child node enqueue of this node.Wherein, by a certain Node enqueue can be regarded as the variable enqueue representing this node step S402 generated.
Step S406, calculates each leafy node of mind map picture according to the leafy node total quantity of multiway tree Longitudinal pitch between adjacent leafy node when being longitudinally uniformly distributed in the range of specified altitude assignment.
This longitudinal pitch is the height of mind map picture and the ratio of leafy node total quantity.
Step S408, generates the picture of specified altitude assignment, by the XML data institute of the mind map of test case The path represented dissipates arrangement from the past one side of root node on this picture, and is tied by the leaf in each path Point carries out longitudinally being uniformly distributed according to above-mentioned longitudinal pitch, obtains mind map picture.
Each path can be dissipated arrangement from root node toward left side on this picture.
As it is shown in figure 5, in one embodiment, step S104 comprises the following steps:
Step S502, the XML data the generation that resolve the mind map of test case are used for representing this thinking Lead the data of multiway tree corresponding to figure.
Step S504, travels through this multiway tree, the leafy node total quantity of statistics multiway tree, and statistics multi-fork The leafy node that in tree, the depth capacity of descendants's node of the degree of depth of each node, each node is corresponding with each node Quantity, and calculate each leafy node of mind map picture at finger according to the leafy node total quantity of multiway tree Longitudinal pitch between adjacent leafy node when determining longitudinally to be uniformly distributed in altitude range.
The leafy node quantity that one node is corresponding is: the quantity of leafy node in descendants's node of this node.
Can be with the degree of depth of root node for 0, the principle statistics knot of the degree of depth big 1 of its father node of depth ratio of child node The degree of depth of point.
In one embodiment, can be in the above-mentioned process from multiway tree root node sequence traversal multiway tree In, when node is not leaf node, can be by the degree of depth of the child node of this node at the base of the degree of depth of this node Add one on plinth.Thus after ergodic process terminates, the degree of depth of available each node and the leaf knot of multiway tree Point total quantity.
Maximum in the degree of depth of each descendants's node that the depth capacity of descendants's node of one node is this node Value.
In one embodiment, can be according to the above-mentioned side from multiway tree root node sequence traversal multiway tree Method, from a certain node sequence traversal subtree with this node as root node, obtains the leaf knot of this subtree Point total quantity, i.e. obtains the quantity of leafy node corresponding to this node, and obtains the leafy node of this subtree The degree of depth, the maximum of the degree of depth taking the leafy node of this subtree i.e. can obtain descendants's node of this node The big degree of depth.
Step S506, according to the degree of depth of node each in multiway tree, the depth capacity of descendants's node of each node and The quantity of the leafy node that each node is corresponding and above-mentioned longitudinal pitch, calculate each node in mind map picture Lengthwise position and lateral attitude relative to root node so that first leafy node in mind map picture And root node interval specified width, which width, first leafy node and last leafy node interval specified altitude assignment, Each node and its first child node horizontal alignment, each leafy node is longitudinally-aligned and is uniformly distributed in the vertical, Each node is uniformly distributed in the horizontal with the descendants's node on its longest subpath.
The XML data of mind map determines the order in mind map between each leafy node, mind map In the appearance in XML file of order between each leafy node XML data corresponding with each leafy node Order keeps consistent;Such as, the XML data that a certain leafy node is corresponding is in the XML file of mind map In (i.e. recording the XML file of the XML data of mind map), first appearance, then claim this leafy node For first leafy node of mind map, the like.
Each leafy node is longitudinally-aligned be can be regarded as each leafy node and is positioned on same vertical line or each leafy node Abscissa equal.And each leafy node is uniformly distributed in the vertical and can be regarded as the vertical of each adjacent leaves node Equal to spacing, multiple nodes are uniformly distributed in the horizontal and can be regarded as the horizontal stroke of neighborhood of nodes in the plurality of node Equal to spacing.
The longest subpath of one node is: the longest path of the leafy node under this node to this node, a certain Leafy node under node is the leafy node of the descendants's node belonging to this node.
In one embodiment, according to the degree of depth of node each in multiway tree, the maximum of descendants's node of each node The quantity of the leafy node that the degree of depth is corresponding with each node and above-mentioned longitudinal pitch, calculate in mind map picture Each node comprises the following steps relative to the lengthwise position of root node and the step of lateral attitude:
(1) coordinate initializing root node is origin.
(2) abscissa and the vertical coordinate of other node outside root node is calculated successively according to preorder traversal order, Other node outside note root node is respectively as follows: D1, D2..., Dn-1, n is the node quantity of multiway tree, its In, arbitrary node DiThe abscissa x of (1≤i≤n-1)iWith vertical coordinate yiIt is respectively as follows:
xi=d (Di)*w/Max(Di);
yi=ybrother(Di), as node DiDuring for first child node of its father node
yi=ybrother(Di)-Leaf (brother (Di)) * △ y, as node DiIt is not first son knot of its father node During point;
Wherein, d (Di) it is node DiThe degree of depth, w is described specified width, which width, Max (Di) it is node DiSon Maximum in the degree of depth of grandson's node, i.e. node DiThe depth capacity of descendants's node;brother(Di) it is node DiA upper sibling, ybrother(Di)For node DiThe vertical coordinate of a upper sibling, Leaf(brother(Di)) it is node DiThe quantity of leafy node corresponding to a upper sibling, △ y is upper State longitudinal pitch.
The abscissa of calculated each node and vertical coordinate i.e. can be used for representing node indulging relative to root node To position and lateral attitude.
Step S508, generates specified width, which width and the picture of specified altitude assignment, by the thinking picture of test case Root node represented by XML data is arranged in the upper left corner of this picture, and by the thinking picture of test case Other node represented by XML data is distributed in relative to lengthwise position and the lateral attitude of root node according to it In this picture, obtain mind map picture.
In one embodiment, above-mentioned test case methods of exhibiting also includes that obtaining above-mentioned specified width, which width i.e. thinks Dimension leads the step of the width of figure picture.In one embodiment, can show for inputting mind map picture width The interface of degree, is obtained the width of user's input, obtains the width of mind map picture by this interface;This reality Executing in example, the width of the mind map picture of generation can be customized according to user's request.Implement at another In example, can read the non-blank-white information outside use-case row in display screen width resolution and Microsoft Excel Width shared by row, the width calculating mind map picture is that display screen width resolution is believed with non-blank-white Stand out shared by breath row, so that outside the mind map picture in Microsoft Excel arranges with use-case Non-blank-white information row just take whole screen.Wherein, display screen width resolution refers to display screen The pixel count that can show of width;Non-blank-white information row at least include above-mentioned result row, the most also can wrap Include above-mentioned priority row and/or out of Memory row.The present embodiment can generate width adequate display screen resolution Mind map picture.
In the application, calculate based on a point in each node correspondence mind map picture each node it Between spacing and the position of each node, in actual application scenarios, node may corresponding mind map Graphics field, such as a rectangular area etc. in picture.
Can be using the spacing between calculated each node as between the specified point of each node correspondence graphics field Spacing, and the position of each node calculating waited until is as the specified point of each node correspondence graphics field Position.
Such as, can be using the spacing between calculated two nodes as in this two nodes correspondence graphics field Spacing between heart point, and using the position of calculated a certain node as this node correspondence graphics field The position of central point;Or, can be using the spacing between calculated two nodes as this two nodes corresponding diagram Spacing between the top left corner apex in shape region, and using the position of calculated a certain node as this node The position of the top left corner apex of corresponding graphics field, etc..
Hereafter calculate each node indulging relative to root node in mind map picture with concrete illustrating To position and the process of lateral attitude.
In this example, specified width, which width w of mind map picture and specified altitude assignment h are all 100;Test case As shown in Figure 6A, the node that this multiway tree includes is designated as multiway tree corresponding to mind map respectively: A, B, C, D、E、F、G、H、I、J、K、L、M;Wherein A is root node, E, F, H, K, L and M For leafy node.
It is known that leaf node sum n is 6 after sequence traversal multiway tree, therefore, each in mind map picture When leaf node is uniformly distributed in the altitude range of 100, the longitudinal pitch △ y between adjacent leafy node is 100/6=16.7.
The coordinate that can arrange root node A is (0,0).
Further, can according to preorder traversal order calculate successively node B, C, D, E, F, G, H, I, The abscissa of J, K, L, M and vertical coordinate, can calculate each according to the formula of above-mentioned calculating abscissa and vertical coordinate The abscissa of individual node and vertical coordinate.
Owing to the degree of depth of node B is 1, the depth capacity of its descendants's node is 4, and that B is its father node One child node, therefore, the coordinate that can be calculated node B is (25,0);
The coordinate of node C can be calculated for (50,0) according to similar calculating process, the coordinate of D be (75, 0), the coordinate of E is (100,0).
Owing to the degree of depth of node F is 3, owing to it is leafy node, therefore the depth capacity of its descendants's node is also Being 3, on it, the vertical coordinate of a sibling D is 0, and a leaf corresponding for sibling D on it Node quantity is 1, and therefore, the coordinate that can be calculated node F is (100,16.7);
The coordinate that can be calculated node G according to similar calculating process is (66.7,33.4), node H's Coordinate is (100,33.4), and the coordinate of node I is (33.3,50.1), the coordinate of node J be (66.7, 50.1), the coordinate of node K is (100,50.1), and the coordinate of node L is (100,66.8), node M Coordinate be (100,83.5).
Each node is distributed in mind map picture according to respective coordinate, can get as shown in Figure 6B Mind map picture.
As it is shown in fig. 7, in one embodiment, a kind of test case exhibiting device, including data acquisition module 702, image generating module 704, form open module 706, Table edit module 708 and display module 710, Wherein:
Data acquisition module 702 is for the XML data of the mind map of read test use-case, in mind map One test case of information structure that the path of root node extremely each leafy node is carried.
Each node in mind map represents a constitution element of test case, a constitution element correspondence One substance of test case (such as function point, test input, perform condition or expected results) or An ingredient in multiple ingredients included by substance is (many included by such as test input An operating procedure in individual operating procedure).
Membership between each node then represents the sequencing between each constitution element of test case, father Ordering relation represented by child node is: the constitution element that constitution element that father node is corresponding is corresponding with child node Adjacent position and constitution element corresponding to the father node composition unit corresponding prior to child node it is in test case Element.
Mind map can be used for design test case.As shown in Figure 8, in one embodiment, above-mentioned test is used Example exhibiting device also includes XML data generation module 802, for according to Test cases technology correspondence mind map XML data.
Concrete, XML data generation module 802 is for generating the constitution element sequence that test case is corresponding.
In one embodiment, XML data generation module 802 can be by the every substance in test case (such as function point, test input, execution condition, expected results etc.) is combined into test as constitution element The constitution element sequence that use-case is corresponding, the order of each constitution element and every substance in constitution element sequence Order in test case keeps consistent, wherein, if a certain item substance includes multiple ingredient, Then using each ingredient as a constitution element, the arrangement of the constitution element that each ingredient is corresponding is suitable Sequencing between sequence with each ingredient is consistent.Such as, test input comprises and multiple has sequencing Operating procedure, XML data generation module 802 can using each operating procedure as a constitution element, and The sequencing that these constitution elements are had according to operating procedure is arranged in constitution element sequence.
Further, XML data generation module 802 is additionally operable to generate each constitution element in constitution element sequence The corresponding node represented with XML data format, wherein, a rear constitution element pair in adjacent two constitution elements The node answered is the child node of the node that previous constitution element is corresponding, the identical stem of each constitution element sequence Subsequence shares identical XML data, obtains the XML data of test case correspondence mind map.
The stem subsequence of one constitution element sequence is its subsequence started from first constitution element.
Concrete, can generate each constitution element in the constitution element sequence that test case is corresponding corresponding with The node that XML data format represents, by XML number corresponding for a constitution element rear in adjacent two constitution elements In the XML data corresponding according to being nested in previous constitution element, with the node that a constitution element after representing is corresponding it is The child node of the node that previous constitution element is corresponding.
Before generating the XML data of each test case, XML data generation module 802 can be checked and work as Front test case and the test case generating XML data whether have one section on all four from the beginning of stem Constitution element subsequence, the constitution element subsequence started from stem be referred to as headed by sequence, and obtain and work as One section of the longest on all four first sequence that front test case and the test case generating XML data are had Row, generate constitution element after this longest first sequence in the constitution element sequence that current test case is corresponding The XML data of sequence, and by embedding for XML data corresponding for first constitution element after this longest first sequence It is enclosed within the XML data that last constitution element of this longest first sequence is corresponding, to represent that this is to represent this The child node that node is the node that this last constitution element is corresponding that first constitution element is corresponding.
Use mind map design test case, testing example design efficiency can be improved and improve test use The readability of example, but can not record and statistical test result.
Image generating module 704 generates the mind map of specified altitude assignment for the XML data according to mind map Picture, the path in this mind map picture dissipates toward one side from root node, and this mind map picture In each leafy node be uniformly distributed in the vertical.
In one embodiment, above-mentioned test case exhibiting device also includes that height acquisition module (does not shows in figure Go out), for showing the interface for inputting mind map picture height, obtain user's input by this interface Highly, obtaining the above-mentioned specified altitude assignment i.e. height of mind map picture, image generating module 704 can generate The mind map picture of this height.In the present embodiment, the height of the mind map picture of generation can be according to user Demand is customized.
Form opens module 706 for opening the Microsoft Excel specified, and comprises use in this Microsoft Excel In recording the use-case row of test case and for recording the result row of test result.
In one embodiment, turn right from root node and dissipate in the path of above-mentioned mind map picture, on State use-case row in Microsoft Excel to be positioned on the left of result row.
In one embodiment, use-case row comprise for record row name (such as " function point, testing procedure, Execution condition and expected results " etc.) compile a name list unit lattice, such as first cell;Result row in with The unit's lattice that compile a name list of example row are in the cell of same a line and are also used for recording the row name that result arranges, such as " test Result " etc..
In one embodiment, this Microsoft Excel also includes the priority for recording priorities of test cases Row, and/or, the out of Memory including the out of Memory for recording test case arranges.Priority arranges and other Information row may be alternatively located at the right side of use-case row.
The width that Table edit module 708 arranges for adjusting use-case, will to adapt to the width of mind map picture Mind map picture is inserted in use-case row, and adjusts the line height of Microsoft Excel so that mind map figure Each provisional capital of sheet side and a leafy node horizontal alignment of mind map picture.
In one embodiment, the width adjustment that use-case can be arranged by Table edit module 708 is mind map figure The width of sheet.Further, in one embodiment, Table edit module 708 can be by mind map picture Insertion use-case arranges so that the next unit of the unit's lattice that compile a name list in the upper left corner of mind map picture and use-case row The upper left corner alignment of lattice (such as, second cell of use-case row).
In one embodiment, Table edit module 708 can be by the line height of Microsoft Excel or general Microsoft Excel from compile a name list unit lattice next line line height or Microsoft Excel is compiled a name list unit lattice The line height of following n row is adjusted to h/n, and wherein h is the height of mind map picture, and n is mind map The leafy node quantity that comprised of XML data.
Display module 710 is for showing above-mentioned Microsoft Excel.
As it is shown in figure 9, in one embodiment, image generating module 704 includes resolution unit 902, statistics Computing unit 904 and picture signal generating unit 906, wherein:
Resolution unit 902 is for resolving the XML data of the mind map of test case and generating for representing this The data of the multiway tree that mind map is corresponding.
Node one_to_one corresponding in the node of this multiway tree and the mind map of test case, and multiway tree respectively ties Being subordinate between point keeps consistent with incidence relation with described mind map.
In one embodiment, resolution unit 902 can construct a structure type for representing test case Node in mind map;This structure type can include that two members, a member are character string type, uses In the constitution element representing the test case that carried of this node, (such as function point, test input are wrapped Operating procedure, execution condition or the expected results etc. included), another member is array, this knot of this storage of array The address of the child node of point.
Further, corresponding upper of each node during resolution unit 902 can generate the mind map of test case State the variable of structure type;Wherein, a corresponding variable of node, the character string type of each variable Member is assigned the content of text of the constitution element that corresponding node is carried;And the array of each variable becomes The address of the variable of the child node that each array element of member is entered as this variable correspondence node successively, and Address order in array and the order between child node keep consistent.The variable that each node is corresponding is held The quantity carried i.e. constitutes the data of multiway tree.
Statistical computation unit 904 is used for traveling through this multiway tree, the leafy node total quantity of statistics multiway tree;
The total quantity of the leafy node of this multiway tree, the leafy node number being in the mind map of test case Amount, the leafy node quantity that the XML data of the mind map being also test case is comprised.
In one embodiment, statistical computation unit 904 can travel through (i.e. from the root node sequence of multiway tree Level first traversal) multiway tree, to obtain leafy node total quantity.In one embodiment, statistical computation Unit 904 can apply for a queue, first by multiway tree root node enqueue;Then whether detection queue is Sky, circulation follows the steps below until queue is sky: queue head node is ejected queue, checks queue Node whether be leaf node, the leafy node quantity that the most counted on is increased by 1, otherwise this knot The child node enqueue of point.Wherein, a certain node enqueue be can be regarded as expression step S402 generated The variable enqueue of this node.
Statistical computation unit 904 is additionally operable to the leafy node total quantity according to multiway tree and calculates mind map picture Each leafy node when being longitudinally uniformly distributed in the range of specified altitude assignment between longitudinal direction between adjacent leafy node Away from.
This longitudinal pitch is the height of mind map picture and the ratio of leafy node total quantity.
Picture signal generating unit 906 is for generating the picture of specified altitude assignment, by the mind map of test case Path represented by XML data dissipates arrangement from root node toward one side on this picture, and by each road The leafy node in footpath carries out longitudinally being uniformly distributed according to above-mentioned longitudinal pitch, obtains mind map picture.
Each path can be dissipated arrangement from root node toward left side on this picture by picture signal generating unit 906.
In another embodiment, statistical computation unit 904 is used for traveling through this multiway tree, statistics multiway tree The maximum of descendants's node of the degree of depth of each node, each node in leafy node total quantity, and statistics multiway tree The quantity of the leafy node that the degree of depth is corresponding with each node, and calculate according to the leafy node total quantity of multiway tree When each leafy node of mind map picture is longitudinally uniformly distributed in the range of specified altitude assignment adjacent leafy node it Between longitudinal pitch.
The leafy node quantity that one node is corresponding is: the quantity of leafy node in descendants's node of this node.
In one embodiment, statistical computation unit 904 can be with the degree of depth of root node for 0, the degree of depth of child node The degree of depth of the principle statistics node of bigger than the degree of depth of its father node 1.
In one embodiment, statistical computation unit 904 can be above-mentioned from multiway tree root node sequence During traversal multiway tree, when node is not leaf node, by the degree of depth of the child node of this node at this Add one on the basis of the degree of depth of node.Thus after ergodic process terminates, the degree of depth of available each node and The leafy node total quantity of multiway tree.
Maximum in the degree of depth of each descendants's node that the depth capacity of descendants's node of one node is this node Value.
In one embodiment, statistical computation unit 904 can be according to above-mentioned from multiway tree root node starting layer The method of sequence traversal multiway tree, from a certain node sequence traversal subtree with this node as root node, To the leafy node total quantity of this subtree, i.e. obtain the quantity of leafy node corresponding to this node, and obtain The degree of depth of the leafy node of this subtree, the maximum of the degree of depth taking the leafy node of this subtree i.e. can obtain this knot The depth capacity of descendants's node of point.
Further, statistical computation unit 904 is additionally operable to the degree of depth according to node each in multiway tree, each node The quantity of the depth capacity of the descendants's node leafy node corresponding with each node and above-mentioned longitudinal pitch, meter Calculate each node in mind map picture relative to the lengthwise position of root node and lateral attitude so that lead in thinking In figure picture first leafy node and root node interval specified width, which width, first leafy node and last Leafy node interval specified altitude assignment, each node and its first child node horizontal alignment, each leafy node is longitudinally Aliging and be uniformly distributed in the vertical, each node is the most uniform with the descendants's node on its longest subpath Distribution.
The XML data of mind map determines the order in mind map between each leafy node, mind map In the appearance in XML file of order between each leafy node XML data corresponding with each leafy node Order keeps consistent;Such as, the XML data that a certain leafy node is corresponding is in the XML file of mind map In (i.e. recording the XML file of the XML data of mind map), first appearance, then claim this leafy node For first leafy node of mind map, the like.
Each leafy node is longitudinally-aligned be can be regarded as each leafy node and is positioned on same vertical line or each leafy node Abscissa equal.And each leafy node is uniformly distributed in the vertical and can be regarded as the vertical of each adjacent leaves node Equal to spacing, multiple nodes are uniformly distributed in the horizontal and can be regarded as the horizontal stroke of neighborhood of nodes in the plurality of node Equal to spacing.
The longest subpath of one node is: the longest path of the leafy node under this node to this node, a certain Leafy node under node is the leafy node of the descendants's node belonging to this node.
In one embodiment, statistical computation unit 904 is according to the degree of depth of node each in multiway tree, each node The quantity of the depth capacity of the descendants's node leafy node corresponding with each node and above-mentioned longitudinal pitch, meter Calculate each node in mind map picture to include relative to the lengthwise position of root node and the process of lateral attitude:
(1) coordinate initializing root node is origin.
(2) abscissa and the vertical coordinate of other node outside root node is calculated successively according to preorder traversal order, Other node outside note root node is respectively as follows: D1, D2..., Dn-1, n is the node quantity of multiway tree, its In, arbitrary node DiThe abscissa x of (1≤i≤n-1)iWith vertical coordinate yiIt is respectively as follows:
xi=d (Di)*w/Max(Di);
yi=ybrother(Di), as node DiDuring for first child node of its father node
yi=ybrother(Di)-Leaf (brother (Di)) * △ y, as node DiIt is not first son knot of its father node During point;
Wherein, d (Di) it is node DiThe degree of depth, w is described specified width, which width, Max (Di) it is node DiSon Maximum in the degree of depth of grandson's node, i.e. node DiThe depth capacity of descendants's node;brother(Di) it is node DiA upper sibling, ybrother(Di)For node DiThe vertical coordinate of a upper sibling, Leaf(brother(Di)) it is node DiThe quantity of leafy node corresponding to a upper sibling, △ y is upper State longitudinal pitch.
The abscissa of calculated each node and vertical coordinate i.e. can be used for representing node indulging relative to root node To position and lateral attitude.
Based in another described embodiment, picture signal generating unit 906 is used for generating specified width, which width and appointment The picture of height, is arranged in this picture by the root node represented by the XML data of the thinking picture of test case The upper left corner, and by relative according to it for other node represented by the XML data of the thinking picture of test case It is distributed in this picture in lengthwise position and the lateral attitude of root node, obtains mind map picture.
In one embodiment, picture signal generating unit 906 can be according to the above-mentioned height obtaining mind map picture The mode of degree obtains the width of mind map picture.In one embodiment, above-mentioned test case exhibiting device Also include that width acquisition module (not shown) is for obtaining above-mentioned specified width, which width i.e. mind map picture Width.In one embodiment, width acquisition module can be shown for inputting mind map picture width Interface, is obtained the width of user's input, obtains the width of mind map picture by this interface;The present embodiment In, the width of the mind map picture of generation can be customized according to user's request.In another embodiment, It is non-that width acquisition module can read outside the row of use-case in display screen width resolution and Microsoft Excel Width shared by blank information row, calculate the width of mind map picture be display screen width resolution with Stand out shared by non-blank-white information row, so that the mind map picture in Microsoft Excel and use-case Non-blank-white information row outside row just take whole screen.Wherein, display screen width resolution refers to The pixel count that the width of display screen can show;Non-blank-white information row at least include above-mentioned result row, separately May also include outward above-mentioned priority row and/or out of Memory row.The present embodiment can generate width adequate display screen The mind map picture of curtain resolution.
Above-mentioned test case methods of exhibiting and device, generate according to the XML data of the mind map of test case The mind map picture of specified altitude assignment, the path in this mind map picture dissipates toward one side from root node, And each leafy node is uniformly distributed in the vertical in mind map picture, and this mind map picture is inserted into In Microsoft Excel, and adjust the line height of Microsoft Excel so that mind map picture side every One provisional capital and a leafy node horizontal alignment of mind map picture, thus each leaf in mind map picture The corresponding test result of test case that child node is corresponding can be with horizontal alignment, and testing example design is thought The test result of road and substance and correspondence can be very clear, thus improves test case information greatly Readability;And above-mentioned test case methods of exhibiting and device, it is to avoid utilize mind map design test Use-case can not record and the shortcoming of statistical test result, and avoid and utilize EXCEL design test case superfluous The shortcoming that remaining information is many, and combine the advantage that utilizes the design efficiency of mind map design test case high with And utilize the advantage that the statistical efficiency of Microsoft Excel statistical test result is high, thus test process can be improved Whole efficiency.
Figure 10 is equipment interior that can run test case methods of exhibiting described herein in an embodiment Portion's structural representation.As shown in Figure 10, this equipment can include processor, the storage connected by system bus Medium, internal memory, display screen and input mechanism.Wherein, the input mechanism of this equipment can be used for receiving input Numeral, character, sound, figure or other information, and produce corresponding input signal, display screen Curtain can be used for showing visualized elements, Microsoft Excel the most described herein;Storage medium storage has behaviour Make system, database, additionally the storage medium of this equipment also stored for for realizing present specification institute The software instruction of the test case methods of exhibiting stated, the processor of this equipment performs these instructions to control each Functional part realizes the test case methods of exhibiting described in present specification.Those skilled in the art can manage Solve, the structure shown in Figure 10, be only the block diagram of the part-structure relevant to the present invention program, not structure The restriction of the equipment that the present invention program is applied thereon in pairs, runs test case described herein and shows The equipment that method is concrete can include than shown in figure more or less of parts, or combines some parts, Or there are different parts arrange.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended Claim is as the criterion.

Claims (10)

1. a test case methods of exhibiting, comprises the following steps:
Obtaining the XML data of the mind map of test case, in described mind map, root node is to each leaf One test case of the information structure that the path of node is carried;
The mind map picture of specified altitude assignment is generated, in described mind map picture according to described XML data Path dissipates toward one side from root node, and in described mind map picture, each leafy node is the most uniform Distribution;
Open the Microsoft Excel specified, described Microsoft Excel comprises the use for recording test case Example arranges and for recording the result row of test result;
Adjust described use-case row width to adapt to the width of described mind map picture, by described mind map Picture is inserted in described use-case row, and adjusts the line height of described Microsoft Excel so that described thinking is led Each provisional capital of figure picture side and a leafy node horizontal alignment of described mind map picture;
Show described Microsoft Excel.
Test case methods of exhibiting the most according to claim 1, it is characterised in that described in described basis The step of the mind map picture that XML data generates specified altitude assignment includes:
Resolve described XML data and generate the data for representing multiway tree that described mind map is corresponding;
Travel through described multiway tree, add up the leafy node total quantity of described multiway tree;
Leafy node total quantity according to described multiway tree calculates each leafy node of described mind map picture and exists Longitudinal pitch between adjacent leafy node when being longitudinally uniformly distributed in the range of specified altitude assignment;
Generate specified altitude assignment picture, by the path represented by described XML data on this picture from root node Set out and dissipate arrangement toward one side, and the leafy node in each path is carried out the most all according to described longitudinal pitch Even distribution, obtains described mind map picture.
Test case methods of exhibiting the most according to claim 2, it is characterised in that described method is also wrapped Include:
The degree of depth of each node in described multiway tree, the son of each node is added up during traveling through described multiway tree The quantity of the leafy node that the depth capacity of grandson's node is corresponding with each node;
The quantity of the leafy node that the degree of depth according to node each in described multiway tree is corresponding with each node and described Longitudinal pitch, calculates in described mind map picture each node relative to the lengthwise position of root node and horizontal position Put so that first leafy node and root node interval specified width, which width in described mind map picture, first Individual leafy node and last leafy node interval specified altitude assignment, each node and its first child node level Alignment, each leafy node is longitudinally-aligned and is uniformly distributed in the vertical, on each node and its longest subpath Descendants's node is uniformly distributed in the horizontal;
Generate specified altitude assignment picture, by the path represented by described XML data on this picture from root node Set out and dissipate arrangement toward one side, and the leafy node in each path is carried out the most all according to described longitudinal pitch The step of even distribution is: generate specified width, which width and the picture of specified altitude assignment, represented by described XML data Root node is arranged in the upper left corner of this picture, and by other node represented by described XML data according to its phase Lengthwise position and lateral attitude for root node are distributed in this picture.
Test case methods of exhibiting the most according to claim 3, it is characterised in that according to described multi-fork The leafy node that in tree, the depth capacity of descendants's node of the degree of depth of each node, each node is corresponding with each node Quantity and described longitudinal pitch, calculate in described mind map picture each node relative to the longitudinal direction of root node The step of position and lateral attitude includes:
The coordinate initializing root node is origin;
Abscissa and the vertical coordinate of other node outside root node is calculated successively according to preorder traversal order, wherein, Arbitrary node DiAbscissa xiWith vertical coordinate yiIt is respectively as follows:
xi=d (Di)*w/Max(Di);
yi=ybrother(Di), as described node DiDuring for first child node of its father node
yi=ybrother(Di)-Leaf (brother (Di)) * △ y, as node DiIt is not first son knot of its father node During point;
Wherein, d (Di) it is node DiThe degree of depth, w is described specified width, which width, Max (Di) it is node DiSon Maximum in the degree of depth of grandson's node;brother(Di) it is node DiA upper sibling, ybrother(Di) For node DiThe vertical coordinate of a upper sibling, Leaf (brother (Di)) it is node DiA upper brother The quantity of the leafy node that node is corresponding, △ y is described longitudinal pitch.
Test case methods of exhibiting the most according to claim 1, it is characterised in that described method is also wrapped Include following steps:
Generate the constitution element sequence that test case is corresponding;
Generate the node represented with XML data format that each constitution element in constitution element sequence is corresponding, its In, the node that in adjacent two constitution elements, a rear constitution element is corresponding is the node that previous constitution element is corresponding Child node, the identical stem subsequence of each constitution element sequence shares identical XML data, is tested The XML data of use-case correspondence mind map.
6. a test case exhibiting device, it is characterised in that including:
Data acquisition module, for obtaining the XML data of the mind map of test case, described mind map One test case of information structure that the path of middle root node extremely each leafy node is carried;
Image generating module, for generating the mind map picture of specified altitude assignment, institute according to described XML data The path stated in mind map picture dissipates toward one side from root node, each leaf in described mind map picture Child node is uniformly distributed in the vertical;
Form opens module, for opening the Microsoft Excel specified, comprises use in described Microsoft Excel In recording the use-case row of test case and for recording the result row of test result;
Table edit module, for adjusting the width of described use-case row to adapt to the width of described mind map picture Degree, is inserted into described mind map picture in described use-case row, and adjusts the row height of described Microsoft Excel Degree so that each provisional capital of described mind map picture side and a leaf knot of described mind map picture Point horizontal alignment;
Display module, is used for showing described Microsoft Excel.
Test case exhibiting device the most according to claim 6, it is characterised in that described picture generates Module includes:
Resolution unit, for resolving described XML data and generating for representing that described mind map is corresponding many The data of fork tree;
Statistical computation unit, is used for traveling through described multiway tree, adds up the leafy node total quantity of described multiway tree, And exist according to each leafy node of the leafy node total quantity described mind map picture of calculating of described multiway tree Longitudinal pitch between adjacent leafy node when being longitudinally uniformly distributed in the range of specified altitude assignment;
Picture signal generating unit, for generating the picture of specified altitude assignment, by the path represented by described XML data This picture dissipates arrangement from root node toward one side, and by the leafy node in each path according to described Longitudinal pitch carries out longitudinally being uniformly distributed, and obtains described mind map picture.
Test case exhibiting device the most according to claim 7, it is characterised in that described statistical computation Unit is additionally operable to during traveling through described multiway tree add up the degree of depth of each node in described multiway tree and each knot The quantity of the leafy node that point is corresponding;
Described statistical computation unit is additionally operable to the degree of depth according to node each in described multiway tree, the descendants of each node The quantity of the leafy node that the depth capacity of node is corresponding with each node and described longitudinal pitch, calculate described In mind map picture, each node is relative to the lengthwise position of root node and lateral attitude so that in described thinking Lead first leafy node and root node interval specified width, which width in figure picture, first leafy node and last Individual leafy node interval specified altitude assignment, each node and its first child node horizontal alignment, each leafy node is indulged To alignment and being uniformly distributed in the vertical, each node is the most equal with the descendants's node on its longest subpath Even distribution;
Described picture signal generating unit is for generating the picture of specified width, which width and specified altitude assignment, by described XML data Represented root node is arranged in the upper left corner of this picture, and by other node represented by described XML data It is distributed in this picture relative to lengthwise position and the lateral attitude of root node according to it.
Test case exhibiting device the most according to claim 8, it is characterised in that described statistical computation Unit is according to the degree of depth of node each in described multiway tree, the depth capacity of descendants's node of each node and each node The quantity of corresponding leafy node and described longitudinal pitch, calculate each node phase in described mind map picture The lengthwise position of root node and the process of lateral attitude are included:
The coordinate initializing root node is origin;
Abscissa and the vertical coordinate of other node outside root node is calculated successively according to preorder traversal order, wherein, Arbitrary node DiAbscissa xiWith vertical coordinate yiIt is respectively as follows:
xi=d (Di)*w/Max(Di);
yi=ybrother(Di), as described node DiDuring for first child node of its father node
yi=ybrother(Di)-Leaf (brother (Di)) * △ y, as node DiIt is not first son knot of its father node During point;
Wherein, d (Di) it is node DiThe degree of depth, w is described specified width, which width, Max (Di) it is node DiSon Maximum in the degree of depth of grandson's node;brother(Di) it is node DiA upper sibling, ybrother(Di) For node DiThe vertical coordinate of a upper sibling, Leaf (brother (Di)) it is node DiA upper brother The quantity of the leafy node that node is corresponding, △ y is described longitudinal pitch.
Test case exhibiting device the most according to claim 6, it is characterised in that described device is also Including XML data generation module, for generating the constitution element sequence that test case is corresponding, and generate structure Become the node represented with XML data format that each constitution element in element sequence is corresponding, wherein, adjacent two The child node that node is the node that previous constitution element is corresponding that after in constitution element, a constitution element is corresponding, respectively The identical stem subsequence of constitution element sequence shares identical XML data, obtains test case correspondence and thinks Dimension leads the XML data of figure.
CN201510107799.9A 2015-03-11 2015-03-11 Test case methods of exhibiting and device Active CN106033389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510107799.9A CN106033389B (en) 2015-03-11 2015-03-11 Test case methods of exhibiting and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510107799.9A CN106033389B (en) 2015-03-11 2015-03-11 Test case methods of exhibiting and device

Publications (2)

Publication Number Publication Date
CN106033389A true CN106033389A (en) 2016-10-19
CN106033389B CN106033389B (en) 2019-02-12

Family

ID=57149885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510107799.9A Active CN106033389B (en) 2015-03-11 2015-03-11 Test case methods of exhibiting and device

Country Status (1)

Country Link
CN (1) CN106033389B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122298A (en) * 2017-04-21 2017-09-01 千寻位置网络有限公司 The methods of exhibiting of visual software development process quality
CN107491394A (en) * 2017-08-25 2017-12-19 中国银行股份有限公司 A kind of method for testing and analyzing and device based on digraph identification
CN107729243A (en) * 2017-10-12 2018-02-23 上海携程金融信息服务有限公司 API automated testing method, system, equipment and storage medium
CN107885713A (en) * 2017-11-28 2018-04-06 广州视源电子科技股份有限公司 File layout change-over method, device, equipment and storage medium
CN108509339A (en) * 2018-03-22 2018-09-07 京北方信息技术股份有限公司 Method for generating test case, device based on browser and mind map and equipment
CN108874671A (en) * 2018-06-20 2018-11-23 上海哔哩哔哩科技有限公司 Testing case management, device, system and storage medium
CN109740122A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The conversion method and device of mind map use-case file
CN110389889A (en) * 2018-04-20 2019-10-29 伊姆西Ip控股有限责任公司 For the visualization method of test case, equipment and computer readable storage medium
CN111104317A (en) * 2019-12-09 2020-05-05 紫光云(南京)数字技术有限公司 Method for realizing efficient editing and execution management of test cases
CN111290956A (en) * 2020-02-17 2020-06-16 贵阳货车帮科技有限公司 Brain graph-based testing method and device, electronic equipment and storage medium
CN111352832A (en) * 2020-02-24 2020-06-30 腾讯科技(成都)有限公司 Method and device for automatically testing page
CN111538673A (en) * 2020-06-04 2020-08-14 中国联合网络通信集团有限公司 Processing method, device, equipment and storage medium based on test case
CN112559368A (en) * 2020-12-23 2021-03-26 马上消费金融股份有限公司 Interface automation test method and its use case generation method, equipment and storage medium
CN113495827A (en) * 2020-03-20 2021-10-12 株洲中车时代电气股份有限公司 Method for exporting excel test case based on mind mapping tool

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130144917A1 (en) * 2011-12-05 2013-06-06 International Business Machines Corporation Integrating mind mapping technology with case modeling
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
CN104156342A (en) * 2014-08-01 2014-11-19 福建星网视易信息系统有限公司 Method and device for converting Excel format testing case into XML (extensive markup language) format
US8949670B1 (en) * 2012-09-26 2015-02-03 Emc Corporation Method and system for translating mind maps to test management utility test cases
CN104391793A (en) * 2014-11-27 2015-03-04 中国联合网络通信集团有限公司 Generation method and device of test steps and scripts

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130144917A1 (en) * 2011-12-05 2013-06-06 International Business Machines Corporation Integrating mind mapping technology with case modeling
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
US8949670B1 (en) * 2012-09-26 2015-02-03 Emc Corporation Method and system for translating mind maps to test management utility test cases
CN104156342A (en) * 2014-08-01 2014-11-19 福建星网视易信息系统有限公司 Method and device for converting Excel format testing case into XML (extensive markup language) format
CN104391793A (en) * 2014-11-27 2015-03-04 中国联合网络通信集团有限公司 Generation method and device of test steps and scripts

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LONGLIVEZHENLI: "权威经典!思维导图三招二十八式大汇总_4", 《百度文库》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122298A (en) * 2017-04-21 2017-09-01 千寻位置网络有限公司 The methods of exhibiting of visual software development process quality
CN107491394A (en) * 2017-08-25 2017-12-19 中国银行股份有限公司 A kind of method for testing and analyzing and device based on digraph identification
CN107729243A (en) * 2017-10-12 2018-02-23 上海携程金融信息服务有限公司 API automated testing method, system, equipment and storage medium
CN107885713B (en) * 2017-11-28 2021-12-14 广州视源电子科技股份有限公司 File format conversion method, device, equipment and storage medium
CN107885713A (en) * 2017-11-28 2018-04-06 广州视源电子科技股份有限公司 File layout change-over method, device, equipment and storage medium
CN108509339A (en) * 2018-03-22 2018-09-07 京北方信息技术股份有限公司 Method for generating test case, device based on browser and mind map and equipment
CN110389889A (en) * 2018-04-20 2019-10-29 伊姆西Ip控股有限责任公司 For the visualization method of test case, equipment and computer readable storage medium
CN108874671A (en) * 2018-06-20 2018-11-23 上海哔哩哔哩科技有限公司 Testing case management, device, system and storage medium
CN109740122A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The conversion method and device of mind map use-case file
CN109740122B (en) * 2018-12-11 2023-08-29 中国联合网络通信集团有限公司 Method and device for converting thinking guide graph use case file
CN111104317A (en) * 2019-12-09 2020-05-05 紫光云(南京)数字技术有限公司 Method for realizing efficient editing and execution management of test cases
CN111290956A (en) * 2020-02-17 2020-06-16 贵阳货车帮科技有限公司 Brain graph-based testing method and device, electronic equipment and storage medium
CN111290956B (en) * 2020-02-17 2023-09-01 贵阳货车帮科技有限公司 Brain graph-based test method and device, electronic equipment and storage medium
CN111352832A (en) * 2020-02-24 2020-06-30 腾讯科技(成都)有限公司 Method and device for automatically testing page
CN113495827A (en) * 2020-03-20 2021-10-12 株洲中车时代电气股份有限公司 Method for exporting excel test case based on mind mapping tool
CN111538673A (en) * 2020-06-04 2020-08-14 中国联合网络通信集团有限公司 Processing method, device, equipment and storage medium based on test case
CN111538673B (en) * 2020-06-04 2023-07-07 中国联合网络通信集团有限公司 Processing method, device, equipment and storage medium based on test case
CN112559368A (en) * 2020-12-23 2021-03-26 马上消费金融股份有限公司 Interface automation test method and its use case generation method, equipment and storage medium

Also Published As

Publication number Publication date
CN106033389B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN106033389A (en) A test use case display method and device
CN109656623B (en) It executes the method and device of convolution algorithm operation, generate the method and device of instruction
CN110287336B (en) Tourist map construction method for tourist attraction recommendation
CN106197445B (en) A kind of method and device of route planning
CN103157281B (en) Display method and display equipment of two-dimension game scene
CN106021436B (en) A kind of manufacture method of vector tile map
CN105700708B (en) A kind of method of adjustment and terminal of terminal interface
CN110706314A (en) Element layout method and device, electronic equipment and readable storage medium
CN107957989A (en) Term vector processing method, device and equipment based on cluster
Talaska et al. Network parametrizations for the Grassmannian
CN107506296A (en) Input method testing method and device, electronic equipment and storage medium
CN104125582B (en) A kind of method for planning communication network
CN106371834A (en) Method and device for displaying bullet screen data
CN109934266A (en) Improve the visual analysis system and method for crowdsourcing labeled data quality
CN105824979A (en) Course recommendation method and system of same
CN106503059A (en) Displayed page method for pushing and device
CN109324796A (en) Quick interface arrangement method and device
CN111882632A (en) Rendering method, device and equipment of ground surface details and storage medium
CN104281374B (en) The method and system of sliding list component
CN107077742A (en) A kind of image processing apparatus and method
CN106649373A (en) Thermodynamic diagram display method and device
US20110119311A1 (en) Map data creating device and map drawing device
CN103902633B (en) A kind of method and its device, system of generation POI hot-zone data
EP2843624A1 (en) Image processing device, image processing device control method, program, and information storage medium
CN111309424B (en) Page restoration method and related equipment

Legal Events

Date Code Title Description
C06 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