CN114968787B - Method and device for testing based on node relation and electronic equipment - Google Patents
Method and device for testing based on node relation and electronic equipment Download PDFInfo
- Publication number
- CN114968787B CN114968787B CN202210590346.6A CN202210590346A CN114968787B CN 114968787 B CN114968787 B CN 114968787B CN 202210590346 A CN202210590346 A CN 202210590346A CN 114968787 B CN114968787 B CN 114968787B
- Authority
- CN
- China
- Prior art keywords
- node
- target
- test case
- execution mode
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test 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)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域Technical field
本申请属于计算机技术领域,具体涉及一种基于节点关系的测试方法、装置及电子设备。This application belongs to the field of computer technology, and specifically relates to a testing method, device and electronic equipment based on node relationships.
背景技术Background technique
目前,借助于软件测试工具对应用程序进行自动化测试获得了越来越广泛的应用。在应用程序的自动化测试中,通常是测试人员给测试用例进行标识,通过运行指定的标识或者文件找到对应的测试用例或测试用例集,并执行对应的测试用例或测试用例集,实现对测试脚本中测试用例的指定执行。At present, automated testing of applications with the help of software testing tools has become more and more widely used. In automated testing of applications, testers usually identify test cases, find the corresponding test cases or test case sets by running the specified identification or file, and execute the corresponding test cases or test case sets to implement the test script. Specified execution of test cases.
在相关技术中,当测试用例数目达到一定量级,且测试用例间存在前置、后置等关系时,使用常规的使用文件、测试用例集合或者测试用例标识,存在无法高效地规划和管理测试用例、测试效率低等问题。In related technologies, when the number of test cases reaches a certain level and there are pre-, post- and other relationships between test cases, it is impossible to efficiently plan and manage tests using conventional usage files, test case collections or test case identifiers. Problems such as low efficiency of use cases and testing.
发明内容Contents of the invention
本申请实施例提供一种基于节点关系的测试方法、装置、电子设备及可读存储介质,能够基于节点关系管理测试用例,自动确定需要执行测试的测试用例节点,提高自动化测试效率。Embodiments of the present application provide a test method, device, electronic device and readable storage medium based on node relationships, which can manage test cases based on node relationships, automatically determine the test case nodes that need to be tested, and improve the efficiency of automated testing.
第一方面,本申请实施例提供了一种基于节点关系的测试方法,该方法包括:确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;根据所述目标测试用例节点队列进行测试。In the first aspect, embodiments of the present application provide a testing method based on node relationships. The method includes: determining node relationships between test case nodes, where the node relationships include pre-relationships and post-relationships; according to the node relationship, perform structured processing on each test case node, and obtain the target node information of each test case node. The target node information includes the pre-use case node, the current use case node and the post-use case node; based on the target The node information and the target step traverse algorithm determine the target test case node queue; conduct testing according to the target test case node queue.
第二方面,本申请实施例提供了一种基于节点关系的测试装置,包括:第一确定模块,用于确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;结构化模块,用于根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;第二确定模块,用于基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;测试模块,用于根据所述目标测试用例节点队列进行测试。In the second aspect, embodiments of the present application provide a testing device based on node relationships, including: a first determination module for determining node relationships between test case nodes, where the node relationships include pre-relationships and post-relationships. ; A structured module, used to perform structured processing on each test case node according to the node relationship, and obtain the target node information of each test case node, where the target node information includes a pre-use case node, a current use case nodes and post-use case nodes; the second determination module is used to determine the target test case node queue based on the target node information and the target step traversal algorithm; the test module is used to perform testing according to the target test case node queue.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor. The program or instructions are When executed by the processor, the steps of the method described in the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.
在本申请实施例中,通过确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;根据所述目标测试用例节点队列进行测试。由此,能够基于节点关系管理测试用例,自动确定需要执行测试的测试用例节点,提高自动化测试效率。In the embodiment of this application, by determining the node relationships between test case nodes, the node relationships include pre-relationships and post-relationships; according to the node relationships, each test case node is structured and processed to obtain the Describe the target node information of each test case node, the target node information includes the pre-use case node, the current use case node and the post-use case node; based on the target node information and the target step traversal algorithm, determine the target test case node queue; Test according to the target test case node queue. As a result, test cases can be managed based on node relationships, test case nodes that need to be tested can be automatically determined, and automated testing efficiency can be improved.
附图说明Description of drawings
图1是本申请的一个实施例提供的一种基于节点关系的测试方法的流程示意图;Figure 1 is a schematic flow chart of a testing method based on node relationships provided by an embodiment of the present application;
图2是本申请的一个实施例提供的一种测试用例节点的测试流程的示意图;Figure 2 is a schematic diagram of a test process of a test case node provided by an embodiment of the present application;
图3是本申请的另一个实施例提供的一种基于节点关系的测试方法的流程示意图;Figure 3 is a schematic flow chart of a testing method based on node relationships provided by another embodiment of the present application;
图4是本申请的一个实施例的基于节点关系的测试装置的结构示意图;Figure 4 is a schematic structural diagram of a testing device based on node relationships according to an embodiment of the present application;
图5是本申请的一个实施例的电子设备的结构示意图。Figure 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的基于节点关系的测试方法进行详细地说明。The testing method based on node relationships provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
图1示出本申请的一个实施例提供的一种基于节点关系的测试方法100的示意性流程图,该方法可以由电子设备执行,该电子设备可以包括:服务器和/或终端设备。换言之,该方法可以由安装在电子设备的软件或硬件来执行,该方法包括如下步骤:Figure 1 shows a schematic flow chart of a node relationship-based testing method 100 provided by an embodiment of the present application. The method can be executed by an electronic device, and the electronic device can include: a server and/or a terminal device. In other words, the method can be executed by software or hardware installed on the electronic device, and the method includes the following steps:
110:确定测试用例节点之间的节点关系。其中,所述节点关系包括前置关系和后置关系。110: Determine the node relationships between test case nodes. Wherein, the node relationships include pre-relationships and post-relationships.
可以理解的,在步骤110之前,方法还包括:根据测试流程的步骤,将测试用例分解到流程图中。It can be understood that before step 110, the method also includes: decomposing the test cases into the flow chart according to the steps of the test process.
其中,每个测试用例对应流程图中的一个测试用例节点。Among them, each test case corresponds to a test case node in the flow chart.
在测试流程存在变更时,将根据变更后的测试流程的步骤,将测试用例重新分解到流程图中。When there are changes to the test process, the test cases will be re-decomposed into the flow chart according to the steps of the changed test process.
120:根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息。其中,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点。120: Perform structured processing on each test case node according to the node relationship, and obtain the target node information of each test case node. Wherein, the target node information includes front use case nodes, current use case nodes and post use case nodes.
可以理解的,当前用例节点执行前需要执行的测试用例节点为当前用例节点的前置用例节点,当前用例节点执行后再进行执行的测试用例节点为当前用例节点的后置用例节点。若当前用例节点不存在前置用例节点,那么当前用例节点为起点用例节点,若当前用例节点不存在后置用例节点,那么当前用例节点为结果用例节点。在目标节点信息中,起点用例节点的前置用例节点,以及结果用例节点的后置用例节点均可以使用特定的标识用例节点进行标识。It can be understood that the test case nodes that need to be executed before the current use case node is executed are the previous use case nodes of the current use case node, and the test case nodes that need to be executed after the current use case node is executed are the post-use case nodes of the current use case node. If there is no previous use case node in the current use case node, then the current use case node is the starting use case node. If there is no post use case node in the current use case node, then the current use case node is the result use case node. In the target node information, the preceding use case nodes of the starting use case node and the subsequent use case nodes of the result use case node can be identified using specific identification use case nodes.
根据测试用例节点之间的前置关系和后置关系,对每个测试用例节点进行结构化处理,确定出每个测试用例节点的前置用例节点和后置用例节点,得到每个测试用例节点的目标节点信息。According to the pre-relationship and post-relationship between test case nodes, perform structural processing on each test case node, determine the pre-case node and post-case node of each test case node, and obtain each test case node. target node information.
一个测试用例节点的目标节点信息可以用于指示该测试用例节点、该测试用例节点的前置用例节点,以及该测试用例节点的后置用例节点。The target node information of a test case node can be used to indicate the test case node, the preceding case node of the test case node, and the succeeding case node of the test case node.
图2是一个测试用例节点的测试流程的示意图。可以看到,当前用例节点具有一个前置用例节点和三个后置用例节点。若要执行当前用例节点,需要先执行前置用例节点,在当前用例节点执行完成后有三个后置用例节点可以选择执行,每次只能执行一个后置用例节点。Figure 2 is a schematic diagram of the testing process of a test case node. As you can see, the current use case node has one pre-use case node and three post-use case nodes. To execute the current use case node, you need to execute the pre-use case node first. After the execution of the current use case node is completed, there are three post-use case nodes that you can choose to execute. Only one post-use case node can be executed at a time.
在一种实现方式中,所述目标节点信息为嵌套列表格式数据,以图2中的测试用例节点举例,当前用例节点的目标节点信息如下:In one implementation, the target node information is nested list format data. Taking the test case node in Figure 2 as an example, the target node information of the current use case node is as follows:
[前置用例节点,当前用例节点,[后置用例节点1,后置用例节点2,后置用例节点3]]。[Pre-use case node, current use case node, [post-use case node 1, post-use case node 2, post-use case node 3]].
在一种实现方式中,在得到每个测试用例节点的目标节点信息之后,根据所述测试用例节点的目标节点信息,生成目标节点信息库testcaseNodeDict。所述目标节点信息库testcaseNodeDict包括所有测试用例节点的目标节点信息。In an implementation manner, after obtaining the target node information of each test case node, a target node information library testcaseNodeDict is generated according to the target node information of the test case node. The target node information library testcaseNodeDict includes target node information of all test case nodes.
在所述目标节点信息库testcaseNodeDict中,键名为测试用例节点的名称testcaseNode,其中,每个测试用例节点的名称都是唯一的,使用测试用例节点的名称可以在目标节点信息库中搜索出唯一对应的测试用例节点。在所述目标节点信息库testcaseNodeDict中,与键名对应的键值为该测试用例节点的目标节点信息。所述目标节点信息库testcaseNodeDict可以举例为:{“testcaseNode1”:[前置用例节点1,当前用例节点1,[后置用例节点11,后置用例节点12,后置用例节点13]];“testcaseNode2”:[前置用例节点2,当前用例节点2,[后置用例节点21,后置用例节点22,后置用例节点23]];.....;“testcaseNodeN”:[前置用例节点N,当前用例节点N,[后置用例节点N1,后置用例节点N2,后置用例节点N3]]}。In the target node information library testcaseNodeDict, the key name is the name of the test case node testcaseNode, where the name of each test case node is unique. The name of the test case node can be used to search for the unique name in the target node information library. The corresponding test case node. In the target node information library testcaseNodeDict, the key value corresponding to the key name is the target node information of the test case node. The target node information base testcaseNodeDict can be, for example: {"testcaseNode1": [pre-use case node 1, current use case node 1, [post-use case node 11, post-use case node 12, post-use case node 13]]; " testcaseNode2": [pre-use case node 2, current use case node 2, [post-use case node 21, post-use case node 22, post-use case node 23]]; ....; "testcaseNodeN": [pre-use case Node N, current use case node N, [post use case node N1, post use case node N2, post use case node N3]]}.
在一种实现方式中,所述每个测试用例节点的目标节点信息包括的前置用例节点的个数为一个。In one implementation manner, the target node information of each test case node includes one pre-test case node.
也就是说,测试用例的分解和对测试用例节点进行的结构化处理,需要满足每个测试用例节点只存在一个前置用例节点的规则。In other words, the decomposition of test cases and the structured processing of test case nodes need to meet the rule that each test case node has only one pre-case node.
130:基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列。130: Based on the target node information and the target step traversal algorithm, determine the target test case node queue.
所述目标测试用例节点队列用于指示需要执行测试的测试用例节点以及测试用例节点的测试顺序。The target test case node queue is used to indicate the test case nodes that need to be tested and the test order of the test case nodes.
其中,确定出的目标测试用例节点队列可以仅有一条,也可以包括多条。Among them, the determined target test case node queue may have only one, or may include multiple.
其中,一条测试用例节点队列可以举例为:{“testcaseNodeA”-“testcaseNodeB”-“testcaseNodeC”-......-“testcaseNodeN”}。其中,测试用例节点的测试顺序是“testcaseNodeA”依次到“testcaseNodeN”。Among them, a test case node queue can be as follows: {"testcaseNodeA"-"testcaseNodeB"-"testcaseNodeC"-...-"testcaseNodeN"}. Among them, the test order of test case nodes is from "testcaseNodeA" to "testcaseNodeN".
140:根据所述目标测试用例节点队列进行测试。140: Test according to the target test case node queue.
根据目标测试用例节点队列中的需要执行测试的测试用例节点和测试用例节点的测试顺序进行测试。Test according to the test case nodes in the target test case node queue that need to be tested and the test order of the test case nodes.
由此,能够基于节点关系管理测试用例,自动确定需要执行测试的测试用例节点,并按照测试顺序对需要执行测试的测试用例节点进行测试,提高自动化测试效率。As a result, test cases can be managed based on node relationships, the test case nodes that need to be tested can be automatically determined, and the test case nodes that need to be tested can be tested according to the test order, thereby improving the efficiency of automated testing.
在一种实现方式中,在步骤120根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息之后,方法还包括:根据每个测试用例节点的目标节点信息,生成每个测试用例节点的测试用例脚本代码。In one implementation, in step 120, each test case node is structured according to the node relationship, and after obtaining the target node information of each test case node, the method further includes: according to each test case The target node information of the node generates the test case script code for each test case node.
对每个测试用例节点的目标节点信息进行转换,将每个测试用例节点的目标节点信息转换为测试用例脚本代码。应理解的,在得到测试用例节点的测试用例脚本代码之后,只需将测试用例节点的流程操作代码填入,就可完成测试用例节点的代码编辑。由此,只需要补充步骤具体实现代码,就可直接执行,从而减少代码的维护成本。Convert the target node information of each test case node into test case script code. It should be understood that after obtaining the test case script code of the test case node, you only need to fill in the process operation code of the test case node to complete the code editing of the test case node. As a result, you only need to add steps to implement the code and it can be executed directly, thereby reducing code maintenance costs.
若测试用例节点的目标节点信息有变更,则根据变更后的目标节点信息,重新生成新的测试用例脚本代码。If the target node information of the test case node is changed, a new test case script code is regenerated based on the changed target node information.
步骤140就可以调用目标测试用例节点队列中的测试用例节点的测试用例脚本代码进行测试。In step 140, the test case script code of the test case node in the target test case node queue can be called for testing.
本申请实施例提供的一种基于节点关系的测试方法,通过确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;根据所述目标测试用例节点队列进行测试。由此,能够基于节点关系管理测试用例,自动确定需要执行测试的测试用例节点,并按照测试顺序对需要执行测试的测试用例节点进行测试,提高自动化测试效率。The embodiment of the present application provides a testing method based on node relationships, by determining the node relationships between test case nodes, the node relationships include pre-relationships and post-relationships; according to the node relationships, each test case is The nodes undergo structured processing to obtain the target node information of each test case node. The target node information includes the pre-use case node, the current use case node and the post-use case node; based on the target node information and target step traversal algorithm , determine the target test case node queue; perform testing according to the target test case node queue. As a result, test cases can be managed based on node relationships, the test case nodes that need to be tested can be automatically determined, and the test case nodes that need to be tested can be tested according to the test order, thereby improving the efficiency of automated testing.
图3示出本申请的一个实施例提供的一种基于节点关系的测试方法200的示意性流程图,该方法可以由电子设备执行,该电子设备可以包括:服务器和/或终端设备。换言之,该方法可以由安装在电子设备的软件或硬件来执行,该方法包括如下步骤:Figure 3 shows a schematic flowchart of a node relationship-based testing method 200 provided by an embodiment of the present application. The method can be executed by an electronic device, and the electronic device can include: a server and/or a terminal device. In other words, the method can be executed by software or hardware installed on the electronic device, and the method includes the following steps:
210:确定测试用例节点之间的节点关系。其中,所述节点关系包括前置关系和后置关系。210: Determine node relationships between test case nodes. Wherein, the node relationships include pre-relationships and post-relationships.
220:根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息。其中,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点。220: Perform structured processing on each test case node according to the node relationship, and obtain the target node information of each test case node. Wherein, the target node information includes front use case nodes, current use case nodes and post use case nodes.
步骤210-220可以采用图1实施例步骤110-120的描述,在此不再赘述。Steps 210-220 may adopt the description of steps 110-120 in the embodiment of Figure 1, and will not be described again here.
231:确定目标执行模式。231: Determine the target execution mode.
在本申请实施例中,区分多种不同的执行模式,不同的执行模式对应不同的步骤遍历算法。因此,在基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列之前,先确定目标执行模式。目标执行模式为指定用例执行模式、全量用例执行模式和指定节点关联用例执行模式中的一者。In the embodiment of the present application, multiple different execution modes are distinguished, and different execution modes correspond to different step traversal algorithms. Therefore, before determining the target test case node queue based on the target node information and the target step traversal algorithm, the target execution mode is first determined. The target execution mode is one of the specified use case execution mode, the full use case execution mode, and the specified node associated use case execution mode.
其中,指定用例执行模式用于针对指定测试用例节点进行测试,全量用例执行模式用于针对所有测试用例节点进行测试,指定节点关联用例执行模式用于针对指定测试用例节点的关联测试用例节点进行测试。Among them, the specified test case execution mode is used to test the specified test case node, the full use case execution mode is used to test all test case nodes, and the specified node associated use case execution mode is used to test the associated test case nodes of the specified test case node. .
232:根据所述目标执行模式,确定所述目标步骤遍历算法。232: Determine the target step traversal algorithm according to the target execution mode.
233:基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列。233: Determine the target test case node queue based on the target node information and the target step traversal algorithm.
在目标执行模式为指定用例执行模式的情况下,基于目标节点信息,对指定的第一测试用例节点采用往前查询步骤遍历算法,得到目标测试用例节点队列。When the target execution mode is the specified use case execution mode, based on the target node information, a forward query step traversal algorithm is used for the specified first test case node to obtain the target test case node queue.
其中,指定用例执行模式针对指定的第一测试用例节点进行测试,对指定的第一测试用例节点采用往前查询步骤遍历算法,也就是从第一测试用例节点开始,往前查询前置用例节点,直至起点用例节点,由此得到一条目标测试用例节点队列,测试顺序为从起点用例节点至第一测试用例节点。Among them, the specified use case execution mode is tested against the specified first test case node, and the forward query step traversal algorithm is used for the specified first test case node, that is, starting from the first test case node, querying the preceding use case nodes forward , until the starting point use case node, thus obtaining a target test case node queue, and the test sequence is from the starting point use case node to the first test case node.
举个例子:指定用例执行模式指定针对第一测试用例节点testcaseNodeOne进行测试,首先定义一个双向队列testcaseNodeOneStep,将testcaseNodeOne放进队列中;再从目标节点信息库testcaseNodeDict中取出testcaseNodeOne的前置测试用例testcaseNodeOneBack1=testcaseNodeDict[“testcaseNodeOne”][0],并将testcaseNodeOneBack1的值从左边加入双向队列testcaseNodeOneStep中,此时双向队列的值为[testcaseNodeOneBack1,testcaseNodeOne];继续取出testcaseNodeOneBack1的前置用例testcaseNodeOneBack2=testcaseNodeDict[“testcaseNodeOneBack1”][0],并将testcaseNodeOneBack2的值从左边加入双向队列testcaseNodeOneStep中,此时双向队列的值为[testcaseNodeOneBack2,testcaseNodeOneBack1,testcaseNodeOne];依此方法循环取值,直到testcaseNodeDict[“testcaseNodeOneBack1N”][0]=0停止循环,其中,testcaseNodeDict[“testcaseNodeOneBack1N”][0]=0表示“testcaseNodeOneBack1N”为起点用例节点,此时testcaseNodeOneStep的值为[testcaseNodeOneBack1N,......,testcaseNodeOneBack2,testcaseNodeOneBack1,testcaseNodeOne]。根据队列testcaseNodeOneStep的值可以确定testcaseNodeOne的执行步骤是从testcaseNodeOneBack1N开始,依照顺序执行到testcaseNodeOne结束。针对第一测试用例节点testcaseNodeOne进行测试,就是按照testcaseNodeOneStep队列的顺序依次执行每个测试用例节点。For example: specify the test case execution mode to test the first test case node testcaseNodeOne. First define a two-way queue testcaseNodeOneStep and put testcaseNodeOne into the queue; then take out testcaseNodeOne's pre-test case testcaseNodeOneBack1= from the target node information library testcaseNodeDict. testcaseNodeDict["testcaseNodeOne"][0], and add the value of testcaseNodeOneBack1 to the bidirectional queue testcaseNodeOneStep from the left. At this time, the value of the bidirectional queue is [testcaseNodeOneBack1, testcaseNodeOne]; continue to take out the pre-used case of testcaseNodeOneBack1 testcaseNodeOneBack2 = testcaseNodeDict["testcaseNodeOneBack1" ][0], and add the value of testcaseNodeOneBack2 to the bidirectional queue testcaseNodeOneStep from the left. At this time, the value of the bidirectional queue is [testcaseNodeOneBack2, testcaseNodeOneBack1, testcaseNodeOne]; loop the value in this way until testcaseNodeDict["testcaseNodeOneBack1N"][0] =0 stops the loop, where testcaseNodeDict["testcaseNodeOneBack1N"][0]=0 means "testcaseNodeOneBack1N" is the starting use case node. At this time, the value of testcaseNodeOneStep is [testcaseNodeOneBack1N,..., testcaseNodeOneBack2, testcaseNodeOneBack1, testcaseNodeOne]. According to the value of the queue testcaseNodeOneStep, it can be determined that the execution steps of testcaseNodeOne start from testcaseNodeOneBack1N and are executed in sequence to testcaseNodeOne. To test the first test case node testcaseNodeOne is to execute each test case node sequentially in the order of the testcaseNodeOneStep queue.
在目标执行模式为全量用例执行模式的情况下,基于目标节点信息,对所有结果用例节点采用往前查询步骤遍历算法,得到目标测试用例节点队列。When the target execution mode is the full use case execution mode, based on the target node information, the forward query step traversal algorithm is used for all result use case nodes to obtain the target test case node queue.
其中,全量用例执行模式针对所有测试用例节点进行测试,对所有结果用例节点一一采用往前查询步骤遍历算法,确定出每个结果用例节点的测试用例节点队列,再依次执行每个结果用例节点,由此完成全量测试。Among them, the full use case execution mode tests all test case nodes, uses the forward query step traversal algorithm for all result use case nodes one by one, determines the test case node queue of each result use case node, and then executes each result use case node in sequence , thus completing the full test.
在目标执行模式为指定节点关联用例执行模式的情况下,基于目标节点信息,对指定的第二测试用例节点采用往前查询步骤遍历算法和往后回溯步骤遍历算法,得到目标测试用例节点队列。When the target execution mode is the use case execution mode associated with the specified node, based on the target node information, the forward query step traversal algorithm and the backward backtracking step traversal algorithm are used for the specified second test case node to obtain the target test case node queue.
其中,指定节点关联用例执行模式针对指定的第二测试用例节点的关联测试用例节点进行测试,对指定的第二测试用例节点采用往前查询步骤遍历算法和往后回溯步骤遍历算法,得到目标测试用例节点队列。Among them, the specified node associated test case execution mode tests the associated test case node of the specified second test case node, and uses the forward query step traversal algorithm and the backward backtracking step traversal algorithm to obtain the target test Use case node queue.
举个例子:指定节点关联用例执行模式指定针对第二测试用例节点testcaseNodeOne的关联测试用例节点进行测试,首先对第二测试用例节点testcaseNodeOne进行往前查询步骤遍历算法,得到testcaseNodeOne的测试步骤路径testcaseNodeOneStep;再使用往后回溯步骤遍历算法完成从第二测试用例节点testcaseNodeOne到结果用例节点的步骤计算,具体为:首先,从目标节点信息库testcaseNodeDict中取出testcaseNodeOne的后置用例列表testcaseNodeOneAfter=testcaseNodeDict[“testcaseNodeOne”][2],计算testcaseNodeOneAfter列表中的节点数Num=len(testcaseNodeOneAfter),则表示testcaseNodeOne后置步骤有Num种路径;接着,testcaseNodeOneAfter[0]、testcaseNodeOneAfter[1]、...、testcaseNodeOneAfter[Num]分别有其后置路径,采用后置路径回溯算法,从第二测试用例节点testcaseNodeOne往后寻找后置用例节点,从testcaseNodeOne出发,后置用例节点全部选择第一后置用例节点,直到到达结果用例节点testcaseNodeDict[“testcaseNodeOneAfter1”][2]=0,记录执行路径testcaseNodeOneAfterStep1和关联结果用例节点testcaseNodeOneEnd1,再回溯遍历,将全部路径存入到N个步骤列表:testcaseNodeOneAfterStep1,testcaseNodeOneAfterStep2,......,testcaseNodeOneAfterStepN中。最后,这N个关联结果用例节点的执行步骤分别为:testcaseNodeOneStep+testcaseNodeOneAfterStep1,testcaseNodeOneStep+testcaseNodeOneAfterStep2,......,testcaseNodeOneStep+testcaseNodeOneAfterStepN。For example: Specify the node associated test case execution mode to specify the test case node associated with the second test case node testcaseNodeOne. First, perform the forward query step traversal algorithm on the second test case node testcaseNodeOne to obtain the test step path testcaseNodeOneStep of testcaseNodeOne; Then use the backtracking step traversal algorithm to complete the step calculation from the second test case node testcaseNodeOne to the result use case node. The details are as follows: first, retrieve the post-case list of testcaseNodeOne from the target node information library testcaseNodeDict testcaseNodeOneAfter=testcaseNodeDict["testcaseNodeOne" ][2], calculate the number of nodes in the testcaseNodeOneAfter list Num = len (testcaseNodeOneAfter), which means that the testcaseNodeOne post-step has Num paths; then, testcaseNodeOneAfter[0], testcaseNodeOneAfter[1], ..., testcaseNodeOneAfter[Num] Each has its own post-path. The post-path backtracking algorithm is used to search for the post-use case node from the second test case node testcaseNodeOne. Starting from testcaseNodeOne, all post-use case nodes select the first post-use case node until the result use case is reached. Node testcaseNodeDict["testcaseNodeOneAfter1"][2]=0, record the execution path testcaseNodeOneAfterStep1 and the associated result use case node testcaseNodeOneEnd1, then traverse back and store all paths into a list of N steps: testcaseNodeOneAfterStep1, testcaseNodeOneAfterStep2,..., testcaseNodeOneAfterStepN. Finally, the execution steps of these N associated result use case nodes are: testcaseNodeOneStep+testcaseNodeOneAfterStep1, testcaseNodeOneStep+testcaseNodeOneAfterStep2,..., testcaseNodeOneStep+testcaseNodeOneAfterStepN.
在一种实现方式中,在第三测试用例节点的功能变更的情况下,确定所述目标执行模式为指定节点关联用例执行模式。指定节点关联用例执行模式用于针对指定的第二测试用例节点的关联测试用例节点进行测试。In an implementation manner, when the function of the third test case node is changed, the target execution mode is determined to be the specified node associated use case execution mode. The specified node associated test case execution mode is used to test the associated test case node of the specified second test case node.
由此,可针对性的进行回归测试,仅对发生变更的指定测试用例节点的关联测试用例节点进行测试,不执行不关联的测试用例节点,从而减少测试执行时间,进一步提高测试效率。As a result, regression testing can be performed in a targeted manner, and only test case nodes associated with the specified test case node that have changed will be tested, and unrelated test case nodes will not be executed, thereby reducing test execution time and further improving test efficiency.
240:根据所述目标测试用例节点队列进行测试。240: Test according to the target test case node queue.
步骤240可以采用图1实施例步骤140的描述,在此不再赘述。Step 240 may adopt the description of step 140 in the embodiment of Figure 1 and will not be described again.
本申请实施例提供的一种基于节点关系的测试方法,通过确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;根据所述目标测试用例节点队列进行测试。由此,能够基于节点关系管理测试用例,自动确定需要执行测试的测试用例节点,并按照测试顺序对需要执行测试的测试用例节点进行测试,提高自动化测试效率。The embodiment of the present application provides a testing method based on node relationships, by determining the node relationships between test case nodes, the node relationships include pre-relationships and post-relationships; according to the node relationships, each test case is The nodes undergo structured processing to obtain the target node information of each test case node. The target node information includes the pre-use case node, the current use case node and the post-use case node; based on the target node information and target step traversal algorithm , determine the target test case node queue; perform testing according to the target test case node queue. As a result, test cases can be managed based on node relationships, the test case nodes that need to be tested can be automatically determined, and the test case nodes that need to be tested can be tested according to the test order, thereby improving the efficiency of automated testing.
本申请实施例提供的一种基于节点关系的测试方法,通过确定目标执行模式;根据所述目标执行模式,确定所述目标步骤遍历算法;其中,所述目标执行模式为指定用例执行模式、全量用例执行模式和指定节点关联用例执行模式中的一者,由此,能够根据不同的执行模式,采用不同的步骤遍历算法确定目标测试用例节点队列,提高测试效率。A testing method based on node relationships provided by embodiments of the present application determines the target execution mode; determines the target step traversal algorithm according to the target execution mode; wherein the target execution mode is a designated use case execution mode, a full The use case execution mode is associated with one of the use case execution modes of the specified node. Therefore, different step traversal algorithms can be used to determine the target test case node queue according to different execution modes, thereby improving testing efficiency.
图4是根据本申请实施例的基于节点关系的测试装置的结构示意图。如图4所示,基于节点关系的测试装置300包括:第一确定模块310、结构化模块320、第二确定模块330、测试模块340。第一确定模块310,用于确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;结构化模块320,用于根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;第二确定模块330,用于基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;测试模块340,用于根据所述目标测试用例节点队列进行测试。Figure 4 is a schematic structural diagram of a testing device based on node relationships according to an embodiment of the present application. As shown in FIG. 4 , the node relationship-based testing device 300 includes: a first determination module 310 , a structuring module 320 , a second determination module 330 , and a test module 340 . The first determination module 310 is used to determine the node relationship between the test case nodes, the node relationship includes the pre-relationship and the post-relationship; the structuring module 320 is used to determine each test case node according to the node relationship. Perform structured processing to obtain the target node information of each test case node. The target node information includes a pre-use case node, a current use case node and a post-use case node; the second determination module 330 is used to determine based on the target The node information and target step traversal algorithm determine the target test case node queue; the test module 340 is used to perform testing according to the target test case node queue.
在一种实现方式中,所述装置还包括脚本生成模块,用于根据所述每个测试用例节点的目标节点信息,生成所述每个测试用例节点的测试用例脚本代码。所述测试模块用于调用所述目标测试用例节点队列中的测试用例节点的测试用例脚本代码进行测试。In an implementation manner, the device further includes a script generation module, configured to generate the test case script code of each test case node according to the target node information of each test case node. The test module is used to call the test case script code of the test case node in the target test case node queue for testing.
在一种实现方式中,所述装置还包括第三确定模块,用于确定目标执行模式;根据所述目标执行模式,确定所述目标步骤遍历算法;其中,所述目标执行模式为指定用例执行模式、全量用例执行模式和指定节点关联用例执行模式中的一者。In one implementation, the device further includes a third determination module for determining a target execution mode; determining the target step traversal algorithm according to the target execution mode; wherein the target execution mode is specified use case execution mode, full use case execution mode, and specified node associated use case execution mode.
在一种实现方式中,所述第二确定模块,用于在所述目标执行模式为所述指定用例执行模式的情况下,基于所述目标节点信息,对指定的第一测试用例节点采用往前查询步骤遍历算法,得到目标测试用例节点队列;在所述目标执行模式为所述全量用例执行模式的情况下,基于所述目标节点信息,对所有结果用例节点采用往前查询步骤遍历算法,得到目标测试用例节点队列;在所述目标执行模式为所述指定节点关联用例执行模式的情况下,基于所述目标节点信息,对指定的第二测试用例节点采用往前查询步骤遍历算法和往后回溯步骤遍历算法,得到目标测试用例节点队列。In one implementation, the second determination module is configured to use the previous method for the designated first test case node based on the target node information when the target execution mode is the specified use case execution mode. The forward query step traversal algorithm is used to obtain the target test case node queue; when the target execution mode is the full use case execution mode, based on the target node information, the forward query step traversal algorithm is used for all result use case nodes, Obtain the target test case node queue; when the target execution mode is the use case execution mode associated with the specified node, based on the target node information, use the forward query step traversal algorithm and the forward query step for the specified second test case node. After the backtracking step, the algorithm is traversed to obtain the target test case node queue.
在一种实现方式中,所述第三确定模块,用于在第三测试用例节点的功能变更的情况下,确定所述目标执行模式为所述指定节点关联用例执行模式。In an implementation manner, the third determination module is configured to determine that the target execution mode is the specified node associated use case execution mode when the function of the third test case node is changed.
在一种实现方式中,所述装置还包括分解模块,用于根据测试流程的步骤,将测试用例分解到流程图中;其中,每个测试用例对应流程图中的一个测试用例节点。In an implementation manner, the device further includes a decomposition module for decomposing the test cases into the flow chart according to the steps of the test process; wherein each test case corresponds to a test case node in the flow chart.
本申请实施例中的基于节点关系的测试装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The test device based on node relationships in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., and the non-mobile electronic device can be a server, Network Attached Storage (NAS), personal computer (PC), television (television, TV), teller machine or self-service machine, etc., this application The examples are not specifically limited.
本申请实施例中的基于节点关系的测试装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The node relationship-based testing device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的基于节点关系的测试装置能够实现上述任一实施例提供的基于节点关系的测试方法中的各个过程,为避免重复,这里不再赘述。The node relationship-based testing device provided by the embodiments of the present application can implement each process in the node relationship-based testing method provided by any of the above embodiments. To avoid duplication, the details will not be described here.
图5为实现本申请实施例的一种电子设备的硬件结构示意图,该电子设备可以为终端设备或服务器设备,该电子设备包括:天线401、射频装置402、基带装置403、网络接口404、存储器405和处理器406,存储在存储器405上并可在所述处理器406上运行的程序或指令,该程序或指令被处理器406执行时实现:Figure 5 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application. The electronic device can be a terminal device or a server device. The electronic device includes: an antenna 401, a radio frequency device 402, a baseband device 403, a network interface 404, and a memory. 405 and processor 406, a program or instructions stored on memory 405 and executable on said processor 406, which when executed by processor 406 implement:
其中,处理器406用于确定测试用例节点之间的节点关系,所述节点关系包括前置关系和后置关系;根据所述节点关系,对每个测试用例节点进行结构化处理,得到所述每个测试用例节点的目标节点信息,所述目标节点信息包括前置用例节点、当前用例节点和后置用例节点;基于所述目标节点信息和目标步骤遍历算法,确定目标测试用例节点队列;根据所述目标测试用例节点队列进行测试。Among them, the processor 406 is used to determine the node relationship between test case nodes, the node relationship includes a pre-relationship and a post-relationship; according to the node relationship, perform structured processing on each test case node to obtain the The target node information of each test case node, the target node information includes the pre-use case node, the current use case node and the post-use case node; based on the target node information and the target step traversal algorithm, determine the target test case node queue; according to The target test case node queue is tested.
在一种实现方式中,处理器406用于根据所述每个测试用例节点的目标节点信息,生成所述每个测试用例节点的测试用例脚本代码。调用所述目标测试用例节点队列中的测试用例节点的测试用例脚本代码进行测试。In one implementation, the processor 406 is configured to generate the test case script code of each test case node according to the target node information of each test case node. Call the test case script code of the test case node in the target test case node queue to perform testing.
在一种实现方式中,处理器406用于确定目标执行模式;根据所述目标执行模式,确定所述目标步骤遍历算法;其中,所述目标执行模式为指定用例执行模式、全量用例执行模式和指定节点关联用例执行模式中的一者。In one implementation, the processor 406 is used to determine a target execution mode; determine the target step traversal algorithm according to the target execution mode; wherein the target execution mode is a specified use case execution mode, a full use case execution mode, and Specifies one of the node-associated use case execution modes.
在一种实现方式中,处理器406用于在所述目标执行模式为所述指定用例执行模式的情况下,基于所述目标节点信息,对指定的第一测试用例节点采用往前查询步骤遍历算法,得到目标测试用例节点队列;在所述目标执行模式为所述全量用例执行模式的情况下,基于所述目标节点信息,对所有结果用例节点采用往前查询步骤遍历算法,得到目标测试用例节点队列;在所述目标执行模式为所述指定节点关联用例执行模式的情况下,基于所述目标节点信息,对指定的第二测试用例节点采用往前查询步骤遍历算法和往后回溯步骤遍历算法,得到目标测试用例节点队列。In one implementation, the processor 406 is configured to use a forward query step to traverse the specified first test case node based on the target node information when the target execution mode is the specified use case execution mode. algorithm to obtain the target test case node queue; when the target execution mode is the full use case execution mode, based on the target node information, use the forward query step traversal algorithm for all result use case nodes to obtain the target test case Node queue; when the target execution mode is the specified node-associated use case execution mode, based on the target node information, the forward query step traversal algorithm and the backward traceback step traversal are used for the specified second test case node. Algorithm to obtain the target test case node queue.
在一种实现方式中,处理器406用于在第三测试用例节点的功能变更的情况下,确定所述目标执行模式为所述指定节点关联用例执行模式。In one implementation, the processor 406 is configured to determine that the target execution mode is the specified node-associated use case execution mode when the function of the third test case node is changed.
在一种实现方式中,处理器406用于根据测试流程的步骤,将测试用例分解到流程图中;其中,每个测试用例对应流程图中的一个测试用例节点。In one implementation, the processor 406 is configured to decompose the test cases into a flow chart according to the steps of the test process; where each test case corresponds to a test case node in the flow chart.
根据本申请实施例的电子设备400可以参照对应本申请实施例的方法100-200的流程,并且,该电子设备400中的各个单元/模块和上述其他操作和/或功能分别为了实现方法100-200中的相应流程,并且能够达到相同或等同的技术效果,为了简洁,在此不再赘述。The electronic device 400 according to the embodiment of the present application can refer to the process corresponding to the methods 100-200 of the embodiment of the present application, and each unit/module in the electronic device 400 and the above-mentioned other operations and/or functions are respectively intended to implement the methods 100-200. 200, and can achieve the same or equivalent technical effects. For the sake of simplicity, they will not be repeated here.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述基于节点关系的测试方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium, the readable storage medium stores a program or instructions, and when the program or instructions are executed by a processor, each process of the above-mentioned node relationship-based testing method embodiment is implemented, and can achieve the same technical effect, so to avoid repetition, we will not repeat them here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述100-200方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above 100-200 method embodiments. Each process can achieve the same technical effect. To avoid repetition, we will not go into details here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210590346.6A CN114968787B (en) | 2022-05-27 | 2022-05-27 | Method and device for testing based on node relation and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210590346.6A CN114968787B (en) | 2022-05-27 | 2022-05-27 | Method and device for testing based on node relation and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114968787A CN114968787A (en) | 2022-08-30 |
| CN114968787B true CN114968787B (en) | 2023-09-19 |
Family
ID=82957594
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210590346.6A Active CN114968787B (en) | 2022-05-27 | 2022-05-27 | Method and device for testing based on node relation and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114968787B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116303010A (en) * | 2023-03-10 | 2023-06-23 | 曙光网络科技有限公司 | Test method, device, equipment and medium based on business process test model |
| CN116708547A (en) * | 2023-06-07 | 2023-09-05 | 重庆银行股份有限公司 | Test case pushing method and device, electronic equipment and storage medium |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8117591B1 (en) * | 2005-01-07 | 2012-02-14 | Interactive TKO, Inc. | Graphical model for test case viewing, editing, and reporting |
| CN105824746A (en) * | 2015-01-05 | 2016-08-03 | 中国移动(深圳)有限公司 | Method and device for automatically generating test scheduling based on use case dependencies |
| CN109117363A (en) * | 2018-06-28 | 2019-01-01 | 腾讯科技(深圳)有限公司 | A kind of method for generating test case, device and server |
| CN110908896A (en) * | 2019-10-29 | 2020-03-24 | 天津幸福生命科技有限公司 | Test method and device based on decision tree |
| CN112286779A (en) * | 2019-07-23 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Test task processing method, device, storage medium and computer equipment |
| CN112433944A (en) * | 2020-11-25 | 2021-03-02 | 平安普惠企业管理有限公司 | Service testing method, device, computer equipment and storage medium |
| CN112597014A (en) * | 2020-12-16 | 2021-04-02 | 软通动力信息技术(集团)股份有限公司 | Automatic testing method, device, medium and electronic equipment based on data driving |
| CN112905457A (en) * | 2021-02-08 | 2021-06-04 | 珠海金山网络游戏科技有限公司 | Software testing method and device |
| CN112948234A (en) * | 2020-08-26 | 2021-06-11 | 深圳市明源云链互联网科技有限公司 | Interface test method and device and electronic equipment |
| CN113312265A (en) * | 2021-06-08 | 2021-08-27 | 富途网络科技(深圳)有限公司 | Application method of test case and related product |
| CN114020604A (en) * | 2021-10-22 | 2022-02-08 | 济南浪潮数据技术有限公司 | Workflow-based automatic testing method and device |
| CN114077534A (en) * | 2020-08-11 | 2022-02-22 | 腾讯科技(深圳)有限公司 | Test case generation method and device and computer readable storage medium |
| CN114116496A (en) * | 2021-11-30 | 2022-03-01 | 中国平安人寿保险股份有限公司 | Automated testing methods, devices, equipment and media |
| CN114265774A (en) * | 2021-12-20 | 2022-04-01 | 北京字节跳动网络技术有限公司 | Node information configuration method and device of test case |
| CN114490404A (en) * | 2022-02-10 | 2022-05-13 | 中国农业银行股份有限公司 | A test case determination method, device, electronic device and storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7685576B2 (en) * | 2004-01-26 | 2010-03-23 | Siemens Corporation | System and method for model based system testing of interactive applications |
| US8903938B2 (en) * | 2007-06-18 | 2014-12-02 | Amazon Technologies, Inc. | Providing enhanced data retrieval from remote locations |
| US10437883B2 (en) * | 2015-11-24 | 2019-10-08 | Cisco Technology, Inc. | Efficient graph database traversal |
| US10169215B2 (en) * | 2016-09-26 | 2019-01-01 | Cognizant Technology Solutions India Pvt. Ltd. | Method and system for analyzing test cases for automatically generating optimized business models |
| US10423523B2 (en) * | 2018-02-02 | 2019-09-24 | Ca, Inc. | Automated selection of test cases for regression testing |
-
2022
- 2022-05-27 CN CN202210590346.6A patent/CN114968787B/en active Active
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8117591B1 (en) * | 2005-01-07 | 2012-02-14 | Interactive TKO, Inc. | Graphical model for test case viewing, editing, and reporting |
| CN105824746A (en) * | 2015-01-05 | 2016-08-03 | 中国移动(深圳)有限公司 | Method and device for automatically generating test scheduling based on use case dependencies |
| CN109117363A (en) * | 2018-06-28 | 2019-01-01 | 腾讯科技(深圳)有限公司 | A kind of method for generating test case, device and server |
| CN112286779A (en) * | 2019-07-23 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Test task processing method, device, storage medium and computer equipment |
| CN110908896A (en) * | 2019-10-29 | 2020-03-24 | 天津幸福生命科技有限公司 | Test method and device based on decision tree |
| CN114077534A (en) * | 2020-08-11 | 2022-02-22 | 腾讯科技(深圳)有限公司 | Test case generation method and device and computer readable storage medium |
| CN112948234A (en) * | 2020-08-26 | 2021-06-11 | 深圳市明源云链互联网科技有限公司 | Interface test method and device and electronic equipment |
| CN112433944A (en) * | 2020-11-25 | 2021-03-02 | 平安普惠企业管理有限公司 | Service testing method, device, computer equipment and storage medium |
| CN112597014A (en) * | 2020-12-16 | 2021-04-02 | 软通动力信息技术(集团)股份有限公司 | Automatic testing method, device, medium and electronic equipment based on data driving |
| CN112905457A (en) * | 2021-02-08 | 2021-06-04 | 珠海金山网络游戏科技有限公司 | Software testing method and device |
| CN113312265A (en) * | 2021-06-08 | 2021-08-27 | 富途网络科技(深圳)有限公司 | Application method of test case and related product |
| CN114020604A (en) * | 2021-10-22 | 2022-02-08 | 济南浪潮数据技术有限公司 | Workflow-based automatic testing method and device |
| CN114116496A (en) * | 2021-11-30 | 2022-03-01 | 中国平安人寿保险股份有限公司 | Automated testing methods, devices, equipment and media |
| CN114265774A (en) * | 2021-12-20 | 2022-04-01 | 北京字节跳动网络技术有限公司 | Node information configuration method and device of test case |
| CN114490404A (en) * | 2022-02-10 | 2022-05-13 | 中国农业银行股份有限公司 | A test case determination method, device, electronic device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114968787A (en) | 2022-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108089893B (en) | Method and device for determining redundant resources, terminal equipment and storage medium | |
| CN114968787B (en) | Method and device for testing based on node relation and electronic equipment | |
| CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
| CN114328632A (en) | User data analysis method and device based on bitmap and computer equipment | |
| CN111259212B (en) | Telemetering data interpretation method, device, equipment and storage medium | |
| CN106657192B (en) | Method and equipment for presenting service calling information | |
| CN112433988B (en) | Data verification method, device, computer equipment and storage medium | |
| CN104516921A (en) | Automatic reply method and device | |
| CN113190220A (en) | JSON file differentiation comparison method and device | |
| CN109101412B (en) | Test file generation method, test file generation device, test file testing method, test file testing device, storage medium and computer equipment | |
| CN111858339A (en) | Memory analysis method, device and system, computing device and computer-readable storage medium | |
| CN104580109A (en) | Method and device for generating click verification code | |
| CN109697234B (en) | Multi-attribute information query method, device, server and medium for entity | |
| CN111401020A (en) | Interface loading method and system and computing equipment | |
| CN117313092A (en) | Method, device, equipment and medium for detecting code stain | |
| US20230004485A1 (en) | Techniques for automatically generating software testing configuration data entities | |
| CN114528313A (en) | Data processing method and device and electronic equipment | |
| CN117130946B (en) | A test scenario generation method, device, electronic device and readable storage medium | |
| CN115525601A (en) | Data storage and query method, device, equipment and computer storage medium | |
| CN114691745A (en) | Detection method, device, electronic device and computer storage medium for confusing knowledge points | |
| CN117251384B (en) | Interface automation test case generation method and system | |
| CN112181539B (en) | File processing method, device, equipment and medium | |
| CN110362482A (en) | Page defect management method and terminal device | |
| CN115563138B (en) | Metadata information complement method and device based on data blood edges | |
| CN110018868B (en) | Object processing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |