System, method, equipment and medium for realizing test case arrangement based on zero code
Through the zero-code test case orchestration system, test cases are generated by dragging and dropping, which solves the problem of low efficiency of existing UI automation testing tools and realizes lightweight test case generation and efficient automated testing process.
Patent Information
- Application Number
- CN202510808539.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-10-17
AI Technical Summary
Existing UI automation testing tools are inefficient in generating test cases, require a lot of manual operations, and are unable to meet the testing requirements of complex software.
Provides a zero-code test case orchestration system, including test asset management components, page element management components and test case orchestration components. It generates test cases by dragging and dropping, lowers the technical threshold, and realizes full-process visual operation.
It significantly improves the efficiency of test case generation, allowing non-technical personnel to quickly get started. It supports large-scale automated testing, provides visual test reports and result analysis, and shortens the testing cycle.
Smart Images

Figure CN120803915A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of test case orchestration, and in particular, to a system, method, device, and medium for implementing test case orchestration based on zero code. Background Art
[0002] In the field of computer technology, UI (User Interface) automation testing tools face many challenges as software technology develops rapidly, especially as Web applications and mobile applications become increasingly complex and application technology continues to iterate.
[0003] In related technologies, requirement-based testing involves multiple manual operation processes, in which software testers need to define test completion criteria, design test cases based on requirements, build test cases, execute test cases, and verify whether software requirements are met.
[0004] However, using existing methods, the efficiency of test case generation is low. Summary of the Invention
[0005] The embodiments described herein provide a system, method, device, and medium for implementing test case orchestration based on zero code, which overcomes the above-mentioned problems.
[0006] In a first aspect, according to the present disclosure, a system for implementing test case orchestration based on zero code is provided, comprising: a test asset management component, a page element management component, and a test case orchestration component;
[0007] The test asset management component is configured to obtain data test permissions of a target test asset and determine a data test policy corresponding to the target test asset based on the data test permissions of the target test asset, wherein the data test permissions of the target test asset are used to describe a test level of the target test asset;
[0008] The page element management component is configured to determine available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and to construct a reusable element library associated with the target test asset based on the available page elements of the target test asset;
[0009] The test case arrangement component is configured to determine a plurality of test element items corresponding to the target test asset according to test requirement description information of the target test asset, and sequentially drag a plurality of the test element items from the reusable element library associated with the target test asset to an interface arrangement area in a drag-and-drop manner, so as to arrange test logic among the plurality of test element items, and generate a test case corresponding to the target test asset through the test logic among the plurality of test element items.
[0010] In a second aspect, a method for implementing test case arrangement based on zero code is provided according to the present disclosure, comprising:
[0011] obtaining a data test permission of a target test asset, and determining a data test strategy corresponding to the target test asset based on the data test permission of the target test asset, wherein the data test permission of the target test asset is used to describe a test level of the target test asset;
[0012] determining available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and constructing a reusable element library associated with the target test asset based on the available page elements of the target test asset;
[0013] determining a plurality of test element items corresponding to the target test asset according to test requirement description information of the target test asset, and sequentially dragging a plurality of the test element items from the reusable element library associated with the target test asset to an interface arrangement area in a drag-and-drop manner, so as to arrange test logic among the plurality of test element items, and generate a test case corresponding to the target test asset through the test logic among the plurality of test element items.
[0014] In a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements steps of the method for implementing test case arrangement based on zero code in any one of the above embodiments when executing the computer program.
[0015] In a fourth aspect, a computer readable storage medium is provided, wherein the computer readable storage medium stores a computer program, and the computer program implements steps of the method for implementing test case arrangement based on zero code in any one of the above embodiments when executed by a processor.
[0016] The system for implementing test case arrangement based on zero code provided by the embodiment of the application comprises a test asset management component, a page element management component and a test case arrangement component; the test asset management component is configured to acquire data test permission of a target test asset, and determine a data test strategy corresponding to the target test asset based on the data test permission of the target test asset, wherein the data test permission of the target test asset is used to describe a test level of the target test asset; the page element management component is configured to determine available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and construct a reusable element library associated with the target test asset based on the available page elements of the target test asset; and the test case arrangement component is configured to determine a plurality of test element items corresponding to the target test asset according to test requirement description information of the target test asset, and sequentially drag the plurality of test element items from the reusable element library associated with the target test asset to an interface arrangement area through a drag mode, so as to arrange test logic between the plurality of test element items, and generate a test case corresponding to the target test asset through the test logic between the plurality of test element items. In this way, the full-process visual operation of test case generation is provided for the user, the technical threshold is reduced in a "zero code" mode, the lightweight test case arrangement is realized, and the test case generation efficiency is effectively improved.
[0017] The above description is only a summary of the technical solutions of the embodiments of the application. In order to more clearly understand the technical means of the embodiments of the application, the embodiments of the application can be implemented according to the content of the description, and in order to make the above and other purposes, characteristics and advantages of the embodiments of the application more obvious and easy to understand, the specific implementation manner of the application is described below. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but not limit the present disclosure, wherein:
[0019] Figure 1 is a structural schematic diagram of a system for implementing test case arrangement based on zero code provided by the present disclosure.
[0020] Figure 2 is a flow schematic diagram of a method for implementing test case arrangement based on zero code provided by the present disclosure.
[0021] Figure 3 is a structural schematic diagram of a computer device provided by the present disclosure.
[0022] It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0023] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative effort belong to the protection scope of the present disclosure.
[0024] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this present subject matter belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the specification and relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein. As used herein, the statement that two or more parts are "connected" or "coupled" together refer to an indirect or direct connection or coupling.
[0025] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. A person of ordinary skill in the art will readily recognize from the disclosure herein, given the total volume of this application that one or more passages that are described as an embodiment is / are also an embodiment of another embodiment.
[0026] The term "and / or", merely describes an associated relationship between associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A, A and B, and B. In addition, the character " / " herein generally represents that the front and rear associated objects are a "or" relationship. Terms such as "first" and "second" are only used to distinguish one component (or part of a component) from another component (or another part of a component).
[0027] In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more (including two), and similarly, "a plurality of groups" means two or more groups (including two groups).
[0028] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings.
[0029] Figure 1 is a structural schematic diagram of a system for implementing test case arrangement based on zero code provided by the embodiments of the present disclosure, like Figure 1As shown, the system for implementing test case arrangement based on zero code specifically includes a test asset management component 110, a page element management component 120, and a test case arrangement component 130.
[0030] The test asset management component 110 is configured to obtain a data test permission of a target test asset, and determine a data test strategy corresponding to the target test asset based on the data test permission of the target test asset.
[0031] The data test permission of the target test asset is used to describe a test level of the target test asset.
[0032] The target test asset can be a data asset within an enterprise, such as an application software, a functional hardware, a photographed picture, business data, etc. The data test strategy corresponding to the target test asset can include a first test strategy and a second test strategy. The first test strategy can be used to describe an immediate test, and the second test strategy can be used to describe a non-immediate test, such as a test after one hour.
[0033] In some embodiments, the test asset management component 110 is specifically configured to:
[0034] The test asset management component 110 is configured to determine test subject information to which the target test asset belongs based on the data test permission of the target test asset, and determine a data coding sequence matched with the target test asset based on test marker data of the test subject information to which the target test asset belongs in a test platform. If the data coding sequence matched with the target test asset is associated with a preset coding sequence, the data test strategy corresponding to the target test asset is determined as the first test strategy. If the data coding sequence matched with the target test asset is not associated with the preset coding sequence, the data test strategy corresponding to the target test asset is determined as the second test strategy.
[0035] The test subject information to which the target test asset belongs can be used to represent a test user / test team corresponding to the target test asset. The test marker data of the test subject information to which the target test asset belongs in the test platform can be consumption data of the test user / test team in the test platform, such as a recharge amount or an amount of a virtual commodity purchased. If a value corresponding to the test marker data is greater than or equal to a preset threshold, the data coding sequence matched with the target test asset is determined as a priority sequence, such as "11", wherein the first "1" represents that the value corresponding to the test marker data is greater than or equal to the preset threshold, and the second "1" represents that the test subject information is a test user. If the value corresponding to the test marker data is less than the preset threshold, the data coding sequence matched with the target test asset is determined as a non-priority sequence, such as "21", wherein "2" represents that the value corresponding to the test marker data is less than or equal to the preset threshold, and "1" represents that the test subject information is a test user. If the second value is "2", it represents that the test subject information is a test team.
[0036] The preset encoding sequence is "1x", where "x" can be "1" or "2", "1" represents that the test subject information is a test user, and "2" represents that the test subject information is a test team. If the first value in the data encoding sequence matched with the target test asset is "1", it is determined that the data encoding sequence matched with the target test asset is associated with the preset encoding sequence, and it is determined that the data test strategy corresponding to the target test asset is the first test strategy. If the first value in the data encoding sequence matched with the target test asset is not "1", it is determined that the data encoding sequence matched with the target test asset is not associated with the preset encoding sequence, and it is determined that the data test strategy corresponding to the target test asset is the second test strategy.
[0037] Thus, by the test marking data of the test subject information to which the target test asset belongs in the test platform, the data encoding sequence matched with the target test asset is determined, so as to effectively determine the data test strategy corresponding to the target test asset according to the data encoding sequence matched with the target test asset being associated with the preset encoding sequence.
[0038] The page element management component 120 is configured to determine the available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and construct the reusable element library associated with the target test asset based on the available page elements of the target test asset.
[0039] The page elements (such as buttons and input boxes) are stored in the element management library through positioning expressions (such as CSS / XPath). The element management library stores multiple elements in groups, which are the first element group and the second element group. The first element group corresponds to the first test strategy, and the second element group corresponds to the second test strategy.
[0040] In addition, the available page elements constructed in the embodiment only need to update the element configuration when the front-end interface is revised, without the need to modify all associated test cases, which can effectively reduce the maintenance cost.
[0041] In some embodiments, the page element management component 120 is specifically configured to:
[0042] If the data test strategy corresponding to the target test asset is the first test strategy, the element association information corresponding to the first test strategy is obtained, the first element association item corresponding to the target test asset is determined from the element association information corresponding to the first test strategy, and the available page elements of the target test asset are determined based on the first element association item corresponding to the target test asset. If the data test strategy corresponding to the target test asset is the second test strategy, the element association information corresponding to the second test strategy is obtained, the second element association item corresponding to the target test asset is determined from the element association information corresponding to the second test strategy, and the available page elements of the target test asset are determined based on the second element association item corresponding to the target test asset.
[0043] Among them, the first element association item can be used to represent one or more types of specific elements, such as special / high-level buttons, special / high-level input boxes, and the second element association item can be used to represent one or more types of general elements, such as general buttons, general input boxes. That is, the first element association item can correspond to all buttons under the special / high-level button, and / or all input boxes under the special / high-level input box; the second element association item can correspond to all buttons under the general button, and / or all input boxes under the general input box.
[0044] Therefore, by matching the corresponding element association item to the target test asset corresponding to the different data test strategies, the available page elements of the target test asset can be quickly determined.
[0045] The test case arrangement component 130 is configured to determine a plurality of test element items corresponding to the target test asset according to the test requirement description information of the target test asset, and sequentially drag the plurality of test element items from the reusable element library associated with the target test asset to the interface arrangement area in a drag-and-drop manner to arrange the test logic between the plurality of test element items, and generate the test case corresponding to the target test asset through the test logic between the plurality of test element items.
[0046] Among them, the test requirement description information of the target test asset can be used to reflect the actual test requirements of the target test asset, such as testing software performance, testing data integrity, and verifying whether the data is qualified.
[0047] In some embodiments, the test case arrangement component 130 is specifically configured to:
[0048] The plurality of test element items corresponding to the target test asset are logically arranged, and the plurality of test element items are sequentially dragged from the reusable element library associated with the target test asset according to the logical arrangement order, and the test logic of the plurality of test element items is arranged based on the preset arrangement logic, to generate the test case corresponding to the target test asset.
[0049] Among them, the test steps can be designed by dragging the corresponding element component in the visual interface to arrange the test logic and configure the assertion rules (such as verifying text, element visibility), so that the test personnel can quickly arrange the test logic, cover complex business scenarios such as login and order, and improve the efficiency of case development.
[0050] The system for implementing test case arrangement based on zero code provided by the embodiment comprises a test asset management component, a page element management component and a test case arrangement component; the test asset management component is configured to acquire data test permission of a target test asset, and determine a data test strategy corresponding to the target test asset based on the data test permission of the target test asset, wherein the data test permission of the target test asset is used to describe a test level of the target test asset; the page element management component is configured to determine available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and construct a reusable element library associated with the target test asset based on the available page elements of the target test asset; and the test case arrangement component is configured to determine a plurality of test element items corresponding to the target test asset according to test requirement description information of the target test asset, and sequentially drag the plurality of test element items from the reusable element library associated with the target test asset to an interface arrangement area by a drag-and-drop manner, so as to arrange test logic between the plurality of test element items, and generate a test case corresponding to the target test asset through the test logic between the plurality of test element items. In this way, the full-process visual operation of test case generation is provided for the user, the technical threshold is reduced in a "zero code" mode, the lightweight test case arrangement is realized, and the test case generation efficiency is effectively improved.
[0051] In some embodiments, the system further comprises a test case scheduling component.
[0052] The test case scheduling component is configured to assemble the test case corresponding to the target test asset into a target test suite, configure a scheduling trigger strategy corresponding to the target test suite, and perform case testing on the target test asset through the scheduling trigger strategy corresponding to the target test suite.
[0053] The scheduling trigger strategy corresponding to the target test suite can comprise timing execution and page manual trigger. If the scheduling trigger strategy corresponding to the target test suite is timing execution, the execution of the test case is triggered when a preset time arrives. If the scheduling trigger strategy corresponding to the target test suite is page manual trigger, the execution of the test case is triggered when a user operation instruction is received.
[0054] Thus, by assembling the cases into the test suite and configuring the scheduling strategy, the execution progress and logs are monitored in real time, the automatic scheduling is adopted to replace manual triggering, large-scale cases are supported to be executed, and the test period is greatly shortened.
[0055] In some embodiments, the system further comprises a test report generation component.
[0056] The test report generation component is configured to generate a corresponding structured test report according to the case test result of the target test asset, generate a visual test chart according to the structured test report corresponding to the target test asset, and visually display the test situation distribution of the target test asset.
[0057] The visualization test chart can be used to show the pass rate of a certain test module in the test process, module failure distribution and the like. And the visualization test chart can be used to associate and display the test traces such as screenshots and screen recordings of the failed use cases, so as to effectively trace the test process in a visual manner.
[0058] In some embodiments, the method further comprises: obtaining a test result analysis component.
[0059] The test result analysis component is configured to: according to the test condition distribution of the target test asset, statistically analyze the unit test information of the target test asset in the order of test time sequence / test module sequence, and according to the unit test information of the target test asset, optimize the data test strategy of the target test asset.
[0060] The unit test information of the target test asset comprises: unit test pass rate, unit case execution time and test failure risk points.
[0061] The test result analysis component can statistically analyze the pass rate, case execution time and mark high-frequency failure risk points such as continuously failed function modules according to time / module, so as to evaluate the test efficiency of the team / user, such as coverage rate improvement trend. At the same time, the data-driven optimization test strategy can quantitatively evaluate the test quality and test efficiency, and provide key basis for continuous improvement.
[0062] In summary, the embodiment has the following advantages. In terms of operation convenience, the zero-code visual design is adopted, the drag-and-drop use case arrangement and graphical parameter configuration are supported, the test design can be completed without writing code, the use threshold is greatly reduced, non-technical personnel can also quickly start, and the test participation range is significantly expanded. In terms of function integration, the core functions such as project management, use case design, task scheduling and report analysis are integrated in a unified platform, the data discontinuity and efficiency loss caused by cross-tool switching are avoided, and the test process is seamlessly connected. In terms of interactive experience optimization, the user can view the operation log and execution progress in real time, manually terminate the task at any time, and control the test process. The test report module provides detailed execution results and records each operation step; for the failed steps, not only the quick positioning is supported, but also the failure screenshots and screen recording videos are automatically associated, which provides an intuitive and complete evidence chain for problem positioning, and greatly improves the problem troubleshooting efficiency.
[0063] Figure 2 A flowchart of a method for arranging test cases based on zero code is provided in the embodiment, and the specific process of the method for arranging test cases based on zero code comprises:
[0064] S210, obtaining the data test permission of the target test asset, and determining the data test strategy corresponding to the target test asset based on the data test permission of the target test asset.
[0065] The data test permission of the target test asset is used to describe a test level of the target test asset.
[0066] The target test asset can be a data asset in an enterprise, such as application software, functional hardware, a photographed picture, business data, etc. The data test strategy corresponding to the target test asset can include a first test strategy and a second test strategy. The first test strategy can be used to describe immediate testing, and the second test strategy can be used to describe non-immediate testing, such as testing after one hour.
[0067] In some embodiments, determining the data test strategy corresponding to the target test asset based on the data test permission of the target test asset includes:
[0068] Determining test subject information to which the target test asset belongs based on the data test permission of the target test asset, and determining a data coding sequence matched with the target test asset based on test marker data of the test subject information in the test platform. If the data coding sequence matched with the target test asset is associated with a preset coding sequence, the data test strategy corresponding to the target test asset is determined as the first test strategy. If the data coding sequence matched with the target test asset is not associated with the preset coding sequence, the data test strategy corresponding to the target test asset is determined as the second test strategy.
[0069] The test subject information to which the target test asset belongs can be used to represent a test user / test team corresponding to the target test asset. The test marker data of the test subject information in the test platform can be consumption data of the test user / test team in the test platform, such as a recharge amount or an amount of a virtual commodity purchased. If a value corresponding to the test marker data is greater than or equal to a preset threshold, the data coding sequence matched with the target test asset is determined as a priority sequence, such as "11", where the first "1" represents that the value corresponding to the test marker data is greater than or equal to the preset threshold, and the second "1" represents that the test subject information is a test user. If the value corresponding to the test marker data is less than the preset threshold, the data coding sequence matched with the target test asset is determined as a non-priority sequence, such as "21", where "2" represents that the value corresponding to the test marker data is less than or equal to the preset threshold, and "1" represents that the test subject information is a test user. If the second value is "2", the test subject information is a test team.
[0070] The preset coding sequence is "1x", wherein "x" can be "1" or "2", "1" represents that the test subject information is a test user, and "2" represents that the test subject information is a test team. If the first value in the data coding sequence matched with the target test asset is "1", it is determined that the data coding sequence matched with the target test asset is associated with the preset coding sequence, and it is determined that the data test strategy corresponding to the target test asset is the first test strategy. If the first value in the data coding sequence matched with the target test asset is not "1", it is determined that the data coding sequence matched with the target test asset is not associated with the preset coding sequence, and it is determined that the data test strategy corresponding to the target test asset is the second test strategy.
[0071] Therefore, by the test marking data of the test subject information of the target test asset in the test platform, the data coding sequence matched with the target test asset is determined, so as to effectively determine the data test strategy corresponding to the target test asset according to the data coding sequence matched with the target test asset being associated with the preset coding sequence.
[0072] S220, determining the available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and constructing the reusable element library associated with the target test asset based on the available page elements of the target test asset.
[0073] The page elements (such as buttons and input boxes) are stored in the element management library through positioning expressions (such as CSS / XPath). The element management library stores multiple elements in groups, which are the first element group and the second element group. The first element group corresponds to the first test strategy, and the second element group corresponds to the second test strategy.
[0074] In addition, the available page elements constructed in the embodiment only need to update the element configuration when the front-end interface is revised, without the need to modify all associated test cases, which can effectively reduce the maintenance cost.
[0075] In some embodiments, determining the available page elements of the target test asset according to the data test strategy corresponding to the target test asset includes:
[0076] If the data test strategy corresponding to the target test asset is the first test strategy, the element association information corresponding to the first test strategy is obtained, the first element association item corresponding to the target test asset is determined from the element association information corresponding to the first test strategy, and the available page elements of the target test asset are determined based on the first element association item corresponding to the target test asset. If the data test strategy corresponding to the target test asset is the second test strategy, the element association information corresponding to the second test strategy is obtained, the second element association item corresponding to the target test asset is determined from the element association information corresponding to the second test strategy, and the available page elements of the target test asset are determined based on the second element association item corresponding to the target test asset.
[0077] The first element association item can be used to represent one or more types of specific elements, such as special / high-level buttons, special / high-level input boxes. The second element association item can be used to represent one or more types of general elements, such as general buttons, general input boxes. That is, the first element association item can correspond to all buttons under the special / high-level buttons and / or all input boxes under the special / high-level input boxes. The second element association item can correspond to all buttons under the general buttons and / or all input boxes under the general input boxes.
[0078] Thus, the corresponding element association item is matched for the target test asset through the different data test strategies corresponding to the target test asset, and then the available page elements of the target test asset are quickly determined.
[0079] S230, determining a plurality of test element items corresponding to the target test asset according to the test requirement description information of the target test asset, and sequentially dragging the plurality of test element items from the reusable element library associated with the target test asset to the interface arrangement area through a dragging manner to arrange the test logic between the plurality of test element items, and generating a test case corresponding to the target test asset through the test logic between the plurality of test element items.
[0080] The test requirement description information of the target test asset can be used to reflect the actual test requirements of the target test asset, such as testing software performance, testing data integrity, checking whether the data is qualified, etc.
[0081] In some embodiments, the plurality of test element items are sequentially dragged from the reusable element library associated with the target test asset to the interface arrangement area through a dragging manner to arrange the test logic between the plurality of test element items, and a test case corresponding to the target test asset is generated through the test logic between the plurality of test element items, including:
[0082] The plurality of test element items corresponding to the target test asset are logically arranged, the plurality of test element items are sequentially dragged from the reusable element library associated with the target test asset according to the logical arrangement order through a dragging manner, and the test logic of the plurality of test element items is arranged based on a preset arrangement logic to generate a test case corresponding to the target test asset.
[0083] The test steps can be designed by dragging the corresponding element components in the visual interface to arrange the test logic and configure the assertion rules (such as verifying the text, the visibility of the element), so that the test personnel can quickly arrange the test logic, cover complex business scenarios such as login and order, and improve the efficiency of case development.
[0084] The embodiment obtains a data test permission of a target test asset, determines a data test strategy corresponding to the target test asset based on the data test permission of the target test asset, determines available page elements of the target test asset according to the data test strategy corresponding to the target test asset, constructs a reusable element library associated with the target test asset based on the available page elements of the target test asset, determines a plurality of test element items corresponding to the target test asset according to test requirement description information of the target test asset, and drags the plurality of test element items from the reusable element library associated with the target test asset to an interface arrangement area in sequence through a dragging manner to arrange test logic between the plurality of test element items, and generates a test case corresponding to the target test asset through the test logic between the plurality of test element items. In this way, a full-process visual operation of test case generation is provided for a user, a technical threshold is reduced in a "zero coding" mode, test case arrangement is lightweight, and test case generation efficiency is effectively improved.
[0085] In some embodiments, the method further includes assembling the test case corresponding to the target test asset into a target test suite, configuring a scheduling trigger strategy corresponding to the target test suite, and performing a test case test on the target test asset through the scheduling trigger strategy corresponding to the target test suite.
[0086] The scheduling trigger strategy corresponding to the target test suite can include a timing execution and a page manual trigger. If the scheduling trigger strategy corresponding to the target test suite is the timing execution, the execution of the test case is triggered when a preset time arrives. If the scheduling trigger strategy corresponding to the target test suite is the page manual trigger, the execution of the test case is triggered when a user operation instruction is received.
[0087] Thus, by assembling the test case into the test suite and configuring the scheduling strategy, the execution progress and the log are monitored in real time, the automatic scheduling is used to replace the manual triggering, a large-scale test case is supported, and the test period is greatly shortened.
[0088] In some embodiments, the method further includes generating a structured test report corresponding to the target test asset according to a test case test result of the target test asset, and generating a visual test chart according to the structured test report corresponding to the target test asset to visually display a test situation distribution of the target test asset.
[0089] The visual test chart can be used to display a pass rate of a test module, a module failure distribution and other information in a test process. According to the visual test chart, a screenshot, a screen recording and other test traces of a failed test case can be associated and displayed, so that the test process can be effectively traced in a visual manner.
[0090] In some embodiments, the method further includes: collecting statistics of unit test information of the target test asset according to the test time sequence / test module sequence based on the test situation distribution of the target test asset, and optimizing the data test strategy of the target test asset based on the unit test information of the target test asset.
[0091] The unit test information of the target test asset includes: unit test pass rate, unit test case execution time, and test failure risk points.
[0092] This implementation measures pass rates and use case execution duration by time / module, identifying high-frequency failure risk points, such as functional modules with continuous failures, to assess team / user testing effectiveness, including coverage improvement trends. Furthermore, data-driven testing strategy optimization and quantitative assessment of test quality and efficiency provide key insights for continuous improvement.
[0093] The present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.
[0094] The computer device includes a memory 310 and a processor 320 that are interconnected and communicate with each other via a system bus. It should be noted that the figure only shows a computer device with a memory 310 and a processor 320, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0095] Computer devices can be desktop computers, laptops, PDAs, cloud servers, etc. Computer devices can interact with users through keyboards, mice, remote controls, touchpads, or voice-activated devices.
[0096] The memory 310 includes at least one type of readable storage medium, including non-volatile memory or volatile memory, for example, flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. The RAM can include static RAM or dynamic RAM. In some embodiments, the memory 310 can be an internal storage unit of the computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 310 can also be an external storage device of the computer device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, or a flash card, etc. equipped on the computer device. Of course, the memory 310 can include both an internal storage unit and an external storage device of the computer device. In the present embodiment, the memory 310 is generally used to store an operating system and various application software installed on the computer device, for example, program codes of the above-described method, etc. In addition, the memory 310 can also be used to temporarily store various data that has been output or will be output.
[0097] The processor 320 is generally used to perform the overall operation of the computer device. In the present embodiment, the memory 310 is used to store program codes or instructions, which include computer operation instructions, and the processor 320 is used to execute the program codes or instructions stored in the memory 310 or process data, for example, run the program codes of the above-described method.
[0098] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or only one type of bus.
[0099] Another embodiment of the present application also provides a computer readable medium, which can be a computer readable signal medium or a computer readable medium. The processor in the computer reads the computer readable program code stored in the computer readable medium, so that the processor can perform the function actions specified in each step or combination of steps in the above method; generate the device implementing the function actions specified in each block or combination of blocks in the block diagram.
[0100] The computer readable medium includes but is not limited to electronic, magnetic, optical, electromagnetic, infrared, semiconductor system, device or apparatus, or any appropriate combination of the foregoing, for storing program code or instructions, which include computer operation instructions, and the processor for executing the program code or instructions of the above method stored in the memory.
[0101] The definition of the memory and the processor can refer to the description of the foregoing computer device embodiment, which will not be repeated here.
[0102] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiment described above is only schematic, for example, the division of modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0103] The function units or modules in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software function unit.
[0104] If the integrated unit is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0105] In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of both hardware and software, and any combination thereof. In the device claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different claims does not indicate that a combination of these measures cannot be used to advantage. The use of relative terms such as "first", "second" and "third", etc. does not connote any prioritization, but such terms are used to distinguish a certain feature from another feature with the same name. The steps of the above-described methods shall not be understood as necessarily limited to the order in which they are presented.
[0106] The above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; even though the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still make modifications to the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A system for implementing test case orchestration based on zero code, characterized in that: include: Test asset management component, page element management component, and test case orchestration component; The test asset management component is configured to obtain data test permissions of a target test asset and determine a data test policy corresponding to the target test asset based on the data test permissions of the target test asset, wherein the data test permissions of the target test asset are used to describe a test level of the target test asset; The page element management component is configured to determine available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and to construct a reusable element library associated with the target test asset based on the available page elements of the target test asset; The test case orchestration component is used to determine multiple test element items corresponding to the target test asset based on the test requirement description information of the target test asset, and drag the multiple test element items from the reusable element library associated with the target test asset to the interface orchestration area in sequence by dragging and dropping to obtain the test logic between the multiple test element items, and generate the test case corresponding to the target test asset through the test logic between the multiple test element items.
2. The system according to claim 1, wherein: The test asset management component is specifically used to: Determine the test subject information of the target test asset based on the data test permission of the target test asset, and determine the data coding sequence that matches the target test asset through the test tag data of the test subject information of the target test asset in the test platform; If the data coding sequence matching the target test asset is associated with a preset coding sequence, the data testing strategy corresponding to the target test asset is determined to be the first testing strategy; if the data coding sequence matching the target test asset is not associated with the preset coding sequence, the data testing strategy corresponding to the target test asset is determined to be the second testing strategy.
3. The system according to claim 2, characterized in that The page element management component is specifically used to: If the data test strategy corresponding to the target test asset is the first test strategy, obtaining element association information corresponding to the first test strategy, determining a first element association item corresponding to the target test asset from the element association information corresponding to the first test strategy, and determining an available page element of the target test asset based on the first element association item corresponding to the target test asset; If the data testing strategy corresponding to the target test asset is the second testing strategy, obtain the element association information corresponding to the second testing strategy, determine the second element association item corresponding to the target test asset from the element association information corresponding to the second testing strategy, and determine the available page elements of the target test asset based on the second element association item corresponding to the target test asset.
4. The system according to claim 1, wherein: The test case orchestration component is specifically used to: Logically arrange the multiple test element items corresponding to the target test asset, and drag the multiple test element items out from the reusable element library associated with the target test asset in sequence according to the logical arrangement order by dragging and dropping, and perform test logic arrangement on the multiple test element items based on the preset arrangement logic to generate a test case corresponding to the target test asset.
5. The system according to claim 1, wherein: Also includes: Test case scheduling component; The test case scheduling component is used to assemble the test cases corresponding to the target test assets into a target test suite, configure the scheduling trigger policy corresponding to the target test suite, and perform a use case test on the target test assets through the scheduling trigger policy corresponding to the target test suite.
6. The system according to claim 5, characterized in that Also includes: Test report generation component; The test report generation component is used to generate a corresponding structured test report based on the use case test results of the target test asset, and generate a visual test chart based on the structured test report corresponding to the target test asset to visually display the test status distribution of the target test asset.
7. The system according to claim 6, characterized in that Also includes: Test result analysis component; The test result analysis component is configured to collect unit test information of the target test asset according to the test situation distribution of the target test asset and the test time sequence / test module sequence, and optimize the data test strategy of the target test asset according to the unit test information of the target test asset; The unit test information of the target test asset includes: unit test pass rate, unit test case execution time and test failure risk points.
8. A method for implementing test case arrangement based on zero code, characterized in that: include: Acquire data testing permissions of a target test asset, and determine a data testing policy corresponding to the target test asset based on the data testing permissions of the target test asset, where the data testing permissions of the target test asset are used to describe a test level of the target test asset; Determining available page elements of the target test asset according to the data test strategy corresponding to the target test asset, and building a reusable element library associated with the target test asset based on the available page elements of the target test asset; According to the test requirement description information of the target test asset, multiple test element items corresponding to the target test asset are determined, and the multiple test element items are dragged from the reusable element library associated with the target test asset to the interface arrangement area in sequence by dragging and dropping to obtain the test logic between the multiple test element items, and the test cases corresponding to the target test asset are generated through the test logic between the multiple test element items.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method for implementing test case arrangement based on zero code as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for implementing test case arrangement based on zero code as described in any one of claims 1 to 7 is implemented.