AB test method, device and system, electronic equipment and storage medium

By configuring test status information and effective status information in the business system, and allocating traffic to execute different business logic, it solves the problem that existing AB testing methods require independent testing systems, achieves efficient and low-cost AB testing, and ensures normal operation of business systems.

CN118760577APending Publication Date: 2024-10-11BEIJING UNICORN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311576196.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing AB testing method requires the design of a test system that is independent of the business system, which increases the difficulty and cost, and may affect the normal operation of the business system during AB testing.

Method used

By configuring the test status information and effective status information of the business logic to be tested and the normal business logic in the business system, traffic is allocated to execute different business logic, and AB testing is implemented without affecting the normal business logic.

Benefits of technology

AB testing can be performed on the same system without the need for an independent testing system, which reduces difficulty and cost and ensures the normal operation of the business system during the AB testing phase.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760577A_ABST
    Figure CN118760577A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an AB test method, device and system, electronic equipment and a storage medium. The method comprises the steps that based on at least two to-be-tested service logics, a service system is modified to comprise the to-be-tested service logics and normal service logics, the to-be-tested service logics are configured with test state information used for representing whether the service logics are AB test service logics or not, and the normal service logics are configured with test state information used for representing whether the service logics are AB test service logics; the normal service logic is configured with effective state information used for representing whether the service logic takes effect or not; in response to a received flow request, dividing the flow request into test flow and normal flow, and distributing the test flow and the normal flow to the modified service system; controlling the normal traffic to read the effective state information, and executing normal service logic based on a reading result; and controlling the test flow to read the test state information, and executing the to-be-tested service logic based on a read result to perform the AB test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of testing technology, and in particular to an AB testing method, device, system, electronic device and storage medium. Background Art

[0002] AB testing is a commonly used testing method, which is a separated inter-group experiment. Simply put, AB testing can be considered as dividing traffic into several sample groups, and testing different strategies for each sample group traffic. In related technologies, AB testing can be applied to a variety of different scenarios such as UI optimization, web page layout, and algorithm optimization. For example, in some application scenarios, AB testing can be effectively applied to aspects such as web page layout optimization, and has a good effect on increasing web page indicators such as conversion rate and registration rate. Therefore, it is of great significance to optimize AB testing. Summary of the invention

[0003] In view of this, embodiments of the present application provide an AB testing method, device, system, electronic device and storage medium to at least partially solve the above problems.

[0004] According to a first aspect of an embodiment of the present application, an AB testing method is provided, comprising: based on at least two business logics to be tested, modifying a business system to include each business logic to be tested and a normal business logic, wherein the business logic to be tested is configured with test status information for characterizing whether the business logic is an AB test business logic, and the normal business logic is configured with effective status information for characterizing whether the business logic is effective; in response to receiving a traffic request, dividing the traffic request into test traffic and normal traffic, and allocating the test traffic and normal traffic to the modified business system; controlling the normal traffic to read the effective status information, and executing the normal business logic based on the reading result; controlling the test traffic to read the test status information, and executing the business logic to be tested for AB testing based on the reading result.

[0005] According to a second aspect of an embodiment of the present application, an AB test device is provided, comprising: a modification module, configured to modify a business system to include each business logic to be tested and a normal business logic based on at least two business logics to be tested, wherein the business logic to be tested is configured with test status information for characterizing whether the business logic is an AB test business logic, and the normal business logic is configured with validity status information for characterizing whether the business logic is valid;

[0006] A division module is used to divide the traffic request into test traffic and normal traffic in response to receiving the traffic request, and allocate the test traffic and normal traffic to the modified business system; a first control module is used to control the normal traffic to read the effective status information, and execute the normal business logic based on the reading result; a second control module is used to control the test traffic to read the test status information, and execute the business logic to be tested to perform AB testing based on the reading result.

[0007] According to a third aspect of an embodiment of the present application, an AB testing system is provided, comprising: a diversion strategy unit and a business system unit; the diversion strategy unit is configured to divide the traffic request received from the user end to obtain test traffic and normal traffic; the business system unit is configured to modify the business system to include each business logic to be tested and normal business logic based on at least two business logics to be tested, wherein the business logic to be tested is configured with test status information for characterizing whether the business logic is the AB test business logic, and the normal business logic is configured with effective status information for characterizing whether the business logic is effective; the business system unit corresponds to the diversion strategy unit, receives the test traffic and the normal traffic, so that the normal traffic reads the effective status information, and executes the normal business logic based on the reading result, and so that the test traffic reads the test status information, and executes the business logic to be tested based on the reading result to perform AB testing.

[0008] According to the fourth aspect of the embodiments of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; the processor is used to execute any one of the methods provided in the first aspect by running the computer program stored in the memory.

[0009] According to a fifth aspect of an embodiment of the present application, there is provided a computer storage medium on which a computer program is stored, and when the program is executed by a processor, any one of the methods provided in the first aspect is implemented.

[0010] The AB testing solution provided in the embodiment of the present application can modify the business system to include each business logic to be tested and normal business logic based on at least two business logics to be tested. The business logic to be tested is configured with test status information for characterizing whether the business logic is the AB test business logic, and the normal business logic is configured with effective status information for characterizing whether the business logic is effective. In response to receiving a traffic request, the traffic request is divided into test traffic and normal traffic, and the test traffic and normal traffic are allocated to the modified business system, and then the normal traffic is controlled to read the effective status information, and execute the normal business logic based on the reading result, and the test traffic is controlled to read the test status information, and execute the business logic to be tested based on the reading result to perform AB testing. Therefore, the AB testing scheme in the embodiment of the present application does not need to design a testing system independent of the business system. It only needs to make minor modifications to the existing business system based on at least two business logics to be tested, so that AB testing can be implemented in the same system without affecting the existing business. There is no need to make many changes to the entire back-end system, which can effectively reduce the difficulty and cost of AB testing and improve the efficiency of AB testing. At the same time, when the AB testing scheme in the embodiment of the present application performs AB testing, the test traffic only reads and executes the business logic to be tested that is configured with test status information, so the test traffic will not affect the normal traffic to execute the normal business logic. Therefore, performing AB testing in this way will not affect the normal business logic of the business system, and the normal operation of the business system can be guaranteed during the AB testing phase. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0012] Figure 1 This is a schematic diagram of an exemplary AB testing system in an embodiment of the present application.

[0013] Figure 2 The figure is a flowchart of an exemplary AB testing method in an embodiment of the present application.

[0014] Figure 3 This is a schematic diagram of an exemplary AB testing device in an embodiment of the present application.

[0015] Figure 4 A schematic diagram of an exemplary electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0016] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field should belong to the scope of protection of the embodiments of the present application. It should be understood that the various steps recorded in the method implementation mode of the present disclosure can be performed in different orders and / or performed in parallel. In addition, the method implementation mode may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0017] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0018] First, the AB testing system of the embodiment of the present application is described. Figure 1 An exemplary AB testing system applicable to the embodiment of the present application is shown. Figure 1 As shown, the AB test system 100 may include a traffic diversion strategy unit 102 and a business system unit 104. It should be noted that the solution of the embodiment of the present application may be completed by the traffic diversion strategy unit 102 and the business system unit 104 in collaboration.

[0019] The above-mentioned diversion strategy unit 102 can be hardware or software. When the diversion strategy unit 102 is hardware, it can be various electronic devices that support traffic request diversion, including but not limited to computers, servers, etc. When the diversion strategy unit 102 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here. After the traffic request arrives, the diversion strategy unit 102 can divide the traffic request into test traffic and normal traffic.

[0020] Similarly, the business system unit 104 can be hardware or software. When the business system unit 104 is hardware, it can be various electronic devices that support traffic request diversion, including but not limited to computers, servers, etc. When the business system unit 104 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here. For at least two business logics to be tested, the business system unit can modify the business system so that it includes the business logic to be tested and the normal business logic. Here, the business logic to be tested and the normal business logic can be distinguished by the configured test status information and effective status information. The business system unit 104 and the diversion strategy unit 104 can correspond, so that the test traffic and normal traffic divided by the diversion strategy unit 102 can both enter the business system. The business system unit 104 can allocate normal traffic and test traffic to the modified business system respectively, so that the normal traffic can execute the normal business logic through the effective status information, and the test traffic can execute the business logic to be tested through the test status information.

[0021] It is understandable that the business system unit 104 and the diversion strategy unit 102 are the same hardware that can realize the functions of both. Alternatively, the business system unit 104 and the diversion strategy unit 102 can also be different software set in the same hardware, for example, the business system unit 104 and the diversion strategy unit 102 can be set in the same server or server cluster.

[0022] The user end may include a user device. Typically, the user device may include any one or more user devices that interact with a user, etc. As an optional example, in some embodiments, multiple user devices may send a traffic request. The traffic request may include traffic input by multiple user devices. In some embodiments, the user device may include any suitable type of device. For example, in some optional embodiments, the user device may include a mobile device, a tablet computer, a laptop computer, a desktop computer, a game console, a media player, a vehicle system, and / or any other suitable type of user device.

[0023] The AB test system disclosed in the above-mentioned embodiment of the present application can divide the traffic request from the user end into test traffic and normal traffic by the diversion strategy unit, and the business system unit can modify the existing business system for the business logic to be tested, and add test status information to the business system. That is, by configuring the business logic to be tested with test status information that is different from the effective state of the normal business logic, the existing business system can be modified to be suitable for both existing normal business and AB testing. The solution disclosed in the present application only requires minor modifications to the existing business system to take into account the normal and independent operation of normal business and AB testing, without the need to build an independent AB testing architecture.

[0024] Figure 2 A flowchart of the steps of an AB testing method according to an embodiment of the present application. According to a first aspect of the embodiment of the present application, an AB testing method is provided, referring to Figure 2 The AB testing method includes steps S202, S204, S206 and S208, specifically:

[0025] S202: Based on at least two business logics to be tested, modify the business system to include the business logics to be tested and normal business logic.

[0026] In an embodiment of the present application, the business logic may be software logic data that implements the business functions of the business system. After executing the business logic, the corresponding business functions of the business system may be implemented. Correspondingly, the normal business logic may be normal business logic in the business system that does not need to be tested, usually the original conventional business logic in the business system. Alternatively, the above-mentioned normal business logic may be understood as non-test business logic in the business system. The business logic to be tested is the business logic to be AB tested in the business system. In some optional examples, the business system may be a back-end business logic management system of a user device set up in a back-end server. It should be noted that the name does not have any limitation on the embodiments of the present application.

[0027] It is understandable that when it is determined that AB testing is required, if a test instruction is received, for at least two business logics to be tested in the AB test, the existing business system can be modified to include the business logic to be tested and the normal business logic, so that the modified business system can be used for both AB testing and normal business execution.

[0028] Generally, business logic can implement specific business functions, and the business functions implemented by different business logics may be different. Here, the business functions implemented by normal business logic and business logic to be tested are not limited, and those skilled in the art can set the specific business functions of normal business logic and business logic to be tested according to actual needs. For example, the business functions implemented by some business logics may be to upgrade the operating system of the user device (such as Android system) from version 1 to version 2; or to upgrade the operating system on the user device (such as Android system) from version 1 to version 3. For another example, the business functions implemented by some business logics may be to implement the front-end style on the user device as style 1. For another example, the business functions implemented by some business logics may be to implement the front-end style on the user device as style 2. For another example, the business functions implemented by some business logics may be to adjust the front-end style on the user device from style 1 to style 2, and so on.

[0029] In some optional embodiments, the business logic to be tested may be configured with test status information for characterizing whether the business logic is an AB test business logic. The test status information may be any type of information, for example, it may be a character identifier configured for the business logic. In an example implementation, the test status information may be set to "ab only", that is, when a business logic is configured with the test status information of "ab only", the business logic may be regarded as the business logic to be tested. Of course, such an example is not intended to be a limitation on the embodiments of the present application, and the test status information may also be selected to be set to any other form of identifier, such as "ab", "AB", "AB only", "AB ONLY", "ab test", etc. For ease of explanation, the following description is based on the test status information being "ab only".

[0030] In some optional embodiments, normal business logic may be configured with effective state information for characterizing whether the business logic is effective. The effective state information may also characterize the online or offline state of the business logic. The effectiveness of the business logic (i.e., the business logic is online) may also be considered as the business logic being executable in the current business system, while the ineffectiveness of the business logic (i.e., the business logic is offline) may be considered as the business logic being not executable in the current business system. The effective state information may be any type of information, such as a character identifier configured for the business logic. In an example implementation, the effective state information may be set to "on" or "off", wherein "on" may characterize the business logic being in an effective state (i.e., an online state), and "off" may characterize the business logic being in an ineffective state (i.e., an offline state). Of course, such an example is not intended to be a limitation on the embodiments of the present application. For ease of explanation, the following description is based on the effective state information being "on" or "off".

[0031] In some optional embodiments, each business logic in the business system may also be assigned a unique data identifier. The data identifier may be a unique ID of the business logic in the business system, which is used for management and viewing of the business logic. The data identifier may be in any form, for example, in one example, it may be set to a combination of an ID and Arabic numerals, i.e., ID1, ID2, ..., IDn, or may be set to another form.

[0032] For example, before the business system is modified in step S202, it is assumed that there are two business logics in the business system (recorded as business logic 1 and business logic 2), and the configuration data identifiers are ID1 and ID2 respectively. Business logic 1 is in an effective state online, and is configured with effective state information of "on". Business logic 2 is in an ineffective state offline, and is configured with effective state information of "off". After normal traffic enters the business system, the effective state information indicating whether the business logic is effective or not can be read, and the business logic in the effective state can be executed. That is, the original two business logics of the business system and their configured state information are:

[0033] ID1 business logic 1 is online (on);

[0034] ID2 business logic 2 is offline (off).

[0035] It should be understood that the above example does not serve as any limitation to the embodiments of the present application. To facilitate the reference to this example below, this example is recorded as "Example 1".

[0036] In some optional embodiments, the business logic to be tested may be the business logic that does not exist in the original business system, so the business logic to be tested can be directly added to the original business system, and the test status information can be configured for the business logic to be tested. Therefore, the optional technical solution disclosed in this embodiment is to add the business logic to be tested on the basis of the original business system, so as to achieve minimal changes to the existing business system to support AB testing.

[0037] For example, as described in "Example 1" above, when AB testing is required, for example, the business logic to be tested can be recorded as business logic 3 and business logic 4, and business logic 3 and business logic 4 do not exist in the original business system. When executing the optional implementation method of step S202 above to modify the business system, the business logic 3 and business logic 4 can be added to the business system, and business logic 3 and business logic 4 are both configured with test status information ab only, so that the business system is modified to include two business logics to be tested (i.e., the added business logics 3 and 4) and two normal business logics (i.e., the original business logics 1 and 2). In addition, the two business logics to be tested are also assigned data identifiers different from ID1 and ID2. For example, the data identifiers assigned to the added business logic 3 and business logic 4 are ID3 and ID4, respectively. That is, after the business system is modified, the status information of each business logic and its configuration in the business system are respectively:

[0038] ID1 business logic 1 is online (on);

[0039] ID2 business logic 2 is offline (off);

[0040] ID3 business logic 3ab only;

[0041] ID4 business logic 4ab only.

[0042] In some optional embodiments, for any business logic to be tested, the business logic to be tested can be added to the business system, and the test status information can be configured for the business logic to be tested. In the embodiment of the present application, by adding each business logic to be tested to the business system (regardless of whether there is a business logic to be tested that is the same as the normal business logic), and configuring the test status information for the business logic to be tested, the modification of the business system is effectively achieved, so that the modified business system includes each business logic to be tested that can be used for testing on the original basis, which is convenient for subsequent AB testing. The scheme disclosed in this embodiment completely separates each business logic to be tested from the normal business logic, thereby avoiding the business logic to be tested from affecting the normal business logic.

[0043] For example, continuing with the above "Example 1", when AB testing is required, for example, the business logic to be tested can be recorded as business logic 1, business logic 3 and business logic 4, where business logic 3 and business logic 4 do not exist in the original business system, and business logic 1 exists in the original business system. When modifying the business system, business logic 1, business logic 3 and business logic 4 can be added to the business system, and business logic 1, business logic 3 and business logic 4 are all configured with test status information ab only, so that the business system is modified to include three business logics to be tested (i.e., the added business logics 1, 3, and 4) and two normal business logics (i.e., the original business logics 1 and 2). In addition, the two business logics to be tested are also assigned data identifiers different from ID1 and ID2. For example, the data identifiers assigned to the added business logic 1, business logic 3 and business logic 4 are ID3, ID4 and ID5 respectively. That is, after the business system is modified, the status information of each business logic and its configuration in the business system are respectively:

[0044] ID1 business logic 1 is online (on);

[0045] ID2 business logic 2 is offline (off);

[0046] ID3 business logic 1ab only;

[0047] ID4 business logic 3ab only;

[0048] ID5 business logic 4ab only.

[0049] It should be understood that the above examples are not intended to limit the embodiments of the present application. From the above description, it can be seen that by adding each business logic to be tested to the business system and configuring test status information for each business logic to be tested, the original business system can be modified effectively without affecting existing businesses.

[0050] In some optional embodiments, in the business system, the configuration information of the business logic can be selected as test status information or effective status information. Therefore, for the normal business logic in the original business system, if the effective status information of the business logic indicates that it is in an ineffective state, and the business logic to be tested also includes the business logic, the configuration information of the business logic can be modified to test status information, so that the business system has the corresponding business logic to be tested. The solution disclosed in this embodiment can further reduce the amount of modification to the business system while allowing the business system to take into account AB testing.

[0051] In some optional embodiments, in the business system, the test status information of the business logic to be tested and the effective status information of the normal business logic can be isolated from each other, so the business logic to be tested and the normal business logic can be isolated from each other in the modified business system. That is, the business logic to be tested cannot choose to configure the effective status information, and the normal business logic cannot choose to configure the test status information. It can be understood that when configuring the business logic to be tested, the business logic to be tested is configured to a state that cannot be modified to whether it is effective in the business system, so that the test status information of the business logic to be tested and the effective status information of the normal business logic are isolated from each other. In this way, when the normal business logic is executed, it can be fundamentally guaranteed that the normal traffic cannot read the business logic to be tested, thereby ensuring that the business logic to be tested used for AB testing will not interfere with the execution of the normal business logic.

[0052] In some optional embodiments, the business logic to be tested may be the business logic that already exists in the original business system, or include the business logic that already exists in the original business system. Specifically, for any business logic to be tested, in response to determining that the business system does not include the business logic to be tested, the business logic to be tested is added to the business system, and the test status information is configured for the business logic to be tested. For any business logic to be tested, in response to determining that the normal business logic of the business system includes the business logic to be tested, the normal business logic that is the same as the business logic to be tested is determined; the test status information is configured for the determined normal business logic, so that the normal business logic can be reused as the business logic to be tested. The scheme disclosed in this embodiment can realize the reuse of the existing normal business logic as the business logic to be tested by adding configuration test status information to the normal business logic for the business logic to be tested that is the same as the normal business logic that already exists in the original business system, so that the business logic supports AB testing and normal business at the same time, so as to facilitate subsequent AB testing. The solution disclosed in this embodiment can add the business logic to be tested that is the same as the existing normal business logic in the business system by adding test status information to the normal business logic, thereby further reducing the degree of modification to the existing business system.

[0053] As an example, let’s continue to explain with the above “Example 1”. Before the business system is modified, there are only normal business logics in the business system that are not configured with the test status information ab only, namely business logic 1 and business logic 2. If the business logic to be tested includes business logic 2 and business logic 3, business logic 3 can be added to the business system and the test status information ab only can be configured for business logic 3, and the test status information ab only can be added to the normal business logic 2, so that the business system is modified to include two business logics to be tested (i.e., the newly added business logic 3 and the reused business logic 2) and two normal business logics (i.e., the original business logics 1 and 2). The newly added business logic 3 is assigned a data identifier different from ID1 and ID2. For example, the data identifier assigned to the newly added business logic 3 is ID3. That is, after the business system is modified, the status information of each business logic and its configuration in the business system are respectively:

[0054] ID1 business logic 1 is online (on);

[0055] ID2 business logic 2 offline (off) / ab only;

[0056] ID3 business logic 3ab only.

[0057] It should be understood that the above example does not serve as any limitation to the embodiments of the present application. For the convenience of citing this example below, the above example is recorded as "Example 2". It can be seen from the above description that when there is a business logic to be tested in the normal business logic, the normal business logic is reused as the business logic to be tested by adding configuration test status information to the normal business logic. When there is no business logic to be tested in the normal business logic, the business logic to be tested is added to the business system and the test status information is configured, so that the business system can be effectively modified based on the business logic that already exists in the original business system.

[0058] It should be noted that the solutions disclosed in the above embodiments can be used in one or more of the solutions in the same AB test, and can be selected according to the actual needs of the AB test. This application does not specifically limit this.

[0059] S204: In response to receiving the traffic request, dividing the traffic request into test traffic and normal traffic, and allocating the test traffic and the normal traffic to the modified service system.

[0060] Optionally, the traffic request may be sent by multiple user devices, and different users may use multiple user devices to access the service system. The traffic request may include traffic input by multiple user devices. After receiving the traffic request, the traffic request may be divided into test traffic and normal traffic by appropriate division conditions to achieve user diversion, so as to allocate the test traffic and normal traffic to the modified service system, thereby facilitating subsequent AB testing.

[0061] It is understandable that there is no specific limitation on the specific method of dividing the traffic request and allocating the traffic, and those skilled in the art can determine it according to actual needs.

[0062] In some optional embodiments, the division of traffic requests and the allocation of traffic may be achieved through the following sub-steps S2041 to S2043:

[0063] S2041: Divide the traffic request into test traffic and normal traffic, and divide the normal traffic into normal business logic in the business system.

[0064] The traffic request can be divided into test traffic and normal traffic by any division method. For example, the traffic request can be filtered by the test traffic filtering condition to obtain the test traffic and normal traffic. The test traffic filtering condition includes a predetermined test traffic filtering condition bound to a plurality of data identifiers, and the plurality of data identifiers correspond one-to-one to a plurality of business logics to be tested.

[0065] In some optional embodiments, the predetermined test traffic filtering condition includes: a traffic filtering condition for filtering the test traffic from the traffic request based on at least one of a mobile phone number, a traffic percentage, a mobile phone number whitelist, an application version, a region, and a hardware type.

[0066] Based on this, in the embodiment of the present application, by determining the test traffic filtering conditions through predetermined test traffic filtering conditions bound to multiple data identifiers, effective filtering of test traffic from traffic requests can be achieved, thereby effectively dividing traffic requests into test traffic and normal traffic.

[0067] Optionally, the mobile phone number may be the mobile phone number corresponding to each flow in the flow request input into the business system. Test flows are filtered from flow requests through different mobile phone numbers to achieve the division of flow requests, so that normal flows can execute normal business logic, and test flows can execute the business logic to be tested for AB testing. The flow request division achieved by mobile phone numbers may be achieved through certain features of mobile phone numbers. For example, the division may be achieved through the last digits of the mobile phone number. For example, the flow corresponding to the last digits of the mobile phone number 0 to 4 in the flow request may be divided into normal flow; and the flow corresponding to the last digits of the mobile phone number 5 to 9 may be divided into test flow to achieve test flow filtering. For another example, the flow corresponding to the last digits of the mobile phone number in the flow request being an odd number (1, 3, 5, 7, 9) may be divided into normal flow; and the flow corresponding to the last digits of the mobile phone number being an odd number (0, 2, 4, 6, 8) may be divided into test flow to achieve test flow filtering. For another example, instead of dividing the traffic equally according to the last digit of the mobile phone number, the traffic corresponding to the last digit of the mobile phone number 0-5, 7, 9 in the traffic request can be directly divided into normal traffic, and the traffic corresponding to the last digit of the mobile phone number 6, 8 can be divided into test traffic to achieve test traffic filtering. It should be understood that the above examples are not any limitations on the embodiments of the present application.

[0068] Optionally, filtering the test traffic from the traffic request by traffic percentage may refer to pre-allocating traffic percentages to the test traffic and normal traffic, and then filtering the test traffic from the traffic request randomly according to the traffic percentages, so as to divide the traffic request into test traffic and normal traffic. For example, the traffic percentages pre-allocated to the test traffic and normal traffic may be 50% and 50% respectively, and then 50% of the traffic may be randomly taken from the traffic request as the test traffic to achieve test traffic filtering, while the remaining 50% of the traffic may be used as normal traffic. Of course, the traffic percentage here may be set as needed, for example, the normal traffic may be larger than the traffic percentage allocated to the test traffic (e.g., 60% for normal traffic and 40% for test traffic), which is not limited in the embodiments of the present application.

[0069] Optionally, the mobile phone number whitelist may be a whitelist of mobile phone numbers corresponding to the traffic that is allowed to perform AB testing. The mobile phone number whitelist may be pre-set. For example, before the AB test is required, a batch of mobile phone numbers may be determined and included in the mobile phone number whitelist. For example, a batch of user mobile phone numbers may be determined by user registration and included in the mobile phone number whitelist. The test traffic is filtered from the traffic request through the mobile phone number whitelist to achieve the division of the traffic request, which may refer to dividing the traffic corresponding to the mobile phone number in the mobile phone number whitelist in the traffic request input to the business system into the test traffic, and dividing the traffic corresponding to the mobile phone number outside the mobile phone number whitelist into normal traffic. For example, if there are traffic corresponding to 4 mobile phone numbers in the traffic request, namely mobile phone numbers a1, a2, a3, and a4, and there are a3 and a4 in the mobile phone number whitelist, the traffic corresponding to mobile phone numbers a1 and a2 is divided into normal traffic, and the traffic corresponding to mobile phone numbers a3 and a4 is divided into test traffic to achieve test traffic filtering. It should be understood that the above examples are not any limitations on the embodiments of the present application.

[0070] Optionally, the application version can be the version information of the application corresponding to each flow in the flow request input to the business system, such as the version number of the application. Since the flow request input by the user device can generally be implemented through the corresponding application, different flows in the flow request can carry the version information of different applications, and then the test flow can be filtered from the flow request by the application version to achieve the division of the flow request, so that normal flow can execute normal business logic, and test flow can execute the business logic to be tested for AB testing. For example, if the version information of the application corresponding to each flow in the flow request is V1, V2, V3, and V4, respectively, the flow corresponding to the application with version information V1 and V2 can be divided into normal flow, and the flow corresponding to the application with version information V3 and V4 can be divided into test flow to achieve test flow filtering. It should be understood that the above examples are not any limitations on the embodiments of the present application.

[0071] Optionally, the region can be the region to which each flow in the flow request input into the business system belongs, such as a domestic province. The domestic province can be determined by the place of ownership of the mobile phone number corresponding to the flow. The test flow can be filtered from the flow request by different domestic provinces to realize the division of the flow request, so that normal flow can execute normal business logic, and it is convenient for the test flow to execute the business logic to be tested for AB testing. For example, if the domestic provinces to which each flow in the flow request belongs are SF1, SF2, SF3, and SF4, respectively, the flow corresponding to the domestic provinces SF1 and SF2 can be divided into normal flow, and the flow corresponding to the domestic provinces SF3 and SF4 can be divided into test flow to realize test flow filtering. It should be understood that the above examples are not any limitations on the embodiments of the present application.

[0072] Optionally, the hardware type can be the hardware type of the user device corresponding to each flow of the input flow request. For example, the hardware type can include mobile phones, computers, smart glasses, etc. Different versions of the same hardware device can also be regarded as different hardware types (for example, taking smart glasses as an example, version 1.0 of smart glasses and their upgraded version 2.0 of smart glasses can be regarded as different hardware types). Taking version 1.0 of smart glasses and version 2.0 of smart glasses as examples, the flow corresponding to version 1.0 of smart glasses can be divided into normal flow, and the flow corresponding to version 2.0 of smart glasses can be divided into test flow to achieve test flow filtering. It should be understood that the above examples are not any limitations on the embodiments of the present application.

[0073] It should be understood that the above-mentioned mobile phone numbers, traffic percentages, mobile phone number whitelists, application versions, regions, hardware types, etc. can be used in any suitable combination as needed to form a reasonable predetermined test traffic filtering condition, and generate reasonable test traffic filtering conditions to filter the test traffic from the traffic request and realize the division of the traffic request. This is not limited in the embodiments of the present application. It should be understood that in the embodiments of the present application, the test traffic is filtered from the traffic request by at least one of the mobile phone number, traffic percentage, mobile phone number whitelist, application version, region (such as a domestic province), and hardware type, which is easy to realize multi-level diversion of the traffic request input to the business system, and it is also easy to realize the mutual nesting of orthogonal and mutually exclusive relationships of the traffic when diverting the traffic request, which is convenient for improving the effect of AB testing through the filtered test traffic.

[0074] In some optional embodiments, after the traffic request is divided into test traffic and normal traffic, the normal traffic can be divided into the normal business logic of the business system, so as to control the normal traffic to read the effective status information in the subsequent step S206, and execute the normal business logic based on the reading result.

[0075] S2042: In response to receiving the test traffic, determine the target service logic to be tested according to the test traffic filtering condition and the binding relationship between the multiple data identifiers.

[0076] As mentioned above, the test traffic filtering condition includes a predetermined test traffic filtering condition bound to a plurality of data identifiers. The plurality of data identifiers correspond one-to-one to a plurality of business logics to be tested, respectively. Referring to the aforementioned step S202, it can be seen that in the embodiment of the present application, a different data identifier can be assigned to each business logic. Since the plurality of business logics to be tested of the business system are respectively configured with different data identifiers, the plurality of data identifiers can be bound to the predetermined test traffic filtering condition to obtain the test traffic filtering condition. Further in sub-step S2042, after receiving the test traffic separated from the traffic request, the plurality of data identifiers bound to the test traffic filtering condition can be determined, and the plurality of target business logics to be tested corresponding to the plurality of data identifiers can be determined.

