CN110347593B - Flow testing method and device - Google Patents

Flow testing method and device Download PDF

Info

Publication number
CN110347593B
CN110347593B CN201910562415.0A CN201910562415A CN110347593B CN 110347593 B CN110347593 B CN 110347593B CN 201910562415 A CN201910562415 A CN 201910562415A CN 110347593 B CN110347593 B CN 110347593B
Authority
CN
China
Prior art keywords
node
tested
web interface
execution state
flow
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.)
Active
Application number
CN201910562415.0A
Other languages
Chinese (zh)
Other versions
CN110347593A (en
Inventor
张肖肖
吴建强
常少帅
姜华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing 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 Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN201910562415.0A priority Critical patent/CN110347593B/en
Publication of CN110347593A publication Critical patent/CN110347593A/en
Application granted granted Critical
Publication of CN110347593B publication Critical patent/CN110347593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a process testing method and a device, wherein the method comprises the following steps: inquiring the current execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, selecting at least one process node from the executable process nodes as a target node; inquiring a web interface matched with a target node, simulating real calling for the web interface, if the calling result is determined to be in accordance with expectation, knowing that the execution state of the target node is updated to be finished in the system to be tested, and inquiring the current execution state of each process node in the system to be tested again; wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested. The embodiment of the invention realizes the decoupling of the testing process and the process configuration process of the system to be tested, and the testing process does not need to pay attention to how the process of the system to be tested is configured.

Description

Flow testing method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a flow testing method and device.
Background
The existing process automation test method is to test the test data of the web interface structure of each process node, and test all the process nodes in sequence.
Fig. 1 is a working schematic diagram of a process automation test in the prior art, and as shown in fig. 1, process nodes (nodes for short) a, b, c, and d sequentially form one process of a system, and a node d depends on a node c to complete, and form sequential dependencies. For the traditional interface test method, the test execution body must know the test sequence of each node, construct interface input data, send the input data to the interface a by simulating the operation steps of the user in the browser, and check whether the return of the interface a is in accordance with the expectation, after the node a is completed, the nodes b and c are treated in the same way until the return of the node d is in accordance with the expectation, and the test of the whole process is completed. The existing testing method is suitable for web applications with standardized procedures.
In some test systems, due to the complex configuration, the test cannot know the test sequence of each node in advance, so that standardization and flow processing cannot be performed, and the flow test facing such test systems can only be completed manually or only an isolated test can be performed on a certain node.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for flow testing that overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a flow testing method, including:
inquiring the current execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, selecting at least one process node from the executable process nodes as a target node;
inquiring a web interface matched with the target node, simulating real calling for the web interface, if the calling result is determined to be in accordance with expectation, knowing that the execution state of the target node is updated to be finished in the system to be tested, and inquiring the current execution state of each process node in the system to be tested again;
wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
Preferably, the simulating a real call to the web interface further includes:
and if the calling result is determined to be not in accordance with the expectation, stopping the test of the system to be tested.
Preferably, the querying an execution state of each process node in the system to be tested further includes:
and if the executable flow nodes do not exist at present, stopping the test of the system to be tested.
Preferably, the querying the execution state of each process node in the system to be tested specifically includes:
sending a query request to a system to be tested;
receiving the current execution states and unique identifications of all process nodes in the system to be tested, which are returned by the system to be tested;
and taking the flow node with the execution state as the ongoing flow node as the executable flow node.
Preferably, the recording information of the web interfaces corresponding to all the process nodes of the system to be tested specifically includes:
and for any flow node of the system to be tested, recording the information of the corresponding web interface according to the unique identification of the flow node.
Simulating real call to the web interface, specifically:
constructing interface data of the corresponding web interface, and simulating real call to the corresponding web interface according to the interface data;
wherein the interface data includes fields and field values of the interface.
Preferably, the information of the web interface includes the type of the interface, url, the user to which the interface belongs, and the value range of the interface field.
In a second aspect, an embodiment of the present invention provides a flow testing apparatus, including:
the target node selection module is used for inquiring the execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, at least one process node is selected from the executable process nodes to serve as a target node;
the calling module is used for inquiring a web interface matched with the target node, simulating real calling for the web interface, knowing that the execution state of the target node is updated to be finished in the system to be tested if the calling result is determined to be in accordance with expectation, and re-inquiring the current execution state of each process node in the system to be tested;
wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first aspect when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first aspect.
According to the flow testing method and device provided by the embodiment of the invention, aiming at the characteristics of complexity and configuration of some systems, the execution state of each flow node in the system to be tested is inquired, the target node is selected from the current executable flow nodes, the web interface corresponding to the target node is obtained by recording the web interface corresponding to each flow node in advance, the real call is simulated for the web interface, and if the call result is determined to be in accordance with the expectation, the current execution state of each flow node in the system to be tested is inquired again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of the operation of a prior art process automation test;
FIG. 2 is a schematic flow chart illustrating a flow testing method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a flow testing method according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a flow test apparatus according to an embodiment of the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a schematic flow chart of a flow testing method according to an embodiment of the present invention, and as shown in fig. 2, the testing method includes:
s101, inquiring the execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, selecting at least one process node from the executable process nodes as a target node.
It is understood that the testing method of the embodiment of the invention is performed in a testing environment. As is known, the house property trading process varies greatly according to different regions, which results in complex configuration of the current house property trading system, different processes between cities, and different trading processes in the same city due to different trading types.
To better describe the flow testing method of the embodiment of the present invention, a house property trading system is taken as an example for description, in the house property trading process, a broker logs in the house property trading system (i.e. a system to be tested), and completes different backlogs according to different roles, such as: bank face signing, house passing place confirmation, picking up an real estate title certificate and the like, and one to-do item is a process node. In the embodiment of the present invention, each process node has a precedence relationship in the business process, for example, only after the "pay-off first payment" process node is completed, the "bank face sign" process node may be executed, and after the "bank face sign" process node is completed, the "transact user" process node may be executed. It can be seen that whether each flow node is executable depends on whether the flow node before the flow node is complete.
In the house transaction system, the execution states of all process nodes are 'incomplete' in an initial state of each house transaction, when the 'pay-off-first-payment' process node is completed, the execution state of the 'pay-off-first-payment' process node needs to be modified to be completed (automatically by a broker or a system), and because the 'bank face sign' is changed into a process needing to be completed next time, the execution state of the 'bank face sign' process node needs to be modified to be 'executable' (automatically by the broker or the system) at this time, the user can be transacted after the 'bank face sign' is executed, and the execution state of the 'transacted-user' process node is still incomplete.
Different from the prior art, for a real estate transaction system, the execution sequence of each process node on the system is configured, and the updated execution sequence is also updated, so that in the case that the execution main body of the embodiment of the present invention cannot know the test sequence of each process node in advance, the embodiment of the present invention queries the execution state of each process node in the system to be tested to obtain an executable process node to determine the next process node to be tested. The whole test flow is finally formed through the flow nodes of the next test one by one. The embodiment of the invention realizes the decoupling of the testing process and the process configuration process of the system to be tested through the step S101.
The number of the target nodes selected in the embodiment of the invention can be one or more, and when the number of the selected target nodes is more than one, the plurality of target nodes are subjected to subsequent testing in a parallel processing mode. It is understood that the test described in the embodiment of the present invention refers to mock test, that is, a test method for creating a virtual object for testing some objects that are not easily constructed or easily obtained in the test process. The embodiment of the present invention defaults to sequentially selecting executable process nodes as target nodes, and certainly, also supports selecting target nodes in a random manner.
S102, inquiring a web interface matched with the target node, simulating real calling for the web interface, knowing that the execution state of the target node is updated to be finished in the system to be tested if the calling result is determined to be in accordance with expectation, and inquiring the current execution state of each process node in the system to be tested again.
Similar to the prior art, the embodiment of the invention also calls the web interface corresponding to the process node to realize the detection of the process node, so that if the calling result is known to be in line with expectation, the test of the default target node has no problem, and because the web interface calls the execution process of the process node, after the execution is finished, the system to be tested updates the execution state of the target node to be finished according to the preset rule, and (under the condition that the whole process is not finished) opens a new process node. It should be noted that, before step S102, information of web interfaces corresponding to all process nodes of the system to be tested is further recorded. Specifically, web interfaces corresponding to the process nodes are recorded in advance, after a target node is obtained, the web interface matched with the target node is inquired, and the web interface is simulated and called. And if the calling result is determined to be in accordance with the expectation, updating the execution state of the target node, returning to the step S101, and re-querying the current execution state of each process node in the system to be tested.
It should be noted that, the flow testing method of the embodiment of the present invention, aiming at the characteristics of complexity and configuration of the system to be tested, selects a target node from the currently executable flow nodes by querying the execution state of each flow node in the system to be tested, and implements obtaining a web interface corresponding to the target node by recording a web interface corresponding to each flow node in advance, and simulates real call to the web interface, and if it is determined that the call result meets the expectation, continues to query the current execution state of each flow node in the system to be tested. The embodiment of the invention overcomes the defect of low efficiency caused by manual detection and isolated process node detection in the prior art, and realizes the detection of the whole process in the house property transaction process for the first time when the embodiment is applied to a house property transaction system.
On the basis of the above embodiments, as an optional embodiment, simulating a real call to a web interface, and then further including: and if the calling result does not meet the expectation, stopping the test of the system to be tested. Specifically, if the calling result is not in accordance with the expectation, the embodiment of the present invention will report an error while stopping the subsequent test, and the execution state of the target node will not become completed in the system to be tested.
On the basis of the foregoing embodiments, as an optional embodiment, after querying the execution state of each process node in the system to be tested, the method further includes: and if the executable flow nodes do not exist at present, stopping the test of the system to be tested. It should be noted that if it is found by querying the system to be tested that there is no executable process node, it indicates that the whole process has been detected, and the test needs to be stopped.
Fig. 3 is a schematic flow chart of a flow testing method according to another embodiment of the present invention, as shown in fig. 3, the testing method includes:
s301, recording information of web interfaces corresponding to all process nodes of a system to be tested;
s302, inquiring the current execution state of each process node of the system to be tested from the system to be tested, and judging whether an executable process node exists at present; if an executable process node exists currently, executing step S303; if no executable process node exists at present, stopping testing;
s303, selecting at least one process node from the executable process nodes as a target node;
s304, inquiring a web interface matched with the target node, and simulating real call to the web interface;
s305, judging whether the calling result is in accordance with the expectation, and if the calling result is determined to be in accordance with the expectation, executing the step S302; and if the calling result is determined to be not in accordance with the expectation, stopping the test.
On the basis of the foregoing embodiments, as an optional embodiment, querying an execution state of each process node in a system to be tested specifically includes:
sending a query request to a system to be tested;
receiving the current execution states and unique identifications of all process nodes in the system to be tested, which are returned by the system to be tested; the execution state of each flow node is one of completed, in-progress or not started;
and taking the flow node with the execution state as the ongoing flow node as the executable flow node.
It can be understood that the query request sent by the execution subject in the embodiment of the present invention refers to a query request for querying the execution state of each process node in the system to be tested. When the system to be tested receives the query request, the execution states and the unique identifiers of all the current process nodes are returned to the execution main body of the embodiment of the invention. The execution states include completed, in-process, and not-started, for a total of three.
On the basis of the foregoing embodiments, as an optional embodiment, the recording information of the web interfaces corresponding to all the process nodes of the system to be tested specifically includes:
and for any flow node of the system to be tested, recording the information of the corresponding web interface according to the unique identification of the flow node. The information of the web interface comprises the type of the interface, url, the user to which the interface belongs and the value range of the interface field.
Simulating real call to the web interface, specifically:
constructing interface data of the corresponding web interface, and simulating real call to the corresponding web interface according to the interface data; wherein the interface data includes fields and field values of the interface. For example, "buyer gender: male "is the interface data in which the buyer's gender is the field and male is the field value.
Fig. 4 is a schematic structural diagram of a flow test apparatus according to an embodiment of the present invention, and as shown in fig. 4, the flow test apparatus includes: a target node selection module 401 and a calling module 402, wherein:
the target node selection module 401 is configured to query the system to be tested for the execution state of each process node in the system to be tested, and if an executable process node currently exists, select at least one process node from the executable process nodes as a target node.
It is understood that the testing method of the embodiment of the invention is performed in a testing environment. As is known, the house property trading process varies greatly according to different regions, which results in complex configuration of the current house property trading system, different processes between cities, and different trading processes in the same city due to different trading types.
To better describe the flow testing method of the embodiment of the present invention, a house property trading system is taken as an example for description, in the house property trading process, a broker logs in the house property trading system (i.e. a system to be tested), and completes different backlogs according to different roles, such as: bank face signing, house passing place confirmation, picking up an real estate title certificate and the like, and one to-do item is a process node. In the embodiment of the present invention, each process node has a precedence relationship in the business process, for example, only after the "pay-off first payment" process node is completed, the "bank face sign" process node may be executed, and after the "bank face sign" process node is completed, the "transact user" process node may be executed. It can be seen that whether each flow node is executable depends on whether the flow node before the flow node is complete.
In the house transaction system, the execution states of all process nodes are 'incomplete' in an initial state of each house transaction, when the 'pay-off-first-payment' process node is completed, the execution state of the 'pay-off-first-payment' process node needs to be modified to be completed (automatically by a broker or a system), and because the 'bank face sign' is changed into a process needing to be completed next time, the execution state of the 'bank face sign' process node needs to be modified to be 'executable' (automatically by the broker or the system) at this time, the user can be transacted after the 'bank face sign' is executed, and the execution state of the 'transacted-user' process node is still incomplete.
Different from the prior art, for a system to be tested, the execution sequence of each process node of the system is configured, and the updated execution sequence is also updated, so that in the case that the execution main body of the embodiment of the present invention cannot know the test sequence of each process node in advance, the embodiment of the present invention queries the execution state of each process node in the system to be tested to obtain an executable process node to determine the process node of the next test. The whole test flow is finally formed through the flow nodes of the next test one by one. The embodiment of the invention realizes the decoupling of the testing process and the process configuration process of the system to be tested through the step S101.
The number of the target nodes selected in the embodiment of the invention can be one or more, and when the number of the selected target nodes is more than one, the plurality of target nodes are used for subsequent testing in a parallel processing mode. It is understood that the test described in the embodiment of the present invention refers to mock test, that is, a test method for creating a virtual object for testing some objects that are not easily constructed or easily obtained in the test process. When there are a plurality of executable process nodes, the embodiment of the present invention defaults to sequentially selecting the executable process nodes as the target nodes, and certainly, also supports selecting the target nodes in a random manner.
A calling module 402, configured to query a web interface matched with the target node, simulate a real call for the web interface, if it is determined that a call result meets an expectation, learn that the execution state of the target node is updated to be completed in the system to be tested, and re-query the current execution state of each process node in the system to be tested; the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
Similar to the prior art, the embodiment of the invention also calls the web interface corresponding to the process node to realize the detection of the process, so that if the calling result is known to be in line with expectation, the test of the default target node has no problem, and because the calling of the web interface simulates the execution process of the process node, after the execution is finished, the system to be tested updates the execution state of the target node to be finished according to the preset rule, and (under the condition that the whole process is not finished) opens a new process node. . It should be noted that, before querying the web interface matched with the target node, the method further includes recording information of the web interfaces corresponding to all process nodes of the system to be tested. Specifically, web interfaces corresponding to the process nodes are recorded in advance, after a target node is obtained, the web interface matched with the target node is inquired, and the web interface is simulated and called. And if the calling result is determined to be in accordance with the expectation, updating the execution state of the target node, and re-querying the current execution state of each process node in the system to be tested.
The flow testing apparatus provided in the embodiments of the present invention specifically executes the flows of the above-mentioned various flow testing method embodiments, and please refer to the contents of the above-mentioned various flow testing method embodiments in detail, which are not described herein again. The flow testing device provided by the embodiment of the invention aims at the characteristics of complexity and configuration of a system to be tested, selects a target node from current executable flow nodes by inquiring the execution state of each flow node in the system to be tested, realizes to obtain a web interface corresponding to the target node by recording the web interface corresponding to each flow node in advance, simulates real calling for the web interface, and continues to inquire the current transaction flow of the system to be tested if the calling result is determined to be in accordance with expectation.
Fig. 5 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device may include: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke a computer program stored on memory 530 and executable on processor 510 to perform the flow testing methods provided by the various embodiments described above, including, for example: inquiring the current execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, selecting at least one process node from the executable process nodes as a target node; inquiring a web interface matched with the target node, simulating real calling for the web interface, if the calling result is determined to be in accordance with expectation, knowing that the execution state of the target node is updated to be finished in the system to be tested, and inquiring the current execution state of each process node in the system to be tested again; wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or make a contribution to the prior art, or may be implemented 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 network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the flow testing method provided in the foregoing embodiments when executed by a processor, and the method includes: inquiring the current execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, selecting at least one process node from the executable process nodes as a target node; inquiring a web interface matched with the target node, simulating real calling for the web interface, if the calling result is determined to be in accordance with expectation, knowing that the execution state of the target node is updated to be finished in the system to be tested, and inquiring the current execution state of each process node in the system to be tested again; wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A process testing method, comprising:
under the condition that the test sequence of each process node cannot be known in advance, inquiring the current execution state of each process node in the system to be tested from the system to be tested, and if an executable process node exists currently, selecting at least one process node from the executable process nodes as a target node;
inquiring a web interface matched with the target node, simulating real calling for the web interface, if the calling result is determined to be in accordance with expectation, knowing that the execution state of the target node is updated to be finished in the system to be tested, and inquiring the current execution state of each process node in the system to be tested again;
wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
2. The process testing method of claim 1, wherein said simulating a real call to said web interface further comprises:
and if the calling result is determined to be not in accordance with the expectation, stopping the test of the system to be tested.
3. The process testing method according to claim 1, wherein said querying an execution status of each process node in the system under test further comprises:
and if the executable flow nodes do not exist at present, stopping the test of the system to be tested.
4. The process testing method according to claim 1, wherein the querying of the execution state of each process node in the system to be tested specifically comprises:
sending a query request to a system to be tested;
receiving the current execution states and unique identifications of all process nodes in the system to be tested, which are returned by the system to be tested;
and taking the flow node with the execution state as the ongoing flow node as the executable flow node.
5. The process testing method according to claim 1, wherein the recording of the information of the web interfaces corresponding to all the process nodes of the system to be tested specifically comprises:
and for any flow node of the system to be tested, recording the information of the corresponding web interface according to the unique identification of the flow node.
6. The process testing method according to claim 1, wherein simulating a real call to the web interface specifically comprises:
constructing interface data of the corresponding web interface, and simulating real call to the corresponding web interface according to the interface data;
wherein the interface data includes fields and field values of the interface.
7. The process testing method according to claim 5, wherein the information of the web interface includes a type of the interface, a url, a user to which the interface belongs, and a value range of the interface field.
8. A process testing apparatus, comprising:
the target node selection module is used for inquiring the execution state of each process node in the system to be tested under the condition that the test sequence of each process node cannot be known in advance, and selecting at least one process node from the executable process nodes as a target node if the executable process nodes exist at present;
the calling module is used for inquiring a web interface matched with the target node, simulating real calling for the web interface, knowing that the execution state of the target node is updated to be finished in the system to be tested if the calling result is determined to be in accordance with expectation, and re-inquiring the current execution state of each process node in the system to be tested;
wherein the step of querying the web interface matched with the target node further comprises: and recording the information of the web interfaces corresponding to all the process nodes of the system to be tested.
9. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a flow testing method as claimed in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the flow testing method of any one of claims 1-7.
CN201910562415.0A 2019-06-26 2019-06-26 Flow testing method and device Active CN110347593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910562415.0A CN110347593B (en) 2019-06-26 2019-06-26 Flow testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910562415.0A CN110347593B (en) 2019-06-26 2019-06-26 Flow testing method and device

Publications (2)

Publication Number Publication Date
CN110347593A CN110347593A (en) 2019-10-18
CN110347593B true CN110347593B (en) 2020-07-24

Family

ID=68183264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910562415.0A Active CN110347593B (en) 2019-06-26 2019-06-26 Flow testing method and device

Country Status (1)

Country Link
CN (1) CN110347593B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113792949A (en) * 2020-06-29 2021-12-14 北京沃东天骏信息技术有限公司 Task processing method and device, electronic equipment and computer readable medium
CN112035282B (en) * 2020-09-01 2023-07-25 北京百度网讯科技有限公司 API management method, device and equipment applied to cloud platform and storage medium
CN113835727A (en) * 2021-08-31 2021-12-24 贝壳技术有限公司 Configuration version upgrading method and device
CN114240033A (en) * 2021-11-08 2022-03-25 普强时代(珠海横琴)信息技术有限公司 Flow analysis method and device
CN114528203A (en) * 2022-01-07 2022-05-24 马上消费金融股份有限公司 Voice response system test method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391686A (en) * 2014-10-14 2015-03-04 深圳怡化电脑股份有限公司 Flow control method and device
CN108650021A (en) * 2018-05-14 2018-10-12 烽火通信科技股份有限公司 A kind of dynamic heavy-route automated testing method and system based on ASON

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870539A (en) * 1996-07-01 1999-02-09 Sun Microsystems, Inc. Method for generalized windows application install testing for use with an automated test tool
CN104156313B (en) * 2014-08-12 2017-01-25 南京大学 Method for automatically generating Web service testing case
GB2547221A (en) * 2016-02-10 2017-08-16 Testplant Europe Ltd Method of, and apparatus for, testing computer hardware and software
CN107656864A (en) * 2016-11-09 2018-02-02 华东师范大学 A kind of Mobile solution automated testing method based on probabilistic model
CN109582563B (en) * 2018-10-26 2024-04-05 平安科技(深圳)有限公司 Test method, device, computer equipment and storage medium for test cases

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391686A (en) * 2014-10-14 2015-03-04 深圳怡化电脑股份有限公司 Flow control method and device
CN108650021A (en) * 2018-05-14 2018-10-12 烽火通信科技股份有限公司 A kind of dynamic heavy-route automated testing method and system based on ASON

Also Published As

Publication number Publication date
CN110347593A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110347593B (en) Flow testing method and device
CN111667267B (en) Block chain transaction risk identification method and device
CN109741181B (en) Transaction matching method, system, server and medium based on intelligent contract
CN106548261A (en) A kind of Business Process Control method, device and electronic equipment
WO2023207146A1 (en) Service simulation method and apparatus for esop system, and device and storage medium
CN113807960A (en) Cross-link processing method, device and system between heterogeneous chains and electronic equipment
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN112711640A (en) Method and device for configuring business handling process
KR102042442B1 (en) Regtech platform apparatus for digital compliance and risk management, method for risk management of financial transactions and computer program for the same
CN109639755A (en) Interconnected system server decoupling method, device, medium and electronic equipment
CN111382062B (en) Joint debugging test method and device for real estate transaction system and external institution business system
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN110263551A (en) A kind of test method and device
CN110266610B (en) Traffic identification method and device and electronic equipment
CN114860615A (en) Rule automatic testing method and device, electronic equipment and storage medium
CN111679967A (en) Trade list display method and device for testing
CN116485514B (en) Wind control processing method and device, electronic equipment and computer readable storage medium
CN112671825B (en) Kafka message processing method and system
CN111967960A (en) Batch adjustment method and device for account data
CN114764713A (en) Method and device for generating merchant patrol task, electronic equipment and storage medium
CN116820622A (en) Application offline processing method and device
CN116911557A (en) Service processing system, method, electronic equipment and storage medium
CN114581099A (en) Data collaboration method, device, equipment and storage medium based on block chain
CN117611341A (en) Asset directory adjustment method, device, electronic equipment and storage medium
CN115409469A (en) Order processing method, order processing device, storage medium and electronic device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191212

Address after: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing

Applicant after: Seashell Housing (Beijing) Technology Co., Ltd.

Address before: 300 457 days Unit 5, Room 1, 112, Room 1, Office Building C, Nangang Industrial Zone, Binhai New Area Economic and Technological Development Zone, Tianjin

Applicant before: Shell Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant