Control test configuration method, apparatus, device, and storage medium
By setting up a control experiment toolkit within the customer's business system, a visual control experiment component is generated, which solves the problems of high repeatability and complex operation in existing A/B test configuration methods, and simplifies the configuration process and improves efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SENSOR NETWORKS TECH BEIJING CO LTD
- Filing Date
- 2022-08-30
- Publication Date
- 2026-07-07
AI Technical Summary
Existing A/B test configuration methods suffer from high configuration repeatability and complex operation, making it difficult for non-technical users to complete the configuration.
By setting up a control test toolkit associated with the target business form to be tested within the customer's business system, a visual control test component can be generated using this toolkit. This includes obtaining test configuration parameters, rendering test interface controls, mounting them to a preset test interface, generating an initial control test, and synchronizing it to the target test platform.
The repeatability of the control experiment configuration was reduced, the operation logic was optimized, the configuration difficulty was reduced, and the configuration efficiency was improved.
Smart Images

Figure CN115390843B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a method, apparatus, device, and storage medium for configuring a control experiment. Background Technology
[0002] Currently, with the rapid development of the internet, many internet companies frequently face the challenge of choosing between multiple design options when designing and operating business system forms, applications, or other products. The existing solution is to use A / B testing to assist in decision-making and select the design option with higher user feedback. However, current A / B testing configurations rely on A / B testing service platforms. When building an A / B test, both the product under test and the A / B testing service platform need to be configured simultaneously. Furthermore, non-technical users often find it difficult to complete the configuration for this A / B test. In other words, existing A / B testing configuration methods suffer from high repetitiveness and operational complexity. Summary of the Invention
[0003] This application provides a method, apparatus, device, and storage medium for configuring a control experiment, aiming to solve the technical problems of high repeatability and complex operation in the configuration of control experiments in the prior art.
[0004] On the one hand, embodiments of this application provide a method for configuring a control experiment, the method comprising the following steps:
[0005] Obtain the target business form to be tested, and obtain the test configuration parameters of the target business form;
[0006] The test configuration parameters are rendered using a preset control test toolkit to obtain test interface controls. The control test toolkit is the software development kit associated with the target business form.
[0007] The test interface control is attached to the preset test interface in the target business form to generate an initial control test;
[0008] Obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
[0009] In one possible implementation of this application, the step of rendering the test configuration parameters according to the control test toolkit to obtain test interface controls includes:
[0010] Call the control test toolkit of the target business form and extract the test configuration fields from the control test toolkit;
[0011] Obtain the target test configuration parameter that matches the test configuration field in the test configuration parameters;
[0012] Render the interface configuration control corresponding to the target test configuration field of the target test configuration parameter to obtain the test interface control of the target business form.
[0013] In one possible implementation of this application, the step of attaching the test interface control to a preset test interface in the target business form to generate an initial control test includes:
[0014] Obtain the mounting node identifier of the test interface control, and determine the mounting node object of the target business form based on the mounting node identifier;
[0015] Obtain the front-end template engine corresponding to the test interface control, and render the test interface control according to the front-end template engine;
[0016] Obtain the test area interaction events corresponding to the mounted node object, and associate the test area interaction events with the rendered test interface controls to obtain the target interface controls;
[0017] Insert the target interface control into the preset test interface to generate an initial control test.
[0018] In one possible implementation of this application, the step of rendering the test configuration parameters using a preset control test toolkit to obtain test interface controls includes:
[0019] Obtain the identity identifier from the target business form, input the identity identifier into the identity authentication interface of the control test toolkit, and obtain the authentication result;
[0020] Based on the authentication results, the control experiment toolkit is traversed to obtain the experimental tasks associated with the authentication results;
[0021] The preset controls are rendered according to the test task and the test configuration parameters to obtain the test interface controls.
[0022] In one possible implementation of this application, obtaining the test identifier of the target business form and combining the test identifier with the initial control test to obtain the target control test includes:
[0023] In response to the test submission request, obtain the target configuration parameters of the initial control test interface;
[0024] The accuracy of the target configuration parameters is verified. If the verification result is successful, a control experiment creation request is sent to the target test platform.
[0025] Obtain the test identifier returned based on the control test creation request, and combine the test identifier with the initial control test to generate the target control test.
[0026] In one possible implementation of this application, obtaining the test identifier returned based on the control test creation request, and combining the test identifier with the initial control test to generate the target control test includes:
[0027] Obtain the test identifier returned based on the control test creation request, and determine the test form items and test group data of the target business form according to the test identifier;
[0028] The initial control experiment is combined and rendered based on the test form items and the test group data to obtain the target control experiment of the target business form.
[0029] In one possible implementation of this application, after obtaining the test identifier of the target business form and combining the test identifier with the initial control test to obtain the target control test, the method further includes:
[0030] In response to a test release request, obtain the target test identifier corresponding to the test release request;
[0031] The target control experiment in the target test platform is obtained according to the target test identifier, and the target control experiment is published;
[0032] Obtain the test index data of the target control experiment, and parse the test index data to determine the test results of the target business form.
[0033] On the other hand, this application provides a control test configuration apparatus, the control test configuration apparatus comprising:
[0034] The parameter acquisition module is configured to acquire the target business form to be tested and acquire the test configuration parameters of the target business form;
[0035] The control generation module is configured to render the test configuration parameters using a preset control test toolkit to obtain test interface controls, wherein the control test toolkit is the software development kit associated with the target business form;
[0036] The control rendering module is configured to attach the test interface control to the preset test interface in the target business form to generate an initial control test;
[0037] The test generation module is configured to obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
[0038] On the other hand, this application also provides a control test configuration device, the control test configuration device comprising:
[0039] One or more processors;
[0040] Memory; and
[0041] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the control trial configuration method.
[0042] On the other hand, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the control test configuration method described above.
[0043] This application obtains the target business form to be tested and its test configuration parameters; renders the test configuration parameters using a preset control test toolkit, which is a software development kit associated with the target business form, to obtain test interface controls; attaches the test interface controls to a preset test interface in the target business form to generate an initial control test; obtains the test identifier of the target business form, and combines the test identifier with the initial control test to obtain the target control test. This achieves the goal of reducing the repetitiveness of control test configuration, optimizing the operation logic of control test configuration, and reducing the difficulty of control test configuration by setting up a control test toolkit associated with the target business form to be tested within the customer's business system and generating a visual control test component through this toolkit. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic diagram illustrating the scenario of the control test configuration method in the embodiments of this application;
[0046] Figure 2 This is a flowchart illustrating one embodiment of the control test configuration method in this application.
[0047] Figure 3A flowchart illustrating an embodiment of the control test configuration method provided in this application for rendering test configuration parameters according to a control test toolkit to obtain test interface controls;
[0048] Figure 4 A flowchart illustrating an embodiment of the control test configuration method provided in this application for publishing a target control test;
[0049] Figure 5 This is a schematic diagram of an embodiment of the control test configuration device provided in this application;
[0050] Figure 6 This is a schematic diagram of an embodiment of the control test configuration device provided in this application. Detailed Implementation
[0051] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0052] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0053] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0054] Currently, with the rapid development of the internet, many internet companies frequently face the challenge of choosing between multiple design options when designing and operating business system forms, applications, or other products. The existing solution is to use A / B testing to assist in decision-making and select the design option with higher user feedback. However, current A / B testing configurations rely on A / B testing service platforms. When building an A / B test, both the product under test and the A / B testing service platform need to be configured simultaneously. Furthermore, non-technical users often find it difficult to complete the configuration for this A / B test. In other words, existing A / B testing configuration methods suffer from high repetitiveness and operational complexity.
[0055] Based on this, this application proposes a method, apparatus, device, and computer-readable storage medium for configuring a control experiment, in order to solve the technical problem that the configuration of control experiments in the prior art has high repeatability and is complex to operate.
[0056] The control test configuration method in this embodiment of the invention is applied to a control test configuration device, which is set in a control test configuration equipment. The control test configuration equipment is provided with one or more processors, a memory, and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the control test configuration method. The control test configuration equipment can be a smart terminal, such as a mobile phone, tablet computer, smart TV, network device, and smart computer. Optionally, the control test configuration equipment can also be a server or a service cluster composed of multiple servers.
[0057] like Figure 1 As shown, Figure 1This is a schematic diagram of a scenario for a control test configuration method according to an embodiment of this application. The control test configuration scenario in this embodiment includes multiple control test configuration devices 100 (each control test configuration device 100 integrates a control test configuration apparatus). Each control test configuration device 100 is equipped with a computer-readable storage medium corresponding to the control test configuration method to execute the steps of the control test configuration method.
[0058] Understandable, Figure 1 The control test configuration equipment in the scenario of the control test configuration method shown, or the devices included in the control test configuration equipment, do not constitute a limitation on the embodiments of the present invention. That is, the number or type of control test configuration equipment included in the scenario of the control test configuration method, or the number or type of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.
[0059] In this embodiment of the invention, the control test configuration device 100 is mainly used for: acquiring a target business form to be tested, acquiring test configuration parameters of the target business form; rendering the test configuration parameters using a preset control test toolkit to obtain test interface controls, wherein the control test toolkit is a software development kit associated with the target business form; attaching the test interface controls to a preset test interface in the target business form to generate an initial control test; acquiring the test identifier of the target business form, combining the test identifier and the initial control test to obtain a target control test, and synchronizing the target control test to the target test platform.
[0060] The control test configuration device 100 in this embodiment of the invention can be multiple independent control test configuration devices, such as mobile phones, tablets, smart TVs, network devices, servers and smart computers, or a control test configuration network or control test configuration cluster composed of multiple control test configuration devices.
[0061] This application provides a method, apparatus, device, and computer-readable storage medium for configuring a control experiment, which will be described in detail below.
[0062] It will be understood by those skilled in the art that Figure 1 The application environment shown is only one application scenario related to the solution of this application and does not constitute a limitation on the application scenario of this application. Other application environments may include more than one application scenario. Figure 1 The diagram shows more or fewer control test configuration devices, or control test configuration network connections, for example... Figure 1Only one control test configuration device is shown in the figure. It can be understood that the scenario of the control test configuration method may also include one or more control test configuration devices, which are not limited here. The control test configuration device may also include a memory for storing test configuration parameters and other data.
[0063] It should be noted that, Figure 1 The schematic diagram of the control experiment configuration method shown is merely an example. The scenario of the control experiment configuration method described in the embodiments of the present invention is for the purpose of more clearly illustrating the technical solution of the embodiments of the present invention, and does not constitute a limitation on the technical solution provided by the embodiments of the present invention.
[0064] Based on the scenario of the above-described control experiment configuration method, various embodiments of the control experiment configuration method disclosed in this invention are proposed.
[0065] like Figure 2 As shown, Figure 2 This is a flowchart illustrating one embodiment of the control test configuration method in this application. The control test configuration method includes the following steps 201-204:
[0066] 201. Obtain the target business form to be tested, and obtain the test configuration parameters of the target business form;
[0067] The control test configuration method in this embodiment is applied to the control test configuration device. The type and number of control test configuration devices are not specifically limited. That is, the control test configuration device can be one or more smart terminals equipped with cameras. In a specific embodiment, the control test configuration device is a smart computer.
[0068] Specifically, the control test configuration device is configured to receive a control test configuration request, obtain the target business form corresponding to the control test configuration request, configure the control test on the target business form on the local client to obtain the target control test, and synchronize the target control test to the target test platform. The control test is an A / B test corresponding to the target business form; the target business form can be an application, a webpage, or other application styles.
[0069] Specifically, during operation, the control test configuration device receives a control test configuration request. This request is an operation instruction that drives the control test configuration device to perform A / B testing on the target business form to be tested on the client side. Optionally, the triggering method of this control test configuration request is not specifically limited here; that is, the control test configuration request can be actively triggered by the user. For example, after selecting the corresponding target business form, the user can actively trigger the control test configuration request for that target business form by clicking the control test configuration button on the control test configuration device. Furthermore, the control test configuration request can also be automatically triggered by the control test configuration device. For example, the control test configuration request may have an pre-set automatic configuration process, automatically triggering the control test configuration request when the target business form is updated.
[0070] After receiving a control test configuration request, the control test configuration device parses the request to obtain the test configuration parameters for the target service form. These test configuration parameters include test type, identity identifier, test traffic ratio, and test grouping.
[0071] 202. The test configuration parameters are rendered using a preset control test toolkit to obtain test interface controls, wherein the control test toolkit is the software development kit associated with the target business form;
[0072] After obtaining the test configuration parameters of the target business form, the control test configuration device renders the test interface control of the target business form according to the test configuration parameters and the control test toolkit corresponding to the target business form. The test interface control is a front-end visual UI interactive component for configuring the control test of the target business form.
[0073] Specifically, the control test configuration device pre-configures a control test toolkit for the target business form. This toolkit is a software development kit configured on the control test configuration device used to generate control tests for the target business form. Before obtaining the test configuration parameters, the control test configuration device initializes the control test toolkit. After obtaining the test configuration parameters, it reads the user identifier from the test configuration parameters, performs authentication processing on the user identifier, obtains the authentication result, and renders the test interface controls of the target business form based on the authentication result and the test configuration parameters.
[0074] Specifically, the control test configuration device inputs the test configuration parameters into the control test toolkit, and generates test interface controls using these parameters and the toolkit. Specifically, the control test configuration device reads the test configuration fields from the toolkit, determines the interface configuration controls to be generated, and generates these controls on a preset configuration interface. After generating each interface configuration control, the control test configuration device iterates through and filters the test configuration parameters, comparing the test configuration fields with the test configuration parameters to obtain the target configuration parameters that match them. After obtaining the target configuration parameters, the control test configuration device renders the interface configuration controls using these parameters, thus obtaining the test interface controls for the target business form. These test interface controls include form item controls and test group controls.
[0075] 203. Attach the experimental interface control to the preset experimental interface in the target business form to generate an initial control experiment;
[0076] After generating the test interface controls, the control test configuration device attaches these controls to the preset test interface of the target business form, thus generating the initial control test for the target business form. The preset test interface is a specific node area within the target business form.
[0077] Specifically, after generating each test interface control, the control test configuration device also obtains the mounting node identifier of each test interface control, selects the mounting node object list of the preset test interface, and obtains each mounting node object in the mounting node object list. The control test configuration device compares the mounting node identifier and the mounting node object identifier to determine the target mounting node object corresponding to the mounting node identifier.
[0078] Optionally, if the mounting node identifier has a matching unique mounting node object, then the test interface control corresponding to the mounting node identifier is mounted to the unique mounting node object to obtain the target interface control.
[0079] Optionally, if multiple matching mount node objects exist for the mount node identifier, the control test configuration device determines that the control test toolkit cannot mount the test interface control corresponding to the mount node identifier, generates rendering failure information, and displays the rendering failure information on the target business form client.
[0080] Specifically, the control test configuration device obtains the front-end template engine of the test interface control and renders the test interface control using the front-end template engine to obtain the rendered test interface control. After rendering the test interface control, the control test configuration device also obtains the test area interaction events corresponding to the mounted node object, and associates the test area interaction events with the rendered test interface control to obtain the target interface control.
[0081] Specifically, after rendering all test interface controls to obtain all target interface controls, the control test configuration equipment inserts the target interface controls into the preset test interface of the target business form, generating the initial control test corresponding to the target business form.
[0082] 204. Obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
[0083] After generating the initial control test, the control test configuration device also obtains the test identifier of the target business form, combines the test identifier with the initial control test to obtain the target control test, and synchronizes the target control test to the target test platform.
[0084] Specifically, the control test configuration device receives a test submission request, parses the request, and obtains the target configuration parameters for the initial control test from the request. After obtaining these target configuration parameters, the device retrieves the target configuration field from the control test toolkit and uses this field to verify the accuracy of the target configuration parameters, thereby obtaining the verification result.
[0085] Optionally, if the target configuration parameter matches the configuration requirements of the target configuration field, the verification result is determined to be successful, and the control test configuration device calls the control test toolkit to send a control test creation request to the target test platform.
[0086] Optionally, if the target configuration parameter does not match the configuration requirements of the target configuration field, the verification result is determined to be a verification failure, the test configuration device is blocked from submitting the test request, and the target configuration parameter that failed the verification is marked as an error.
[0087] Specifically, after sending a control test creation request to the target test platform, the control test configuration device obtains the test identifier returned by the target test platform based on the control test creation request, and determines the target test form item and target test group data of the target business form based on the test identifier.
[0088] After acquiring the target test form items and target test group data of the target business form, the control test configuration device combines and splices the target test form items and target test group data to obtain the target control test of the target business form.
[0089] After obtaining the target control test for the target business form, the control test configuration device submits the target control test in the target business form background, thereby completing the target control test configuration for the target business form.
[0090] In this embodiment, the control test configuration device obtains the target business form to be tested and its test configuration parameters; renders the test configuration parameters using a preset control test toolkit to obtain test interface controls, where the control test toolkit is a software development kit associated with the target business form; attaches the test interface controls to a preset test interface in the target business form to generate an initial control test; obtains the test identifier of the target business form, combines the test identifier with the initial control test to obtain a target control test, and synchronizes the target control test to the target test platform. This achieves the goal of reducing the repetitiveness of control test configuration, optimizing the operation logic of control test configuration, and reducing the difficulty of control test configuration operation by setting a control test toolkit associated with the target business form to be tested within the customer's business system and generating a visual control test component through the control test toolkit.
[0091] like Figure 3 As shown, Figure 3 A flowchart illustrating an embodiment of the control experiment configuration method provided in this application, which renders the test configuration parameters according to the control experiment toolkit to obtain the test interface control, specifically includes steps 301-303:
[0092] 301. Obtain the identity identifier from the target business form, input the identity identifier into the identity authentication interface of the control test toolkit, and obtain the authentication result;
[0093] 302. Based on the authentication results, traverse the control experiment toolkit to obtain the experimental tasks associated with the authentication results;
[0094] 303. Render the preset controls according to the test task and the test configuration parameters to obtain the test interface controls.
[0095] Based on the above embodiments, in this embodiment, after the control test configuration device obtains the test configuration parameters of the target business form, it performs authentication through the test configuration parameters to obtain the authentication result. Based on the authentication result, it obtains the test task queue and renders the test configuration parameters according to the test tasks in the test task queue to obtain the test interface control.
[0096] Specifically, after initializing the control experiment toolkit, the control experiment configuration device generates a successful authentication task queue and a failed authentication task queue within the control experiment toolkit instance. Different authentication results correspond to different test task queues.
[0097] Specifically, after receiving the control test configuration request, the control test configuration device obtains the identity identifier in the target business form and calls the identity authentication interface of the control test toolkit to authenticate the identity identifier, thereby obtaining the authentication result.
[0098] Optionally, if the authentication result is successful, the device with the test configuration reads the successful authentication task queue, obtains the test task in the successful authentication task queue, and retrieves and executes the test task according to the registration order.
[0099] Optionally, if the authentication result is authentication failure, the device with reference to the test configuration reads the authentication failure task queue, obtains the test task in the authentication failure task queue, and retrieves the test task in the registration order and executes the test task.
[0100] After obtaining the authentication result and the corresponding test task, the control test configuration device renders the preset controls according to the test task and test configuration parameters to obtain the test interface controls, and generates the target control test of the target business form through the test interface controls.
[0101] In this embodiment, the control experiment configuration device obtains the identity identifier from the target business form, inputs the identity identifier into the identity authentication interface of the control experiment toolkit, and obtains the authentication result; based on the authentication result, it traverses the control experiment toolkit to obtain the test task associated with the authentication result; and renders preset controls according to the test task and the test configuration parameters to obtain the test interface controls. This reduces the repetitiveness of control experiment configuration, optimizes the control experiment configuration operation logic, and reduces the difficulty of control experiment configuration operation.
[0102] like Figure 4 As shown, Figure 4 A flowchart illustrating an embodiment of the control trial configuration method provided in this application for publishing a target control trial, specifically including steps 401-403:
[0103] 401. Synchronize the target control experiment to the target experiment platform, respond to the experiment release request, and obtain the target experiment identifier corresponding to the experiment release request;
[0104] 402. Obtain the target control experiment in the target test platform according to the target test identifier, and publish the target control experiment;
[0105] 403. Obtain the test index data of the target control experiment, and parse the test index data to determine the test results of the target business form.
[0106] In this embodiment, after synchronously submitting the target control experiment to the target experiment platform, the control experiment configuration device responds to the experiment release request and obtains the target experiment identifier carried in the experiment release request. The target control experiment is then released based on the target experiment identifier.
[0107] Specifically, the control test configuration device accesses the target test platform, obtains the corresponding target control test in the target test platform according to the target test identifier, verifies the target test parameters such as test type, test layer and test status of the target control test, and performs operations such as editing, copying and deleting the target control test according to the actual application scenario.
[0108] After verifying the target test parameters, the control test configuration equipment publishes the target control test on the target test platform. The control test configuration equipment also monitors the target control test on the target test platform in real time and obtains the test index data of the target control test.
[0109] After acquiring the test index data, the control test configuration device parses the data to determine the test results for the target business form. This test index data includes the confidence interval, p-value, and mean squared error (MDE) of the target control test. Optionally, this test index data can be customized according to the actual application scenario. The control test configuration device uses the test results to determine the target configuration style of the target business form and renders the target business form according to this style.
[0110] In this embodiment, the control test configuration device responds to a test release request, obtains the target test identifier corresponding to the test release request, retrieves the target control test from the target test platform based on the target test identifier, and releases the target control test; obtains the test index data of the target control test, and parses the test index data to determine the test result of the target business form. This enables the determination of the test result of the target business form based on the test index data of the control test, improving test accuracy and test sensitivity.
[0111] To better implement the control experiment configuration method in the embodiments of this application, a control experiment configuration device is also provided in the embodiments of this application, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of one embodiment of the control test configuration device in this application. The control test configuration device 500 includes:
[0112] The parameter acquisition module 501 is configured to acquire the target business form to be tested and acquire the test configuration parameters of the target business form;
[0113] The control generation module 502 is configured to render the test configuration parameters through a preset control test toolkit to obtain test interface controls, wherein the control test toolkit is the software development kit associated with the target business form;
[0114] The control rendering module 503 is configured to attach the test interface control to the preset test interface in the target business form to generate an initial control test.
[0115] The test generation module 504 is configured to obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
[0116] In some embodiments of this application, the control test configuration device 500 renders the test configuration parameters according to the control test toolkit to obtain test interface controls, including:
[0117] Call the control test toolkit of the target business form and extract the test configuration fields from the control test toolkit;
[0118] Obtain the target test configuration parameter that matches the test configuration field in the test configuration parameters;
[0119] Render the interface configuration control corresponding to the target test configuration field of the target test configuration parameter to obtain the test interface control of the target business form.
[0120] In some embodiments of this application, the control test configuration device 500 attaches the test interface control to a preset test interface in the target business form to generate an initial control test, including:
[0121] Obtain the mounting node identifier of the test interface control, and determine the mounting node object of the target business form based on the mounting node identifier;
[0122] Obtain the front-end template engine corresponding to the test interface control, and render the test interface control according to the front-end template engine;
[0123] Obtain the test area interaction events corresponding to the mounted node object, and associate the test area interaction events with the rendered test interface controls to obtain the target interface controls;
[0124] Insert the target interface control into the preset test interface to generate an initial control test.
[0125] In some embodiments of this application, the control test configuration device 500 renders the test configuration parameters using a preset control test toolkit to obtain test interface controls, including:
[0126] Obtain the identity identifier from the target business form, input the identity identifier into the identity authentication interface of the control test toolkit, and obtain the authentication result;
[0127] Based on the authentication results, the control experiment toolkit is traversed to obtain the experimental tasks associated with the authentication results;
[0128] The preset controls are rendered according to the test task and the test configuration parameters to obtain the test interface controls.
[0129] In some embodiments of this application, the test identifier of the target business form in the control test configuration device 500 is combined with the initial control test to obtain a target control test, including:
[0130] In response to the test submission request, obtain the target configuration parameters of the initial control test interface;
[0131] The accuracy of the target configuration parameters is verified. If the verification result is successful, a control experiment creation request is sent to the target test platform.
[0132] Obtain the test identifier returned based on the control test creation request, and combine the test identifier with the initial control test to generate the target control test.
[0133] In some embodiments of this application, the control test configuration device 500 obtains a test identifier returned based on the control test creation request, combines the test identifier with the initial control test, and generates a target control test, including:
[0134] Obtain the test identifier returned based on the control test creation request, and determine the test form items and test group data of the target business form according to the test identifier;
[0135] The initial control experiment is combined and rendered based on the test form items and the test group data to obtain the target control experiment of the target business form.
[0136] In some embodiments of this application, after the control test configuration device 500 obtains the test identifier of the target business form, combines the test identifier with the initial control test to obtain the target control test, it further includes:
[0137] The target control experiment is synchronized to the target experiment platform, and the target experiment identifier corresponding to the experiment release request is obtained in response to the experiment release request.
[0138] The target control experiment in the target test platform is obtained according to the target test identifier, and the target control experiment is published;
[0139] Obtain the test index data of the target control experiment, and parse the test index data to determine the test results of the target business form.
[0140] In this embodiment, the control test configuration device acquires the target business form to be tested and obtains the test configuration parameters of the target business form; renders the test configuration parameters using a preset control test toolkit to obtain test interface controls, wherein the control test toolkit is a software development kit associated with the target business form; attaches the test interface controls to a preset test interface in the target business form to generate an initial control test; acquires the test identifier of the target business form, combines the test identifier with the initial control test to obtain a target control test, and synchronizes the target control test to the target test platform. This achieves the goal of reducing the repetitiveness of control test configuration, optimizing the operation logic of control test configuration, and reducing the difficulty of control test configuration operation by setting a control test toolkit associated with the target business form to be tested within the customer's business system and generating a visual control test component through the control test toolkit.
[0141] This invention also provides a control test configuration device, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of an embodiment of the control test configuration device provided in this application.
[0142] The control test configuration device integrates any one of the control test configuration devices provided in the embodiments of the present invention, and the control test configuration device includes:
[0143] One or more processors;
[0144] Memory; and
[0145] One or more applications, wherein the one or more applications are stored in the memory and configured by the processor to perform the steps of the control trial configuration method in any of the embodiments described above.
[0146] Specifically, the control test setup may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The control test configuration shown does not constitute a limitation on the control test configuration and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0147] The processor 601 is the control center of the control test configuration device. It connects various parts of the control test configuration device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, it performs various functions and processes data of the control test configuration device, thereby providing overall monitoring of the control test configuration device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.
[0148] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the equipment configured according to the control experiment. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0149] The control test setup also includes a power supply 603 that supplies power to the various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0150] The control test configuration may also include an input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0151] Although not shown, the control test configuration device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the control test configuration device loads the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application programs stored in the memory 602 to realize various functions, as follows:
[0152] Obtain the target business form to be tested, and obtain the test configuration parameters of the target business form;
[0153] The test configuration parameters are rendered using a preset control test toolkit to obtain test interface controls. The control test toolkit is the software development kit associated with the target business form.
[0154] The test interface control is attached to the preset test interface in the target business form to generate an initial control test;
[0155] Obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
[0156] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0157] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.
[0158] Therefore, embodiments of the present invention provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc. A computer program is stored thereon, which is loaded by a processor to execute the steps in any of the control experiment configuration methods provided in the embodiments of the present invention. For example, the computer program loaded by the processor can execute the following steps:
[0159] Obtain the target business form to be tested, and obtain the test configuration parameters of the target business form;
[0160] The test configuration parameters are rendered using a preset control test toolkit to obtain test interface controls. The control test toolkit is the software development kit associated with the target business form.
[0161] The test interface control is attached to the preset test interface in the target business form to generate an initial control test;
[0162] Obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
[0163] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0164] The above provides a detailed description of a control test configuration method provided by the embodiments of this application. Specific embodiments have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for configuring a control experiment, characterized in that, The method for configuring the control experiment includes: Obtain the target business form to be tested, and obtain the test configuration parameters of the target business form; The control test toolkit of the target business form is invoked, and the test configuration field in the control test toolkit is extracted; the target test configuration parameter that matches the test configuration field is obtained from the test configuration parameters; the interface configuration control corresponding to the target test configuration field of the target test configuration parameter is rendered to obtain the test interface control of the target business form, and the control test toolkit is the software development kit associated with the target business form; The test interface control is attached to the preset test interface in the target business form to generate an initial control test; Obtain the test identifier of the target business form, and combine the test identifier with the initial control test to obtain the target control test.
2. The method for configuring a control experiment as described in claim 1, characterized in that, The step of attaching the test interface control to the preset test interface in the target business form to generate an initial control test includes: Obtain the mounting node identifier of the test interface control, and determine the mounting node object of the target business form based on the mounting node identifier; Obtain the front-end template engine corresponding to the test interface control, and render the test interface control according to the front-end template engine; Obtain the test area interaction events corresponding to the mounted node object, associate the test area interaction events with the rendered test interface controls, and obtain the target interface controls; Insert the target interface control into the preset test interface to generate an initial control test.
3. The method for configuring a control experiment as described in claim 1, characterized in that, Obtain the test identifier of the target business form, and combine the test identifier with the initial control test to obtain the target control test, including: In response to the test submission request, obtain the target configuration parameters of the initial control test; The accuracy of the target configuration parameters is verified. If the verification result is successful, a control test creation request is sent to the target test platform. Obtain the test identifier returned based on the control test creation request, and combine the test identifier with the initial control test to generate the target control test.
4. The method for configuring a control experiment as described in claim 3, characterized in that, The step of obtaining the test identifier returned based on the control test creation request, and combining the test identifier with the initial control test to generate the target control test includes: Obtain the test identifier returned based on the control test creation request, and determine the target test form item and target test group data of the target business form based on the test identifier; The initial control experiment is combined and rendered based on the target test form items and the target test group data to obtain the target control experiment of the target business form.
5. The method for preparing a control experiment as described in any one of claims 1-4, characterized in that, After obtaining the test identifier of the target business form, and combining the test identifier with the initial control test to obtain the target control test, the process further includes: The target control experiment is synchronized to the target experiment platform, and the target experiment identifier corresponding to the experiment release request is obtained in response to the experiment release request. The target control experiment in the target test platform is obtained according to the target test identifier, and the target control experiment is published; Obtain the test index data of the target control experiment, and parse the test index data to determine the test results of the target business form.
6. A control test configuration device, characterized in that, The control test setup includes: The parameter acquisition module is configured to acquire the target business form to be tested and acquire the test configuration parameters of the target business form; The control generation module is configured to call the control test toolkit of the target business form, extract the test configuration fields in the control test toolkit, obtain the target test configuration parameters that match the test configuration fields in the test configuration parameters, render the interface configuration control corresponding to the target test configuration field of the target test configuration parameters, and obtain the test interface control of the target business form, wherein the control test toolkit is the software development kit associated with the target business form; The control rendering module is configured to attach the test interface control to the preset test interface in the target business form to generate an initial control test; The test generation module is configured to obtain the test identifier of the target business form, combine the test identifier with the initial control test to obtain the target control test, and synchronize the target control test to the target test platform.
7. A control test setup, characterized in that, The equipment used in the control experiment includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps in the control test configuration method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, It contains a computer program that is loaded by a processor to execute the steps of the control test configuration method according to any one of claims 1 to 5.