CN109740122A - The conversion method and device of mind map use-case file - Google Patents

The conversion method and device of mind map use-case file Download PDF

Info

Publication number
CN109740122A
CN109740122A CN201811513165.3A CN201811513165A CN109740122A CN 109740122 A CN109740122 A CN 109740122A CN 201811513165 A CN201811513165 A CN 201811513165A CN 109740122 A CN109740122 A CN 109740122A
Authority
CN
China
Prior art keywords
case
file
mind map
node
textual
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
CN201811513165.3A
Other languages
Chinese (zh)
Other versions
CN109740122B (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.)
China United Network Communications Group Co Ltd
Unicompay Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicompay 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 China United Network Communications Group Co Ltd, Unicompay Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811513165.3A priority Critical patent/CN109740122B/en
Publication of CN109740122A publication Critical patent/CN109740122A/en
Application granted granted Critical
Publication of CN109740122B publication Critical patent/CN109740122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

This application discloses the conversion methods and device of a kind of mind map use-case file, are related to computer technology, for the conversion of mind map use-case file for convenience of the excel test case of Team Management.It include: to obtain mind map use-case file;Father node and the corresponding the multiple child node of father node are traversed, obtains multiple textual values, and multiple textual values are stored to dynamic array Arraylist;The configuration file of acquisition standard use-case template file, wherein configuration file includes multiple use-case titles;Arraylist is parsed, multiple textual values corresponding with multiple use-case titles are obtained;Criteria table file is determined according to multiple use-case titles and textual value corresponding with multiple use-case titles.The embodiment of the present application is applied to mind map use-case file and is converted to standard excel test case.

Description

