CN114996131A - Thinking guide diagram conversion test case method and device - Google Patents

Thinking guide diagram conversion test case method and device Download PDF

Info

Publication number
CN114996131A
CN114996131A CN202210602657.XA CN202210602657A CN114996131A CN 114996131 A CN114996131 A CN 114996131A CN 202210602657 A CN202210602657 A CN 202210602657A CN 114996131 A CN114996131 A CN 114996131A
Authority
CN
China
Prior art keywords
file
test case
mind map
server
level
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.)
Pending
Application number
CN202210602657.XA
Other languages
Chinese (zh)
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.)
Shenzhen Xishima Data Technology Co ltd
Original Assignee
Shenzhen Xishima Data Technology 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 Shenzhen Xishima Data Technology Co ltd filed Critical Shenzhen Xishima Data Technology Co ltd
Priority to CN202210602657.XA priority Critical patent/CN114996131A/en
Publication of CN114996131A publication Critical patent/CN114996131A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a mind map conversion test case method and a device. The method comprises the following steps: acquiring at least one mind map file; sending at least one mind map file to a server; receiving at least one test case file sent by a server; and displaying at least one test case file. The method generates the test cases with various formats by converting the drawn mind map, avoids the problems of misfilling, missing filling and the like, improves the quality and the accuracy of the test cases, and improves the overall efficiency of software testing.

Description

Thinking guide diagram conversion test case method and device
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for converting a mind map into a test case.
Background
With the progress and development of internet technology, internet companies have higher and higher requirements on the production quality and efficiency of products. Software testing is the process of activity that verifies and validates software products throughout the software development lifecycle. The test case is a description of a test task performed on the software product.
Currently, in the process of software test execution, spreadsheet software (Microsoft Office Excel, Excel) is generally used to write the content of a test case according to the test steps, and then the written test case file is sent to a developer for evaluation. The compiling mode consumes time and has low efficiency, the problems of wrong filling, missing filling and the like are easy to occur, the quality of the compiled test case is low, the format of the test case is single, the subsequent modification and evaluation of the test case are not facilitated, and the overall efficiency of software testing is influenced.
Disclosure of Invention
The embodiment of the application provides a method and a device for converting a thought guide diagram into test cases, wherein the drawn thought guide diagram is converted to generate the test cases in various formats, so that the problems of misfilling, missing filling and the like are avoided, the quality and the accuracy of the test cases are improved, and the overall efficiency of software testing is improved.
In a first aspect, an embodiment of the present application provides a method for transforming a test case into a mind map, including:
obtaining at least one mind map file, wherein the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
sending the at least one mind map file to a server, wherein the at least one mind map file is used for generating at least one test case file;
receiving the at least one test case file sent by the server;
and displaying the at least one test case file.
In the method, different from writing a test case in spreadsheet software of the terminal equipment, at least one mind map file is obtained through the terminal equipment and then sent to the server, the server analyzes the at least one mind map file to generate at least one test case file and then sends the test case file to the terminal equipment, and the terminal equipment receives and displays the at least one test case file. The method generates the test cases with various formats by converting the drawn mind map, avoids the problems of misfilling, missing filling and the like, improves the quality and the accuracy of the test cases, and improves the overall efficiency of software testing.
In one possible implementation, the sending the at least one mind map file to a server includes:
acquiring a webpage address corresponding to the server;
and opening a webpage according to the webpage address, and uploading the at least one mind map file to the server through the webpage.
In the embodiment of the application, after the webpage is opened according to the webpage address corresponding to the server, the at least one thought map file is uploaded in the webpage.
In one possible implementation manner, the opening a web page according to the web page address, and uploading the at least one mind map file to the server through the web page includes:
acquiring an uploading sequence set by a user;
and uploading the at least one mind map file to the server through the webpage according to the uploading sequence.
In the embodiment of the application, the user can set the uploading sequence of each mind map file in the at least one mind map file according to the self requirement, and then uploads the at least one mind map file to the server according to the uploading sequence, so that the user operation is facilitated, and the humanization of the uploading process is improved.
In one possible implementation manner, the displaying the at least one test case file includes:
acquiring at least one of the importance degree and the file size of each test case file in the at least one test case file;
determining the display sequence of each test case file according to at least one of the importance degree and the file size of each test case file;
and displaying the at least one test case file in the webpage according to the display sequence.
In the embodiment of the application, the terminal device determines the display sequence of each test case file according to the importance degree and the file size of each test case file, so that a user can directly view the importance degree and the file size of at least one test case file in a webpage conveniently, and can select to preview and/or download the test case file according to the self requirement, thereby facilitating the operation of the user.
In a possible implementation manner, after the displaying the at least one test case file in the webpage, the method further includes:
acquiring downloading information input by a user, wherein the downloading information comprises at least one of the number of downloading files, the sequence of downloading files, the format of downloading files and the path of downloading files;
and downloading the at least one test case file based on the downloading information, wherein the test case file comprises at least one item of test case file name, test case information and generation time.
In the embodiment of the application, after the at least one test case file is displayed on the webpage, the user inputs download information according to own requirements, the terminal equipment selects the test case file meeting the requirements of the user from the at least one test case file based on the download information, and the method can provide multiple choices for the user so as to meet the requirements of the user.
In a second aspect, an embodiment of the present application provides a mind map transformation test case method, including:
receiving at least one mind map file sent by terminal equipment, wherein the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
analyzing the N-level nodes of the at least one mind map file to generate at least one test case file;
and sending the at least one test case file to the terminal equipment, wherein the at least one test case file is used for displaying by the terminal equipment.
In the method, different from writing a test case in spreadsheet software of the terminal equipment, the server receives at least one mind map file sent by the terminal equipment, analyzes the at least one mind map file to generate at least one test case file, and finally sends the at least one test case file to the terminal equipment. The method generates the test cases with various formats by converting the drawn mind map, avoids the problems of misfilling, missing filling and the like, improves the quality and the accuracy of the test cases, and improves the overall efficiency of software testing.
In one possible implementation, the parsing the N-level nodes of the at least one mind map file to generate at least one test case file includes:
acquiring the number of each level of nodes in the N levels of nodes of the at least one mind map file and the connection relation between an Mth level of nodes and an M-1 level of nodes in the N levels of nodes, wherein M is an integer which is more than or equal to 1 and less than or equal to N;
and generating the at least one test case file according to the number of each level of nodes in the N levels of nodes of the at least one mind map file and the connection relationship between the Mth level of nodes and the M-1 level of nodes in the N levels of nodes.
In the embodiment of the application, the server analyzes the mind map file to generate the test case file according to the number of each level of nodes in the N levels of nodes in the mind map file and the connection relation between the Mth level of nodes in the N levels of nodes and the M-1 level of nodes, and the method ensures the accuracy of analyzing the mind map file, thereby ensuring the accuracy of the generated test case file.
In a possible implementation manner, the generating the at least one test case file includes:
determining the generation sequence of each mind map file according to the importance degree of each mind map file in the at least one mind map file;
and generating the at least one test case file based on the generation sequence.
In the embodiment of the application, after the server receives at least one mind map file, the generation sequence is determined according to the importance degree of each mind map file, and each mind map file is analyzed to generate the test case file based on the generation sequence.
In one possible implementation, the test case file includes at least one of an XLSX format, a CSV format, and an XML format.
In the embodiment of the application, test case files with various formats are introduced, and compared with the test case file with a single format in the prior art, the test case file format of the method is various, and the requirements of different scenes can be met.
In a third aspect, an embodiment of the present application provides a mind map conversion test case apparatus, which is applied to a terminal device, and includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least one mind map file, the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
the sending unit is used for sending the at least one mind map file to a server, and the at least one mind map file is used for generating at least one test case file;
a receiving unit, configured to receive the at least one test case file sent by the server;
and the display unit is used for displaying the at least one test case file.
In a possible implementation manner, the obtaining unit is further configured to:
acquiring a webpage address corresponding to the server;
the sending unit is specifically configured to open a webpage according to the webpage address, and upload the at least one mind map file to the server through the webpage.
In a possible implementation manner, the obtaining unit is further configured to:
acquiring an uploading sequence set by a user;
the sending unit is specifically configured to upload the at least one mind map file to the server through the web page according to the uploading sequence.
In one possible implementation, the apparatus further includes:
the obtaining unit is further configured to obtain at least one of an importance degree and a file size of each test case file in the at least one test case file;
the determining unit is used for determining the display sequence of each test case file according to at least one of the importance degree and the file size of each test case file;
the display unit is specifically configured to display the at least one test case file in the webpage according to the display sequence.
In one possible implementation, the apparatus further includes:
the acquiring unit is further configured to acquire download information input by a user, where the download information includes at least one of a number of download files, a download file sequence, a download file format, and a download file path;
and the downloading unit is used for downloading the at least one test case file based on the downloading information, wherein the test case file comprises at least one of a test case file name, test case information and generation time.
The operations and advantageous effects of the mind map transformation test case apparatus can be referred to the method and advantageous effects of any one of the above first aspect, and the repeated details are not repeated.
In a fourth aspect, an embodiment of the present application provides a mind map conversion test case apparatus, applied to a server, including:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving at least one mind map file sent by terminal equipment, the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
the generating unit is used for analyzing the N-level nodes of the at least one mind map file to generate at least one test case file;
and the sending unit is used for sending the at least one test case file to the terminal equipment, and the at least one test case file is used for displaying by the terminal equipment.
In one possible implementation, the apparatus further includes:
an obtaining unit, configured to obtain the number of each level node in the N-level nodes of the at least one mind map file, and a connection relationship between an mth level node in the N-level nodes and an M-1 level node, where M is an integer greater than or equal to 1 and less than or equal to N;
the generating unit is specifically configured to generate the at least one test case file according to the number of each level node in the N-level nodes of the at least one mind map file and a connection relationship between an mth level node and an M-1 level node in the N-level nodes.
In one possible implementation, the apparatus further includes:
the determining unit is used for determining the generation sequence of each mind map file according to the importance degree of each mind map file in the at least one mind map file;
the generating unit is specifically configured to generate the at least one test case file based on the generating order.
In one possible implementation, the test case file includes at least one of an XLSX format, a CSV format, and an XML format.
The operations and advantageous effects of the mind map transformation test case apparatus can be referred to the method and advantageous effects of any one of the above second aspects, and the repeated details are not repeated.
In a fifth aspect, the present application provides a mind map conversion test case device, where the mind map conversion test case device may be a server, a device in the server, or a device capable of being used in cooperation with the server. The mind map conversion test case device can also be a chip system. The mind map transformation test case apparatus may perform the method of any one of the first aspect or any one of the second aspect. The functions of the mind map conversion test case device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The module may be software and/or hardware. The operations and advantages executed by the mind map transformation test case device can refer to the method and advantages described in any one of the first aspect or any one of the second aspect, and repeated details are not repeated.
In a sixth aspect, the present application provides a mind map transformation test case apparatus comprising a processor, wherein when the processor invokes a computer program in a memory, the method according to any one of the first aspect or the second aspect is performed.
In a seventh aspect, the present application provides a mind map transformation test case apparatus, including a processor and a memory, where the memory is used to store a computer program; the processor is configured to execute the computer program stored in the memory to cause the mind map transformation test case apparatus to perform the method according to any one of the first aspect or the second aspect.
In an eighth aspect, the present application provides a mind map transformation test case apparatus, which includes a processor, a memory, and a transceiver, where the transceiver is used for receiving a channel or a signal or transmitting a channel or a signal; the memory for storing a computer program; the processor is configured to invoke the computer program from the memory to perform the method according to any one of the first aspect or the second aspect.
In a ninth aspect, the present application provides a mind map conversion test case apparatus, comprising a processor and an interface circuit, wherein the interface circuit is used for receiving a computer program and transmitting the computer program to the processor; the processor runs the computer program to perform the method according to any one of the first aspect or the second aspect.
In a tenth aspect, the present application provides a computer readable storage medium for storing a computer program which, when executed, causes the method of any one of the first or second aspects to be implemented.
In an eleventh aspect, the present application provides a computer program product comprising a computer program that, when executed, causes the method of any one of the first or second aspects to be carried out.
In a twelfth aspect, an embodiment of the present application provides a mind map conversion test case system, which includes at least one terminal device and at least one server, where the terminal device is configured to execute the steps of any one of the first aspect, and the server is configured to execute the steps of any one of the second aspect.
Drawings
The drawings used in the embodiments of the present application are described below.
FIG. 1 is a schematic diagram of a mind map transformation test case system architecture according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for transforming test cases by using a mind map according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a mind map provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of another mental map provided by an embodiment of the present application;
FIG. 5 is a flow diagram of another method for transforming test cases according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mind map transformation test case apparatus 600 according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a mind map transformation test case apparatus 700 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mind map transformation test case apparatus 800 according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a mind map transformation test case apparatus 900 according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a mind map transformation test case system architecture provided in an embodiment of the present application, where the system includes a terminal device 101 and a server 102, where:
the terminal apparatus 101 is a device having a processing capability and a data transmitting and receiving capability. The terminal device 101 installs and runs an application program supporting the mind map, which may include: GitMind, MindMaster, iMindMap, Xmind, MindNode, MindLine, etc. The user can draw the mind map using an application program of the mind map in the terminal apparatus 101. The terminal device 101 may be a Computer, a notebook Computer, a tablet Computer, a palm top Computer, a desktop Computer, a diagnostic apparatus, a mobile phone, an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like.
Optionally, the terminal device 101 may refer to one of multiple terminal devices, and this embodiment of the present application is illustrated by the terminal device 101. The applications installed on the terminal devices may be the same, or the applications installed on the two terminal devices may be the same type of application of different operating system platforms, and the number of the terminal devices may be more or less. For example, the number of the terminal devices is several tens or several hundreds, or more, and the number of the terminal devices and the device types are not limited in the embodiment of the present application.
The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The server 102 provides computing or application services for the terminal device 101, provides background services for application programs supporting the mind map, and provides computing support for converting the mind map file into the test case file.
The terminal apparatus 101 and the server 102 may be directly or indirectly connected by wired or wireless communication.
Optionally, the server 102 may undertake primary computing work, and the terminal device 101 may undertake secondary computing work; or, the server 102 undertakes the secondary computing work, and the terminal device 101 undertakes the primary computing work; or, the server 102 and the terminal device 101 respectively undertake classification work separately; or, the server 102 and the terminal device 101 perform cooperative computing by using a distributed computing architecture.
Alternatively, the server 102 may be composed of an access server, a background server, and a database server. The access server is used for providing access service for the terminal device 101, and the background server is used for providing background service of the application program of the virtual pet. The background servers may be one or more, and when there are more than one background server, there are at least two background servers for providing different services, and/or there are at least two background servers for providing the same service, for example, in a manner responsible for balancing the provision of the same service.
Referring to fig. 2, fig. 2 is a flowchart of a method for transforming a test case from a mind map according to an embodiment of the present application, where the method includes, but is not limited to, the following steps:
s201: at least one mind map file is obtained.
The mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1.
Specifically, a user starts an application program of a mind map in a terminal device, draws the mind map in the application program, and saves the drawn mind map as a mind map file, wherein the drawn mind map is shown in fig. 3, and fig. 3 is a schematic diagram of a mind map provided by an embodiment of the present application. The mind map comprises six levels of nodes: the first-level node is a project name, the second-level node is a function module, the third-level node is a submodule, the fourth-level node is a test case, the fifth-level node is a test point, and the sixth-level node is an expected result. Fig. 4 is a schematic diagram of another mind map provided by an embodiment of the present application, as shown in fig. 4. The method comprises the steps that a first-level node corresponds to quotations, a second-level node corresponds to a login registration module, a third-level node corresponds to mobile phone number registration, mailbox registration and login, a fourth-level node corresponds to login password verification, login mobile phone number verification and login verification code verification, a fifth-level node corresponds to only inputting letters, only inputting numbers and inputting expressions, and a sixth-level node corresponds to prompt 'please input English letters and passwords with the length not more than 20', prompt 'please input English letters and passwords with the length not more than 20' and prompt 'please input English letters and passwords with the length not more than 20'. The terminal equipment responds to the operation of saving the mind map file by the user and acquires at least one mind map file.
Optionally, the terminal device receives at least one mind map file sent by another device.
S202: at least one mind map file is sent to a server.
In some embodiments, the terminal device obtains a web page address corresponding to the server; and opening a webpage according to the webpage address, and uploading at least one thinking map file to the server through the webpage.
Specifically, the terminal device receives a web address corresponding to the server sent by the server, or receives a web address corresponding to the server sent by another device, the user starts a browser in the terminal device, inputs the web address corresponding to the server in the browser, clicks the web page of the web address corresponding to the server after browsing, and uploads at least one thinking map file to the server in the web page.
Further, in the webpage, the terminal device obtains an uploading sequence set by the user, wherein the uploading sequence is the uploading sequence of each mind map file in at least one mind map file uploaded to the server by the terminal device. For example, the four mind map files are: file 1, file 2, file 3, file 4, the user sets the upload order to be file 1 the second, file 2 the first, file 3 the fourth, file 4 the third. The terminal device responds to the uploading sequence set by the user, and uploads four mind map files to the server in the webpage according to the uploading sequence (file 2, file 1, file 4 and file 3).
Alternatively, the uploading order may be determined by the server according to at least one of an importance degree and a file size of each of the at least one mind map file.
S203: and receiving at least one test case file sent by the server.
Specifically, after the terminal device sends at least one mind map file to the server, the server receives the at least one mind map file sent by the terminal device, and analyzes the N-level node of the at least one mind map file to generate at least one test case file.
In some embodiments, the server obtains the number of each level node in the N levels of nodes of at least one thought graph file and the connection relationship between the Mth level node and the M-1 level node in the N levels of nodes; and generating at least one test case file according to the number of each level of nodes in the N levels of nodes of the at least one mind map file and the connection relation between the Mth level of nodes and the M-1 level of nodes in the N levels of nodes. Wherein M is an integer of 1 or more and N or less.
Specifically, the connection relationship between the mth level node and the M-1 level node may include connected and unconnected. Taking fig. 3 as an example, the thought graph file has six-level nodes, wherein the number of the first-level nodes is 1, the number of the second-level nodes is 1, the number of the third-level nodes is 3, the number of the fourth-level nodes is 3, the number of the fifth-level nodes is 3, and the number of the sixth-level nodes is 3. The first node of the fifth level node is not connected with the first, second and third nodes of the fifth level node, the third node of the fourth level node is not connected with the first, second and third nodes of the fifth level node, the first node of the fifth level node is connected with the first node of the sixth level node, the first node of the fifth level node is connected with the second node of the sixth level node, The third nodes are not connected, the second node of the fifth-level node is connected with the second node of the sixth-level node, the second node of the fifth-level node is not connected with the first and third nodes of the sixth-level node, the third node of the fifth-level node is connected with the third node of the sixth-level node, and the third node of the fifth-level node is not connected with the first and second nodes of the sixth-level node. The server generates a test case file according to the information, wherein the test case file can be shown in table 1.
TABLE 1
Figure BDA0003670220040000071
Figure BDA0003670220040000081
In some embodiments, the server determines a generation order of each mind map file according to the importance degree of each mind map file in the at least one mind map, and generates the at least one test case file based on the generation order.
Exemplary, four mind map files: the importance degrees of the file 1, the file 2, the file 3 and the file 4 are respectively important, common, unimportant and more important, and the generation sequence of each thought map file determined by the server according to the importance degrees of the four thought map files is as follows: file 1 is the first, file 2 is the third, file 3 is the fourth, and file 4 is the second. The server generates four corresponding test case files according to the generation sequence (file 1, file 4, file 2, file 3).
It should be noted that, when there are at least two mind map files having the same degree of importance, the server may determine the generation order of each mind map file according to the file sizes of the mind map files having the same degree of importance.
Further, the server sends the generated at least one test case file to the terminal device, and the terminal device receives the at least one test case file sent by the server.
S204: and displaying at least one test case file.
In some embodiments, after the terminal device receives at least one test case file sent by the server, the method further includes:
acquiring at least one of the importance degree and the file size of each test case file in at least one test case file; determining the display sequence of each test case file according to at least one of the importance degree and the file size of each test case file; and displaying at least one test case file in the webpage according to the display sequence.
Specifically, the importance degree of each test case file is the same as the importance degree of the corresponding mind map file before the analysis, and the file size of each test case file may be the same as or different from the file size of the corresponding mind map file before the analysis, which is not limited in the present application. The terminal device determines a display sequence of each test case file in the webpage according to at least one item (the importance degree, the file size, the importance degree and the file size) in the importance degree and the file size of each test case file, and displays at least one test case file in the webpage according to the display sequence.
Illustratively, the terminal device determines the display sequence of each test case file according to the importance degree and the file size of each test case file, wherein the importance degree of the case file 1 is important, and the file size is 321K; the importance degree of the case file 2 is common, and the file size is 259K; the importance degree of the case file 3 is unimportant, and the file size is 195K; the importance level of the use case file 4 is important, and the file size is 196K. The server determines the display sequence of the case file 1 as the first, the case file 2 as the third, the case file 3 as the fourth, and the case file 4 as the second according to the information. The terminal device displays the four test case files in the webpage according to the display sequence (the case file 1, the case file 4, the case file 2 and the case file 3).
Further, after displaying at least one test case file in the web page, the method further includes:
acquiring downloading information input by a user; and downloading at least one test case file based on the downloading information.
Specifically, the download information includes at least one of the number of downloaded files, the sequence of downloaded files, the format of downloaded files, and the path of downloaded files; the test case file comprises at least one item of test case file name, test case information and generation time. And at least one test case file is displayed in a webpage of the terminal equipment, and at the moment, the terminal equipment receives downloading information input by a user and responds to the downloading information to download at least one test case file in the webpage. Wherein the test case file comprises at least one of an XLSX format, a CSV format and an XML format.
Illustratively, the number of the download files in the download information input by the user is 3 (case file 1, case file 2, case file 3), the download file sequence is (case file 1 is first, case file 2 is third, case file 3 is second), the download file format is (CSV format and XML format of case file 1, XLSX format of case file 2, XLSX format, CSV format and XML format of case file 3), and the download file path is "D: \ download test case file". The terminal equipment responds to the input operation of a user, first downloads a case file 1(CSV format and XML format), second downloads a case file 3(XLSX format, CSV format and XML format) and third downloads a case file 2(XLSX format) in a webpage, and stores the downloaded case files into 'D: \ download case files'.
Referring to fig. 5, fig. 5 is a flowchart of another mind map transformation test case method provided in the embodiment of the present application, which includes, but is not limited to, the following steps:
s501: the terminal equipment acquires at least one mind map file.
The specific implementation manner of S501 is the same as the specific implementation manner of S201, and S201 may be referred to for the specific implementation manner of S501, which is not described herein again.
S502: the terminal device sends at least one mind map file to the server.
The specific implementation manner of S502 is the same as that of S202, and S202 may be referred to as the specific implementation manner of S502, which is not described herein again.
S503: and the server analyzes the N-level nodes of the at least one mind map file to generate at least one test case file.
The specific implementation manner of S503 is the same as the specific implementation manner of S203, and S203 may be referred to for the specific implementation manner of S503, which is not described herein again.
S504: and the server sends at least one test case file to the terminal equipment.
The specific implementation manner of S504 is the same as the specific implementation manner of S203, and the specific implementation manner of S504 may refer to S203, which is not described herein again.
S505: and the terminal equipment displays at least one test case file.
The specific implementation manner of S505 is the same as the specific implementation manner of S204, and S204 may be referred to as the specific implementation manner of S505, which is not described herein again.
S506: the terminal equipment acquires the downloading information input by the user.
The specific implementation manner of S506 is the same as the specific implementation manner of S204, and the specific implementation manner of S506 may refer to S204, which is not described herein again.
S507: and based on the downloading information, the terminal equipment downloads at least one test case file.
The specific implementation manner of S507 is the same as that of S204, and S204 may be referred to as the specific implementation manner of S507, which is not described herein again.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mind map transformation test case apparatus 600 according to an embodiment of the present application, where the apparatus includes an obtaining unit 601, a sending unit 602, a receiving unit 603, a displaying unit 604, a determining unit 605, and a downloading unit 606, where details of each unit are described below.
An obtaining unit 601, configured to obtain at least one mind map file, where the mind map file includes N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
a sending unit 602, configured to send the at least one mind map file to a server, where the at least one mind map file is used to generate at least one test case file;
a receiving unit 603, configured to receive the at least one test case file sent by the server;
a display unit 604, configured to display the at least one test case file.
In a possible implementation manner, the obtaining unit 601 is further configured to:
acquiring a webpage address corresponding to the server;
the sending unit 602 is specifically configured to open a web page according to the web page address, and upload the at least one mind map file to the server through the web page.
In a possible implementation manner, the obtaining unit 601 is further configured to:
acquiring an uploading sequence set by a user;
the sending unit 602 is specifically configured to upload the at least one mind map file to the server through the web page according to the uploading sequence.
In a possible implementation manner, the obtaining unit 601 is further configured to obtain at least one of an importance level and a file size of each test case file in the at least one test case file;
a determining unit 605, configured to determine a display sequence of each test case file according to at least one of the importance degree and the file size of each test case file;
the display unit 604 is specifically configured to display the at least one test case file in the web page according to the display order.
In a possible implementation manner, the obtaining unit 601 is further configured to obtain download information input by a user, where the download information includes at least one of a number of download files, a download file sequence, a download file format, and a download file path;
a downloading unit 606, configured to download the at least one test case file based on the downloading information, where the test case file includes at least one of a test case file name, test case information, and generation time.
It should be noted that the implementation and beneficial effects of each unit can also correspond to the corresponding description of the method embodiment shown in fig. 2.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a mind map conversion test case apparatus 700 provided in an embodiment of the present application, where the apparatus includes a receiving unit 701, a generating unit 702, a sending unit 703, an obtaining unit 704, and a determining unit 705, where details of each unit are described below.
A receiving unit 701, configured to receive at least one mind map file sent by a terminal device, where the mind map file includes N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
a generating unit 702, configured to analyze the N-level node of the at least one mind map file, and generate at least one test case file;
a sending unit 703, configured to send the at least one test case file to the terminal device, where the at least one test case file is used for the terminal device to display.
In a possible implementation manner, the obtaining unit 704 is configured to obtain the number of each level node in the N level nodes of the at least one mind map file, and a connection relationship between an mth level node in the N level nodes and an M-1 level node, where M is an integer greater than or equal to 1 and less than or equal to N;
the generating unit 702 is specifically configured to generate the at least one test case file according to the number of each level node in the N level nodes of the at least one mind map file and a connection relationship between an mth level node and an M-1 level node in the N level nodes.
In a possible implementation manner, the determining unit 705 is configured to determine a generation order of each mind map file according to an importance degree of each mind map file in the at least one mind map file;
the generating unit 702 is specifically configured to generate the at least one test case file based on the generating order.
In one possible implementation, the test case file includes at least one of an XLSX format, a CSV format, and an XML format.
It should be noted that the implementation and beneficial effects of each unit can also correspond to the corresponding description of the method embodiment shown in fig. 3.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a mind map transformation test case apparatus 800 according to an embodiment of the present application, where the apparatus 800 includes a processor 801, a transceiver 803, and optionally a memory 802, and the processor 801, the memory 802, and the transceiver 803 are connected to each other through a bus 804.
The memory 802 includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 802 is used for related instructions and data. The transceiver 803 is used for receiving and transmitting data.
The processor 801 may be one or more Central Processing Units (CPUs), and in the case where the processor 801 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 801 in the apparatus 800 reads the program code stored in the memory 802 for performing the following operations:
obtaining at least one mind map file, wherein the mind map file comprises N-level nodes, each node in the N-level nodes is applied to test case information, and N is an integer greater than or equal to 1;
sending the at least one mind map file to a server, wherein the at least one mind map file is used for generating at least one test case file;
receiving the at least one test case file sent by the server;
and displaying the at least one test case file.
Optionally, the transceiver 803 is used to obtain a web page address corresponding to the server; the processor 801 is further configured to open a web page according to the web page address, and upload the at least one mind map file to the server through the web page.
Optionally, the uploading sequence set by the user is acquired through the transceiver 803; the processor 801 is further configured to upload the at least one mind map file to the server through the web page according to the uploading sequence.
Optionally, at least one of the importance level and the file size of each test case file in the at least one test case file is obtained through the transceiver 803; the processor 801 is further configured to determine a display sequence of each test case file according to at least one of the importance degree and the file size of each test case file; and displaying the at least one test case file in the webpage according to the display sequence.
Optionally, the transceiver 803 is used to obtain download information input by a user, where the download information includes at least one of a number of download files, a download file sequence, a download file format, and a download file path; the processor 801 is further configured to download the at least one test case file based on the download information, where the test case file includes at least one of a test case file name, test case information, and generation time.
It should be noted that the implementation and beneficial effects of the operations may also correspond to the corresponding descriptions of the method embodiment shown in fig. 2.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a mind map transformation test case apparatus 900 according to an embodiment of the present application, where the apparatus 900 includes a processor 901, a transceiver 903, and optionally a memory 902, and the processor 901, the memory 902, and the transceiver 903 are connected to each other through a bus 904.
The memory 902 includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 902 is used for related instructions and data. The transceiver 903 is used for receiving and transmitting data.
The processor 901 may be one or more Central Processing Units (CPUs), and in the case that the processor 901 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The processor 901 in the apparatus 900 reads the program code stored in the memory 902 for performing the following operations:
receiving at least one mind map file sent by terminal equipment, wherein the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
analyzing the N-level nodes of the at least one mind map file to generate at least one test case file;
and sending the at least one test case file to the terminal equipment, wherein the at least one test case file is used for displaying by the terminal equipment.
Optionally, the number of each level node in the N level nodes of the at least one mind map file and the connection relationship between an mth level node in the N level nodes and an M-1 level node are obtained through the transceiver 903, where M is an integer greater than or equal to 1 and less than or equal to N; the processor 901 is further configured to generate the at least one test case file according to the number of each level node in the N level nodes of the at least one mind map file and a connection relationship between an mth level node in the N level nodes and an M-1 level node.
Optionally, the processor 901 is further configured to determine a generation order of each mind map file according to the importance degree of each mind map file in the at least one mind map file; and generating the at least one test case file based on the generation sequence.
Optionally, the test case file includes at least one of an XLSX format, a CSV format, and an XML format.
It should be noted that the implementation and beneficial effects of the operations may also correspond to the corresponding descriptions of the method embodiment shown in fig. 3.
An embodiment of the present application further provides a chip system, where the chip system includes a processor, and is configured to support a server to implement the functions involved in any of the foregoing embodiments. In one possible design, the chip system may further include a memory for computer programs and data necessary for the server. The chip system may be constituted by a chip, or may include a chip and other discrete devices. The input and the output of the chip system respectively correspond to the receiving and sending operations of the server in the method embodiment.
The embodiment of the application also provides a mind map conversion test case device which comprises a processor and an interface. The processor may be adapted to perform the method of the above-described method embodiments.
It should be understood that the mind map transformation test case apparatus may be a chip. For example, the mind map transformation test case device may be a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a Micro Controller Unit (MCU), a Programmable Logic Device (PLD) or other integrated chips.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
It should be noted that the processor in the embodiments of the present application may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
According to the method provided by the embodiment of the present application, the present application further provides a computer program product, which includes: computer program, which, when run on a computer, causes the computer to perform the method of any of the embodiments shown in fig. 2 or fig. 3.
According to the method provided by the embodiment of the present application, a computer-readable medium is also provided, which stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the method of any one of the embodiments shown in fig. 2 or fig. 3.
According to the method provided by the embodiment of the present application, the present application further provides a mind map transformation test case system, which includes the aforementioned one or more servers and one or more terminal devices.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a positioning server) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A mind map conversion test case method is characterized by comprising the following steps:
obtaining at least one mind map file, wherein the mind map file comprises N-level nodes, each node in the N-level nodes is applied to test case information, and N is an integer greater than or equal to 1;
sending the at least one mind map file to a server, wherein the at least one mind map file is used for generating at least one test case file;
receiving the at least one test case file sent by the server;
and displaying the at least one test case file.
2. The method as claimed in claim 1, wherein said sending said at least one mind map file to a server comprises:
acquiring a webpage address corresponding to the server;
and opening a webpage according to the webpage address, and uploading the at least one mind map file to the server through the webpage.
3. The method as claimed in claim 2, wherein said opening a web page according to the web page address, uploading the at least one mind map file to the server through the web page comprises:
acquiring an uploading sequence set by a user;
and uploading the at least one mind map file to the server through the webpage according to the uploading sequence.
4. The method according to any of claims 1-3, wherein said displaying the at least one test case file comprises:
acquiring at least one of the importance degree and the file size of each test case file in the at least one test case file;
determining the display sequence of each test case file according to at least one of the importance degree and the file size of each test case file;
and displaying the at least one test case file in the webpage according to the display sequence.
5. The method of claim 4, wherein after displaying the at least one test case file in the web page, further comprising:
acquiring downloading information input by a user, wherein the downloading information comprises at least one of the number of downloading files, the sequence of downloading files, the format of downloading files and the path of downloading files;
and downloading the at least one test case file based on the downloading information, wherein the test case file comprises at least one item of test case file name, test case information and generation time.
6. A thinking guide graph transformation test case method is characterized by comprising the following steps:
receiving at least one mind map file sent by terminal equipment, wherein the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
analyzing the N-level nodes of the at least one mind map file to generate at least one test case file;
and sending the at least one test case file to the terminal equipment, wherein the at least one test case file is used for displaying by the terminal equipment.
7. The method according to claim 6, wherein said parsing said N-level nodes of said at least one mind map file to generate at least one test case file comprises:
acquiring the number of each level of nodes in the N levels of nodes of the at least one mind map file and the connection relation between an Mth level of nodes and an M-1 level of nodes in the N levels of nodes, wherein M is an integer which is more than or equal to 1 and less than or equal to N;
and generating the at least one test case file according to the number of each level node in the N level nodes of the at least one mind map file and the connection relationship between the M level node and the M-1 level node in the N level nodes.
8. The method of claim 7, wherein the generating the at least one test case file comprises:
determining the generation sequence of each mind map file according to the importance degree of each mind map file in the at least one mind map file;
and generating the at least one test case file based on the generation sequence.
9. The method of any of claims 6-8, wherein the test case file comprises at least one of an XLSX format, a CSV format, and an XML format.
10. A thinking guide graph conversion test case device is characterized by being applied to terminal equipment and comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least one mind map file, the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
the sending unit is used for sending the at least one mind map file to a server, and the at least one mind map file is used for generating at least one test case file;
the receiving unit is used for receiving the at least one test case file sent by the server;
and the display unit is used for displaying the at least one test case file.
11. A thinking guide graph conversion test case device is applied to a server and comprises the following components:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving at least one mind map file sent by terminal equipment, the mind map file comprises N-level nodes, each node in the N-level nodes corresponds to test case information, and N is an integer greater than or equal to 1;
the generating unit is used for analyzing the N-level nodes of the at least one mind map file to generate at least one test case file;
and the sending unit is used for sending the at least one test case file to the terminal equipment, and the at least one test case file is used for displaying by the terminal equipment.
12. A mind map transformation test case apparatus, the apparatus comprising a processor and a memory, the memory for storing a computer program, the processor for invoking the computer program to perform the method of any one of claims 1-5 or 6-9.
13. A chip in a mind map transformation test case apparatus, the chip comprising a processor and an input interface and an output interface connected to the processor, the chip further comprising a memory in which the method of any one of claims 1-5 or 6-9 is performed when the computer program is executed.
14. A computer-readable storage medium for storing a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1-5 or 6-9.
15. A computer program product, characterized in that the computer program product comprises a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1-5 or 6-9.
CN202210602657.XA 2022-05-30 2022-05-30 Thinking guide diagram conversion test case method and device Pending CN114996131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210602657.XA CN114996131A (en) 2022-05-30 2022-05-30 Thinking guide diagram conversion test case method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210602657.XA CN114996131A (en) 2022-05-30 2022-05-30 Thinking guide diagram conversion test case method and device

