Solution test method and server
AssigneeWuhan Douyu Network Technology Co., Ltd.
InventorRuicheng Wu
Life of this patent
Estimating the term…
Abstract
The embodiments of the present invention disclose a solution test method and a server, applied to the field of computer technology. The method includes: obtaining a pre-generated description file of an IP distribution strategy for an AB test; reading the description file of the IP distribution strategy after determining that the description file of the IP distribution strategy satisfies a preset reading condition; assembling the contents of the description file of the IP distribution strategy into an internal structural body, and sending an access request to a preset access adding strategy interface; and updating the IP distribution strategy. With the embodiments of the present invention, the IP distribution strategy may become effective in real time, and thus the precision of the AB test is improved.
Claims8
A solution test method, applied to a server, the method comprising:
- obtaining a pre-generated description file of an IP distribution strategy for an AB test;
- reading the description file of the IP distribution strategy after determining that the description file of the IP distribution strategy satisfies a preset reading condition;
- assembling the contents of the description file of the IP distribution strategy into an internal structural body, and sending an access request to a preset access adding strategy interface, wherein the access request includes the internal structural body;
- and
- when the access adding strategy interface receives the access request, updating the IP distribution strategy in a memory of the server by using the internal structural body so as to perform the AB test of IP distribution;
- and wherein the description file of the IP distribution strategy is a configuration file in a json format;
- and wherein the assembling the contents of the description file of the IP distribution strategy into an internal structural body comprises:
- reading the configuration file in the json format;
- and
- assigning different fields in the configuration file in the json format to preset various object attributes of the internal structural body.
A server, comprising a processor and a memory stored with program codes, and wherein the program codes, when executed by the processor, cause the processor to implement the following steps:
- obtaining a pre-generated description file of an IP distribution strategy for an AB test;
- reading the description file of the IP distribution strategy after determining that the description file of the IP distribution strategy satisfies a preset reading condition;
- assembling the contents of the description file of the IP distribution strategy into an internal structural body, and sending an access request to a preset access adding strategy interface, wherein the access request includes the internal structural body;
- and
- when the access adding strategy interface receives the access request, updating the IP distribution strategy in a memory of the server by using the internal structural body so as to perform the AB test of IP distribution;
- and wherein the description file of the IP distribution strategy is a configuration file in a json format;
- and wherein the assembling the contents of the description file of the IP distribution strategy into an internal structural body comprises:
- reading the configuration file in the json format;
- and
- assigning different fields in the configuration file in the json format to preset various object attributes of the internal structural body.
Dependencies are inferred from the claim text.