[go: up one dir, main page]

CN110347593A - Flow testing method and device - Google Patents

Flow testing method and device Download PDF

Info

Publication number
CN110347593A
CN110347593A CN201910562415.0A CN201910562415A CN110347593A CN 110347593 A CN110347593 A CN 110347593A CN 201910562415 A CN201910562415 A CN 201910562415A CN 110347593 A CN110347593 A CN 110347593A
Authority
CN
China
Prior art keywords
flow nodes
measured
test system
web interface
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.)
Granted
Application number
CN201910562415.0A
Other languages
Chinese (zh)
Other versions
CN110347593B (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
Beike 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 Beike Technology Co Ltd filed Critical Beike 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

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • 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 present invention provides a kind of flow testing method and device, wherein method includes: the execution state that each flow nodes are current into system queries to be tested test system to be measured, if selecting at least one flow nodes as destination node from executable flow nodes there is currently executable flow nodes;Inquiry and the matched web interface of destination node, and true call is simulated to the web interface, if it is determined that call result meets expection, then know that the execution state of the destination node is updated to be completed in test system to be measured, and inquires the current execution state of each flow nodes in test system to be measured again;Wherein, described the step of inquiring web interface matched with the destination node, before further include: record the information of the corresponding web interface of all flow nodes of test system to be measured.The embodiment of the present invention realizes the decoupling of the process configuration process of test process and test system to be measured, and how the process that test process is not necessarily to pay close attention to test system to be measured configures.

Description

Flow testing method and device
Technical field
The present embodiments relate to field of computer technology, more particularly, to a kind of flow testing method and device.
Background technique
Existing process automation test method is surveyed to the web interface construction test data of flow nodes one by one Examination, in order tests all flow nodes.
Fig. 1 is the working principle diagram that the process automation of the prior art is tested, as shown in Figure 1, flow nodes (referred to as save Point) a, b, c, d constitute a process of system in order, and node d relies on node c and completes, and composition successively relies on.Tradition is connect The method of mouth test, the testing sequence of the necessary each node known of the executing subject of test, and interface input data is constructed, pass through mould Input data is sent to interface a in the operating procedure of browser by quasi- user, and whether the return of verification interface a meets expection, complete After node a, similarly to node b, c, until the return of node d meets the expected test for completing whole flow process.Existing test Method is suitable for the weblication with standardization process.
In certain test macros, due to configuring complexity, test can not know that in advance the test of each node is suitable Sequence, therefore can not be standardized, procedure processing, it can only be based on being accomplished manually in face of the flow testing of this kind of test macro, Or isolated test can only be carried out to some node.
Summary of the invention
The embodiment of the present invention provides a kind of flow testing for overcoming the above problem or at least being partially solved the above problem Method and device.
First aspect, the embodiment of the present invention provide a kind of flow testing method, comprising:
The current execution state of each flow nodes into system queries to be tested test system to be measured, if there is currently executable Flow nodes, then select at least one flow nodes as destination node from the executable flow nodes;
Inquiry and the matched web interface of the destination node, and true call is simulated to the web interface, however, it is determined that it adjusts Meet expection with result, then knows that the execution state of the destination node is updated to be completed in test system to be measured, and again Inquire the current execution state of each flow nodes in test system to be measured;
Wherein, described the step of inquiring web interface matched with the destination node, before further include: record to be tested The information of the corresponding web interface of all flow nodes of system.
Preferably, described that true calling is simulated to the web interface, later further include:
If it is determined that call result does not meet expection, then stop the test of test system to be measured.
Preferably, the execution state for inquiring each flow nodes in test system to be measured, later further include:
If stopping the test of test system to be measured there is currently no executable flow nodes.
Preferably, the execution state for inquiring each flow nodes in test system to be measured, specifically:
Inquiry request is sent to test system to be measured;
Receive all flow nodes are current in the test system to be measured that the test system to be measured returns execution state and Unique identification;
It is ongoing flow nodes as executable flow nodes using the state of execution.
Preferably, the information of the corresponding web interface of all flow nodes for recording test system to be measured, specifically:
For any one flow nodes of test system to be measured, according to the unique identification of the flow nodes, record is corresponded to Web interface information.
True calling is simulated to the web interface, specifically:
The interface data for constructing the corresponding web interface, according to the interface data to the corresponding web interface mould Quasi- true calling;
Wherein, the interface data includes the field and field value of interface.
Preferably, the information of the web interface includes type, url, interface owning user and the interface field of interface Value range.
The second aspect, the embodiment of the present invention provide a kind of flow testing device, comprising:
Destination node selecting module, the execution shape for each flow nodes into system queries to be tested test system to be measured State, if selecting at least one flow nodes from the executable flow nodes there is currently executable flow nodes As destination node;
Calling module for inquiry and the matched web interface of the destination node, and simulates the web interface true It calls, however, it is determined that call result meets expection, then knows that the execution state of the destination node is updated in test system to be measured It is completed, and inquires the current execution state of each flow nodes in test system to be measured again;
Wherein, described the step of inquiring web interface matched with the destination node, before further include: record to be tested The information of the corresponding web interface of all flow nodes of system.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, is realized when the processor executes described program as first aspect provides Method the step of.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating Machine program is realized as provided by first aspect when the computer program is executed by processor the step of method.
Flow testing method and device provided in an embodiment of the present invention, for complication, configurationization existing for certain systems The characteristics of, by inquiring the execution state of each flow nodes in test system to be measured, selected from currently executable flow nodes Destination node realizes by the corresponding web interface of pre-recorded each flow nodes and obtains the corresponding web interface of destination node, And true call is simulated to the web interface, however, it is determined that call result meets expection, then and again inquires each in test system to be measured The current execution state of flow nodes, the embodiment of the present invention realize the process configuration process of test process and test system to be measured How decoupling, the process that test process is not necessarily to pay close attention to test system to be measured configure.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the working principle diagram that the process automation of the prior art is tested;
Fig. 2 is the flow diagram of flow testing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the flow testing method of another embodiment of the present invention;
Fig. 4 is the structural schematic diagram of flow testing device provided in an embodiment of the present invention;
Fig. 5 is the entity structure schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 2 is the flow diagram of flow testing method provided in an embodiment of the present invention, as shown in Fig. 2, test method packet It includes:
S101, into system queries to be tested test system to be measured each flow nodes execution state, if there is currently can hold Capable flow nodes then select at least one flow nodes as destination node from the executable flow nodes.
It is understood that the test method of the embodiment of the present invention carries out under the test environment.It is generally known that house property Transaction flow causes current house prosperity transaction system configuration complicated with there is biggish variation from different places, intercity Process is different, the transaction flow in same city as the difference of type of transaction and it is different.
The flow testing method of embodiment in order to better illustrate the present invention, is now said by taking house prosperity transaction system as an example Bright, during house prosperity transaction, broker Login house prosperity transaction system (test system i.e. to be measured) is completed according to the difference of role Different backlogs, such as: bank face label, transfer place confirm, get freehold certificate etc., and a backlog is One flow nodes.In embodiments of the present invention, with the precedence relationship in operation flow between each flow nodes, for example, only After the completion of having " paying off down payment " flow nodes, " bank face label " flow nodes just be can be performed, and " bank face label " flow nodes are completed Afterwards, flow nodes of " handling transfer " just can be performed.It can be seen that whether each flow nodes can be performed, the process is both depended on Whether the flow nodes before node execute completion.
Illustrate to execute state in the embodiment of the present invention by taking " paying off down payment ", " bank face label " and " handling transfer " as an example below Concept, in house prosperity transaction system, in the initial state, the execution state of all flow nodes is for each house prosperity transaction " unfinished " needs (automatic by broker or system) " will pay off head at this time after the completion of " paying off down payment " flow nodes Pay " the execution status modifiers of flow nodes is to be completed, since " bank face label " become the process for next needing to complete, at this time Need (automatic by broker or system) by the execution status modifier of the flow nodes of " bank face label " be " executable ", therefore " bank face label " just can be carried out after executing and handle transfer, thus the execution state of the flow nodes of " handling transfer " remain as it is not complete At.
Unlike the prior art, for house prosperity transaction system, the execution of each flow nodes in system is suitable Sequence is all configuration, and configures updated execution sequence and also will be updated, therefore is pre- in the executing subject of the embodiment of the present invention In the case where the testing sequence that can not first know each flow nodes, the embodiment of the present invention passes through to be tested to system queries to be tested The execution state of each flow nodes in system obtains executable flow nodes to determine the flow nodes of next test.It is logical It crosses and finally constitutes entire testing process one by one " flow nodes of next test ".The embodiment of the present invention is real by step S101 The decoupling of the process configuration process of test process and test system to be measured is showed.
The number for the destination node that the embodiment of the present invention selects can be one, or it is multiple, when the target of selection When the number of node is multiple, subsequent test is carried out to multiple destination nodes by the way of parallel processing.It is understood that Be, test described in the embodiment of the present invention refer to mock test, i.e., during the test, for it is certain be not easy construction or not It is easy the object obtained, creates the test method so as to test with a virtual object.Default of the embodiment of the present invention is by suitable Sequence selects executable flow nodes as destination node, certainly, also supports selection target node in a random way, the present invention Embodiment is not further limited the mode of selection target node.
S102, inquiry and the matched web interface of the destination node, and true calling is simulated to the web interface, if really Determine call result and meet expection, then knows that the execution state of the destination node is updated to be completed in test system to be measured, and Again the current execution state of each flow nodes in test system to be measured is inquired.
Similarly to the prior art, the embodiment of the present invention is also by adjusting to web interface corresponding with flow nodes With, realize detection to flow nodes, if therefore know that call result meets expection, the test of default objects node is not asked Topic, due to web interface call itself simulation be flow nodes implementation procedure, when execute after, test system to be measured The execution state of destination node will be updated to be completed according to preset rules, and (in the unclosed situation of whole flow process) Open new flow nodes.It should be noted that further including all process sections for recording test system to be measured before step S102 The information of the corresponding web interface of point.Specifically, by the corresponding web interface of pre-recorded each flow nodes, target section is being obtained After point, inquiry and the matched web interface of the destination node, and simulation calling is carried out to the web interface.If it is determined that call result accords with It closes and is expected, then update the execution state and return step S101 of destination node, inquire each flow nodes in test system to be measured again Current execution state.
It should be noted that the flow testing method of the embodiment of the present invention, for complicating, match existing for test system to be measured The characteristics of setting, by inquiring the execution state of each flow nodes in test system to be measured, from currently executable flow nodes Selection target node is realized by the corresponding web interface of pre-recorded each flow nodes and obtains the corresponding web of destination node Interface, and true call is simulated to the web interface, however, it is determined that call result meets expection, then continues to inquire test system to be measured In the current execution state of each flow nodes, the embodiment of the present invention realizes test process and the process of test system to be measured configured How the decoupling of journey, the process that test process is not necessarily to pay close attention to test system to be measured configure.The embodiment of the present invention overcomes the prior art It the drawbacks of inefficiency caused by detection and the detection of isolated flow nodes can only manually be carried out, is answered in house prosperity transaction system Used time realizes full-range detection during house prosperity transaction for the first time.
On the basis of the various embodiments described above, as a kind of alternative embodiment, true calling is simulated to web interface, later Further include: if call result does not meet expection, stops the test of test system to be measured.Specifically, if call result do not meet it is pre- Phase, the embodiment of the present invention, which will do it, to report an error, and is simultaneously stopped subsequent test, and the execution state of destination node is in system to be tested It will not become being completed in system.
On the basis of the various embodiments described above, as a kind of alternative embodiment, each flow nodes in test system to be measured are inquired Execution state after further include: if stopping the test of test system to be measured there is currently no executable flow nodes.It needs Illustrate, if illustrating that whole flow process has been examined by inquiring system discovery to be tested there is no executable flow nodes Survey finishes, and needs to stop to test.
Fig. 3 is the flow diagram of the flow testing method of another embodiment of the present invention, as shown in figure 3, the test side Method includes:
S301, record test system to be measured the corresponding web interface of all flow nodes information;
S302, to the current execution state of each flow nodes of system queries to be tested test system to be measured, judgement it is current whether There are executable flow nodes;If thening follow the steps S303 there is currently executable flow nodes;If there is currently no can The flow nodes of execution then stop testing;
S303, select at least one flow nodes as destination node from the executable flow nodes;
S304, inquiry and the matched web interface of the destination node, and true call is simulated to the web interface;
S305, judge whether call result meets expection, however, it is determined that call result meets expection, thens follow the steps S302; If it is determined that call result does not meet expection, then stop testing.
On the basis of the various embodiments described above, as a kind of alternative embodiment, each flow nodes in test system to be measured are inquired Execution state, specifically include:
Inquiry request is sent to test system to be measured;
Receive all flow nodes are current in the test system to be measured that the test system to be measured returns execution state and Unique identification;The execution state of each flow nodes is one of not start in being completed, carrying out or;
It is ongoing flow nodes as executable flow nodes using the state of execution.
It is understood that the inquiry request that the executing subject of the embodiment of the present invention is sent refers in inquiry test system to be measured The inquiry request of the execution state of each flow nodes.After test system to be measured receives the inquiry request, it can implement to the present invention The executing subject of example returns to the execution state and unique identification of current all flow nodes.Execution state includes being completed, carrying out Neutralization does not start, and totally three kinds.
On the basis of the various embodiments described above, as a kind of alternative embodiment, all streams for recording test system to be measured The information of the corresponding web interface of Cheng Jiedian, specifically:
For any one flow nodes of test system to be measured, according to the unique identification of the flow nodes, record is corresponded to Web interface information.The information of web interface includes taking for the type of interface, url, interface owning user and interface field It is worth range.
True calling is simulated to the web interface, specifically:
The interface data for constructing the corresponding web interface, according to the interface data to the corresponding web interface mould Quasi- true calling;Wherein, the interface data includes the field and field value of interface.For example, " buyer's gender: male " this interface In data, buyer's gender, that is, field, male is field value.
Fig. 4 is the structural schematic diagram of flow testing device provided in an embodiment of the present invention, as shown in figure 4, the test device It include: destination node selecting module 401 and calling module 402, in which:
Destination node selecting module 401, the execution for each flow nodes into system queries to be tested test system to be measured State, if selecting at least one process section from the executable flow nodes there is currently executable flow nodes Point is used as destination node.
It is understood that the test method of the embodiment of the present invention carries out under the test environment.It is generally known that house property Transaction flow causes current house prosperity transaction system configuration complicated with there is biggish variation from different places, intercity Process is different, the transaction flow in same city as the difference of type of transaction and it is different.
The flow testing method of embodiment in order to better illustrate the present invention, is now said by taking house prosperity transaction system as an example Bright, during house prosperity transaction, broker Login house prosperity transaction system (test system i.e. to be measured) is completed according to the difference of role Different backlogs, such as: bank face label, transfer place confirm, get freehold certificate etc., and a backlog is One flow nodes.In embodiments of the present invention, with the precedence relationship in operation flow between each flow nodes, for example, only After the completion of having " paying off down payment " flow nodes, " bank face label " flow nodes just be can be performed, and " bank face label " flow nodes are completed Afterwards, flow nodes of " handling transfer " just can be performed.It can be seen that whether each flow nodes can be performed, the process is both depended on Whether the flow nodes before node execute completion.
Illustrate to execute state in the embodiment of the present invention by taking " paying off down payment ", " bank face label " and " handling transfer " as an example below Concept, in house prosperity transaction system, in the initial state, the execution state of all flow nodes is for each house prosperity transaction " unfinished " needs (automatic by broker or system) " will pay off head at this time after the completion of " paying off down payment " flow nodes Pay " the execution status modifiers of flow nodes is to be completed, since " bank face label " become the process for next needing to complete, at this time Need (automatic by broker or system) by the execution status modifier of the flow nodes of " bank face label " be " executable ", therefore " bank face label " just can be carried out after executing and handle transfer, thus the execution state of the flow nodes of " handling transfer " remain as it is not complete At.
Unlike the prior art, for test system to be measured, the execution sequence of each flow nodes of system It is configuration, and configures updated execution sequence and also will be updated, therefore in the preparatory nothing of the executing subject of the embodiment of the present invention In the case that method knows the testing sequence of each flow nodes, the embodiment of the present invention is by system queries to be tested test system to be measured In each flow nodes execution state, obtain executable flow nodes to determine the flow nodes of next test.Pass through one Each and every one finally constitutes entire testing process at " flow nodes of next test ".The embodiment of the present invention is realized by step S101 The decoupling of the process configuration process of test process and test system to be measured.
The number for the destination node that the embodiment of the present invention selects can be one, or it is multiple, when the target of selection When the number of node is multiple, multiple destination nodes carry out subsequent test by the way of parallel processing.It is understood that Test described in the embodiment of the present invention refers to that mock is tested, i.e., during the test, is not easy to construct or does not allow for certain The object easily obtained creates the test method so as to test with a virtual object.When executable flow nodes are more When a, default of the embodiment of the present invention selects executable flow nodes as destination node in order, certainly, also supports with random Mode selection target node, the embodiment of the present invention is not further limited the mode of selection target node.
Calling module 402 for inquiry and the matched web interface of the destination node, and simulates the web interface true It is real to call, however, it is determined that call result meets expection, then knows that the execution state of the destination node updates in test system to be measured To be completed, and the current execution state of each flow nodes in test system to be measured is inquired again;The inquiry and the target section The step of point matched web interface, before further include: record the corresponding web interface of all flow nodes of test system to be measured Information.
Similarly to the prior art, the embodiment of the present invention is also by adjusting to web interface corresponding with flow nodes With, realize detection to process, if therefore know that call result meets expection, there is no problem for the test of default objects node, by In web interface call simulation itself be flow nodes implementation procedure, therefore after executing, test system to be measured will be by The execution state of destination node is updated to be completed according to preset rules, and (in the unclosed situation of whole flow process) is opened newly Flow nodes.It should be noted that inquiry and the matched web interface of the destination node before further include record it is to be measured The information of the corresponding web interface of all flow nodes of test system.Specifically, corresponding by pre-recorded each flow nodes Web interface, after obtaining destination node, inquiry and the matched web interface of the destination node, and the web interface is simulated It calls.If it is determined that call result meets expection, then the execution state of destination node is updated, and inquired again each in test system to be measured The current execution state of flow nodes.
Flow testing device provided in an embodiment of the present invention specifically executes above-mentioned each flow testing embodiment of the method process, The content of above-mentioned each flow testing embodiment of the method please be specifically detailed in, details are not described herein.Process provided in an embodiment of the present invention The characteristics of test device is for the existing complication of test system to be measured, configurationization, passes through and inquires each process section in test system to be measured The execution state of point, the selection target node from currently executable flow nodes, passes through pre-recorded each flow nodes pair The web interface answered is realized and obtains the corresponding web interface of destination node, and simulates true call to the web interface, however, it is determined that Call result meets expection, then continues the current transaction flow for inquiring test system to be measured, and the embodiment of the present invention realizes test How the decoupling of process and the process configuration process of test system to be measured, the process that test process is not necessarily to pay close attention to test system to be measured match It sets.
Fig. 5 is the entity structure schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 5, the electronic equipment It may include: processor (processor) 510,520, memory communication interface (Communications Interface) (memory) 530 and communication bus 540, wherein processor 510, communication interface 520, memory 530 pass through communication bus 540 Complete mutual communication.Processor 510 can call the meter that is stored on memory 530 and can run on processor 510 Calculation machine program, to execute the flow testing method of the various embodiments described above offer, for example, to be tested to system queries to be tested The current execution state of each flow nodes in system, if there is currently executable flow nodes, from the executable stream Select at least one flow nodes as destination node in Cheng Jiedian;Inquiry and the matched web interface of the destination node, and it is right The web interface simulation is true to call, however, it is determined that call result meets expection, then knows that the execution state of the destination node exists It is updated to be completed in test system to be measured, and inquires the current execution state of each flow nodes in test system to be measured again;Wherein, Described the step of inquiring web interface matched with the destination node, before further include: record all processes of test system to be measured The information of the corresponding web interface of node.
In addition, the logical order in above-mentioned memory 530 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally The technical solution of the inventive embodiments substantially part of the part that contributes to existing technology or the technical solution in other words It can be embodied in the form of software products, which is stored in a storage medium, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the present invention respectively The all or part of the steps of a embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, The computer program is implemented to carry out the flow testing method of the various embodiments described above offer when being executed by processor, for example, The current execution state of each flow nodes into system queries to be tested test system to be measured, if there is currently executable process sections Point then selects at least one flow nodes as destination node from the executable flow nodes;Inquiry and the target The web interface of node matching, and true call is simulated to the web interface, however, it is determined that call result meets expection, then knows institute The execution state for stating destination node is updated to be completed in test system to be measured, and inquires each process section in test system to be measured again The current execution state of point;Wherein, described the step of inquiring web interface matched with the destination node, before further include: note Record the information of the corresponding web interface of all flow nodes of test system to be measured.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of flow testing method characterized by comprising
The current execution state of each flow nodes into test system to be measured described in system queries to be tested, if there is currently executable Flow nodes, then select at least one flow nodes as destination node from the executable flow nodes;
Inquiry and the matched web interface of the destination node, and true call is simulated to the web interface, however, it is determined that call knot Fruit meets expection, then knows that the execution state of the destination node is updated to be completed in the test system to be measured, and again Inquire the execution state that each flow nodes are current in the test system to be measured;
Wherein, described the step of inquiring web interface matched with the destination node, before further include: record described to be tested The information of the corresponding web interface of all flow nodes of system.
2. flow testing method according to claim 1, which is characterized in that described to simulate true adjust to the web interface With later further include:
If it is determined that call result does not meet expection, then stop the test of test system to be measured.
3. flow testing method according to claim 1, which is characterized in that each process section in the inquiry test system to be measured The execution state of point, later further include:
If stopping the test of test system to be measured there is currently no executable flow nodes.
4. flow testing method according to claim 1, which is characterized in that each process section in the inquiry test system to be measured The execution state of point, specifically:
Inquiry request is sent to test system to be measured;
Receive all flow nodes are current in the test system to be measured that the test system to be measured returns execution state and unique Mark;
It is ongoing flow nodes as executable flow nodes using the state of execution.
5. flow testing method according to claim 1, which is characterized in that all processes for recording test system to be measured The information of the corresponding web interface of node, specifically:
Corresponding web is recorded according to the unique identification of the flow nodes for any one flow nodes of test system to be measured The information of interface.
6. flow testing method according to claim 1, which is characterized in that simulate true calling, tool to the web interface Body are as follows:
The interface data for constructing the corresponding web interface simulates the corresponding web interface according to the interface data true It is real to call;
Wherein, the interface data includes the field and field value of interface.
7. flow testing method according to claim 5, which is characterized in that the information of the web interface includes interface Type, url, interface owning user and interface field value range.
8. a kind of flow testing device characterized by comprising
Destination node selecting module, for the execution state of each flow nodes into system queries to be tested test system to be measured, if There is currently executable flow nodes, then select at least one flow nodes as mesh from the executable flow nodes Mark node;
Calling module for inquiry and the matched web interface of the destination node, and is simulated the web interface and is really called, If it is determined that call result meets expection, then know that the execution state of the destination node is updated in the test system to be measured It completes, and inquires the execution state that each flow nodes are current in the test system to be measured again;
Wherein, described the step of inquiring web interface matched with the destination node, before further include: record described to be tested The information of the corresponding web interface of all flow nodes of system.
9. a kind of electronic equipment characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough execute flow testing method as claimed in any of claims 1 to 7 in one of claims.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute process as claimed in any of claims 1 to 7 in one of claims Test method.
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 true CN110347593A (en) 2019-10-18
CN110347593B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035282A (en) * 2020-09-01 2020-12-04 北京百度网讯科技有限公司 API management method, device, equipment and storage medium applied to cloud platform
CN113792949A (en) * 2020-06-29 2021-12-14 北京沃东天骏信息技术有限公司 Task processing method and device, electronic equipment and computer readable 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 (7)

* 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
CN104391686A (en) * 2014-10-14 2015-03-04 深圳怡化电脑股份有限公司 Flow control method and device
CN104156313B (en) * 2014-08-12 2017-01-25 南京大学 Method for automatically generating Web service testing case
CN107656864A (en) * 2016-11-09 2018-02-02 华东师范大学 A kind of Mobile solution automated testing method based on probabilistic model
CN108650021A (en) * 2018-05-14 2018-10-12 烽火通信科技股份有限公司 A kind of dynamic heavy-route automated testing method and system based on ASON
US10157121B2 (en) * 2016-02-10 2018-12-18 Testplant Europe Ltd Method of, and apparatus for, testing computer hardware and software
CN109582563A (en) * 2018-10-26 2019-04-05 平安科技(深圳)有限公司 Test method, device, computer equipment and the storage medium of test cases

Patent Citations (7)

* 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
CN104391686A (en) * 2014-10-14 2015-03-04 深圳怡化电脑股份有限公司 Flow control method and device
US10157121B2 (en) * 2016-02-10 2018-12-18 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
CN108650021A (en) * 2018-05-14 2018-10-12 烽火通信科技股份有限公司 A kind of dynamic heavy-route automated testing method and system based on ASON
CN109582563A (en) * 2018-10-26 2019-04-05 平安科技(深圳)有限公司 Test method, device, computer equipment and the storage medium of test cases

Cited By (8)

* 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
CN113792949B (en) * 2020-06-29 2024-08-20 北京沃东天骏信息技术有限公司 Task processing method and device, electronic equipment and computer readable medium
CN112035282A (en) * 2020-09-01 2020-12-04 北京百度网讯科技有限公司 API management method, device, equipment and storage medium applied to cloud platform
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
CN114528203B (en) * 2022-01-07 2024-12-03 马上消费金融股份有限公司 Voice response system testing method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN110347593B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN110347593A (en) Flow testing method and device
CN109034660A (en) Based on the determination method and relevant apparatus of the risk control strategy of prediction model
CN110442737A (en) The twin method and system of number based on chart database
CN108777625A (en) Verification method, device and system, storage medium, the electronic device of signature
CN108170612A (en) A kind of automated testing method, device and server
US10904128B2 (en) Testing functionality of an Internet of Things environment
CN106375120B (en) A kind of IT infrastructure rapid topology method and device
CN110532021A (en) The processing method and processing device of the configuration file of dcs
CN110493812A (en) Processing method, device, system, processor and the main control device of distribution test
CN106648556A (en) Front end and back end integrated development testing method and device
CN110196800A (en) Distributed transaction test method, apparatus and system
CN107967204A (en) Line pushes method, system and the terminal device surveyed
CN109213681A (en) Test macro, method, equipment and readable storage medium storing program for executing
CN114692169B (en) Page vulnerability processing method applying big data and AI analysis and page service system
CN111045932A (en) Business system simulation processing method and device, electronic equipment and storage medium
CN108052444A (en) A kind of method and apparatus of performance test for mobile application
US11409928B2 (en) Configurable digital twin
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN107741906B (en) Monetary fund system automation test method, device, equipment and storage medium
CN109286617A (en) A data processing method and related equipment
CN109409746A (en) A kind of production scheduling method and device
JP2022136983A (en) Automatic generation of integrated test procedures using system test procedures
CN109639755A (en) Interconnected system server decoupling method, device, medium and electronic equipment
JP2023526916A (en) Discover application topology
CN107203471A (en) Joint debugging method, service platform and computer-readable storage medium

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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant