patents.google.com

CN108319554B - Application function testing method, computer readable storage medium and terminal device - Google Patents

  • ️Tue Aug 09 2022
Application function testing method, computer readable storage medium and terminal device Download PDF

Info

Publication number
CN108319554B
CN108319554B CN201810150264.3A CN201810150264A CN108319554B CN 108319554 B CN108319554 B CN 108319554B CN 201810150264 A CN201810150264 A CN 201810150264A CN 108319554 B CN108319554 B CN 108319554B Authority
CN
China
Prior art keywords
configuration file
sampling
comparison
application function
configuration
Prior art date
2018-02-13
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810150264.3A
Other languages
Chinese (zh)
Other versions
CN108319554A (en
Inventor
谢遥
刘哲
张冠星
丘智鉴
姜健华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Pte Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
2018-02-13
Filing date
2018-02-13
Publication date
2022-08-09
2018-02-13 Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
2018-02-13 Priority to CN201810150264.3A priority Critical patent/CN108319554B/en
2018-07-24 Publication of CN108319554A publication Critical patent/CN108319554A/en
2022-08-09 Application granted granted Critical
2022-08-09 Publication of CN108319554B publication Critical patent/CN108319554B/en
Status Active legal-status Critical Current
2038-02-13 Anticipated expiration legal-status Critical

Links

  • 238000012360 testing method Methods 0.000 title claims abstract description 171
  • 238000005070 sampling Methods 0.000 claims abstract description 177
  • 238000010998 test method Methods 0.000 claims abstract 4
  • 230000006870 function Effects 0.000 claims description 127
  • 238000000034 method Methods 0.000 claims description 42
  • 238000012986 modification Methods 0.000 claims description 16
  • 230000004048 modification Effects 0.000 claims description 16
  • 238000004590 computer program Methods 0.000 claims description 11
  • 230000004044 response Effects 0.000 claims 1
  • 238000009877 rendering Methods 0.000 description 16
  • 230000000694 effects Effects 0.000 description 10
  • 238000002474 experimental method Methods 0.000 description 9
  • 238000012545 processing Methods 0.000 description 9
  • 230000000007 visual effect Effects 0.000 description 5
  • 238000010586 diagram Methods 0.000 description 4
  • 238000009825 accumulation Methods 0.000 description 2
  • 238000005034 decoration Methods 0.000 description 2
  • 238000013100 final test Methods 0.000 description 2
  • 238000011990 functional testing Methods 0.000 description 2
  • WWYNJERNGUHSAO-XUDSTZEESA-N (+)-Norgestrel Chemical compound O=C1CC[C@@H]2[C@H]3CC[C@](CC)([C@](CC4)(O)C#C)[C@@H]4[C@@H]3CCC2=C1 WWYNJERNGUHSAO-XUDSTZEESA-N 0.000 description 1
  • 230000002159 abnormal effect Effects 0.000 description 1
  • 230000005856 abnormality Effects 0.000 description 1
  • 230000009286 beneficial effect Effects 0.000 description 1
  • 238000013500 data storage Methods 0.000 description 1
  • 238000013461 design Methods 0.000 description 1
  • 238000005516 engineering process Methods 0.000 description 1
  • 230000010365 information processing Effects 0.000 description 1
  • 239000004973 liquid crystal related substance Substances 0.000 description 1
  • 230000007774 longterm Effects 0.000 description 1
  • 230000003287 optical effect Effects 0.000 description 1
  • 238000012856 packing Methods 0.000 description 1
  • 239000007787 solid Substances 0.000 description 1
  • 238000012795 verification Methods 0.000 description 1

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a test method of an application function, a computer readable storage medium and a terminal device, wherein the test method of the application function comprises the following steps: acquiring a basic configuration file of an application function; acquiring a sampling configuration file and a comparison configuration file of the application function; wherein the comparison configuration file contains comparison information of the sampling configuration content of the sampling configuration file and the base configuration file; modifying the basic configuration file according to the comparison configuration file; and using the application function to acquire the configuration information hit by the application function from the sampling configuration file or the basic configuration file. The invention can be dynamically updated according to the sampling configuration file without downloading the client again, thereby saving the labor and being suitable for large-scale configuration test schemes.

Description

Application function testing method, computer readable storage medium and terminal device

Technical Field

The present invention relates to information processing technologies, and in particular, to a method for testing an application function, a computer-readable storage medium, and a terminal device.

Background

In software products, if a product or a developer needs to adjust an existing product, the adjustment is often implemented by updating a client or submitting a new version to an application store; in the mobile internet era, frequent software updating will generate more bad user experience due to the limitation of the flow and the network speed of the mobile terminal; moreover, mobile ends are increasingly time-critical to the operation, and the effort and time required to set up at an application store is costly.

In the existing solutions, the problem that the product scheme and the operation scheme need to be frequently modified is generally solved through ABtest. As shown in fig. 1, the ABTest is to make two plans (e.g., two pages) for the same target, let a part of users use the plan a, and another part of users use the plan B, and record the user's usage to verify which plan is more consistent with the design. However, in the existing ABTest, experimental contents, experimental schemes and the like need to be made in advance, then developers code the experimental contents, and put the experimental contents on stores, and then the developers code the experimental contents to remove the experimental contents after the experiment is finished. This solution has two main drawbacks:

1. the experimental contents are relatively established and fixed in advance, the relevant experimental codes are fixed, one or more experimental options can be adjusted and fixed after the application store is put on shelf, and more dynamic configuration cannot be made; if new experimental contents exist, new experimental schemes, such as the experimental project one and the experimental project two in fig. 1, need to be customized again, and are not flexible enough.

2. After the experiment is finished, a final scheme is generally determined and other experimental schemes are removed, at this time, the previous experimental codes need to be deleted, otherwise, the codes of the client are more and more bloated along with the accumulation of the experiment, and the code chaos is increased rapidly. However, deleting the experiment code also requires the developer to manually code and modify the experiment code again, which means that the developer needs to go through the processes of writing the experiment code and deleting the relevant experiment code after the experiment is finished every time the experiment is put on shelf, and the workload of the developer is greatly increased.

Disclosure of Invention

The object of the present invention is to solve at least one of the above-mentioned technical drawbacks, and in particular to solve the problem of the experimental solutions being inflexible to modifications.

The invention provides a method for testing an application function, which comprises the following steps:

acquiring a basic configuration file of an application function;

acquiring a sampling configuration file and a comparison configuration file of the application function; wherein the comparison configuration file contains comparison information of the sampling configuration content of the sampling configuration file and the base configuration file;

modifying the basic configuration file according to the comparison configuration file;

and using the application function to acquire the configuration information hit by the application function from the sampling configuration file or the basic configuration file.

Preferably, after obtaining the configuration information hit by the application function from the sampling configuration file or the basic configuration file, the method further includes:

and sending the hit configuration information to a server so as to enable the server to realize the configuration test of the application function.

Preferably, the using the application function, obtaining the configuration information hit by the application function from the sampling configuration file or the basic configuration file, includes:

using an application function, judging whether the application function hits configuration information in the sampling configuration file, if so, acquiring the configuration information in the sampling configuration file; if not, judging whether the application function hits the configuration information in the basic configuration file, and if so, acquiring the configuration information in the basic configuration file.

Preferably, before the using the application function, the method further includes:

and checking the legality of the configuration contents in the sampling configuration file and the basic configuration file.

Preferably, after obtaining the basic configuration file of the application function, the method further includes:

and judging whether the user logs in, if so, continuing the step of acquiring the sampling configuration file and the comparison configuration file of the application function, and otherwise, prompting login information.

Preferably, after obtaining the sampling configuration file and the comparison configuration file of the application function, the method further includes:

and judging whether the sampling configuration file and the comparison configuration file are outdated or not, and if so, acquiring the latest sampling configuration file and the latest comparison configuration file from the server.

Preferably, after modifying the base configuration file according to the comparison configuration file, the method further includes:

recording the modification content of the basic configuration file;

and receiving an instruction for stopping testing, restoring the basic configuration file according to the modified content, and deleting the sampling configuration file.

Preferably, before the obtaining the sampling configuration file and the comparing configuration file of the application function, the method further includes:

downloading at least two sampling configuration files from a server, wherein each sampling configuration file corresponds to one comparison configuration file;

acquiring a sampling configuration file and a comparison configuration file of an application function, comprising:

and acquiring the gender and age of the login application user, and acquiring a sampling configuration file and a corresponding comparison configuration file from the at least two sampling configuration files according to the gender and age.

Preferably, before the obtaining the sampling configuration file and the comparing configuration file of the application function, the method further includes:

downloading sampling configuration files of two testing stages from a server, wherein each sampling configuration file corresponds to a comparison configuration file; the two testing stages comprise a first testing stage and a second testing stage;

obtaining a sampling configuration file and a comparison configuration file of the application function, comprising:

determining the current moment as the first test stage;

acquiring the sampling configuration file of the first test stage and a corresponding comparison configuration file from the sampling configuration files of the two test stages;

after the obtaining of the configuration information hit by the application function from the sampling configuration file or the basic configuration file, the method further includes:

determining the current moment as the second test stage according to the configuration information, or determining the current moment as the second test stage according to a user instruction;

acquiring the sampling configuration file of the second test stage and a corresponding comparison configuration file from the sampling configuration files of the two test stages; continuing the step of modifying the base configuration file according to the comparison configuration file.

The invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for testing application functions of any one of the preceding claims.

The invention also provides a terminal device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the computer program, the steps of the method for testing the application function are realized.

The invention has the following beneficial effects:

1. the test configuration information of the application function can be dynamically configured by the sampling configuration file of the server terminal or modified according to the comparison configuration file, and the client terminal does not need to manage the test code, so the application software can be dynamically updated according to the sampling configuration file issued by the server, and the client terminal does not need to be downloaded again; for the mobile terminal, the mobile application software does not need to go up from an application store and remove the test codes, so that the manual work is saved, and the method is suitable for large-scale configuration test schemes.

2. The invention can send the hit configuration information to the server so that the server can realize the configuration test of the application function, and can be used for collecting and analyzing the test data of the user and providing reference for the final configuration of the application function.

3. The invention can also match the sampling configuration file and the comparison configuration file according to the information of the login user, so that the test configuration information is more targeted, and the diversified configuration scheme is favorably realized.

Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

Drawings

The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

FIG. 1 is a schematic of a prior art ABTest test;

FIG. 2 is a schematic flow chart of a first embodiment of the testing method of the present invention;

FIG. 3 is a partial flow chart of a second embodiment of the testing method of the present invention;

FIG. 4 is a partial flow chart of a third embodiment of the testing method of the present invention;

fig. 5 is a schematic diagram of an embodiment of the terminal device according to the present invention.

Detailed Description

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.

It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

The invention provides a method for testing an application function, which comprises the following steps of:

step S10: acquiring a basic configuration file of an application function;

step S20: acquiring a sampling configuration file and a comparison configuration file of the application function; wherein the comparison configuration file contains comparison information of the sampling configuration content of the sampling configuration file and the basic configuration file;

step S30: modifying the basic configuration file according to the comparison configuration file;

step S40: and using the application function to acquire the configuration information hit by the application function from the sampling configuration file or the basic configuration file.

Wherein each step is as follows:

step S10: acquiring a basic configuration file of an application function;

the application function is a part which is possibly tested in the application software, and can comprise modification of the existing function, shielding of the existing function, addition of a new function and the like; the functions may include separately completing a specific service process, or may include changing configurations such as outputting a display effect or a music effect. All possible tested configuration items are recorded in the basic configuration file, for example: whether the light of the current picture is turned on, whether the current music effect is turned on, whether the current button is subjected to 3D rendering, and the like. When a user obtains a large amount of data, a period of time is generally needed to load the data, in order to shorten the time for the user to load the data and improve the user experience, the basic configuration file can be pre-loaded into the application of the user, and all or most of configuration items which are possibly tested are included in the basic configuration file, so that excessive configuration items do not need to be added in the subsequent function test, and only parameter combinations of the configuration items need to be modified or fewer new configuration items need to be added; for the mobile end user, the setting can also save the user flow.

For example: the basic configuration file comprises a switch for judging whether a payment button is rendered or not, the default configuration value of the switch is 1, and the default configuration value can be used as a test comparison group; when the rendered switches and the switches which are not rendered need to be confirmed, and the click rate of which switch is higher is determined to determine the final effect of the switch, the configuration value of the payment button in the basic configuration file in part of the user software can be changed to 0 to serve as another test comparison group to obtain the click rate conditions of the switches in the two comparison groups, and the final switch effect is determined according to the click conditions. If the basic configuration file does not include the configuration item of the rendering payment button, the configuration item needs to be added to the basic configuration file during subsequent testing.

Step S20: acquiring a sampling configuration file and a comparison configuration file of the application function; wherein the comparison configuration file contains comparison information of the sampling configuration content of the sampling configuration file and the base configuration file;

the configuration information of the sample configuration file corresponds to one test control group of the application function, and the base configuration file may correspond to another test control group of the application function; when the sampling configuration content of the two test control groups only comprises the difference of one configuration value, and the configuration value has a default configuration value in the basic configuration file, the configuration value hit in the basic configuration file can be directly used as the other test control group of the application function. For example: the object of the application function test is whether a payment button starts a rendering effect, that is, a rendering switch configuration value of the payment button is 1 or 0, and when the basic configuration file has a default configuration value of the configuration item (for example, the value is 1), the basic configuration file can be directly used as one of the test control groups; when the user acquires the sampling configuration file, the configuration value of the rendering switch of the payment button in the sampling configuration file is set to a value (for example, 0) opposite to the default configuration value, so as to serve as another test control group. In this example, since there is only one configuration item for the application function test, and the basic configuration file can be directly used as one of the test control groups, the content in the comparison configuration file may not affect the test; but the comparison profile may be used to confirm default values in the base profile; for example: the rendering switch configuration value of the comparison configuration file including the payment button is 1 to write the configuration value into the basic configuration file, and the configuration value in the basic configuration file is ensured to be opposite to the configuration value in the sampling configuration file.

When the configuration information of the two test control groups comprises a plurality of configuration items or comprises contents which are not included in the basic configuration file, the basic configuration file is not necessarily directly used as one of the test control groups; for example: in the basic configuration file, two configuration items are included: the first configuration item is whether the button is always suspended above the right of the screen and is started, if the button is started, i is 1, and if the button is not started, i is 0; the second configuration item is whether the 3D rendering effect of the button is on, if so, j is 1, and if not, j is 0. If the default configuration values of the two configuration items are both 0, but when the configuration values of the application function test are i-1 and j-0, and the configuration values of the other test are i-0 and j-1, the basic configuration file cannot be directly used as a test control group, and the basic configuration file must be modified so that the test terminal has the sampling configuration contents of the two test configurations, namely the sampling configuration file and the sampling configuration contents of the basic configuration file.

Because the basic configuration file may include a large number of configuration items, and the application function to be tested may include only a small number of modified configuration items, in order to accelerate the modification speed of the basic configuration file, the comparison configuration file may be set to record the comparison information between the sampling configuration file and the sampling configuration content in the basic configuration file, and to quickly modify the differential configuration items in the comparison information; and the comparison information can also record the content of the basic configuration file before modification, so that the basic configuration file before modification can be returned when the sampling configuration content of the basic configuration file fails to be applied, and the normal operation of the application can be ensured.

Step S30: modifying the basic configuration file according to the comparison configuration file;

since the comparison configuration file contains the comparison information, the basic configuration file can be modified according to the comparison configuration file, so that the modified basic configuration file becomes a test comparison group or a plurality of test comparison groups. The comparison configuration file can directly include the configuration values of each configuration item needing to be modified in the test control group, so that the configuration values in the comparison configuration file can directly replace part of the test configuration values in the base configuration file before modification in the test period.

To facilitate determining whether the base configuration file is a base configuration file before modification or a base configuration file after modification, a configuration of a timestamp may be included in the base configuration file.

Step S40: and using the application function to acquire the configuration information hit by the application function from the sampling configuration file or the basic configuration file.

The sampling configuration file or the modified base configuration file can respectively represent the sampling configuration contents of two test configurations or the sampling configuration contents of a plurality of test configurations. When the software is operated, according to the obtained sampling configuration file and the comparison configuration file of the application function, whether specific configuration information is obtained from the sampling configuration file or the basic configuration file is determined, and a final test configuration value is determined. The final test configuration value can be determined by the server or the terminal; when the server determines the configuration value, the specified test configuration value can be issued to the terminal through the sampling configuration file or the comparison configuration file, and when the terminal determines the configuration value, the terminal can be configured adaptively according to the current specific situation of the user, for example: when the terminal judges that the terminal is currently in a wifi environment, one group of test configuration values are hit, and when the terminal judges that the terminal is currently in a non-wifi environment, the other group of test configuration values are hit.

The embodiment may preset the basic configuration file comprising a plurality of configuration items and the sampling configuration file with the test comparison configuration, so that the application function can obtain at least two groups of test configurations without updating the client; by collecting the user usage of the at least two sets of test configurations, the user feedback to different application functions can be analyzed as a reference for the final effect of the application functions. The testing method can dynamically acquire the sampling configuration file and the comparison configuration file from the server when the application is operated, developers do not need to recode and put up the sampling configuration file and the comparison configuration file in a shop, and the flexibility and the efficiency of testing are improved; and the test codes of the client can be controlled by the server, so that the problem of bloated caused by long-term accumulation of the codes of the client is avoided.

Based on the first embodiment, the present invention also proposes another embodiment: after the obtaining of the configuration information hit by the application function from the sampling configuration file or the basic configuration file, the method further includes:

and sending the hit configuration information to a server so as to enable the server to realize the configuration test of the application function.

The embodiment can feed back hit configuration information to the server, and execute corresponding application functions according to the hit configuration information of the terminal; the server can also determine the distribution of each test terminal and the test configuration information according to the hit configuration information sent by the terminal, and can further determine whether to modify the subsequent test configuration information according to the hit configuration information proportion so as to obtain the sample information with higher reference value.

Based on the first embodiment, the present invention also proposes another embodiment: the using the application function to obtain the configuration information hit by the application function from the sampling configuration file or the basic configuration file includes:

using an application function, judging whether the application function hits configuration information in the sampling configuration file, if so, acquiring the configuration information in the sampling configuration file; if not, judging whether the application function hits the configuration information in the basic configuration file, and if so, acquiring the configuration information in the basic configuration file.

Due to the instability of the sampling configuration file, the present embodiment preferentially hits the configuration information in the sampling configuration file, so as to avoid the situation that the number of test samples of the sampling configuration file is low due to the configuration failure of the configuration item of the application function when the configuration information in the sampling configuration file is hit.

Fig. 3 is a partial flow diagram of a second embodiment of a rendering configuration proposed by the present invention based on the first embodiment. In this embodiment, when a user starts an application, the basic configuration file is loaded first, and the basic configuration file may include configuration items related to rendering configuration, so as to accelerate the time for the user to subsequently acquire test configuration information; after the basic configuration file is loaded, judging whether a user logs in, and if the user does not log in, prompting the user to log in; if the user logs in or logs in according to the prompt, loading the sampling configuration file of rendering configuration so as to enable the sampling configuration file to be associated with the user information, and facilitating subsequent sample analysis; then, the application function obtains the hit rendering configuration information from the sampling configuration file or the basic configuration file to be used as one of the test comparison groups; when the configuration information is obtained, whether the rendering configuration information in the sampling configuration file is hit or not can be judged preferentially, and if the rendering configuration information in the basic configuration file is not hit, whether the rendering configuration information in the basic configuration file is hit or not is judged; if the result is not hit, the rendering configuration information which is possibly acquired is inferred to be in error, the rendering test fails, and the default value of the application function is returned so that the user can still normally use the application software.

Based on the first embodiment, the present invention also proposes another embodiment: before the using the application function, the method further comprises:

and checking the legality of the configuration contents in the sampling configuration file and the basic configuration file.

In the process of acquiring the data of the sampling configuration file and the comparison configuration file, data loss and other abnormalities may occur, or the configuration information hit in the sampling configuration file and the comparison configuration file is not matched with the hardware parameter of the terminal, which may cause configuration error or failure in execution of the hit configuration information.

Based on the first embodiment, the present invention provides a further embodiment, where after the obtaining of the basic configuration file of the application function, the method further includes:

and judging whether the user logs in, if so, continuing the step of acquiring the sampling configuration file and the comparison configuration file of the application function, and otherwise, prompting login information.

In order to obtain a more detailed user data sample or match the corresponding sampling configuration file according to user information, the invention can also check whether the user logs in after obtaining the basic configuration file of the application function; if the user logs in, the sampling configuration file can be matched according to the logged-in user information, and if the user does not log in, the user is prompted to log in. Since the basic configuration file may not be related to the user information, the basic configuration file may be loaded to the user terminal in advance before the user logs in, so as to save the loading time when the user subsequently uses the test function. The loading time of the basic configuration file can be set to be that the application runs in a foreground or a background, and when a user is in a wired network or wifi network environment, excessive flow consumption of the user is avoided.

Based on the first embodiment, the present invention also proposes another embodiment: after the obtaining of the sampling configuration file and the comparison configuration file of the application function, the method further includes:

and judging whether the sampling configuration file and the comparison configuration file are outdated or not, and if so, acquiring the latest sampling configuration file and the latest comparison configuration file from the server.

After the user terminal acquires the sampling configuration file and the comparison configuration file of the application function, the sampling configuration file and the comparison configuration file of the application function are not necessarily operated immediately, and the operation may be performed only when the user uses or logs in the application next time, so that after the user uses or logs in the application again and before the sampling configuration file and the comparison configuration file of the application function are operated, whether the currently acquired sampling configuration file and the comparison configuration file are the latest configuration file can be checked again, and if the currently acquired sampling configuration file and the comparison configuration file are the latest configuration file, the operation is continued; if so, the latest sampling configuration file and comparison configuration file are obtained from the server. The obtained latest sampling configuration file and comparison configuration file can cover the previously obtained outdated sampling configuration file and comparison configuration file so as to save client configuration codes.

FIG. 4 is a partial flow diagram of a third embodiment of the present invention, which includes the step of determining whether the sampling profile is out of date. In the embodiment, the server can build and compile the application in the background so as to release the version with the application function test; and packing the basic configuration file, wherein the basic configuration file comprises all configuration items which can be tested so as to be prepared for configuration modification in the subsequent test. When a user terminal starts an application, the application acquires a sampling configuration file and a comparison configuration file of the application function from a server, wherein the sampling configuration file comprises hit configuration information to be used as one of test control groups; when the comparison configuration file comprises configuration items which are not contained in the basic configuration file, adding the newly added configuration items into the basic configuration file according to the comparison configuration file so as to take the updated basic configuration file as another test comparison group; before the sampling configuration file is applied, a step of judging whether the downloaded sampling configuration file is outdated or not is also set; if the sampling configuration file is out of date, the sampling configuration file is re-downloaded and updated to ensure that the sampling configuration file is the latest configuration file.

Based on the first embodiment, the present invention also proposes another embodiment: after modifying the base configuration file according to the comparison configuration file, the method further comprises:

recording the modification content of the basic configuration file;

and receiving an instruction for stopping testing, restoring the basic configuration file according to the modified content, and deleting the sampling configuration file.

After the test of the application function is finished, the terminal may finally continue to run the original basic configuration file, or when the operation of the sampling configuration file or the modified basic configuration file is abnormal or the verification is illegal, in order to ensure the normal use of the user, the modified basic configuration file must be restored to the basic configuration file before modification; therefore, the present embodiment further provides a scheme capable of recording modified content of the basic configuration file, so that when the user terminal stops testing for some reason, the configuration of the user can be restored to the basic configuration file before modification.

As an embodiment, after the obtaining, by using the application function, the configuration information hit by the application function from the sampling configuration file or the base configuration file, the method further includes:

and receiving an instruction of stopping the test, restoring the basic configuration file according to the modified content, and deleting the sampling configuration file.

In the embodiment, the test stopping instruction can be received at any time in the test process; for example, after the test is completed, the test is stopped; and in the test process, the content to be tested is found to be wrong, and the test is stopped immediately. After the test is stopped, the basic configuration file can be restored, and the sampling configuration file is deleted, so that the application is ensured to recover the normal use state, the functional module is not required to be reinstalled or deleted, and the use is convenient.

When the functional test has more than two test configurations or different sampling configuration files need to be loaded for a user in advance, the invention also provides another embodiment: before the obtaining of the sampling configuration file and the comparing configuration file of the application function, the method further includes:

downloading at least two sampling configuration files from a server, wherein each sampling configuration file corresponds to one comparison configuration file;

obtaining a sampling configuration file and a comparison configuration file of the application function, comprising:

and acquiring the gender and age of the login application user, and acquiring a sampling configuration file and a corresponding comparison configuration file from the at least two sampling configuration files according to the gender and age.

When the functional test has more than two test configurations, each test configuration will correspond to a sampling configuration file, or one of the test configurations may correspond to the base configuration file; at the moment, the user terminal acquires at least two configuration files from the server so as to correspond to different test configurations; each of the sampling configuration files may correspond to a comparison configuration file for modifying the base configuration file such that the modified base configuration file has hit configuration information. When the user terminal determines one of the sampling configuration files according to the hardware parameters or the software parameters of the terminal or determines one of the sampling configuration files according to the logged user information, the corresponding comparison configuration file can be determined, and the basic configuration file is modified according to the determined comparison configuration file. For example: when different functions need to be tested aiming at users of different ages and sexes, if the current user does not log in, all sampling configuration files and corresponding comparison configuration files are obtained; and after the user logs in, matching the corresponding sampling configuration file and the corresponding comparison configuration file according to the user information so as to make the test function more targeted.

Of course, the information of the login application user may also include feature information such as a geographic location, a usage time preference, and a usage frequency of the user, and the corresponding sampling configuration file and the corresponding comparison configuration file may also be matched according to the feature information.

When the test of the application function comprises at least two associated phases with a chronological order, the invention also provides a further embodiment: before the obtaining of the sampling configuration file and the comparing configuration file of the application function, the method further includes:

downloading sampling configuration files of two testing stages from a server, wherein each sampling configuration file corresponds to a comparison configuration file; the two testing stages comprise a first testing stage and a second testing stage;

obtaining a sampling configuration file and a comparison configuration file of the application function, comprising:

determining the current moment as the first test stage;

acquiring the sampling configuration file of the first test stage and a corresponding comparison configuration file from the sampling configuration files of the two test stages;

after the obtaining of the configuration information hit by the application function from the sampling configuration file or the basic configuration file, the method further includes:

determining the current moment as the second test stage according to the configuration information, or determining the current moment as the second test stage according to a user instruction;

acquiring the sampling configuration file of the second testing stage and the corresponding comparison configuration file from the sampling configuration files of the two testing stages; continuing the step of modifying the base configuration file according to the comparison configuration file.

Some of the applications have related operations, for example, in video recording, configuration items of whether to start a magic cube effect of a character image; if the image processing device is started, the image processing device can further comprise a configuration item for performing visual processing on the mirror image. In this embodiment, whether to start the magic cube effect of the figure mirror image or not can be used as the first test stage, and whether to perform the visual processing on the mirror image or not can be used as the second test stage; the method comprises the following steps that sampling configuration files of two testing stages can be downloaded from a server, wherein each sampling configuration file is a testing comparison group and corresponds to a comparison configuration file; each comparison configuration file is used for modifying the corresponding basic configuration file to serve as the corresponding other test control group; when the current moment is determined to be the first test stage, obtaining a sampling configuration file whether to open the character image from the downloaded sampling configuration files of the two test stages, for example: when the configuration value of the configuration item is 1, starting a character mirror image to serve as a test comparison group of a first test stage, modifying the configuration value of the configuration item in the basic configuration file to be 0 according to the comparison configuration file, and not starting the character mirror image to serve as another test comparison group of the first test stage; after the character mirror image is started, determining that the current moment is the second test stage according to the configuration information or the user instruction, and acquiring a sampling configuration file for judging whether to perform visual processing on the mirror image again from the downloaded sampling configuration files of the two test stages, for example: and when the configuration value of the configuration item is 1, performing visual processing on the mirror image again to serve as a test comparison group of the second test stage, modifying the configuration value of the configuration item in the basic configuration file to be 0 according to the comparison configuration file, and performing visual processing on the mirror image again to serve as another test comparison group of the second test stage.

The application functions tested in the first test phase and the second test phase may also have no logical association, for example: the first test phase corresponds to the configuration of the application functions during the day, the second test phase corresponds to the configuration of the application functions during the night, and the two configurations are independent of each other.

Based on the previous embodiment, the present invention may also download at least two sampling configuration files of the first testing stage from a server, where each of the at least two sampling configuration files of the second testing stage corresponds to one comparison configuration file;

obtaining a sampling configuration file and a comparison configuration file of the application function, comprising:

acquiring the gender and age of a login application user;

determining the current moment as the first test stage;

acquiring a sampling configuration file and a corresponding comparison configuration file from at least two sampling configuration files in the first testing stage according to the gender and the age;

after the obtaining of the configuration information hit by the application function from the sampling configuration file or the basic configuration file, the method further includes:

judging whether to enter the second test stage according to the gender and the age; if yes, acquiring the sampling configuration file of the second test stage and a corresponding comparison configuration file from the sampling configuration files of the two test stages; continuing the step of modifying the base configuration file according to the comparison configuration file.

The embodiment can position the use degree of the application by the user according to the gender and the age; for example, if the first test stage is to modify a picture, the second test stage is to share the modified picture to the mobile game platform; persons at certain ages prefer to play a hand game, while persons at other ages may not be as entertaining for hand game, and the second test stage is less used, so a second test stage with additional conditions may be provided. The scheme divides the test of the application function into two stages, and can carry out more accurate function test by combining with the user attribute.

The invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for testing application functions of any one of the preceding claims.

The invention also provides a terminal device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the computer program, the steps of the method for testing the application function are realized.

Fig. 3 is a block diagram of a part of the terminal device according to the present invention, and for convenience of description, only the part related to the embodiment of the present invention is shown. The terminal equipment can be mobile phones, tablet computers, notebook computers, desktop computers and other terminal equipment capable of watching live programs. The working mode of the terminal device of the present invention is described below by taking a desktop computer as an example.

Referring to fig. 3, the desktop computer includes a processor, a memory, an input unit, a display unit, and the like. Those skilled in the art will appreciate that the desktop configuration shown in FIG. 3 is not intended to be limiting of all desktop computers, and may include more or less components than those shown, or some components in combination. The memory may be used to store a computer program and various functional modules, and the processor may execute various functional applications and data processing of the desktop computer by operating the computer program stored in the memory. The memory mainly comprises a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function (such as a function of watching live programs), and the like; the storage data area may store data created according to the use of the desktop computer (such as live data and the like), and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The input unit may be used to receive a search keyword input by a user and to generate a signal input related to user setting and function control of the desktop computer. Specifically, the input unit may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit may be used to display information input by a user or information provided to the user and various menus of the desktop computer. The display unit may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor is a control center of the desktop computer, connects various parts of the whole computer by using various interfaces and lines, and executes various functions and processes data by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory.

In addition, each module in each embodiment of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer-readable storage medium.

The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.

The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method for testing application functions, comprising:

responding to the starting operation, and acquiring a basic configuration file of the application function; configuration items corresponding to different test contents are recorded in the basic configuration file;

acquiring sampling configuration files of each test stage; different test stages correspond to different application functions or different configurations corresponding to the same application function, and each sampling configuration file corresponds to one comparison configuration file;

after determining that an application user logs in, acquiring a sampling configuration file and a comparison configuration file of the application function based on the information of the application user, wherein the sampling configuration file and the comparison configuration file comprise the following steps: determining a test stage corresponding to the current moment based on the information of the application user, and acquiring a sampling configuration file and a corresponding comparison configuration file of the test stage corresponding to the current moment from sampling configuration files of all the test stages; wherein the comparison configuration file contains comparison information of the sampling configuration content of the sampling configuration file and the base configuration file;

modifying the basic configuration file according to the comparison configuration file;

in response to an operation using the application function, configuration information hit by the application function from the sampling profile or the base profile is obtained using the application function.

2. The method according to claim 1, wherein after obtaining the configuration information hit by the application function from the sampling configuration file or the base configuration file, the method further comprises:

and sending the hit configuration information to a server so as to enable the server to realize the configuration test of the application function.

3. The method according to claim 1, wherein the using an application function to obtain the configuration information hit by the application function from the sampling configuration file or the basic configuration file comprises:

using an application function, judging whether the application function hits configuration information in the sampling configuration file, if so, acquiring the configuration information in the sampling configuration file; if not, judging whether the application function hits the configuration information in the basic configuration file, and if so, acquiring the configuration information in the basic configuration file.

4. The testing method of claim 1, wherein prior to using the application function, further comprising:

and checking the legality of the configuration contents in the sampling configuration file and the basic configuration file.

5. The method according to claim 1, wherein after obtaining the basic configuration file of the application function, the method further comprises:

and judging whether the user logs in, if so, continuing the step of acquiring the sampling configuration file and the comparison configuration file of the application function, and otherwise, prompting login information.

6. The method of claim 1, wherein after obtaining the sampling profile and the comparison profile of the application function, further comprising:

and judging whether the sampling configuration file and the comparison configuration file are outdated or not, and if so, acquiring the latest sampling configuration file and the latest comparison configuration file from the server.

7. The testing method of claim 1, wherein after modifying the base configuration file according to the comparison configuration file, further comprising:

recording the modification content of the basic configuration file;

and receiving an instruction for stopping testing, restoring the basic configuration file according to the modified content, and deleting the sampling configuration file.

8. The testing method of claim 1, wherein before obtaining the sampling profile and the comparison profile of the application function, further comprising:

downloading at least two sampling configuration files from a server, wherein each sampling configuration file corresponds to one comparison configuration file;

acquiring a sampling configuration file and a comparison configuration file of an application function, comprising:

and acquiring the sex and age of the login application user, and acquiring a sampling configuration file and a corresponding comparison configuration file from the at least two sampling configuration files according to the sex and age.

9. The test method of claim 1, wherein prior to obtaining the sampling profile and the comparison profile of the application function, further comprising:

downloading sampling configuration files of two testing stages from a server, wherein each sampling configuration file corresponds to a comparison configuration file; the two testing stages comprise a first testing stage and a second testing stage;

obtaining a sampling configuration file and a comparison configuration file of the application function, comprising:

determining the current moment as the first test stage;

acquiring the sampling configuration file of the first test stage and a corresponding comparison configuration file from the sampling configuration files of the two test stages;

after the obtaining of the configuration information hit by the application function from the sampling configuration file or the basic configuration file, the method further includes:

determining the current moment as the second test stage according to the configuration information, or determining the current moment as the second test stage according to a user instruction;

acquiring the sampling configuration file of the second test stage and a corresponding comparison configuration file from the sampling configuration files of the two test stages; continuing the step of modifying the base configuration file according to the comparison configuration file.

10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of testing an application function of any one of claims 1 to 9.

11. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor; characterized in that the processor, when executing the computer program, implements the steps of the method for testing application functionality of any one of claims 1 to 9.

CN201810150264.3A 2018-02-13 2018-02-13 Application function testing method, computer readable storage medium and terminal device Active CN108319554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810150264.3A CN108319554B (en) 2018-02-13 2018-02-13 Application function testing method, computer readable storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810150264.3A CN108319554B (en) 2018-02-13 2018-02-13 Application function testing method, computer readable storage medium and terminal device

Publications (2)

Publication Number Publication Date
CN108319554A CN108319554A (en) 2018-07-24
CN108319554B true CN108319554B (en) 2022-08-09

Family

ID=62903780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810150264.3A Active CN108319554B (en) 2018-02-13 2018-02-13 Application function testing method, computer readable storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN108319554B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614311A (en) * 2018-10-23 2019-04-12 深圳壹账通智能科技有限公司 Application testing method and device, electronic device, storage medium
CN109753892B (en) * 2018-12-18 2023-06-13 广州市百果园信息技术有限公司 Face wrinkle generation method and device, computer storage medium and terminal
CN110046092B (en) * 2019-03-12 2020-07-07 北京创鑫旅程网络技术有限公司 Experiment shunting method and device, electronic equipment and computer readable storage medium
CN110601922B (en) * 2019-09-18 2021-01-22 北京三快在线科技有限公司 Method and device for realizing comparison experiment, electronic equipment and storage medium
CN110941460B (en) * 2019-11-22 2023-09-01 北京金山云网络技术有限公司 Method, device, electronic device, system, and storage medium for starting an application program
CN112948020B (en) * 2021-03-18 2024-07-23 海南视联通信技术有限公司 Configuration file processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server
CN105095081A (en) * 2015-08-06 2015-11-25 小米科技有限责任公司 Application program function testing method and device
CN105159281A (en) * 2015-08-28 2015-12-16 上海无线电设备研究所 FPGA single event upset fault simulation test system and method
WO2016059576A1 (en) * 2014-10-14 2016-04-21 Eigen Innovations Inc. System, apparatus and method for configuration of industrial vision control modules
US9451006B1 (en) * 2013-12-12 2016-09-20 Intuit Inc. Methods, systems, and articles of manufacture for configuration-based client-side resource resolution framework for customizable user experience

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255673A (en) * 2010-05-19 2011-11-23 希姆通信息技术(上海)有限公司 Wireless module testing method based on modified SSCOM configuration file
CN103825632B (en) * 2012-11-16 2016-08-03 纬创资通股份有限公司 Information Fast Synchronization Method Using Near Field Communication
US20150227962A1 (en) * 2014-02-11 2015-08-13 Sears Brands, L.L.C. A/b testing and visualization
CN106412955B (en) * 2016-09-29 2019-06-11 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal executing IMS business
CN107547239B (en) * 2016-10-27 2019-12-06 腾讯科技(深圳)有限公司 Configuration object updating method and device
CN106776294B (en) * 2016-11-29 2020-06-16 任子行网络技术股份有限公司 Automatic android mobile phone testing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server
US9451006B1 (en) * 2013-12-12 2016-09-20 Intuit Inc. Methods, systems, and articles of manufacture for configuration-based client-side resource resolution framework for customizable user experience
WO2016059576A1 (en) * 2014-10-14 2016-04-21 Eigen Innovations Inc. System, apparatus and method for configuration of industrial vision control modules
CN105095081A (en) * 2015-08-06 2015-11-25 小米科技有限责任公司 Application program function testing method and device
CN105159281A (en) * 2015-08-28 2015-12-16 上海无线电设备研究所 FPGA single event upset fault simulation test system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A/B测试在软件项目开发中的应用探析;张如云;《电脑开发与应用》;20140531;第27卷(第5期);第54-56页 *

Also Published As

Publication number Publication date
CN108319554A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN108319554B (en) 2022-08-09 Application function testing method, computer readable storage medium and terminal device
US11467816B1 (en) 2022-10-11 Method and system of running an application
CN108293081B (en) 2020-08-07 Deep linking of program playback to mobile application state through user interface events
RU2421785C2 (en) 2011-06-20 Automated control of device drivers
CN110221860B (en) 2024-08-06 Configuration file processing method, device, terminal and medium
US9146729B2 (en) 2015-09-29 Deployment and updating of applications and drivers on a client device using an extensible markup language (XML) configuration file
US9032052B2 (en) 2015-05-12 Deployment of a driver or an application on a client device having a write-filter
KR102077360B1 (en) 2020-02-13 Generating native code from intermediate language code for an application
US20160275560A1 (en) 2016-09-22 Server apparatus and server program
US10229122B2 (en) 2019-03-12 Extensible customization migration via pluggable interface
US20140289333A1 (en) 2014-09-25 Mechanism for sharing states of applications and devices across different user profiles
US20130139183A1 (en) 2013-05-30 Creation or installation of a disk image for a target device having one of a plurality of hardware platforms
US20090083375A1 (en) 2009-03-26 Installation of a Virtualization Environment
WO2008073618A2 (en) 2008-06-19 Instant on platform
US9507751B2 (en) 2016-11-29 Managing seed data
US20150082307A1 (en) 2015-03-19 Determining optimal methods for creating virtual machines
US9858153B2 (en) 2018-01-02 Service-based backup data restoring to devices
GB2539758A (en) 2016-12-28 Techniques for evaluating applications through use of an auxiliary application
CN112433749B (en) 2024-12-13 A grayscale release method and device for application, server, and client
US11119748B2 (en) 2021-09-14 Method and apparatus for operating a mobile application store
CN104903840A (en) 2015-09-09 Updating of digital content buffering order
RU2584447C2 (en) 2016-05-20 Method and system for simultaneous installation of plurality of applications using false backup archive recovery
US20140137092A1 (en) 2014-05-15 Information processing apparatus, information processing system, non-transitory computer-readable storage medium having stored therein information processing program, and information processing method
JP7147123B2 (en) 2022-10-05 Source channel determination method, device, equipment, program and computer storage medium
CN115766712A (en) 2023-03-07 Startup method, data processing method, computing device and computer storage medium

Legal Events

Date Code Title Description
2018-07-24 PB01 Publication
2018-07-24 PB01 Publication
2018-08-17 SE01 Entry into force of request for substantive examination
2018-08-17 SE01 Entry into force of request for substantive examination
2022-08-09 GR01 Patent grant
2022-08-09 GR01 Patent grant
2023-10-17 TR01 Transfer of patent right

Effective date of registration: 20230926

Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: Building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No. 79, Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd.

2023-10-17 TR01 Transfer of patent right