CN113900933A - Test method and related device - Google Patents

Test method and related device Download PDF

Info

Publication number
CN113900933A
CN113900933A CN202111152568.1A CN202111152568A CN113900933A CN 113900933 A CN113900933 A CN 113900933A CN 202111152568 A CN202111152568 A CN 202111152568A CN 113900933 A CN113900933 A CN 113900933A
Authority
CN
China
Prior art keywords
target
node
target node
link
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111152568.1A
Other languages
Chinese (zh)
Inventor
韩秀斌
申大伟
肖汉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Du Xiaoman Technology Beijing Co Ltd
Original Assignee
Du Xiaoman Technology Beijing 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 Du Xiaoman Technology Beijing Co Ltd filed Critical Du Xiaoman Technology Beijing Co Ltd
Priority to CN202111152568.1A priority Critical patent/CN113900933A/en
Publication of CN113900933A publication Critical patent/CN113900933A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a test method and a related device, wherein a test script is not generated for each test service, but a sublink is generated according to the minimum unit of a plurality of steps required by a plurality of test services, and a target link required by a target test service is generated based on the sublink and/or the steps. Determining a target link as a current test link, determining an ith node in the current test link as a target node, identifying the type of the target node, if the type of the target node is a step, executing actions included by the target node, completing the test of the step, re-determining the (i + 1) th node as the target node, and continuing to execute the steps of identifying the type of the target node and the subsequent steps until all nodes in the target link are executed; if the type of the target node is the sublink, the target node is determined as the current test link again, and the ith node in the current test link is taken as the target node and the subsequent steps are executed.

Description

Test method and related device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a test method and a related apparatus.
Background
In the testing field, all steps executed on the application object to be tested (such as selecting a certain item of data in a list, inputting data into a text box, etc.) are accumulated to generate a testing script, and the application object is tested according to the testing script.
In the related art, one test flow corresponds to one test script, but the same step may occur in many test flows, for example, in the financial field, card binding steps may occur in test flows of a credit granting service, a loan service, a purchase applying service, and the like, and each test flow needs to write a code of the card binding step into a corresponding test script.
However, when there is an update in the repeated steps (such as the step of binding the card), all the test flows depending on the step need to be updated correspondingly, the maintenance cost is high, and the possibility of omission is high.
Disclosure of Invention
In view of the above problems, the present application provides a testing method and related apparatus for reducing maintenance cost and reducing the possibility of missing update.
Based on this, the embodiment of the application discloses the following technical scheme:
in one aspect, an embodiment of the present application provides a testing method, where the method includes:
acquiring a target link corresponding to a target test service, wherein the target link comprises a plurality of nodes, the type of the node comprises a step and a sublink, and the sublink is determined according to a minimum unit of a plurality of same steps included in a plurality of test services;
determining the target link as a current test link, and determining the ith node in the current test link as a target node;
identifying a type of the target node;
if the type of the target node is the step, executing the action included by the target node, re-determining the (i + 1) th node as the target node, and executing the step of identifying the type of the target node and the subsequent steps until all the nodes in the target link are identified;
if the type of the target node is the sublink, the target node is determined as the current test link again, the jth node in the current test link is taken as the target node, and the type of the target node and the subsequent steps are executed until the nodes in the target link are all identified.
Optionally, the obtaining of the target link corresponding to the target test service includes:
acquiring nodes required by a target test service and a sequence relation between the nodes;
and generating a target link according to the nodes and the sequence relation.
Optionally, the executing the action included in the target node includes:
determining a parameter transmission rule between the target node and other nodes;
and executing the action included by the target node according to the parameter delivery rule.
Optionally, the target node and the other nodes are nodes having strong correlation, and the parameter transfer rule is to determine the entry of the target node according to the entry or the exit of the other nodes.
Optionally, the target node and the other nodes belong to nodes in a target sublink, and the parameter transfer rule is to determine the access of the target node and the other nodes according to the access of the target sublink.
Optionally, the method further includes:
the access participation of the target sublink is actively transmitted to the target node and the other nodes; alternatively, the first and second electrodes may be,
and the target node and the other nodes actively acquire the access parameters of the target sublink.
Optionally, the method further includes:
and updating the parameter transmission rule, wherein the updated parameter transmission rule is to determine the access of the target node according to the access or the exit of the other nodes.
Optionally, the method further includes:
and determining the exit participation of the target sublink according to the parameters of the target node and the parameters of the other nodes, wherein the parameters comprise exit participation and entry participation.
Optionally, the parameter transmission rule is to determine the entry of the target node and the entry of the other node according to a preset global variable.
In another aspect, an embodiment of the present application provides a testing apparatus, where the apparatus includes: the device comprises an acquisition unit, a determination unit, an identification unit, a first execution unit and a second execution unit;
the acquiring unit is configured to acquire a target link corresponding to a target test service, where the target link includes multiple nodes, the type of the node includes a step and a sublink, and the sublink is determined according to a minimum unit of multiple identical steps included in multiple test services;
the determining unit is configured to determine the target link as a current test link, and determine an ith node in the current test link as a target node;
the identification unit is used for identifying the type of the target node;
the first execution unit is configured to execute, if the type of the target node is a step, an action included in the target node, determine an (i + 1) th node as the target node again, and execute the step of identifying the type of the target node and the subsequent steps until all nodes in the target link are identified;
the second identification unit is configured to, if the type of the target node is the sublink, determine the target node as the current test link again, use a jth node in the current test link as a target node, and execute the identification of the type of the target node and subsequent steps until all nodes in the target link are identified.
In another aspect, the present application provides a computer device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of the above aspect according to instructions in the program code.
In another aspect the present application provides a computer readable storage medium for storing a computer program for performing the method of the above aspect.
Compared with the prior art, the technical scheme of the application has the advantages that:
instead of generating a test script for each test service, a sublink is generated according to the minimum unit of multiple steps required by multiple test services, and a target link required by a target test service is generated based on the sublink and/or the steps. Determining a target link as a current test link, determining an ith node in the current test link as a target node, identifying the type of the target node, if the type of the target node is a step, executing actions included by the target node, completing the test of the step, re-determining the (i + 1) th node as the target node, and continuing to execute the steps of identifying the type of the target node and the subsequent steps until all nodes in the target link are executed; if the type of the target node is the sublink, the target node is determined as the current test link again, and the ith node in the current test link is taken as the target node and the subsequent steps are executed. Therefore, the target link constructed by combining the steps and the sub-links can be tested in a traversal mode, multiplexing of the same step in a plurality of test flows is achieved, when a certain step needs to be updated, the links constructed based on the step can be updated correspondingly, maintenance cost is reduced, and the possibility of update omission is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a testing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of four test services provided in the embodiment of the present application;
fig. 3 is a schematic diagram of codes of a trusted link according to an embodiment of the present application;
fig. 4 is a schematic diagram of a parameter transmission rule according to an embodiment of the present application;
FIG. 5 is a diagram illustrating a parameter delivery rule according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a parameter passing rule according to an embodiment of the present application;
FIG. 7 is a diagram illustrating a parameter passing rule according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a parameter delivery rule set according to an embodiment of the present application;
FIG. 9 is a diagram illustrating a parameter delivery rule according to an embodiment of the present application;
FIG. 10 is a diagram illustrating a parameter passing rule according to an embodiment of the present application;
FIG. 11 is a diagram illustrating a parameter delivery rule according to an embodiment of the present application;
FIG. 12 is a diagram illustrating a parameter passing rule according to an embodiment of the present application;
FIG. 13 is a diagram illustrating a parameter delivery rule set according to an embodiment of the present application;
FIG. 14 is a schematic diagram of a testing apparatus according to an embodiment of the present disclosure;
fig. 15 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
In order to facilitate understanding of the embodiments of the present application, some terms referred to in the present application will be explained below.
The method comprises the following steps: the test flow is an action with complete semantics, which can be a single action or a package of a plurality of atomic actions, for example, a product purchase test service comprises a product introduction action, a quota setting action and a switch setting action, but the product purchase can be provided as a complete step, and the semantic scope of the package of the specific step is determined by a developer according to the self service semantics.
And link: refers to a chain of steps that can complete a complete path. Each type of test service can customize the service test service action granularity and the step linked list granularity according to the needs. Each link may consist of a sub-chain and a step.
A test method provided in the embodiment of the present application is described below with reference to fig. 1. Referring to fig. 1, which is a flowchart of a testing method provided in the present application, the method may include the following steps 101-105.
S101: and acquiring a target link corresponding to the target test service.
The link includes a plurality of nodes, each node type may be a step or a sub-link, and the target link is a link corresponding to the target test service. Wherein the sub-link is determined according to a minimum unit of a plurality of identical steps included in the plurality of test services.
As shown in fig. 2, the figure is a schematic diagram of four test services provided in the embodiment of the present application. The four test services are respectively a real-name test service, a subscription test service, a credit granting test service and a payment test service, and the minimum unit of a plurality of same steps of the four test services is a step of creating user data, a step of creating an account and a step of binding a card, so that the step of creating user data, the step of creating an account and the step of binding a card can be determined as a real-name link. The real name link can also be used as a sub-link, and can be combined with a purchase applying step to form a purchase applying link and a credit granting step to form a credit granting link.
It can be seen from the above that, the step of binding cards is used by a plurality of links, but actually the step is only written once, and not all the test services requiring the step generate corresponding test scripts, so that high multiplexing is achieved, and the steps, the steps and the sub-links, and the sub-links are quickly combined into the links required by the test services by means of building blocks, so as to obtain the target links corresponding to the target test services. When some steps in the link are updated, the link generated according to the steps is also updated correspondingly, so that the maintenance cost is low, and the possibility of update omission is reduced.
As a possible implementation manner, a user may perform a service test through the test platform provided in the embodiment of the present application, and when the user builds a target link corresponding to a target test service, the user may determine nodes and a sequential relationship between the nodes required by the target test service according to the requirement of the target test service, and after the test platform obtains the sequential relationship between the nodes, the user may generate the target link according to the nodes and the sequential relationship.
The user generates a trust link for the trust test service through the test platform. At this time, the target test service is a credit granting test service, and the target link is a credit granting link. When a user builds a credit granting link, the credit granting link can be formed based on the combination of the real-name sublink and the credit granting step, and it can be understood that if the real-name sublink does not exist at this time, the credit granting link can be generated based on the user data creating step, the account creating step, the card binding step and the credit granting step.
As a possible implementation manner, the link includes a link identifier, a link self parameter, and a dependent node, and the step includes a step identifier and a step parameter. Fig. 3 is a schematic diagram of codes of a trusted link according to an embodiment of the present application. Wherein, "nodeName" represents a node identifier, such as a node name. It is understood that if a node is a link, it represents a link identifier, and if a node is a step, it identifies a step identifier. "nodeChildren" denotes a dependent node of the link, and it is understood that the step is performed by "nodeChildren": array [0] indicates that no dependent nodes are required in this step. "nodeParamInfo" indicates the step parameter and "project id" indicates the link own parameter.
As a possible implementation manner, a node type, which is denoted by "nodeType", may also be included in the code of the target link.
S102: and determining the target link as a current test link, and determining the ith node in the current test link as a target node.
As a possible implementation manner, after the target link is obtained, the actions included in the target link are performed according to the sequence from top to bottom in the target link, that is, according to the steps and/or the sub-link sequence included in the target link, until all the nodes in the target link are traversed. At this time, i may start to take a value from 1 until i equals to the number of nodes included in the target link.
S103: the type of the target node is identified.
The target node includes two types, step or sublink, if the type of the target node is identified as step, S104 is executed, and if the type of the target node is identified as sublink, S105 is executed.
S104: if the type of the target node is step, executing the action included by the target node, re-determining the (i + 1) th node as the target node, and executing S103 until all the nodes in the target link are identified.
If the type of the target node is the step, executing the action included in the step, completing the test of the step, then re-determining the next node of the target node, namely the (i + 1) th node, as the target node, and identifying the type of the (i + 1) th node, namely executing S103 until all the nodes in the target link are identified.
S105: if the type of the target node is the sublink, the target node is determined as the current test link again, the jth node in the current test link is taken as the target node, and S103 is executed until the nodes in the target link are all identified.
If the type of the target node is the sublink, the target node is determined as the current test link again, the jth node in the current test link is taken as the target node, S103 is executed, j can be taken from 1 until j is equal to the number of nodes included in the current test link, namely, the nodes in the sublink are traversed, and after the sequential execution, the nodes in the target link are traversed until all the nodes in the target link are executed.
According to the technical scheme, a test script is not generated for each test service, but the sublink is generated according to the minimum unit of a plurality of steps required by a plurality of test services, and the target link required by the target test service is generated based on the sublink and/or the steps. Determining a target link as a current test link, determining an ith node in the current test link as a target node, identifying the type of the target node, if the type of the target node is a step, executing actions included by the target node, completing the test of the step, re-determining the (i + 1) th node as the target node, and continuing to execute the steps of identifying the type of the target node and the subsequent steps until all nodes in the target link are executed; if the type of the target node is the sublink, the target node is determined as the current test link again, and the ith node in the current test link is taken as the target node and the subsequent steps are executed. Therefore, the target link constructed by combining the steps and the sub-links can be tested in a traversal mode, multiplexing of the same step in a plurality of test flows is achieved, when a certain step needs to be updated, the links constructed based on the step can be updated correspondingly, maintenance cost is reduced, and the possibility of update omission is reduced.
As a possible implementation manner, a parameter delivery rule between the target node and other nodes may be determined, and the action included in the target node is executed according to the parameter delivery rule, so as to implement the execution of the action included in the target node.
The embodiment of the present application does not specifically limit the specific content of the parameter delivery rule, and several ways are described as examples below.
The first method comprises the following steps: when the target node has a strong correlation with other nodes, if the target node needs to follow other nodes for execution, the parameter transmission rule determines the entry of the target node according to the entry or exit of other nodes. Fig. 4 is a schematic diagram of a parameter transmission rule according to an embodiment of the present application. The target node is a step b, the other nodes are a steps, and the step b is executed after the step a, and the step b and the step a have a strong correlation relationship, and at this time, the input (input) of the step b can be the input (input) of the step a or the output (output) of the step a. Referring to fig. 5, the figure is a schematic diagram of a setting parameter delivery rule provided in an embodiment of the present application. For example, the entry for the bankCode step (target node) is determined from "output. card" (out of the reference) of the "local @ thanos @ datacreate @ getransdunerinfo" step (other nodes).
And the second method comprises the following steps: when the target node and other nodes belong to one of the target links, namely, the node in the target sub-link, the parameter transmission rule determines the access parameters of the target node and other nodes according to the access parameters of the target sub-link, namely, the access parameters of the target sub-link can be transmitted to the node in the target sub-link.
The embodiment of the present application does not specifically limit the way in which the node in the target sublink acquires the parameter. For example, the entry parameter of the target sublink is actively transferred to the target node and other nodes, as shown in fig. 6, which is a schematic diagram of a parameter transfer rule provided in the embodiment of the present application. The target sublink is a link A, the step a is other nodes, the step b is a target node, and the step a and the step b are both nodes in the link A. For another example, the target node and other nodes actively acquire the entry of the target sublink when needed, as shown in fig. 7.
As a possible implementation manner, the test platform actively transmits the access parameters of the target sublink to the target node and other nodes to be set as defaults, so that the target node and other nodes do not need to actively initiate acquisition operation, and the target sublink sends the access parameters according to the acquisition operation, thereby reducing the interaction between the target node, other nodes and the target sublink and relieving the pressure of a server where the test platform is located. For example, as shown in fig. 8, after the user configures the target sublink self parameter "project id" on the test platform, the test platform may actively transfer the entry of the target sublink to the target node and other nodes instead of the user.
Further, if the access parameters of the target node and other nodes need to be transmitted through the target sublink sometimes and do not need to be transmitted through the target sublink sometimes, the access parameters of the target node and/or other nodes may be set as the access parameters of the target sublink, so that the target node and other nodes can acquire the access parameters of the target sublink when needed. As shown in fig. 9, the parameter (#1.productId) of a certain step (Loan @ thanos @ datacreate @ flexDayCut) in the target sublink is obtained from the parameter (productIdJXJZZD) of the link.
Therefore, the access participation of the target sublink is transferred to the node in the target sublink by default, and if the node does not need the parameter, the node which is transferred by default of the target sublink and received before can be covered by acquiring the specified parameter of the target sublink.
And the third is that: the parameters of the nodes in the target sublink can also be determined according to the parameters of other nodes in the target sublink. And determining the entry of the target node according to the entry of other nodes or the exit of other nodes according to the parameter transmission rule. Fig. 10 is a schematic diagram of a parameter transmission rule according to an embodiment of the present application. The link A is a target sublink, the step a/C link is other nodes, and the step b or the D link is a target node. For example, as shown in fig. 11, the in-parameter (#1.product id) of the target node (Loan @ thanos @ datacreate @ bindPassPhone) in the target sublink is obtained from the out-parameter (#0.output. phone) of the other node (Loan @ thanos @ auth @ userauth) in the target sublink.
And fourthly: the parameters of the target node in the target sublink can be transmitted to the target sublink, and similarly, the parameters of other nodes in the target sublink can be transmitted to the target sublink, and the target sublink determines the parameters according to the received parameters, wherein the parameters include the parameter of exit and the parameter of entry. Fig. 12 is a schematic diagram of a parameter transmission rule according to an embodiment of the present application. The link A is a target sublink, the step a is other nodes, and the link B is a target node. For example, as shown in fig. 13, the out-reference of the target sublink (prcId) is obtained from the out-reference of the target sublink step (Loan @ thanos @ datacreate @ newuseratuth) (#4.output.
And a fifth mode: and determining the entry of the target node and the entry of other nodes according to a preset global variable. Fig. 13 is a schematic diagram of a parameter transmission rule according to an embodiment of the present application. The global variable is M, the step a is other nodes, and the step b is a target node.
Thus, by constructing parameter delivery rules, including but not limited to step-by-step parameter delivery, intra-link parameter delivery, link-to-link parameter delivery, global parameter delivery, and the like. And executing the action included by the target node according to the parameter delivery rule, thereby realizing the execution of the action included by the target node.
In addition to the test method provided in the embodiments of the present application, a test apparatus is also provided, as shown in fig. 14, including: an acquisition unit 1401, a determination unit 1402, a recognition unit 1403, a first execution unit 1404, and a second execution unit 1405;
the obtaining unit 1401 is configured to obtain a target link corresponding to a target test service, where the target link includes multiple nodes, the type of the node includes a step and a sublink, and the sublink is determined according to a minimum unit of multiple identical steps included in multiple test services;
the determining unit 1402, configured to determine the target link as a current test link, and determine an ith node in the current test link as a target node;
the identifying unit 1403 is configured to identify a type of the target node;
the first executing unit 1404, if the type of the target node is step, is configured to execute the action included in the target node, re-determine the (i + 1) th node as the target node, and execute the step of identifying the type of the target node and subsequent steps until all nodes in the target link are identified;
the second identifying unit 1405 is configured to, if the type of the target node is the sublink, determine the target node as the current test link again, use a jth node in the current test link as a target node, and execute the identifying of the type of the target node and subsequent steps until all nodes in the target link are identified.
As a possible implementation manner, the obtaining unit 1401 is configured to:
acquiring nodes required by a target test service and a sequence relation between the nodes;
and generating a target link according to the nodes and the sequence relation.
As a possible implementation manner, the first executing unit 1404 is configured to:
determining a parameter transmission rule between the target node and other nodes;
and executing the action included by the target node according to the parameter delivery rule.
As a possible implementation manner, the target node and the other nodes are nodes having strong correlation, and the parameter transfer rule is to determine the entry of the target node according to the entry or the exit of the other nodes.
As a possible implementation manner, the target node and the other nodes belong to nodes in a target sublink, and the parameter passing rule is to determine the access of the target node and the other nodes according to the access of the target sublink.
As a possible implementation manner, the apparatus further includes a transferring unit, configured to:
the access participation of the target sublink is actively transmitted to the target node and the other nodes; alternatively, the first and second electrodes may be,
and the target node and the other nodes actively acquire the access parameters of the target sublink.
As a possible implementation manner, the apparatus further includes an updating unit, configured to:
and updating the parameter transmission rule, wherein the updated parameter transmission rule is to determine the access of the target node according to the access or the exit of the other nodes.
As a possible implementation manner, the determining unit is configured to:
and determining the exit participation of the target sublink according to the parameters of the target node and the parameters of the other nodes, wherein the parameters comprise exit participation and entry participation.
As a possible implementation manner, the parameter transmission rule is to determine the entry of the target node and the entry of the other node according to a preset global variable.
According to the technical scheme, a test script is not generated for each test service, but the sublink is generated according to the minimum unit of a plurality of steps required by a plurality of test services, and the target link required by the target test service is generated based on the sublink and/or the steps. Determining a target link as a current test link, determining an ith node in the current test link as a target node, identifying the type of the target node, if the type of the target node is a step, executing actions included by the target node, completing the test of the step, re-determining the (i + 1) th node as the target node, and continuing to execute the steps of identifying the type of the target node and the subsequent steps until all nodes in the target link are executed; if the type of the target node is the sublink, the target node is determined as the current test link again, and the ith node in the current test link is taken as the target node and the subsequent steps are executed. Therefore, the target link constructed by combining the steps and the sub-links can be tested in a traversal mode, multiplexing of the same step in a plurality of test flows is achieved, when a certain step needs to be updated, the links constructed based on the step can be updated correspondingly, maintenance cost is reduced, and the possibility of update omission is reduced.
The embodiment of the present application further provides a computer device, referring to fig. 15, which shows a structural diagram of a computer device provided in the embodiment of the present application, and as shown in fig. 15, the device includes a processor 1510 and a memory 1520:
the memory 1510 is used to store program codes and transmit the program codes to the processor;
the processor 1520 is configured to execute any one of the testing methods provided by the above embodiments according to the instructions in the program code.
The embodiment of the application provides a computer-readable storage medium, which is used for storing a computer program, and the computer program is used for executing any one of the testing methods provided by the above embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the units and modules described as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.

Claims (12)

1. A method of testing, the method comprising:
acquiring a target link corresponding to a target test service, wherein the target link comprises a plurality of nodes, the type of the node comprises a step and a sublink, and the sublink is determined according to a minimum unit of a plurality of same steps included in a plurality of test services;
determining the target link as a current test link, and determining the ith node in the current test link as a target node;
identifying a type of the target node;
if the type of the target node is the step, executing the action included by the target node, re-determining the (i + 1) th node as the target node, and executing the step of identifying the type of the target node and the subsequent steps until all the nodes in the target link are identified;
if the type of the target node is the sublink, the target node is determined as the current test link again, the jth node in the current test link is taken as the target node, and the type of the target node and the subsequent steps are executed until the nodes in the target link are all identified.
2. The method of claim 1, wherein the obtaining the target link corresponding to the target test service comprises:
acquiring nodes required by a target test service and a sequence relation between the nodes;
and generating a target link according to the nodes and the sequence relation.
3. The method of claim 1, wherein the performing the action that the target node comprises:
determining a parameter transmission rule between the target node and other nodes;
and executing the action included by the target node according to the parameter delivery rule.
4. The method according to claim 3, wherein the target node and the other nodes are nodes with strong correlation, and the parameter passing rule is to determine the entry of the target node according to the entry or the exit of the other nodes.
5. The method as claimed in claim 3, wherein the target node and the other nodes belong to the same node in a target sublink, and the parameter passing rule is to determine the entry of the target node and the other nodes according to the entry of the target sublink.
6. The method of claim 5, further comprising:
the access participation of the target sublink is actively transmitted to the target node and the other nodes; alternatively, the first and second electrodes may be,
and the target node and the other nodes actively acquire the access parameters of the target sublink.
7. The method of claim 5, further comprising:
and updating the parameter transmission rule, wherein the updated parameter transmission rule is to determine the access of the target node according to the access or the exit of the other nodes.
8. The method of claim 5, further comprising:
and determining the exit participation of the target sublink according to the parameters of the target node and the parameters of the other nodes, wherein the parameters comprise exit participation and entry participation.
9. The method according to claim 3, wherein the parameter passing rule is to determine the entry of the target node and the entry of the other nodes according to a preset global variable.
10. A test apparatus, the apparatus comprising: the device comprises an acquisition unit, a determination unit, an identification unit, a first execution unit and a second execution unit;
the acquiring unit is configured to acquire a target link corresponding to a target test service, where the target link includes multiple nodes, the type of the node includes a step and a sublink, and the sublink is determined according to a minimum unit of multiple identical steps included in multiple test services;
the determining unit is configured to determine the target link as a current test link, and determine an ith node in the current test link as a target node;
the identification unit is used for identifying the type of the target node;
the first execution unit is configured to execute, if the type of the target node is a step, an action included in the target node, determine an (i + 1) th node as the target node again, and execute the step of identifying the type of the target node and the subsequent steps until all nodes in the target link are identified;
the second identification unit is configured to, if the type of the target node is the sublink, determine the target node as the current test link again, use a jth node in the current test link as a target node, and execute the identification of the type of the target node and subsequent steps until all nodes in the target link are identified.
11. A computer device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of any of claims 1-9 according to instructions in the program code.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for performing the method of any of claims 1-9.
CN202111152568.1A 2021-09-29 2021-09-29 Test method and related device Pending CN113900933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111152568.1A CN113900933A (en) 2021-09-29 2021-09-29 Test method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111152568.1A CN113900933A (en) 2021-09-29 2021-09-29 Test method and related device

Publications (1)

Publication Number Publication Date
CN113900933A true CN113900933A (en) 2022-01-07

Family

ID=79189305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111152568.1A Pending CN113900933A (en) 2021-09-29 2021-09-29 Test method and related device

Country Status (1)

Country Link
CN (1) CN113900933A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102879A (en) * 2022-07-21 2022-09-23 身边云(北京)信息服务有限公司 Test method of shared service platform, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102879A (en) * 2022-07-21 2022-09-23 身边云(北京)信息服务有限公司 Test method of shared service platform, electronic equipment and storage medium
CN115102879B (en) * 2022-07-21 2023-11-21 身边云(北京)信息服务有限公司 Test method of shared service platform, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110417558A (en) Verification method and device, the storage medium and electronic device of signature
CN109951547B (en) Transaction request parallel processing method, device, equipment and medium
CN108200203A (en) Block catenary system based on double-layer network
CN108282539A (en) Decentralization storage system based on double-layer network
CN112036577B (en) Method and device for applying machine learning based on data form and electronic equipment
Mei et al. An adaptive service selection approach to service composition
CN110474820B (en) Flow playback method and device and electronic equipment
CN110533419B (en) Block chain-based sharing method, device and server of wind control model
CN111782524B (en) Application testing method and device, storage medium and electronic device
CN105204917B (en) The method and device of loading configuration file in application program launching
CN108347483A (en) Decentralization computing system based on double-layer network
CN107920094A (en) Data capture method, device, server and the network equipment
CN109063049A (en) A kind of account processing method, device, equipment and the storage medium of block chain network
CN107527222A (en) Information processing method and apparatus and system
CN107807935B (en) Using recommended method and device
CN112035350B (en) Test method and device for block chain system and computer equipment
CN112767133A (en) Service decision method and device, storage medium and computer equipment
CN113407327A (en) Modeling task and data analysis method, device, electronic equipment and system
Sadiq et al. More on elicitation of software requirements and prioritization using AHP
CN113900933A (en) Test method and related device
CN115358401A (en) Inference service processing method and device, computer equipment and storage medium
CN110020371A (en) A kind of method and device based on the linkage of react-native page layout
CN111797152B (en) Data scene generation method and device and computer equipment
CN110111188A (en) Business handling method and apparatus
Campanelli et al. Efficient rational proofs for space bounded computations

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