[0077] For ease of understanding, taking the aforementioned "Example 2" as an example, the data identifiers of the two business logics to be tested (i.e., the newly added business logic 3 and the reused business logic 2 in Example 2) are ID3 and ID2. Therefore, the preset test traffic filtering conditions can be bound to ID3 and ID2 to obtain the test traffic filtering conditions. After the traffic request is divided into test traffic and normal traffic in sub-step S2041, the two target business logics to be tested can be determined from the business system by identifying the data identifiers ID3 and ID2.

[0078] S2043: Divide the received test traffic into target business logic to be tested in the business system.

[0079] After determining the target business logic to be tested, the test traffic can be divided into the target business logic to be tested in the business system to facilitate subsequent AB testing.

[0080] Based on this, based on the optional implementation of the above sub-steps S2041 to S2043, the traffic request can be effectively divided into test traffic and normal traffic, and the test traffic can be divided into the target business logic to be tested in the modified business system, the test status information is read, and then the target business logic to be tested is executed. This ensures that even if the target business logic to be tested and the normal business logic are in the same business system, the target business logic to be tested can only take effect in the AB test (because it has no effective status information) and will not affect normal business.

[0081] S206: Control normal traffic to read the validity status information, and execute normal business logic based on the reading result.

[0082] After allocating normal traffic to the modified business system, the backend business system itself can make logical judgments, control normal traffic to read the effective status information of each normal business logic configuration, and execute normal business logic based on the reading results to realize the functions of the normal business system.

[0083] Specifically, in step S206, normal traffic may be controlled to read the effective status information of each normal business logic configuration. For each normal business logic, if the effective status information of the normal business logic is read and it is determined that the normal business logic is in an effective state, the normal traffic is controlled to execute the effective normal business logic. If the effective status information of the normal business logic is read to indicate that the normal business logic is in an ineffective state, the normal traffic is controlled to ignore the normal business logic and no longer execute the normal business logic.

[0084] For ease of understanding, taking the aforementioned "Example 2" as an example, the two normal business logics (i.e., the existing business logic 1 and business logic 2) are configured with data identifiers ID1 and ID2 respectively. Among them, the effective status information configured for business logic 1 is online (on), that is, it is in an effective state, and the effective status information configured for business logic 2 is offline (off), that is, it is in an ineffective state. Therefore, normal traffic can be controlled to read the effective status information of business logic 1 with data identifier ID1 and business logic 2 with data identifier ID2, and only execute business logic 1 in an effective state to realize the functions of the normal business system.

[0085] S208: Control the test traffic to read the test status information, and execute the service logic to be tested to perform AB testing based on the reading result.

[0086] After the test traffic is allocated to the modified business system, the test traffic can be controlled to read the test status information of the business logic configuration to be tested, and the business logic to be tested can be executed to perform AB testing based on the reading result.

[0087] Based on the optional implementation methods of steps S202 to S208 above, the AB testing scheme in the embodiment of the present application does not need to design a test system independent of the business system. It only needs to make minor modifications to the existing business system based on at least two business logics to be tested, so that AB testing can be implemented in the same system without affecting the existing business. There is no need to make many changes to the entire back-end system, which can effectively reduce the difficulty and cost of AB testing and improve the efficiency of AB testing. At the same time, when the AB testing scheme in the embodiment of the present application performs AB testing, the test traffic only reads and executes the business logic to be tested that is configured with test status information, so the test traffic will not affect the normal traffic to execute the normal business logic. Therefore, performing AB testing in this way will not affect the normal business logic of the business system, and the normal operation of the business system can be guaranteed during the AB testing phase.

[0088] Optionally, in step S208, the test traffic can be divided into multiple parts, and the multiple parts of the test traffic can be controlled to read the test status information of multiple business logics to be tested, and the multiple parts of the test traffic can execute different business logics to be tested based on the reading results, thereby realizing AB testing.

[0089] In some optional embodiments, the test traffic executes each service logic to be tested, which can be implemented by the following sub-steps S208A1 and S208A2:

[0090] S208A1: Divide the test traffic into at least two groups of target test traffic according to preset conditions.

[0091] The test traffic is divided into at least two groups of target test traffic according to preset conditions, so that different groups of target test traffic execute different business logics to be tested to perform AB testing.

[0092] The preset conditions can be preset as needed, and are not specifically limited in the embodiments of the present application. For example, the preset condition can be a condition for dividing the test traffic by at least one of mobile phone number, traffic percentage, mobile phone number whitelist, application version, region, and hardware type. Mobile phone number, traffic percentage, mobile phone number whitelist, application version, region, and hardware type have been introduced in the previous text, and you can refer to the previous text for understanding, so I will not repeat them here. The difference between here and the previous text is that the previous text filters the test traffic in the traffic request to achieve the division of the traffic request, while here the test traffic is divided.

[0093] For ease of understanding, taking the example of "dividing the traffic corresponding to the last digits of the mobile phone number 6 and 8 as test traffic to achieve test traffic filtering" in the previous sub-step S2041 as an example, the preset condition can be: dividing the test traffic with the last digit of the mobile phone number 6 into the first group of target test traffic, and dividing the test traffic with the last digit of the mobile phone number 8 into the second group of target test traffic, thereby obtaining two groups of target test traffic, so as to facilitate subsequent AB testing. For another example, taking the example of "randomly taking 50% of the traffic from the traffic request as test traffic to achieve test traffic filtering" in the previous sub-step S2041 as an example, the preset condition can be: dividing 50% of the test traffic into the first group of target test traffic, and dividing the other 50% of the test traffic into the second group of target test traffic, thereby obtaining two groups of target test traffic, so as to facilitate subsequent AB testing. The rest of the cases can be inferred by analogy and are not limited here. It should be understood that the above two examples do not serve as any limitation to the embodiments of the present application.

[0094] S208A2: For each group of target test traffic in at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with test status information, and execute the business logic to be tested to perform AB testing.

[0095] Optionally, in sub-step S208A2, each group of target test traffic may be bound to a data identifier of the business logic to be tested, and different target test traffic may be bound to different data identifiers of the business logic to be tested.

[0096] Afterwards, each group of target test traffic can be controlled to read the business logic to be tested configured with the data identifier according to the data identifier bound thereto, so as to execute the business logic to be tested, thereby performing AB testing.

[0097] For ease of understanding, take sub-step S208A1 "dividing the test traffic with the last digit of the mobile phone number as 6 into the first group of target test traffic, and dividing the test traffic with the last digit of the mobile phone number as 8 into the second group of target test traffic" and combine it with the above-mentioned "Example 2" as an example, in which the data identifiers of the two business logics to be tested (i.e., the newly added business logic 3 and the reused business logic 2 in Example 2) are ID3 and ID2. The test traffic with the last digit of the mobile phone number as 6 can be bound to the data identifier of ID3, and the test traffic with the last digit of the mobile phone number as 8 can be bound to the data identifier of ID2. After that, the first group of target test traffic can be controlled, and according to the bound data identifier ID3, the first business logic to be tested corresponding to "ID3" and configured with the test status information ab only can be directly read and executed, that is, the newly added business logic 3 can be read and executed; the second group of target test traffic can be controlled, and according to the bound data identifier ID2, the second business logic to be tested corresponding to "ID2" and configured with the test status information ab only can be directly read and executed, that is, the reused business logic 2 can be read and executed. It can be understood that, in combination with the normal traffic to execute the normal business logic (data identifiers are ID1 and ID2), this example can be implemented as follows:

[0098] ① The test traffic with the last digit of the mobile phone number being 6 is directly read to call the service logic to be tested corresponding to "ID3" and configured with the test status information ab only (i.e. the newly added service logic 3);

[0099] ② The test traffic with the last digit of the mobile phone number being 8 is directly read to call the service logic to be tested corresponding to "ID2" and configured with the test status information ab only (ie, the reused service logic 2);

