CN115934550A - Test method, test device, electronic equipment and storage medium - Google Patents

Test method, test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115934550A
CN115934550A CN202211632788.9A CN202211632788A CN115934550A CN 115934550 A CN115934550 A CN 115934550A CN 202211632788 A CN202211632788 A CN 202211632788A CN 115934550 A CN115934550 A CN 115934550A
Authority
CN
China
Prior art keywords
test
link
business
test case
execution path
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
CN202211632788.9A
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.)
Beijing Chuangyuan Microsoft Co ltd
Original Assignee
Beijing Chuangyuan Microsoft 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 Beijing Chuangyuan Microsoft Co ltd filed Critical Beijing Chuangyuan Microsoft Co ltd
Priority to CN202211632788.9A priority Critical patent/CN115934550A/en
Publication of CN115934550A publication Critical patent/CN115934550A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a test method, a test device, electronic equipment and a storage medium. The method comprises the following steps: acquiring at least one business flow chart; for each business flow chart, determining at least one test execution path according to the business flow chart; and aiming at each test execution path, generating a corresponding test case based on the test execution path and the set test template, wherein the test case is used for testing the service requirements associated with the service flow chart. The method determines the corresponding test case according to the test execution path corresponding to each business flow chart so as to be used for testing the business requirements associated with the business flow charts, thereby avoiding the problems of increased corresponding test cost and low test efficiency caused by modularization of the project in the prior art and improving the test efficiency.

Description