Publications (1)

Publication Number Publication Date
CN114996131A true CN114996131A (en) 2022-09-02

Family

ID=83030516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210602657.XA Pending CN114996131A (en) 2022-05-30 2022-05-30 Thinking guide diagram conversion test case method and device

Country Status (1)

Country Link
CN (1) CN114996131A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234945A (en) * 2023-11-10 2023-12-15 英诺达(成都)电子科技有限公司 Display method and device of test thinking guide diagram, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234945A (en) * 2023-11-10 2023-12-15 英诺达(成都)电子科技有限公司 Display method and device of test thinking guide diagram, electronic equipment and storage medium
CN117234945B (en) * 2023-11-10 2024-01-30 英诺达(成都)电子科技有限公司 Display method and device of test thinking guide diagram, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111552627A (en) User interface testing method and device, storage medium and computer equipment
CN112187558B (en) Data verification method and device and electronic equipment
WO2021079262A1 (en) Automatic delineation and extraction of tabular data using machine learning
US9460069B2 (en) Generation of test data using text analytics
CN111159220A (en) Method and apparatus for outputting structured query statement
CN109614327B (en) Method and apparatus for outputting information
US9571557B2 (en) Script caching method and information processing device utilizing the same
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN114996131A (en) Thinking guide diagram conversion test case method and device
US11645452B2 (en) Performance characteristics of cartridge artifacts over text pattern constructs
CN116881166A (en) Method, device and system for generating test script
CN113360300B (en) Interface call link generation method, device, equipment and readable storage medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN103634366A (en) Method and device for identifying network robot
CN113138767B (en) Code language conversion method, device, electronic equipment and storage medium
CN111539200B (en) Method, device, medium and electronic equipment for generating rich text
CN111400623B (en) Method and device for searching information
WO2021166271A1 (en) Analysis device, analysis method, and analysis program
CN113392311A (en) Field searching method, field searching device, electronic equipment and storage medium
CN113642295A (en) Page layout method, page layout device and computer program product
CN112765022A (en) Webshell static detection method based on data stream and electronic device
CN112068814A (en) Method, device, system and medium for generating executable file
CN110245197B (en) Whole-network entity association method and system
CN113360417A (en) Test method, session modifier, electronic device, and medium
CN115048297A (en) Symbol execution method, device, equipment, medium and program product for page

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