[0100] ③ Normal traffic with the last digit of the mobile phone number being 0-5, 7, or 9 enters the business backend system normally, performs logical judgment on the backend business system itself, reads the effective status information of each normal business logic, and executes the normal business logic with data identifier ID1 that is in effective status (online), and does not execute the normal business logic with data identifier ID2 that is in ineffective status.

[0101] It should be understood that other similar situations can be understood by analogy with the above examples, and will not be described in detail here. In addition, the above examples are not intended to limit the embodiments of the present application.

[0102] Based on this, in the embodiment of the present application, through the optional implementation of the above sub-steps S208A1 to S208A2, at least two groups of target test traffic of the test traffic can be effectively made to execute different business logics to be tested, so as to realize AB testing. Moreover, the execution of normal business logic will not be affected when performing AB testing, and the test traffic will not affect the execution of normal business logic by normal traffic. Therefore, such AB testing will not affect the normal business of the business system, and the normal operation of the business system can be guaranteed during the AB testing stage. At the same time, there is no need to add a test system independent of the business system for AB testing. Only minor modifications to the business system based on at least two business logics to be tested are required to effectively realize AB testing in the business system. Therefore, there is no need to make more changes to the entire back-end system, which can effectively reduce the difficulty and cost of AB testing and improve the efficiency of AB testing.

[0103] The AB testing solution in the embodiment of the present application is compatible with AB testing in various scenarios, such as AB testing of only the backend business system, AB testing of only the frontend style, and AB testing of the frontend and backend linkage, and has a wide range of applications. For AB testing of only the frontend style, this solution can achieve the effect of allowing different users to see different frontend styles, so as to facilitate analysis and obtain test results.

[0104] For AB testing of only front-end styles, in some optional embodiments, the AB testing method further includes: establishing multiple key-value pairs in one-to-one correspondence between at least two business logics to be tested and multiple front-end styles that need to be AB tested.

[0105] Optionally, you can use dictionaries to establish key-value pairs in business systems. Dictionaries are a data type that stores one-to-one correspondences with directional relationships and are often used to process associated data. It is a typical mapping type. Mapping refers to the correspondence between two elements, such two elements are key and value. In the dictionary type, a key and a value constitute a key-value pair. A key-value pair is an element in the dictionary, and its function is to access the value of the dictionary through the dictionary key.

[0106] In some optional embodiments, the key of the dictionary can be used to configure the business logic to be tested of each front-end style (here, it can refer to the software logic code (UI code) that implements the corresponding front-end style), and the front-end style is used as the value of the dictionary to form a key-value pair in the form of "business logic to be tested-front-end style". All front-end styles that need to be AB tested need to form a key-value pair with the corresponding business logic to be tested.

[0107] As an example, the front-end style can be the button position, button color and other styles in the front-end page of the user device. For the convenience of the following description, two examples of front-end styles are given here: front-end style 1—yellow button and located in the middle of the front-end page; front-end style 2—red button and located at the bottom of the front-end page.

[0108] Let's take "Example 2" in the previous article as an example. The two business logics to be tested (i.e., the newly added business logic 3 and the reused business logic 2 in Example 2) are configured with data identifiers ID3 and ID2 respectively. Then the business logic to be tested with data identifier ID3 can be combined with front-end style 1 to form key-value pair 1, and the business logic to be tested with data identifier ID2 can be combined with front-end style 2 to form key-value pair 2. Two key-value pairs are obtained, which facilitates AB testing in the following steps.

[0109] On the basis of establishing multiple key-value pairs, optionally, the test traffic executing each service logic to be tested can be implemented by the following sub-steps S208B1 and S208B2:

[0110] S208B1: Divide the test traffic into at least two groups of target test traffic according to preset conditions.

[0111] This sub-step S208B1 is similar to the sub-step S208A1 mentioned above, and can be understood with reference to the above sub-step S208A1, and will not be described in detail here.

[0112] S208B2: For each group of target test traffic in at least two groups of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with test status information according to the data identifier corresponding to the group of target test traffic, and determine the front-end style that constitutes the key-value pair with the business logic to be tested to perform AB testing.

[0113] Optionally, in sub-step S208B2, each group of target test traffic may be bound to a data identifier of the business logic to be tested, and different target test traffic may be bound to different data identifiers of the business logic to be tested.

[0114] Afterwards, each group of target test traffic can be controlled, and according to the data identifier bound to it, the business logic to be tested configured with the data identifier can be read, and the front-end style that constitutes the key-value pair with the business logic to be tested can be determined, so as to perform AB testing.

[0115] For ease of understanding, the above example of "dividing the test traffic with the last digit of the mobile phone number as 6 into the first group of target test traffic, and dividing the test traffic with the last digit of the mobile phone number as 8 into the second group of target test traffic" is used as an example, and combined with the above "Example 2", "combining the business logic to be tested with data identifier ID3 and front-end style 1 into key-value pair 1, and combining the business logic to be tested with data identifier ID2 and front-end style 2 into key-value pair 2" is used as an example, in which the data identifiers of the two business logics to be tested (i.e., the newly added business logic 3 and the reused business logic 2 in Example 2) are ID3 and ID2. The test traffic with the last digit of the mobile phone number as 6 can be bound to the data identifier of ID3, and the test traffic with the last digit of the mobile phone number as 8 can be bound to the data identifier of ID2. After that, the first group of target test traffic can be controlled, and according to the bound data identifier ID3, the first business logic to be tested corresponding to "ID3" and configured with the test status information ab only can be directly read, and the front-end style of the key-value pair 1 composed of the first business logic to be tested (ID3) can be determined, and the business logic to be tested can be executed to implement the front-end style 1 on the front-end page of the user device, so that the yellow button is placed in the middle of the front-end page; the second group of target test traffic can be controlled, and according to the bound data identifier ID2, the second business logic to be tested corresponding to "ID2" and configured with the test status information ab only can be directly read, and the front-end style of the key-value pair 2 composed of the second business logic to be tested (ID2) can be determined, and the business logic to be tested can be executed to implement the front-end style 2 on the front-end page of the user device, so that the red button is located at the bottom of the front-end page. In the whole process, the normal business logic in the effective state (online (on)) is executed without affecting the normal traffic, and the normal business function is realized. It should be understood that other similar situations can be understood by analogy according to the above examples, and will not be repeated here. Furthermore, the above examples are not intended to limit the embodiments of the present application.

[0116] Based on this, in the embodiment of the present application, through the optional implementation of the above sub-steps S208B1 to S208B2, multiple key-value pairs can be established by one-to-one correspondence between at least two business logics to be tested and multiple front-end styles that need to be tested for AB testing, and through the established key-value pairs, at least two groups of target test traffic of the test traffic can effectively read the corresponding business logic to be tested, and determine the front-end style that constitutes the key-value pair with the business logic to be tested, so as to realize the AB test of the front-end style. In addition, the execution of the normal business logic is not affected when performing the AB test of the front-end style, and the test traffic will not affect the execution of the normal business logic by the normal traffic, so that the AB test will not affect the normal business logic of the business system, and the normal operation of the business system can be guaranteed during the AB test phase. At the same time, there is no need to add a test system independent of the business system for the AB test of the front-end style. Only a small modification of the existing business system based on at least two business logics to be tested can be made, and the AB test of the front-end style can be effectively realized in the business system, so there is no need to make more changes to the entire back-end system, which can effectively reduce the difficulty and cost of the AB test of the front-end style, and improve the efficiency of the AB test.

[0117] It can be understood that the above description of the AB testing method is only an exemplary description of the embodiments of the present application, and does not constitute any limitation to the embodiments of the present application.