Test method, test device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a testing method, a testing device, electronic equipment and a storage medium.
Background
The software lifecycle typically includes: requirement, design, planning, execution, result analysis, delivery, and maintenance processes. And the software test as a part of the main body of the business project can run through the life cycle of the whole business project. In general, in the testing process, test design, planning, execution and the like are defined according to requirements and a development plan, and each link in the life cycle of a project is tracked and summarized.
Currently, the minimum units of each working link in the project life cycle are generally defined through a Work break down Structure (WBS), and then test planning and tracking are performed based on each minimum unit. However, in the above method, because the working links are all in the level of the modular minimum unit, the granularity is finer, for example, a test case is written for each minimum unit to perform a test, and the test condition needs to be tracked, the resource consumption of each accumulated working link of the project is higher, the test cost is increased, and the test efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a test method, a test device, electronic equipment and a storage medium, so as to improve the test efficiency.
According to an aspect of an embodiment of the present invention, there is provided a test method, including:
acquiring at least one business flow chart;
for each business flow chart, determining at least one test execution path according to the business flow chart;
and aiming at each test execution path, generating a corresponding test case based on the test execution path and a set test template, wherein the test case is used for testing the service requirement associated with the service flow chart.
According to another aspect of the embodiments of the present invention, there is provided a test apparatus including:
the acquisition module is used for acquiring at least one service flow chart;
the path determining module is used for determining at least one test execution path according to each business flow chart;
and the case determining module is used for generating a corresponding test case based on the test execution path and the set test template aiming at each test execution path, wherein the test case is used for testing the service requirement associated with the service flow chart.
According to another aspect of the embodiments of the present invention, there is provided an electronic apparatus, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the test method of any of the embodiments of the invention.
According to another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the testing method according to any one of the embodiments of the present invention when the computer instructions are executed.
The technical scheme of the embodiment of the invention comprises the steps of firstly obtaining at least one business flow chart; then, aiming at each business flow chart, determining at least one test execution path according to the business flow chart; and finally, generating a corresponding test case for each test execution path based on the test execution path and the set test template, wherein the test case is used for testing the service requirements associated with the service flow chart. The method determines the corresponding test case according to the test execution path corresponding to each business flow chart so as to be used for testing the business requirements associated with the business flow charts, thereby avoiding the problems of increased corresponding test cost and low test efficiency caused by modularization of the project in the prior art and improving the test efficiency.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a testing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a testing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a testing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the invention, the test design coverage and the test tracking are carried out by using module-level dimensions in the prior art, and the method has the advantages that sub-modules are explored under use cases and plans, so that most of the requirements are covered, but the cost is heavier, the process control investment is large, and the method is suitable for iterative development of products planned for a long time. However, for some small projects, the small projects are not qualified because the user needs to pay attention and the projects need to be delivered quickly, and the test with finer granularity causes great challenges for planning and process tracking of the small projects.
Example one
Fig. 1 is a flowchart of a testing method according to an embodiment of the present invention, where the method is applicable to a situation where a business requirement of a small item is tested to improve testing efficiency, and the method may be executed by a testing apparatus, where the apparatus may be implemented by software and/or hardware and is generally integrated on an electronic device, and in this embodiment, the testing apparatus includes, but is not limited to: desktop computers, notebook computers, servers and the like.
As shown in fig. 1, a testing method provided in an embodiment of the present invention includes the following steps:
s110, obtaining at least one business process diagram.
In the present embodiment, the business flow chart can be understood as a flow chart associated with the business requirement of the project to be processed; the traffic demand can be understood as a demand required by the traffic. If the item to be processed is a shopping system designed for testing, the business requirement may be a requirement for testing each function of the shopping system, such as a login function and an order function, and the business flowchart may be a flowchart of steps defined by a technician on how to test a function (such as a login function) of the shopping system. A function may be mapped to a business process flow diagram.
For example, a description will be given by taking a business flow chart corresponding to the login function as an example. The service flow diagram may include a plurality of execution nodes, which may be regarded as a tree structure, for example, a first execution node (i.e., may be regarded as a root node) may be a user who determines whether a user who wants to log in is a registered user or an unregistered user; the child nodes of the next level may then include: inputting a user name and a password for login if the user who wants to login is a registered user, or inputting the user name and the password for login if the user who wants to login is an unregistered user; in this way, the child node at the next level of the child node corresponding to the registered user may include two child nodes of successful login or failed login, and the child node at the next level of the child node corresponding to the unregistered user may also include two child nodes of successful login or failed login.
S120, aiming at each business flow chart, determining at least one test execution path according to the business flow chart.
In the present embodiment, the test execution path may be understood as a branch path associated with test execution in the business flow diagram. It is understood that the business flow diagram, as a flow diagram, may include at least one branching path; the branch path may be understood as a path corresponding to a branch from a root node to a child node at the end of the business flowchart, that is, a plurality of branch paths may be formed from the root node to the child node in the execution order of the business flowchart, and each branch path may be a test execution path. For example, a test execution path may be considered from the root node "determining whether the user who wants to log in is a registered user or an unregistered user", through the intermediate child nodes "registered user", "input user name and password", and ending at the last child node "login success".
There is no specific limitation on how to determine the at least one test execution path from the business flow diagram. If the business flow graph can be parsed first to determine the root node and the child nodes at the end positions in the business flow graph, the child nodes at the end positions can be one or more. On the basis, a plurality of branch paths included in the service flow diagram and starting from the root node to the child node at the end position can be determined as the test execution paths.
S130, aiming at each test execution path, generating a corresponding test case based on the test execution path and a set test template, wherein the test case is used for testing the service requirement associated with the service flow chart.
In this embodiment, the set test template may be understood as a preset test template for generating a test case. The setting test template is not particularly limited, and may include preset test time, data for testing (e.g., a plurality of sets of test data indicating a user name and a password, etc.), and a location for configuring the extracted statement information.
In this embodiment, for each test execution path, a corresponding test case may be generated based on the test execution path and a set test template; the generated test case can be used for testing the business requirements associated with the corresponding business flow chart.
How to generate the corresponding test case based on the test execution path and the set test template is not particularly limited. For example, the statement information included in each node in the test execution path may be identified and extracted first, and the statement information included in the root node is "determine whether the user who wants to log in is a registered user or an unregistered user". And filling the extracted statement information to a set position in a set test template to generate a corresponding test case. Here, the set position may be understood as a position set in advance for arranging the extracted term information, and is not particularly limited herein.
The test method provided by the embodiment of the invention comprises the steps of firstly obtaining at least one service flow chart; then, aiming at each business flow chart, determining at least one test execution path according to the business flow chart; and finally, generating a corresponding test case for each test execution path based on the test execution path and the set test template, wherein the test case is used for testing the service requirements associated with the service flow chart. The method determines the corresponding test case according to the test execution path corresponding to each business flow chart so as to be used for testing the business requirements associated with the business flow charts, thereby avoiding the problems of increased corresponding test cost and low test efficiency caused by modularization of the project in the prior art and improving the test efficiency.
Example two
Fig. 2 is a schematic flow chart of a testing method according to a second embodiment of the present invention, which is further detailed based on the above embodiments. In this embodiment, a process of determining at least one test execution path according to a business flow diagram and a process of generating a corresponding test case based on the test execution path and a set test template are specifically described. It should be noted that technical details that are not described in detail in the present embodiment may be referred to any of the above embodiments. As shown in fig. 2, the method includes:
as shown in fig. 2, a testing method provided in the second embodiment of the present invention includes the following steps:
s210, obtaining at least one business process diagram.
S220, aiming at each business process diagram, determining a starting process node and a tail process node of the business process diagram.
In the present embodiment, the flow starting node can be understood as a flow node at the starting position in the service flow graph. The flow node may be considered to be the execution node. Accordingly, a tail flow node is understood to be a flow node at the end of the service flow graph. How to determine the start flow node and the end flow node of the business flow graph is not particularly limited.
S230, determining at least one branch path between the starting flow node and the tail flow node as the at least one test execution path.
In this embodiment, after determining the start flow node and the end flow node of the business flow graph, at least one branch path between the start flow node and the end flow node may be determined as at least one test execution path corresponding to the business flow graph.
S240, aiming at each test execution path, extracting at least one statement information corresponding to a node contained in the test execution path.
In the embodiment, the nodes included in the test execution path may be understood as execution nodes, and the test execution path may include a plurality of nodes. Each node may correspond to a statement information.
And S250, filling the sentence information to the test point configuration position of the set test template to generate a corresponding test case.
In this embodiment, the test case template may include a test point configuration. The test point configuration may be understood as a location for configuring the extracted sentence information.
And extracting at least one statement information corresponding to the node contained in each test execution path. On the basis, at least one statement information corresponding to the test execution path can be filled to the test point configuration of the set test template.
The test method provided by the second embodiment of the invention embodies the process of determining at least one test execution path according to the business flow chart and the process of generating a corresponding test case based on the test execution path and the set test template. The method can determine at least one test execution path through a start flow node and a tail flow node of the business flow chart, and can generate a corresponding test case for testing by extracting at least one statement information corresponding to the node contained in the test execution path and filling the statement information to a test point configuration position of a set test template, thereby avoiding the problems of increased corresponding test cost and low test efficiency caused by modularization of the project in the prior art and improving the test efficiency.
Optionally, after generating the test case, the method further includes:
converting the business flow chart into a business link, wherein the business link indicates the business flow chart;
converting the test case into a test link, wherein the test link indicates the test case;
and adding the service link and the test link into a test task tracking table, wherein the service link and the test link in the test task tracking table form a mapping relation.
In this embodiment, the service link may indicate the service flowchart, that is, the service link may be understood as a link indicating the service flowchart. The test link may indicate a test case, that is, the test link may be understood as a link indicating a test case. The test task tracking table may be understood as a table for recording information associated with a test. The specific contents of the test task trace table are not particularly limited, and may include, for example, the contents of the service link, the test link, and the index indicating whether the test meets the approval standard. The business link and the test link in the test task tracking table can be in a mapping relationship.
After the test case is generated, the business flow chart can be converted into a business link; converting the test case into a test link; and adding the business link and the test link into a test task tracking table for relevant technical personnel to view and analyze. There is no specific limitation on how the business flow diagrams are converted into business links and how the test cases are converted into test links.
Optionally, after generating the test case, the method further includes:
and sending prompt information to target equipment, wherein the prompt information indicates that the test case corresponding to the business flow chart is generated, and the target equipment is equipment to which a user executing the test case belongs.
In this embodiment, the prompt information may indicate that the test case corresponding to the business process diagram has been generated. The target device may be a device to which a user executing the test case belongs. A user executing a test case may be considered a technician involved in executing the test case.
After the test case is generated, prompt information may be sent to the target device to prompt a user corresponding to the target device that the test case is generated, and the test of the test case may be started.
Optionally, after generating the test case, the method further includes:
receiving a test record document corresponding to an input test case, wherein the test record document indicates content related to the execution condition of the test case;
converting the test record document into a corresponding document link, the document link indicating the test record document;
and adding the document link into a test task tracking table, wherein the document link in the test task tracking table and the test link corresponding to the test case form a mapping relation.
In this embodiment, the test record document may indicate content associated with the test case execution condition, and the test record document may be a record corresponding to a relevant technician when executing the test case; the specific content of the test record document is not particularly limited, and may include information such as bugs (i.e., bugs) or risks occurring during the execution of the test case. The document link may indicate a test record document, that is, the document link may be understood as a link indicating a test record document.
After the test cases are generated, the test record documents corresponding to the input test cases can be received and converted into corresponding document links, so that the document links are added to the test task tracking table for the relevant technical personnel to view and analyze. The document links in the test task tracking table and the test links corresponding to the test cases can form a mapping relation.
In this embodiment, most software test coverage designs may focus on "functional modules" and "business flows", and the design methods of use cases are also diverse, which bring out the best in each other for use case design coverage of products or long-term projects. However, for the project of fast delivery, the required period and the resource need are greatly reduced, and the purpose of fast delivery cannot be achieved by reusing the test design coverage and process tracking with larger resource occupation in the test process. The embodiment of the invention can convert the testing process from the previous 'module' level to the 'process level' with larger granularity, reduces the process management time, resources and the like to a certain extent, improves the testing efficiency and accelerates the project completion efficiency.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a testing apparatus according to a third embodiment of the present invention, where the testing apparatus may be implemented by software and/or hardware. As shown in fig. 3, the apparatus includes:
an obtaining module 310, configured to obtain at least one service flowchart;
a path determining module 320, configured to determine, for each business flow graph, at least one test execution path according to the business flow graph;
the use case determining module 330 is configured to generate, for each test execution path, a corresponding test case based on the test execution path and a set test template, where the test case is used to perform a test on the service requirement associated with the service flowchart.
In this embodiment, the apparatus first obtains at least one service flow chart through the obtaining module 310; then, through the path determining module 320, for each business flow chart, at least one test execution path is determined according to the business flow chart; finally, through the use case determining module 330, for each test execution path, a corresponding test case is generated based on the test execution path and the set test template, and the test case is used for testing the service requirement associated with the service flow chart. The device determines the corresponding test case according to the test execution path corresponding to each business flow chart so as to be used for testing the business requirements associated with the business flow charts, thereby avoiding the problems of increased corresponding test cost and low test efficiency caused by modularization of items in the prior art and improving the test efficiency.
Optionally, the path determining module 320 includes:
a node determining unit, configured to determine a start flow node and a tail flow node of the business flow graph;
a path determining unit, configured to determine at least one branch path between the start flow node and the tail flow node as the at least one test execution path.
Optionally, the test case template includes test point configuration;
a use case determination module 330, comprising:
the extraction unit is used for extracting at least one statement information corresponding to the node contained in the test execution path;
and the generating unit is used for filling the sentence information to the test point configuration position of the set test template so as to generate a corresponding test case.
Optionally, the apparatus further comprises:
the first conversion module is used for converting the business flow chart into a business link after a test case is generated, wherein the business link indicates the business flow chart;
the second conversion module is used for converting the test case into a test link, and the test link indicates the test case;
a first adding module, configured to add the service link and the test link to a test task tracking table, where the service link and the test link in the test task tracking table form a mapping relationship.
Optionally, the apparatus further comprises:
and the sending module is used for sending prompt information to target equipment after the test case is generated, wherein the prompt information indicates that the test case corresponding to the business flow chart is generated, and the target equipment is equipment to which a user executing the test case belongs.
Optionally, the apparatus further comprises:
the receiving module is used for receiving an input test record document corresponding to the test case after the test case is generated, wherein the test record document indicates the content related to the execution condition of the test case;
a third conversion module for converting the test record document into a corresponding document link, the document link indicating the test record document;
and the second adding module is used for adding the document link into a test task tracking table, and the document link in the test task tracking table and the test link corresponding to the test case form a mapping relation.
The test device provided by the embodiment of the invention can execute the test method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the test method.
In some embodiments, the testing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the testing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the testing method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of testing, the method comprising:
acquiring at least one business flow chart;
for each business flow chart, determining at least one test execution path according to the business flow chart;
and aiming at each test execution path, generating a corresponding test case based on the test execution path and a set test template, wherein the test case is used for testing the service requirement associated with the service flow chart.
2. The method of claim 1, wherein determining at least one test execution path from the business process graph comprises:
determining a starting process node and a tail process node of the business process diagram;
determining at least one branch path between the beginning flow node to the ending flow node as the at least one test execution path.
3. The method of claim 1, wherein the test case template comprises a test point configuration;
generating a corresponding test case based on the test execution path and the set test template, wherein the test case comprises the following steps:
extracting at least one statement information corresponding to a node contained in the test execution path;
and filling the sentence information to the test point configuration position of the set test template to generate a corresponding test case.
4. The method of claim 1, after generating the test case, further comprising:
converting the business flow diagram into a business link, wherein the business link indicates the business flow diagram;
converting the test case into a test link, the test link indicating the test case;
and adding the service link and the test link into a test task tracking table, wherein the service link and the test link in the test task tracking table form a mapping relation.
5. The method of claim 1, after generating the test case, further comprising:
and sending prompt information to target equipment, wherein the prompt information indicates that the test case corresponding to the business flow chart is generated, and the target equipment is equipment to which a user executing the test case belongs.
6. The method of claim 1, after generating the test case, further comprising:
receiving an input test record document corresponding to the test case, wherein the test record document indicates content related to the execution condition of the test case;
converting the test record document into a corresponding document link, the document link indicating the test record document;
and adding the document link into a test task tracking table, wherein the document link in the test task tracking table and the test link corresponding to the test case form a mapping relation.
7. A test apparatus, comprising:
the acquisition module is used for acquiring at least one service flow chart;
the path determining module is used for determining at least one test execution path according to each business flow chart;
and the case determining module is used for generating a corresponding test case based on the test execution path and the set test template aiming at each test execution path, wherein the test case is used for testing the service requirement associated with the service flow chart.
8. The apparatus of claim 7, wherein the path determining module comprises:
a node determining unit, configured to determine a start flow node and a tail flow node of the business flow graph;
a path determining unit, configured to determine at least one branch path between the start flow node and the tail flow node as the at least one test execution path.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the test method of any one of claims 1-6.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the testing method of any one of claims 1-6 when executed.
CN202211632788.9A 2022-12-19 2022-12-19 Test method, test device, electronic equipment and storage medium Pending CN115934550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211632788.9A CN115934550A (en) 2022-12-19 2022-12-19 Test method, test device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211632788.9A CN115934550A (en) 2022-12-19 2022-12-19 Test method, test device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115934550A true CN115934550A (en) 2023-04-07