The conversion method and device of mind map use-case file
Technical field
The present invention relates to field of computer technology more particularly to a kind of method for transformation and dress of mind map use-case file It sets.
Background technique
Test case refers to the description that test assignment is carried out to a specific software product, embodies testing scheme, side Method, technology and strategy.Test content includes test target, test environment, input data, testing procedure, expected results and test Script etc., and form document.And document format standard is the basis for realizing information resources effect and open document format.Although Document format gradually moves towards open, but office documents industry is still that multiple standards coexist at present.
Currently, majority is to write use-case by mind map, then hand-coding is a again after test Excel test case is as standard testing use-case template, to safeguard to test case.Excel test case is suitable for Team's maintenance is read with other people, but compiling procedure logicality is poor, consuming time is long.The compiling procedure of mind map use-case file Logicality is relatively strong, it is also relatively simple to write, but the authoring tool of mind map is numerous, and that does not unify writes specification, is not easy to Team's maintenance.
Summary of the invention
Embodiments herein provides the conversion method and device of a kind of test case file, is used for mind map use-case The excel test case that file is converted for convenience of Team Management.
In order to achieve the above objectives, embodiments herein adopts the following technical scheme that
In a first aspect, a kind of method for transformation of mind map use-case file is provided, this method comprises: obtaining the thinking Lead figure use-case file, wherein the mind map use-case file includes multiple nodes, and the multiple node includes root node, father Node and at least one child node corresponding with the father node, each node store textual value, the text of the root node storage This value is used to indicate the task names of the mind map use-case file;The textual value of the father node storage is for indicating described Task names and/or the module title for executing the task;The textual value of the corresponding child node storage of the father node is used for table Show the task and/or the executable test operation of module and is expected operating result;Traverse the father node and father section The corresponding the multiple child node of point, obtains the multiple textual value, and the multiple textual value is stored to dynamic array Arraylist, wherein the Arraylist includes multiple textual values;The configuration file of acquisition standard use-case template file, In, the configuration file includes multiple use-case titles;The Arraylist is parsed, is obtained corresponding with the multiple use-case title Multiple textual values;Criteria table is determined according to the multiple use-case title and textual value corresponding with the multiple use-case title File.
Second aspect, provides a kind of reforming unit of mind map use-case file, which includes acquiring unit, processing Unit and determination unit.
The acquiring unit, for obtaining the mind map use-case file, wherein the mind map use-case file packet Include multiple nodes, the multiple node includes root node, father node and at least one child node corresponding with the father node, often A node stores textual value, and the textual value of the root node storage is used to indicate the task name of the mind map use-case file Claim;The module title that the textual value of the father node storage is used to indicate the task names and/or execute the task;It is described The textual value of father node corresponding child node storage is used to indicate the task and/or the executable test operation of module and pre- Phase operating result.
The processing unit is obtained for traversing the father node and the corresponding the multiple child node of the father node The multiple textual value, and the multiple textual value is stored to dynamic array Arraylist, wherein the Arraylist packet Include multiple textual values.
The acquiring unit is also used to obtain the configuration file of standard use-case template file, wherein the configuration file packet Include multiple use-case titles.
The processing unit is also used to parse the Arraylist, obtains corresponding multiple with the multiple use-case title Textual value.
The determination unit, for according to the multiple use-case title and textual value corresponding with the multiple use-case title Determine criteria table file.
The third aspect, provides a kind of computer readable storage medium for storing one or more programs, it is one or Multiple programs include instruction, and described instruction makes the thinking of the computer execution as described in relation to the first aspect when executed by a computer Lead the method for transformation of figure use-case file.
Fourth aspect provides a kind of computer program product comprising instruction, when described instruction is run on computers When, so that computer executes the method for transformation of mind map use-case file as described in relation to the first aspect.
5th aspect, provides a kind of reforming unit of mind map use-case file, comprising: processor and memory, storage Device calls the program of memory storage for storing program, processor, to execute the use of mind map described in above-mentioned first aspect The method for transformation of example text part.
The method for transformation and device for the mind map use-case file that embodiments herein provides, according to standard use-case template Configuration file in file extracts the configuration item of fixed test case, and parses mind map use-case file according to pre-set specifications, The result being parsed is generated into excel file by the configuration item of standard use-case template and is stored in file, so as to certainly Dynamic is converted to excel file for mind map use-case, reduces the time for writing excel use-case again by hand.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram for mind map use-case file that embodiments herein provides;
Fig. 2 is a kind of mind map use-case file conversion process display schematic diagram one that embodiments herein provides;
Fig. 3 is a kind of mind map use-case file conversion process display schematic diagram two that embodiments herein provides;
Fig. 4 is a kind of mind map use-case file conversion process display schematic diagram three that embodiments herein provides;
Fig. 5 is a kind of mind map use-case file conversion process display schematic diagram four that embodiments herein provides;
Fig. 6 is a kind of method flow schematic diagram one for mind map use-case file conversion that embodiments herein provides;
Fig. 7 is a kind of content schematic diagram for mind map use-case file that embodiments herein provides;
Fig. 8 is a kind of flow diagram two for mind map use-case file conversion that embodiments herein provides;
Fig. 9 is a kind of apparatus structure schematic diagram one for mind map use-case file conversion that embodiments herein provides;
Figure 10 is a kind of apparatus structure schematic diagram two for mind map use-case file conversion that embodiments herein provides.
Specific embodiment
Below first to the invention relates to some concepts simply introduced.
(1) use-case
Use-case (use case), or translate use case, with condition, it is how to react in soft project or system engineering system The description of external world's request is a kind of usage scenario by user to obtain the technology of demand.Each use-case provide one or Multiple scenes, the scene illustrate system be how with end user or other system mutuals, that is, who can make of system What, to obtain a specific business objective.It to be avoided using technical term when writing use-case, and end user should be used Or the language of domain expert.Use-case is usually to be created jointly by software developer and end user.
(2) mind map file, alternatively referred to as mind map use-case can be drawn by xmind tool.Thinking is led Figure is to cause the construction of visualization and the idea of classification using a central keyword or idea;By a central keyword or Idea is to radiate the graphic mode of all representative words of linear connection, idea, task or other associated items, themes at different levels Relationship showed to relevant stratal diagram with being mutually subordinate to.
(3) ArrayList is the class realized based on dynamic array, for random access and setting, ArrayList tool There is more outstanding function.
(4) Linkedlist is the class realized based on chained list, is had for newly-increased and delete operation, LinkedList More outstanding function.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application is described.
In the description of the present application, unless otherwise indicated, "/" indicates the meaning of "or", for example, A/B can indicate A or B. "and/or" herein is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A And/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.
Technical solution provided by the embodiments of the present application can be applied to e-payment field etc..
The method for transformation of mind map use-case file provided by the embodiments of the present application includes: to formulate mind map use-case file Redaction rule writes mind map use-case file according to the rule, converts mark for the mind map use-case file for writing completion Quasi- table use-case file.
Mind map use-case file edit rule can be with are as follows: for needing to configure the use-case of said module, affiliated task, With M=module title in father node, T=task names are indicated;In child node with===segmentation use-case test name and Operate expected results etc..
Specifically, being that a kind of thinking write according to above-mentioned rule provided by the embodiments of the present application is led referring to fig. 1 Figure use-case file, in Fig. 1, root node includes two text chunks: being logged in, registration;The text chunk of father node are as follows: T=task- 1021, M=logins or T=task-1022, M=registration;The text chunk of first child node includes: to open login page, stepping on The record page clicks registration button and jumps to enrollment page;In first child node in " opening login page " corresponding second child node Text chunk include:
1, it checks page info, checks that whether normally===login page showing interface shows: user name, Password Input Show that login, registration button are normal below the normal input frame of frame.
2, correct username and password is inputted in username and password input frame, is clicked login button, is checked user Whether login function is normal: can normally be logged in using correct user name password===can log in and successfully jump to homepage just Often.
3, in username and password input frame the username and password of input error, click login button, check user Whether login function is normal: using the user name password login failure===login failure of mistake, prompting username and password Mistake.
" registration button is clicked in login page and jumps to enrollment page " corresponding second child node packet in first child node It includes:
1, it checks page presentation, check that enrollment page shows that it is correct to show that all information fills in frame for normal===.
2, registration information fills in complete and all meets rule, click confirming button, check whether registering functional is normal: defeated Enter correct registration information can succeed in registration===succeed in registration.
3, registration information fill in be not inconsistent normally, click confirming button, check whether registering functional normal: input error Registration information registration failure===registration failure prompts failure information.
Wherein, the entitled login of use-case said module, registration, the affiliated task names of use-case are task-1021, task- 1022;The test name of use-case includes: to check whether login page showing interface is normal, can be just using correct user name password It often logs in, failed using the user name password login of mistake, check page presentation, check that enrollment page is showing normal, input just True registration information can succeed in registration, the registration information registration failure of input error.
Expected results include: to show: showing login, registration button below the normal input frame of user name, Password Input frame;Energy Log in that successfully to jump to homepage normal;Login failure prompts username and password mistake;It is correct to show that all information fills in frame; It succeeds in registration;Registration failure prompts failure information.
Optionally, the embodiment of the present application provides a kind of turning for mind map use-case file shown by visualization interface Change detailed process, which may include S1-S4:
S1, initial page is opened.
It as shown in Figure 2, is a kind of initial page shown in display interfaces, which includes select file, is used for The mind map use-case file for choosing conversion, can also include: use-case said module, the affiliated version of use-case, the affiliated label of use-case And use-case tracks user.
S2, click " selecting file " choose mind map use-case file.
It as shown in Figure 3, is a kind of page of selection mind map use-case file shown in display.
S3, use-case file, which are chosen, to be completed.
It as shown in Figure 4, is a kind of page after the completion of the selection that display interfaces are shown.
S4 chooses excel file storage location.
Before conversion mind map file is converted to criteria table use-case file, it is thus necessary to determine that obtained mark table is used The storage location of example text part.It as shown in Figure 5, is a kind of page of selection standard form document storage location shown in display Face.
S5, criteria table use-case file is converted by the mind map use-case file of selection.
Specifically, being that a kind of mind map use-case file provided by the embodiments of the present application is converted into mark referring to fig. 6 The method of quasi- table use-case file, this method may include S101-S105:
S101, mind map use-case file is obtained.
Wherein, mind map use-case file includes multiple nodes, multiple nodes include root node, father node and with the father At least one corresponding child node of node, each node store textual value, and the textual value of root node storage is for indicating that thinking is led The task names of figure use-case file;The mould that the textual value of the father node storage is used to indicate task names and/or execute task Block title;The textual value of father node corresponding child node storage be used to indicate task and/or the executable test operation of module with And expected operating result.
It should be noted that ZipEntry the and ZipInputStream class that can use under java.util.zip packet will be thought Dimension leads figure use-case file recurrence and unzips to local folders.
It should be noted that java.util.zip be java in a kit, the kit include ZipEntry class and ZipInputStream class.
Illustratively, Fig. 1 is a kind of mind map use-case file provided by the embodiments of the present application, the mind map example text Root node is to log in & registration, the first father node in part are as follows: task identification T=task-1021, module id M=are logged in;Second Father node are as follows: task identification T=task-1022, module id M=registration;Corresponding first child node of first father node is " to beat Open login page ", " checking page info, check whether login page showing interface normal " be test operation, the test operation Corresponding expected operating result is " to show: showing login, registration button just below the normal input frame of user name, Password Input frame Often ", the description of other nodes is similar to foregoing description, will not enumerate herein.
S102, the traversal father node and corresponding multiple child nodes of father node, obtain multiple textual values, and by multiple textual values It stores to dynamic array Arraylist.
Wherein, Arraylist includes multiple textual values.
Mind map file includes extensible markup language (Extensible Markup Language, xml) format Content content file is as shown in Figure 7 the content.xml file in the mind map file of Fig. 1, should Content.xml file includes a series of alphanumeric codes and textual value, wherein and title indicates that title, topic indicate main body, Topics type indicates that type of subject, topics id indicate main body mark, and children indicates child node.
Its corresponding child node is begun stepping through from father node, the relevant textual value of available multiple groups, each group of textual value For a use-case, a plurality of use-case that traversal obtains can be stored to Arraylist, it can be in order to inquiring.
Illustratively, the content.xml of the mind map use-case file such as Fig. 7 is traversed, available following use-case:
1, T=task-1021, M=are logged in, and are opened login page, are checked page info, check login page showing interface Whether normal===shows: showing that login, registration button are normal below the normal input frame of user name, Password Input frame.
2, T=task-1021, M=are logged in, and open login page, are inputted in username and password input frame correct Username and password clicks login button, checks whether user's login function is normal: can be normal using correct user name password Log in===can log in that successfully to jump to homepage normal.
3, T=task-1021, M=are logged in, and open login page, the input error in username and password input frame Username and password clicks login button, checks whether user's login function is normal: being lost using the user name password login of mistake ===login failure is lost, username and password mistake is prompted.
4, T=task-1022, M=registration click registration button in login page and jump to enrollment page, checks the page It shows, check that enrollment page shows that it is correct to show that all information fills in frame for normal===.
5, T=task-1022, M=registration click registration button in login page and jump to enrollment page, registration information It fills in complete and all meets rule, click confirming button, check whether registering functional is normal: inputting correct registration information energy Succeed in registration===it succeeds in registration.
6, T=task-1022, M=registration click registration button in login page and jump to enrollment page, registration information Fill in be not inconsistent normally, click confirming button, check whether registering functional normal: the registration information registration failure of input error= ==registration failure prompts failure information.
Optionally, referring to fig. 8, multiple textual values obtained in S102 are stored to a kind of reality of Arraylist Existing mode may include S201-S202:
S201, multiple textual values are stored to multiple chained list LinkedList.
Wherein, each LinkedList includes a use-case, and each use-case includes textual value and father in a father node Textual value in the corresponding multiple child nodes of node.
Its corresponding child node is determined according to father node title, begins stepping through its corresponding child node from father node, it will be same The textual value of all child nodes under one link is stored to LinkedList, until the complete thinking use-case of traversal leads picture and text Part.
S202, multiple LinkedList are stored to Arraylist.
Since Linkedlist is realized based on chained list, the relationship that multiple nodes are directly put can be used to indicate that, also just In newly-increased and delete operation, ArrayList data easy to remove, therefore multiple LinkedList obtained in S201 can be stored up It deposits to Arraylist.
S103, the configuration file for obtaining standard use-case template file.
Wherein, configuration file includes multiple use-case titles.
It extracts the fixed format in standard use-case template file to form the configuration file for facilitating management, configuration text Part may include multiple use-case titles.
Illustratively, use-case title may include: 1, casename, test name (Name) in the configuration file;2, CaseType, use-case type;3, component, module (Components);4, firstcomponent, previous functional modules; 5, secontcomponent, secondary function module;6, threecomponent, three-level functional module;7, fixVersion, version This (Versions);8, linkedJiraNo, label (Labels);9, casePriority, use-case priority;10, PubilcCase, public use-case;11, assigne, executor (Assignee);12, discription, description;13, step, Testing procedure description;14, expectResult, it is contemplated that result;15, testDate, test data.
Optionally, when there are new use-case, the more configuration file of new standard use-case template file obtains new standard and uses Example template file, and store updated standard use-case template file, wherein configuration file includes the corresponding name of new use-case Claim.
It should be noted that each test case can be made by the configuration file in updating maintenance standard use-case template file Field value and its respective column serial number it is newest, the entitled newest of test case can also be made.
Optionally, the public field extracted can also be shown, as shown in table 1:
The displayed page of table 1, public field
Use-case said module Database
The affiliated version of use-case In April, 2018, routine was online
The affiliated label of use-case KHFW-4400
Upper category It is customary online
Use-case tracks user Sym
It should be noted that first being classified as public field title in table 1, second is classified as the corresponding field of public field title.
Wherein, when the value of use-case said module is not configured in use-case, use-case said module in table 1 can be selected corresponding Value;When the value of the affiliated task of use-case is not configured in use-case, the corresponding value of the affiliated task of use-case in table 1 can be selected;Use-case institute Belonging to version, use-case handler etc. can also be by corresponding value in table 1.
S104, parsing Arraylist, obtain multiple textual values corresponding with multiple use-case titles.
The each LinkedList looped through in ArrayList is a use-case, according to the rule parsing of above-mentioned offer Each LinkedList obtains the corresponding textual value of multiple use-case titles, is written to each corresponding textual value newly after being parsed In the excel table built, until traversal is completed to terminate.
S105, criteria table file is determined according to multiple use-case titles and textual value corresponding with multiple use-case titles.
It can be newly-built by the XSSFWorkbook (XSSFWorkbook is a kit in java) in Java Use-case titles multiple in the configuration file of standard use-case template file format are imported the of newly-built excel by excel form document One row or column, other row or column in addition to the first row or column are the corresponding textual value of use-case title.
Illustratively, public field shown in mind map use-case file and table 1 according to figure 1 is available such as table Criteria table file shown in 2:
Table 2, criteria table test case
In table 2, the first behavior use-case title, the second row to the 7th behavior textual value corresponding with use-case title.
The method for transformation of mind map use-case file provided by the embodiments of the present application, according to matching for standard use-case template style The use-case title in file is set, and parses mind map use-case file, obtained multiple use-cases, by use-case name according to pre-set specifications Claim and corresponding textual value generates excel file by standard use-case template configuration item and stores in file, so as to automatic Mind map use-case is converted into excel file, reduce and write time of excel use-case again by hand, can also be in time More new configuration file keeps criteria table file newest.
The embodiment of the present application can carry out function according to reforming unit of the above method example to mind map use-case file The division of module perhaps functional unit, can also for example, each functional module of each function division or functional unit can be corresponded to Two or more functions to be integrated in a processing module.Above-mentioned integrated module can both use the shape of hardware Formula is realized, can also be realized in the form of software function module or functional unit.Wherein, to module in the embodiment of the present application Or the division of unit is schematically, only a kind of logical function partition can have other division side in actual implementation Formula.
Referring to fig. 9, the embodiment of the present application provides a kind of reforming unit of mind map use-case file, the device May include acquiring unit 810, processing unit 820 and determination unit 830:
Acquiring unit 810, for obtaining mind map use-case file, wherein mind map use-case file includes multiple sections Point, multiple nodes include root node, father node and at least one child node corresponding with the father node, each node storage text The textual value of this value, root node storage is used to indicate the task names of mind map use-case file;The text of the father node storage This value is used to indicate task names and/or execute the module title of task;The textual value of the corresponding child node storage of father node is used In the executable test operation of the task of expression and/or module and expected operating result.
Processing unit 820 obtains multiple textual values for traversing father node and the corresponding multiple child nodes of father node, and Multiple textual values are stored to dynamic array Arraylist.
Acquiring unit 810 is also used to obtain the configuration file of standard use-case template file, wherein configuration file includes more A use-case title.
Processing unit 820 is also used to parse Arraylist, obtains multiple textual values corresponding with multiple use-case titles.
Determination unit 830, for determining standard according to multiple use-case titles and textual value corresponding with multiple use-case titles Form document.
Optionally, processing unit 820 is specifically used for: multiple textual values are stored to multiple chained list LinkedList, wherein Each LinkedList includes a use-case, and each use-case includes that textual value in a father node and father node are corresponding multiple Textual value in child node;Multiple LinkedList are stored to Arraylist.
Optionally, processing unit 820 are also used to: when there are new use-case, the more configuration of new standard use-case template file File obtains new standard use-case template file, and stores updated standard use-case template file, wherein configuration file packet Include the corresponding use-case title of new use-case.
Figure 10 show the reforming unit of involved mind map use-case file in above-described embodiment another is possible Structural schematic diagram.The device includes: processor 402.Processor 402 is for carrying out control management to the movement of device, for example, holding The step of above-mentioned acquiring unit 810 of row executes, and/or other processes for executing techniques described herein.Terminal may be used also To include memory 401 and bus 403, program code and data of the memory 401 for storage device.
Wherein, above-mentioned processor 402 may be implemented or execute various exemplary in conjunction with described in present disclosure Logic block, unit and circuit.The processor can be central processing unit, general processor, and digital signal processor is dedicated Integrated circuit, field programmable gate array or other programmable logic device, transistor logic, hardware component or its Any combination.It, which may be implemented or executes, combines various illustrative logic blocks described in present disclosure, unit And circuit.The processor is also possible to realize the combination of computing function, such as combines comprising one or more microprocessors, DSP and the combination of microprocessor etc..
Memory 401 may include volatile memory, such as random access memory;The memory also may include non- Volatile memory, such as read-only memory, flash memory, hard disk or solid state hard disk;The memory can also include above-mentioned The combination of the memory of type.
Bus 403 can be expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..Bus 403 can be divided into address bus, data/address bus, control bus etc..For convenient for table Show, only indicated with a thick line in Figure 10, it is not intended that an only bus or a type of bus.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only with the division progress of above-mentioned each functional unit for example, in practical application, can according to need and will be upper It states function distribution to be completed by different functional units, i.e., the internal structure of device is divided into different functional units, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, and finger is stored in computer readable storage medium It enables, when computer executes the instruction, which is executed such as each step in Fig. 6, method flow shown in fig. 8.
The embodiment of the present invention provides a kind of computer program product comprising instruction, when instruction is run on computers When, so that computer executes the method for transformation of the mind map use-case file as described in Fig. 6, Fig. 8.
Wherein, computer readable storage medium, such as electricity, magnetic, optical, electromagnetic, infrared ray can be but not limited to or partly led System, device or the device of body, or any above combination.The more specific example of computer readable storage medium is (non-poor The list of act) it include: the electrical connection with one or more conducting wires, portable computer diskette, hard disk.Random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), erasable type may be programmed read-only It is memory (Erasable Programmable Read Only Memory, EPROM), register, hard disk, optical fiber, portable Compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), light storage device, magnetic memory Part or above-mentioned people are in appropriate combination or the computer readable storage medium of any other form of this field numerical value. A kind of illustrative storage medium is coupled to processor, to enable a processor to from the read information, and can be to Information is written in the storage medium.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be with In application-specific IC (Application Specific Integrated Circuit, ASIC).In the application In embodiment, computer readable storage medium can be any tangible medium for including or store program, which can be referred to Enable execution system, device or device use or in connection.
By the reforming unit of mind map use-case file in an embodiment of the present invention, computer readable storage medium, Computer program product can be applied to the above method, therefore, can be obtained technical effect see also above method reality Example is applied, details are not described herein for the embodiment of the present invention.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer Program product includes one or more computer instructions.On computers load and execute computer program instructions when, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center Word user line (Digital SubscriberLine, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another Web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer capacity Any usable medium enough accessed either includes the data such as one or more server, data centers that medium can be used to integrate Store equipment.The usable medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or Person's semiconductor medium (such as solid state hard disk (Solid State Disk, SSD)) etc..
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (9)

1. a kind of method for transformation of mind map use-case file characterized by comprising
Obtain the mind map use-case file, wherein the mind map use-case file includes multiple nodes, the multiple section Point includes root node, father node and at least one child node corresponding with the father node, and each node stores textual value, described The textual value of root node storage is used to indicate the task names of the mind map use-case file;The text of the father node storage Value is for indicating the task names and/or executing the module title of the task;The corresponding child node storage of the father node Textual value be used to indicate test operation and expected operating result that the task and/or module are executable;
The father node and the corresponding the multiple child node of the father node are traversed, obtains the multiple textual value, and by institute It states multiple textual values to store to dynamic array Arraylist, wherein the Arraylist includes multiple textual values;
The configuration file of acquisition standard use-case template file, wherein the configuration file includes multiple use-case titles;
The Arraylist is parsed, multiple textual values corresponding with the multiple use-case title are obtained;
Criteria table file is determined according to the multiple use-case title and textual value corresponding with the multiple use-case title.
2. the method for transformation of mind map use-case file according to claim 1, which is characterized in that it is described will be the multiple Textual value is stored to dynamic array Arraylist, comprising:
The multiple textual value is stored to multiple chained list LinkedList, wherein each LinkedList includes a use-case, Each use-case includes the textual value in textual value and the corresponding multiple child nodes of the father node in a father node;
The multiple LinkedList is stored to the Arraylist.
3. the method for transformation of mind map use-case file according to claim 1, which is characterized in that the method is also wrapped It includes:
When there are new use-case, the configuration file of the standard use-case template file is updated, obtains new standard use-case template File, and store the new standard use-case template file, wherein the configuration file includes the corresponding use of the new use-case Example title.
4. a kind of reforming unit of mind map use-case file, which is characterized in that described device includes acquiring unit, processing unit And determination unit;
The acquiring unit, for obtaining the mind map use-case file, wherein the mind map use-case file includes more A node, the multiple node include root node, father node and at least one child node corresponding with the father node, Mei Gejie The textual value of point storage textual value, the root node storage is used to indicate the task names of the mind map use-case file;Institute The textual value for stating father node storage is used to indicate the task names and/or execute the module title of the task;Father's section The textual value of the corresponding child node storage of point is used to indicate the task and/or the executable test operation of module and expected behaviour Make result;
The processing unit obtains described for traversing the father node and the corresponding the multiple child node of the father node Multiple textual values, and the multiple textual value is stored to dynamic array Arraylist, wherein the Arraylist includes more A textual value;
The acquiring unit is also used to obtain the configuration file of standard use-case template file, wherein the configuration file includes more A use-case title;
The processing unit is also used to parse the Arraylist, obtains multiple texts corresponding with the multiple use-case title Value;
The determination unit, for being determined according to the multiple use-case title and textual value corresponding with the multiple use-case title Criteria table file.
5. the reforming unit of mind map use-case file according to claim 4, which is characterized in that the processing unit tool Body is used for:
The multiple textual value is stored to multiple chained list LinkedList, wherein each LinkedList includes a use-case, Each use-case includes the textual value in textual value and the corresponding multiple child nodes of the father node in a father node;
The multiple LinkedList is stored to the Arraylist.
6. the reforming unit of mind map use-case file according to claim 4, which is characterized in that the processing unit, It is also used to:
When there are new use-case, the configuration file of the standard use-case template file is updated, obtains new standard use-case template File, and store the new standard use-case template file, wherein the configuration file includes the corresponding use of the new use-case Example title.
7. a kind of computer readable storage medium for storing one or more programs, which is characterized in that one or more of journeys Sequence includes instruction, and it is as described in any one of claims 1-3 that described instruction when executed by a computer executes the computer The method for transformation of mind map use-case file.
8. a kind of computer program product comprising instruction, which is characterized in that when described instruction is run on computers, so that The computer executes the method for transformation of mind map use-case file as described in any one of claims 1-3.
9. a kind of reforming unit of mind map use-case file, which is characterized in that the conversion of the mind map use-case file fills Set includes: processor and memory;Wherein, for storing one or more programs, which includes memory Computer executed instructions, when the operation of the reforming unit of the mind map use-case file, processor executes memory storage The computer executed instructions, so that the reforming unit perform claim of the mind map use-case file requires described in any one of 1 to 3 Mind map use-case file method for transformation.
CN201811513165.3A 2018-12-11 2018-12-11 Method and device for converting thinking guide graph use case file Active CN109740122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811513165.3A CN109740122B (en) 2018-12-11 2018-12-11 Method and device for converting thinking guide graph use case file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811513165.3A CN109740122B (en) 2018-12-11 2018-12-11 Method and device for converting thinking guide graph use case file

Publications (2)

Publication Number Publication Date
CN109740122A true CN109740122A (en) 2019-05-10
CN109740122B CN109740122B (en) 2023-08-29

Family

ID=66359018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811513165.3A Active CN109740122B (en) 2018-12-11 2018-12-11 Method and device for converting thinking guide graph use case file

Country Status (1)

Country Link
CN (1) CN109740122B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334024A (en) * 2019-06-28 2019-10-15 浙江吉利控股集团有限公司 A kind of testing case management based on tree, device and terminal
CN110543427A (en) * 2019-09-06 2019-12-06 五八有限公司 Test case storage method and device, electronic equipment and storage medium
CN111290956A (en) * 2020-02-17 2020-06-16 贵阳货车帮科技有限公司 Brain graph-based testing method and device, electronic equipment and storage medium
CN111338936A (en) * 2020-02-17 2020-06-26 贵阳货车帮科技有限公司 Brain graph data processing method and device, electronic equipment and storage medium
CN111538673A (en) * 2020-06-04 2020-08-14 中国联合网络通信集团有限公司 Processing method, device, equipment and storage medium based on test case
CN112463596A (en) * 2020-11-17 2021-03-09 武汉木仓科技股份有限公司 Test case data processing method, device and equipment and processing equipment
CN112579454A (en) * 2020-12-23 2021-03-30 武汉木仓科技股份有限公司 Task data processing method, device and equipment
CN113094288A (en) * 2021-05-18 2021-07-09 绿漫科技有限公司 Method for converting mind map into test case based on Xmind
CN113791980A (en) * 2021-09-17 2021-12-14 中国平安人寿保险股份有限公司 Test case conversion analysis method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1973063A1 (en) * 2007-03-23 2008-09-24 Palo Alto Research Center Incorporated Method and apparatus for creating and editing node-link diagrams in PEN computing systems
CN106033389A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 A test use case display method and device
CN106294664A (en) * 2016-08-03 2017-01-04 广州视睿电子科技有限公司 A kind of method and apparatus generating mind map
CN108874671A (en) * 2018-06-20 2018-11-23 上海哔哩哔哩科技有限公司 Testing case management, device, system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1973063A1 (en) * 2007-03-23 2008-09-24 Palo Alto Research Center Incorporated Method and apparatus for creating and editing node-link diagrams in PEN computing systems
CN106033389A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 A test use case display method and device
CN106294664A (en) * 2016-08-03 2017-01-04 广州视睿电子科技有限公司 A kind of method and apparatus generating mind map
CN108874671A (en) * 2018-06-20 2018-11-23 上海哔哩哔哩科技有限公司 Testing case management, device, system and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HOLIDAYLOVESAM: "测试用例设计", 《CSDN》 *
乘虚子: "xmind文件转excel文件,java实现", 《CSDN》 *
无: "xmind转excel", 《CSDN》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334024A (en) * 2019-06-28 2019-10-15 浙江吉利控股集团有限公司 A kind of testing case management based on tree, device and terminal
CN110334024B (en) * 2019-06-28 2023-08-08 浙江吉利控股集团有限公司 Test case management method, device and terminal based on tree structure
CN110543427A (en) * 2019-09-06 2019-12-06 五八有限公司 Test case storage method and device, electronic equipment and storage medium
CN111290956A (en) * 2020-02-17 2020-06-16 贵阳货车帮科技有限公司 Brain graph-based testing method and device, electronic equipment and storage medium
CN111338936A (en) * 2020-02-17 2020-06-26 贵阳货车帮科技有限公司 Brain graph data processing 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
CN111538673B (en) * 2020-06-04 2023-07-07 中国联合网络通信集团有限公司 Processing method, device, equipment and storage medium based on test case
CN111538673A (en) * 2020-06-04 2020-08-14 中国联合网络通信集团有限公司 Processing method, device, equipment and storage medium based on test case
CN112463596A (en) * 2020-11-17 2021-03-09 武汉木仓科技股份有限公司 Test case data processing method, device and equipment and processing equipment
CN112579454A (en) * 2020-12-23 2021-03-30 武汉木仓科技股份有限公司 Task data processing method, device and equipment
CN113094288B (en) * 2021-05-18 2022-06-21 绿漫科技有限公司 Method for converting mind map into test case based on Xmind
CN113094288A (en) * 2021-05-18 2021-07-09 绿漫科技有限公司 Method for converting mind map into test case based on Xmind
CN113791980A (en) * 2021-09-17 2021-12-14 中国平安人寿保险股份有限公司 Test case conversion analysis method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109740122B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN109740122A (en) The conversion method and device of mind map use-case file
CN110309071B (en) Test code generation method and module, and test method and system
US8151248B1 (en) Method and system for software defect management
US7624380B2 (en) Generating functional test scripts
US8930919B2 (en) Modernization of legacy software systems based on modeled dependencies
CN105335412A (en) Method and device for data conversion and data migration
CN107644286A (en) Workflow processing method and device
CN104035873A (en) Method and device for generating testing codes
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN102231194A (en) Method and system for managing life cycle of object
Bezerra et al. Measures for quality evaluation of feature models
CN110096444A (en) A kind of management system, application method and equipment generating test case based on excel
CN110502227A (en) The method and device of code completion, storage medium, electronic equipment
CN106294128B (en) A kind of automated testing method and device exporting report data
CN102929596B (en) Code arrange distinguish method and relevant apparatus
CN108241720B (en) Data processing method, device and computer readable storage medium
CN113326026B (en) Method and terminal for generating micro-service business process interface
CN114691403A (en) Server fault diagnosis method and device, electronic equipment and storage medium
CN107766519B (en) Method for visually configuring data structure
CN101894072B (en) Method for detecting abnormal termination during model detection
CN104123104B (en) Daily record control system and method
CN112947896A (en) Directed graph-based component dependence analysis method
CN102707938A (en) Table-form software specification manufacturing and supporting method and device
US20090064092A1 (en) Visual programming language optimization
JP2017220008A (en) Test supporting device and test supporting method

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