[0118] To sum up, the solution provided in the embodiments of the present application, the AB testing solution in the embodiments of the present application does not need to design a test system independent of the business system. It only needs to make minor modifications to the existing business system based on at least two business logics to be tested, so that AB testing can be implemented in the same system without affecting the existing business. There is no need to make many changes to the entire back-end system, which can effectively reduce the difficulty and cost of AB testing and improve the efficiency of AB testing. At the same time, when the AB testing solution in the embodiments of the present application performs AB testing, the test traffic only reads and executes the business logic to be tested configured with test status information, so the test traffic will not affect the normal traffic to execute the normal business logic. Therefore, performing AB testing in this way will not affect the normal business logic of the business system, and the normal operation of the business system can be guaranteed during the AB testing phase.

[0119] According to a second aspect of the application embodiment, an AB testing device is provided. Figure 3 As shown, the AB testing device 300 includes:

[0120] A modification module 302 is used to modify the business system to include the business logics to be tested and the normal business logic based on at least two business logics to be tested, wherein the business logic to be tested is configured with test status information for characterizing whether the business logic is the AB test business logic, and the normal business logic is configured with validity status information for characterizing whether the business logic is valid;

[0121] A division module 304, configured to divide the traffic request into test traffic and normal traffic in response to receiving the traffic request, and allocate the test traffic and the normal traffic to the modified business system;

[0122] The first control module 306 is used to control normal traffic to read the validity status information and execute normal business logic based on the reading result;

[0123] The second control module 308 is used to control the test traffic to read the test status information, and execute the service logic to be tested to perform AB testing based on the reading result.

[0124] In some optional embodiments, the division module 304 is specifically used to: divide the traffic request into test traffic and normal traffic, and divide the normal traffic into the normal business logic in the business system; in response to receiving the test traffic, determine the target business logic to be tested according to the binding relationship between the test traffic filtering condition and the multiple data identifiers, wherein the test traffic filtering condition includes a predetermined test traffic filtering condition bound to the multiple data identifiers, and the multiple data identifiers correspond one-to-one to the multiple business logics to be tested; and divide the received test traffic into the target business logic to be tested in the business system.

[0125] In some optional embodiments, the modification module 302 is specifically used to: for any business logic to be tested, in response to determining that the business system does not include the business logic to be tested, add the business logic to be tested to the business system, and configure test status information for the business logic to be tested; for any business logic to be tested, in response to determining that the normal business logic of the business system includes the business logic to be tested, determine the normal business logic that is the same as the business logic to be tested; configure test status information for the determined normal business logic so that the normal business logic can be reused as the business logic to be tested.

[0126] In some optional embodiments, the modification module 302 is specifically used to: for any business logic to be tested, add the business logic to be tested in the business system, and configure test status information for the business logic to be tested.

[0127] In some optional embodiments, in the business system, the test status information of the business logic to be tested and the validity status information of the normal business logic are isolated from each other, so that the business logic to be tested and the normal business logic are isolated from each other in the modified business system.

[0128] In some optional embodiments, the second control module 308 is specifically used to: divide the test traffic into at least two groups of target test traffic according to preset conditions; for each group of target test traffic in the at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with test status information, and execute the business logic to be tested to perform AB testing.

[0129] In some optional embodiments, the predetermined test traffic filtering conditions include: traffic filtering conditions for filtering test traffic from traffic requests based on at least one of mobile phone number, traffic percentage, mobile phone number whitelist, application version, region, and hardware type.

[0130] In some optional embodiments, the AB testing device 300 is also used to: establish multiple key-value pairs corresponding one-to-one between at least two business logics to be tested and multiple front-end styles that need to perform AB testing; the second control module 308 is specifically used to: divide the test traffic into at least two groups of target test traffic according to preset conditions; for each group of target test traffic in the at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with test status information, and determine the front-end style that constitutes the key-value pair with the business logic to be tested to perform AB testing.

[0131] The solution provided in the embodiments of the present application, the AB testing solution in the embodiments of the present application does not need to design a test system independent of the business system. It only needs to make minor modifications to the existing business system based on at least two business logics to be tested, so that AB testing can be implemented in the same system without affecting the existing business. There is no need to make many changes to the entire back-end system, which can effectively reduce the difficulty and cost of AB testing and improve the efficiency of AB testing. At the same time, when the AB testing solution in the embodiments of the present application performs AB testing, the test traffic only reads and executes the business logic to be tested configured with test status information, so the test traffic will not affect the normal traffic to execute the normal business logic. Therefore, performing AB testing in this way will not affect the normal business logic of the business system, and the normal operation of the business system can be guaranteed during the AB testing phase.

[0132] The AB test device 300 provided in the second aspect of the embodiment of the present application is based on the same inventive concept as the AB test method provided in the first aspect above, corresponds to the corresponding AB test method in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding AB test method embodiments, so it will not be repeated here. In addition, the implementation of each module in the AB test device 300 of this embodiment can refer to the description of the corresponding parts in the aforementioned AB test method embodiments, and will not be repeated here.

[0133] According to a third aspect of the embodiments of the present application, an AB testing system is provided. Figure 1 As shown, the AB test system 100 includes: a diversion strategy unit 102 and a business system unit 104; the diversion strategy unit 102 is configured to divide the traffic request received from the user end to obtain test traffic and normal traffic; the business system unit 104 is configured to modify the business system to include each business logic to be tested and normal business logic based on at least two business logics to be tested, wherein the business logic to be tested is configured with test status information for characterizing whether the business logic is the AB test business logic, and the normal business logic is configured with effective status information for characterizing whether the business logic is effective; the business system unit 104 corresponds to the diversion strategy unit 102, receives the test traffic and the normal traffic, so that the normal traffic reads the effective status information, and executes the normal business logic based on the reading result, and so that the test traffic reads the test status information, and executes the business logic to be tested based on the reading result to perform AB testing.

[0134] In some optional embodiments, in the AB test system, the diversion strategy unit 102 is specifically used to: divide the traffic request into test traffic and normal traffic, and divide the normal traffic into the normal business logic in the business system; in response to receiving the test traffic, determine the target business logic to be tested according to the binding relationship between the test traffic filtering condition and the multiple data identifiers, wherein the test traffic filtering condition includes a predetermined test traffic filtering condition bound to the multiple data identifiers, and the multiple data identifiers correspond one-to-one to the multiple business logics to be tested; and divide the received test traffic into the target business logic to be tested in the business system.

[0135] In some optional embodiments, in the AB test system, the business system unit 104 is specifically used to: for any business logic to be tested, in response to determining that the business system does not include the business logic to be tested, add the business logic to be tested to the business system, and configure test status information for the business logic to be tested; for any business logic to be tested, in response to determining that the normal business logic of the business system includes the business logic to be tested, determine the normal business logic that is the same as the business logic to be tested; configure test status information for the determined normal business logic to multiplex the normal business logic as the business logic to be tested.

[0136] In some optional embodiments, in the AB test system, the business system unit 104 is specifically used to: for any business logic to be tested, add the business logic to be tested in the business system, and configure test status information for the business logic to be tested.

[0137] In some optional embodiments, in an AB test system, in the system, the test status information of the business logic to be tested and the effective status information of the normal business logic are isolated from each other, so that the business logic to be tested and the normal business logic are isolated from each other in the modified business system.

[0138] In some optional embodiments, in the AB test system, the business system unit 104 is specifically used to: divide the test traffic into at least two groups of target test traffic according to preset conditions; for each group of target test traffic in the at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with test status information, and execute the business logic to be tested to perform AB testing.

[0139] In some optional embodiments, the predetermined test traffic filtering conditions include: traffic filtering conditions for filtering test traffic from traffic requests based on at least one of mobile phone number, traffic percentage, mobile phone number whitelist, application version, region, and hardware type.