Family

ID=86553987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211632788.9A Pending CN115934550A (en) 2022-12-19 2022-12-19 Test method, test device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115934550A (en)

Similar Documents

Publication Publication Date Title
CN114816578A (en) Method, device and equipment for generating program configuration file based on configuration table
CN116975081A (en) Log diagnosis set updating method, device, equipment and storage medium
CN114415691B (en) Robot scheduling method, scheduling platform and system
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN115879424A (en) Data processing method, device, equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN115934550A (en) Test method, test device, electronic equipment and storage medium
CN114693116A (en) Method and device for detecting code review validity and electronic equipment
CN114490408A (en) Test case generation method, device, equipment, storage medium and product
CN114706610A (en) Business flow chart generation method, device, equipment and storage medium
CN113360672A (en) Methods, apparatus, devices, media and products for generating a knowledge graph
CN115098405B (en) Software product evaluation method and device, electronic equipment and storage medium
CN116431698B (en) Data extraction method, device, equipment and storage medium
CN115374010A (en) Function testing method, device, equipment and storage medium
CN114706578A (en) Data processing method, device, equipment and medium
CN115794255A (en) Data processing method and device, electronic equipment and storage medium
CN115437955A (en) Project testing method, device, equipment and storage medium
CN116150031A (en) Program performance test early warning method, device, equipment and storage medium
CN117493203A (en) Method, device, equipment and storage medium for testing server software
CN115659347A (en) Safety testing method and device, electronic equipment and storage medium
CN115455060A (en) Data processing method, device, equipment and medium
CN117271303A (en) Test case management method, device, equipment and medium
CN117251167A (en) Software bill of materials construction method, device, equipment and medium
CN117057940A (en) Financial data auditing system, financial data auditing method, device and engine
CN117632120A (en) Processing system, method, equipment and storage medium for report data

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