[0140] In some optional embodiments, in the AB testing system, the business system unit 104 is also used to: establish multiple key-value pairs corresponding one-to-one between at least two business logics to be tested and multiple front-end styles that need to perform AB testing; and the business system unit 104 is specifically used to: divide the test traffic into at least two groups of target test traffic according to preset conditions; for each group of target test traffic in the at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with test status information, and determine the front-end style that constitutes the key-value pair with the business logic to be tested, so as to perform AB testing.

[0141] Before the introduction of the first aspect, the AB testing system 100 has been described, and the AB testing system provided in the third aspect of the embodiment of the present application and the AB testing method provided in the first aspect of the foregoing text are based on the same inventive concept, correspond to the corresponding AB testing methods in the aforementioned multiple method embodiments, and have the beneficial effects of the corresponding AB testing method embodiments, so they will not be repeated here.

[0142] According to a fourth aspect of the embodiments of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the method of the first aspect. Figure 4 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.

[0143] like Figure 4 As shown, the electronic device 400 may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0144] in:

[0145] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .

[0146] The communication interface 404 is used to communicate with other electronic devices or servers.

[0147] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned AB testing method embodiment.

[0148] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0149] The processor 402 may be a CPU, a GPU (Graphic Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0150] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0151] The program 410 may include multiple computer instructions. Specifically, the program 410 may enable the processor 402 to execute operations corresponding to the AB testing method described in any of the aforementioned method embodiments through the multiple computer instructions.

[0152] The specific implementation of each step in program 410 can refer to the corresponding description of the corresponding steps and units in the above method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.

[0153] According to the fifth aspect of the embodiments of the present application, the embodiments of the present application further provide a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the AB testing method described in any one of the multiple method embodiments provided in the first aspect is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.

[0154] According to the sixth aspect of the embodiments of the present application, the embodiments of the present application also provide a computer program product, including computer instructions, which instruct a computing device to perform operations corresponding to any AB testing method in the multiple method embodiments provided in the first aspect above.

[0155] The AB testing device 300 / AB testing system 100 / electronic device 400 / computer storage medium / computer program product embodiment in the embodiment of the present application has been described in detail in the aforementioned AB testing method embodiment, so its related contents and beneficial effects can be understood with reference to the aforementioned method embodiment and will not be repeated here.

[0156] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0157] It should be noted that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, and two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application. It should be understood that the various technical features in the technical solutions of the embodiments of the present application can be combined in any appropriate manner.

[0158] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.

[0159] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for specific applications, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0160] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

[0161] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". It should be noted that the concepts of "first", "second", etc. mentioned in the embodiments of the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the embodiments of the present application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the embodiments of the present application.

Claims

1. An AB testing method, characterized in that: include: Based on at least two business logics to be tested, the business system is modified to include the business logics to be tested and normal business logic, wherein the business logic to be tested is configured with test status information for indicating whether the business logic is AB test business logic, and the normal business logic is configured with validity status information for indicating whether the business logic is valid; In response to receiving a traffic request, dividing the traffic request into test traffic and normal traffic, and allocating the test traffic and normal traffic to the modified service system; Controlling the normal traffic to read the effectiveness status information, and executing the normal service logic based on the reading result; The test traffic is controlled to read the test status information, and the service logic to be tested is executed to perform AB testing based on the reading result.

2. The method according to claim 1, characterized in that The dividing the traffic request into test traffic and normal traffic, and allocating the test traffic and normal traffic to the modified business system includes: Dividing the traffic request into test traffic and normal traffic, and dividing the normal traffic into normal business logic in the business system; In response to receiving the test traffic, determining the target service logic to be tested according to a binding relationship between the test traffic filtering condition and the plurality of data identifiers, wherein the test traffic filtering condition includes a predetermined test traffic filtering condition bound to the plurality of data identifiers, and the plurality of data identifiers respectively correspond one-to-one to the plurality of service logics to be tested; The received test traffic is divided into target business logic to be tested in the business system.

3. The method according to claim 1, characterized in that The process of modifying the business system based on at least two business logics to be tested to include the business logics to be tested and the normal business logic includes: For any of the business logics to be tested, in response to determining that the business system does not include the business logic to be tested, adding the business logic to be tested to the business system and configuring test status information for the business logic to be tested; For any of the business logics to be tested, in response to determining that the normal business logic of the business system includes the business logic to be tested, determining normal business logic that is the same as the business logic to be tested; Test state information is configured for the determined normal service logic, so that the normal service logic is reused as the service logic to be tested.

4. The method according to claim 1, wherein The process of modifying the business system based on at least two business logics to be tested to include the business logics to be tested and the normal business logic includes: For any of the business logics to be tested, the business logic to be tested is added to the business system, and test status information is configured for the business logic to be tested.

5. The method according to claim 4, characterized in that In the business system, the test status information of the business logic to be tested and the validation status information of the normal business logic are isolated from each other, so that the business logic to be tested and the normal business logic are isolated from each other in the modified business system.

6. The method according to any one of claims 2 to 5, characterized in that The controlling the test traffic to read the test status information, and executing the service logic to be tested to perform AB testing based on the reading result, includes: Dividing the test traffic into at least two groups of target test traffic according to preset conditions; For each group of target test traffic in the at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with the test status information, and execute the business logic to be tested to perform the AB test.

7. The method according to any one of claims 2 to 5, characterized in that The predetermined test traffic filtering condition includes: a traffic filtering condition for filtering the test traffic from the traffic request based on at least one of a mobile phone number, a traffic percentage, a mobile phone number whitelist, an application version, a region, and a hardware type.

8. The method according to any one of claims 2 to 5, characterized in that The method further comprises: Establish multiple key-value pairs corresponding to the at least two business logics to be tested and the multiple front-end styles that need to be AB tested; The controlling the test traffic to read the test status information, and executing the service logic to be tested to perform AB testing based on the reading result, includes: Dividing the test traffic into at least two groups of target test traffic according to preset conditions; For each group of target test traffic in the at least two groups of target test traffic, according to the data identifier corresponding to the group of target test traffic, read the business logic to be tested corresponding to the data identifier and configured with the test status information, and determine the front-end style that constitutes a key-value pair with the business logic to be tested to perform the AB test.

9. An AB testing device, characterized in that: include: A modification module is configured to modify the business system to include the business logic to be tested and normal business logic based on at least two business logics to be tested, wherein the business logic to be tested is configured with test status information for indicating whether the business logic is AB test business logic, and the normal business logic is configured with validation status information for indicating whether the business logic is valid; a dividing module, configured to, in response to receiving a traffic request, divide the traffic request into test traffic and normal traffic, and allocate the test traffic and normal traffic to the modified service system; A first control module is configured to control the normal traffic to read the validity status information and execute the normal service logic based on the reading result; The second control module is used to control the test traffic to read the test status information, and execute the business logic to be tested to perform AB testing based on the reading result.

10. An AB testing system, characterized in that: include: Diversion strategy unit and business system unit; A traffic diversion strategy unit is configured to divide the traffic request received from the user end into test traffic and normal traffic; The business system unit is configured to modify the business system based on at least two business logics to be tested to include the business logics to be tested and normal business logic, wherein the business logic to be tested is configured with test status information for indicating whether the business logic is AB test business logic, and the normal business logic is configured with validation status information for indicating whether the business logic is valid; The business system unit corresponds to the diversion strategy unit, receives the test traffic and normal traffic, so that the normal traffic reads the effective status information and executes the normal business logic based on the reading result, and enables the test traffic to read the test status information and execute the business logic to be tested based on the reading result to perform AB testing.

11. An electronic device, characterized in that: include: A processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 8 by running the computer program stored in the memory.

12. A computer storage medium, characterized in that A computer program is stored thereon, and when the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.