CN108319554A - Test method, computer readable storage medium and the terminal device of application function - Google Patents

Test method, computer readable storage medium and the terminal device of application function Download PDF

Info

Publication number
CN108319554A
CN108319554A CN201810150264.3A CN201810150264A CN108319554A CN 108319554 A CN108319554 A CN 108319554A CN 201810150264 A CN201810150264 A CN 201810150264A CN 108319554 A CN108319554 A CN 108319554A
Authority
CN
China
Prior art keywords
configuration file
sampling
application function
test
configuration
Prior art date
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.)
Granted
Application number
CN201810150264.3A
Other languages
Chinese (zh)
Other versions
CN108319554B (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 Singapore 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.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201810150264.3A priority Critical patent/CN108319554B/en
Publication of CN108319554A publication Critical patent/CN108319554A/en
Application granted granted Critical
Publication of CN108319554B publication Critical patent/CN108319554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • 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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The present invention provides a kind of test method of application function, computer readable storage medium and terminal device, the test method of the application function includes:Obtain the base configuration file of application function;It obtains the sampling configuration file of the application function and compares configuration file;Wherein, the relatively configuration file includes the comparison information of the sampling configuration file and the sampling configuration content of the base configuration file;The base configuration file is changed according to the relatively configuration file;Using the application function, the configuration information that the application function is hit from the sampling configuration file or the base configuration file is obtained.The present invention can be updated according to sampling configuration file dynamic, without re-downloading client, save artificial, suitable large-scale configuration testing scheme.

Description

Test method, computer readable storage medium and the terminal device of application function
Technical field
The present invention relates to the information processing technology, especially a kind of test method of application function, computer-readable storage medium Matter and terminal device.
Background technology
In software product, when needing to adjust existing product such as fruit product or developer, generally require by more New client submits new version to realize to application shop;In mobile internet era, due to the flow and network speed of mobile terminal Limitation, frequent software upgrading will generate more bad user experience;Moreover, mobile terminal requires to get over to the timeliness of operation Come higher, and the work and time cost needed for application shop restocking are high.
In existing solution, generally solve to need frequently to change products scheme and Management plan by ABTest Problem.As shown in Figure 1, ABTest is to allow a part of user to make for two schemes of the same target making (such as two pages) With A schemes, another part user uses B schemes, and records the service condition of user, is more met so which scheme verified and is set Meter.But existing ABTest need to make experiment content, experimental program etc. in advance, then encoded by developer and realize simultaneously restocking quotient Experiment content is removed in shop by developer's coding again after experiment.Mainly there are two disadvantages for such scheme:
1, experiment content be in contrast it is prior formulate and fixed, related experiment code has all been fixed, and quotient is applied in restocking Fixed one or several experiment options can only be adjusted behind shop, have no idea to do more dynamic configurations;If there is in new experiment Hold, then needs to reenact new experimental program, such as the experimental project one in Fig. 1 and experimental project two, underaction.
2, after testing, it generally can determine whether final scheme and remove other experimental programs, before needing to delete at this time Experimental code, otherwise, with the accumulation of experiment, the code of client will be more and more too fat to move, and code confusion degree steeply rises.So And deletion experimental code is also required to developer's hand-coding and remodifies, it means that once tested per restocking, developer The process for deleting related experiment code after writing experimental code, experiment will be undergone, substantially increases developer's Workload.
Invention content
The purpose of the present invention aims to solve at least one of above-mentioned technological deficiency, especially solves the modification of experimental program not Enough flexible problems.
The present invention provides a kind of test methods of application function, including:
Obtain the base configuration file of application function;
It obtains the sampling configuration file of the application function and compares configuration file;Wherein, the relatively configuration file packet Comparison information containing the sampling configuration file with the sampling configuration content of the base configuration file;
The base configuration file is changed according to the relatively configuration file;
Using the application function, the application function is obtained from the sampling configuration file or the base configuration file The configuration information of middle hit.
Preferably, the acquisition application function is hit from the sampling configuration file or the base configuration file Configuration information after, further include:
The configuration information of the hit is sent to server, so that the server realizes that the configuration of the application function is surveyed Examination.
Preferably, described to use application function, the application function is obtained from the sampling configuration file or the basis The configuration information hit in configuration file, including:
Using application function, judge whether the application function hits the configuration information in the sampling configuration file, if It is the configuration information obtained in the sampling configuration file;If it is not, judging whether the application function hits the configurations Configuration information in file, if so, obtaining the configuration information in the base configuration file.
Preferably, described using before the application function, further include:
Verify the legitimacy of the sampling configuration file and the configuration content in the base configuration file.
Preferably, after the base configuration file for obtaining the application function, further include:
Judge whether user logs in, if so, continuing the sampling configuration file for obtaining application function and the ratio Otherwise the step of compared with configuration file, prompts log-on message.
Preferably, the sampling configuration file for obtaining the application function and after comparing configuration file further includes:
Judge whether the sampling configuration file and the relatively configuration file are out-of-date, if so, being obtained from server newest Sampling configuration file and compare configuration file.
Preferably, after the base configuration file according to the relatively configuration file modification, further include:
Record the modification content of the base configuration file;
The instruction for stopping test being received, the base configuration file is restored according to the modification content, deletes the sampling Configuration file.
Preferably, the sampling configuration file for obtaining application function further includes with before comparing configuration file:
At least two sampling configuration files are downloaded from server, each sampling configuration file corresponds to a comparison configuration File;
It obtains the sampling configuration file of application function and compares configuration file, including:
Gender and the age logged in using user is obtained, is configured from least two sampling according to the gender and age A sampling configuration file and corresponding relatively configuration file are obtained in file.
Preferably, the sampling configuration file for obtaining application function further includes with before comparing configuration file:
The sampling configuration file of two test phases is downloaded from server, each sampling configuration file corresponds to a ratio Compared with configuration file;Described two test phases include the first test phase and the second test phase;
It obtains the sampling configuration file of the application function and compares configuration file, including:
Determine that current time is first test phase;
The sampling configuration file of first test phase is obtained from the sampling configuration file of described two test phases With corresponding relatively configuration file;
The configuration for obtaining the application function and being hit from the sampling configuration file or the base configuration file After information, further include:
It determines that current time is second test phase according to the configuration information, or is determined currently according to user instruction Moment is second test phase;
The sampling configuration file of second test phase is obtained from the sampling configuration file of described two test phases With corresponding relatively configuration file;Continue described according to described the step of relatively configuration file changes the base configuration file.
The present invention also proposes a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium Machine program when the computer program is executed by processor, realizes the step of the test method of any one of aforementioned application function Suddenly.
The present invention also proposes a kind of terminal device, including memory, processor and storage on a memory and can handled The computer program run on device;When the processor executes the computer program, realizes and applied described in aforementioned any one The step of test method of function.
Beneficial effects of the present invention are as follows:
1, the present invention in application function test configurations information can by the sampling configuration file dynamic configuration of server end, or It changes to obtain according to the relatively configuration file, client is without managing test code, therefore application software can be according under server The sampling configuration file dynamic of hair updates, without re-downloading client;For mobile terminal, mobile application software is without experience From application shop restocking, stage of test code is removed, saves artificial, is suitble to large-scale configuration testing scheme.
2, the present invention can send the configuration information of the hit to server, so that server realizes the application function Configuration testing, while can also be used to collect the test data with analysis user, provide ginseng for the final configuration of the application function It examines.
3, the present invention can also sampling configuration file described in the information matches according to login user and the relatively configuration file, So that test configurations information is more targeted, it is advantageously implemented diversified allocation plan.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is the schematic diagram of existing ABTest tests;
Fig. 2 is the flow diagram of the test method first embodiment of the present invention;
Fig. 3 is the part flow diagram of the test method second embodiment of the present invention;
Fig. 4 is the part flow diagram of the test method 3rd embodiment of the present invention;
Fig. 5 is the embodiment schematic diagram of terminal device of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising " Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes that the whole of one or more associated list items or any cell are combined with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), there is meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless by specific definitions as here, the meaning of idealization or too formal otherwise will not be used To explain.
The present invention proposes that a kind of test method of application function, first embodiment as shown in Figure 2 include the following steps:
Step S10:Obtain the base configuration file of application function;
Step S20:It obtains the sampling configuration file of the application function and compares configuration file;Wherein, the comparison is matched Set the comparison information that file includes sampling configuration file and the sampling configuration content of the base configuration file;
Step S30:The base configuration file is changed according to the relatively configuration file;
Step S40:Using the application function, the application function is obtained from the sampling configuration file or the basis The configuration information hit in configuration file.
Wherein, each step is specific as follows:
Step S10:Obtain the base configuration file of application function;
The application function is the part that may be tested in application software, it may include to functional modification, to Some functional shieldings, or increase new function etc.;The function may include the flow for individually completing some specific business, can also wrap Include the change of the output configurations such as display effect or music effect.Record is possible to the configuration of test in the base configuration file , such as:Whether the light of current picture is opened, and whether current music effect is opened, whether current button carries out 3D renderings etc.. When user obtains larger data volume, a period of time is generally required to load data, the time of data is loaded for shortening user, User experience is promoted, the base configuration file can be pre-loaded in the application of user, and packet in the base configuration file The all or most of configuration item that may be tested is included, so as to need not increase excessive configuration project newly when subsequently carrying out functional test, Only the wherein parameter combination of configuration item need to be changed or only increase less new configuration item;For mobile end subscriber, this Setting can also save customer flow.
Such as:The base configuration file includes the switch whether payment button renders, and the acquiescence of the switch is matched It is 1 to set value, which can be used as a test control group;When needing to confirm the switch rendered and what is do not rendered open It closes, the clicking rate higher of which kind of switch then can be by configurations described in certain customers' software to determine the final effect of switch The Configuration Values of payment button in file are changed to 0, as another test control group, to obtain the point switched in two control groups Rate situation is hit, and determines final switching effect according to the click condition.If not including rendering in the base configuration file The configuration item of payment button, then need to increase to the configuration item in the base configuration file in follow-up test.
Step S20:It obtains the sampling configuration file of the application function and compares configuration file;Wherein, the comparison is matched Set the comparison information that file includes the sampling configuration file and the sampling configuration content of the base configuration file;
The configuration information of the sampling configuration file corresponds to a test control group of the application function, the basis Configuration file can correspond to another test control group of the application function;When two sampling for testing control group configurations Only include the difference of a Configuration Values in content, and when the Configuration Values have default configuration value in the base configuration file, It can be directly using the Configuration Values hit in the base configuration file as another test control group of the application function.Example Such as:The object of the application function test is whether payment button opens rendering effect, i.e., the rendering switch of the described payment button Configuration Values are 1 or 0, when having the default configuration value of the configuration item in the base configuration file (such as the value is 1), can be incited somebody to action The base configuration file is directly as one of test control group;When user obtains the sampling configuration file, the sampling In configuration file pay button rendering switchgear distribution value be set as the value (such as 0) opposite with the default configuration value, using as Another test control group.In this example, since the configuration item of application function test only has one, and the configurations File can directly as one of test control group, therefore the content in the relatively configuration file can not influence test into Row;But the relatively configuration file can be used for confirming the default value in the base configuration file;Such as:It is described relatively to configure text Part includes that the rendering switchgear distribution value of payment button is 1, which is written in the base configuration file, it is ensured that institute The Configuration Values stated in base configuration file are opposite with the Configuration Values in the sampling configuration file.
When the configuration information of described two test control groups includes the difference of multiple configuration items, or including the basis In configuration file when content not to be covered, then the base configuration file not necessarily can be directly as one of test control Group;Such as:In the base configuration file, including two configuration items:First configuration item is that button is suspended in the screen right side always Whether top opens, and the i=1 if opening is not turned on i=0;Second configuration item is whether the 3D rendering effects of the button are opened It opens, the j=1 if opening is not turned on j=0.If the default configuration value of described two configuration items is 0, but the application function The Configuration Values one of test are i=1, j=0, when the Configuration Values of another test are i=0, j=1, the base configuration file It then cannot be directly as test control group, it is necessary to the base configuration file is changed, so that there are two types of tests to match for test terminal tool The sampling configuration content set, i.e., the sampling of the described sampling configuration file and the base configuration file configure content.
Due to that may include a large amount of configuration item in the base configuration file, and application function to be tested may be wrapped only The relatively configuration file can be arranged to accelerate the modification speed of the base configuration file in the modification for including a small amount of configuration item, with Record the comparison information of the sampling configuration content in sampling configuration file and the base configuration file, and by the comparison Differentiation configuration item in information is quickly changed;And the base configuration file before the also recordable modification of the comparison information Content, in the sampling configuration content failure of the application base configuration file, can return to the base configuration file before modification, Ensure using can normal operation.
Step S30:The base configuration file is changed according to the relatively configuration file;
Since the relatively configuration file includes the comparison information, therefore can be according to described in the relatively configuration file modification Base configuration file, so that modified base configuration file becomes a test control group or multiple test control groups.It is described It directly includes the Configuration Values that each configuration item changed is needed in test control group to compare in configuration file, so that the comparison is matched Set the Configuration Values in file dduring test in can directly replace modification before base configuration file in partial test Configuration Values.
It is base configuration file or modified configurations before modification for ease of the determination base configuration file File may include the configuration of timestamp in the base configuration file.
Step S40:Using the application function, the application function is obtained from the sampling configuration file or the basis The configuration information hit in configuration file.
The sampling configuration file or the modified base configuration file can indicate the pumping of two kinds of test configurations respectively Sample configures content or the sampling of a variety of test configurations configures content.When running the software, work(can be applied according to the described of acquisition Can sampling configuration file and compare configuration file, confirmation is to obtain specific configuration information from the sampling configuration file, Or specific configuration information is obtained from the base configuration file, and determine final test configurations value.It is described final Test configurations value can be determined by server, can also be determined by terminal;When being determined by server, the sampling configuration file can be passed through Or compare configuration file and the specified test configurations value is issued to terminal, when being determined by terminal, terminal can be worked as according to user Preceding concrete condition adaptive configuration, such as:When terminal judgement is currently at wifi environment, then one group of test configurations value is hit, When terminal judgement is currently at non-wifi environment, then another group of test configurations value is hit.
The predeterminable base configuration file for including various configurations item of the present embodiment, and with test control configuration The sampling configuration file, so that at least two groups test can be obtained without updating client and match for the application function It sets;By collecting user's service condition of at least two groups test configurations, feedback of the user to different application function can be analyzed, with Reference as application function final effect.The test method of the present invention can be described in operation in application, being obtained from server dynamic It takes the sampling configuration file and compares configuration file, recompiled without developer and restocking is to shop, improve test Flexibility and efficiency;And the test code of the client it is long-term can to avoid client code by the control of server Accumulate the too fat to move problem brought.
Based on the first embodiment, the present invention also proposes another embodiment:It is described to obtain the application function from described After the configuration information hit in sampling configuration file or the base configuration file, further include:
The configuration information of the hit is sent to server, so that the server realizes that the configuration of the application function is surveyed Examination.
The configuration information that the present embodiment can be hit to the server feedback, and executed according to the configuration information of terminal hit Corresponding application function;The configuration information for the hit that the server can also be sent according to terminal, determines each test terminal Distribution and test configuration information, after can also further whether being changed according to the configuration information ratio-dependent of the hit Continuous test configurations information, to obtain the sample message for having more reference value.
Based on first embodiment, the present invention also proposes another embodiment:It is described to use application function, it obtains described using work( The configuration information that can be hit from the sampling configuration file or the base configuration file, including:
Using application function, judge whether the application function hits the configuration information in the sampling configuration file, if It is the configuration information obtained in the sampling configuration file;If it is not, judging whether the application function hits the configurations Configuration information in file, if so, obtaining the configuration information in the base configuration file.
Due to the unstability of the sampling configuration file, the present embodiment preferentially hits matching in the sampling configuration file Confidence cease, to avoid hit it is described sampling configuration file in configuration information when, the configuration item configuration failure of application function and lead The situation for causing the test sample quantity of the sampling configuration file relatively low.
Fig. 3 is that the present invention is based on the part flow diagrams of the rendering configurations second embodiment of the proposition of first embodiment. In this embodiment, when user starts application, the base configuration file is first loaded, may include in the base configuration file The relevant configuration item of rendering configurations, to accelerate the time that user subsequently obtains test configurations information;Load the configurations text After part, judge whether user logs in, if user is not logged on, user is prompted to log in;If user has logged in or has been carried according to described After showing login, the sampling configuration file of rendering configurations is reloaded, so that the sampling configuration file and user information correlation, It is analyzed convenient for subsequent samples;Then application function obtains hit from the sampling configuration file or the base configuration file Rendering configurations information, as one of test control group;When obtaining the configuration information, it can preferentially judge whether to hit the sampling Rendering configurations information in configuration file judges whether to hit the rendering in the base configuration file if do not hit Configuration information;If all do not hit, infers that mistake occurs in the rendering configurations information that may be obtained, render test crash, return The default value for returning application function, so that user still can normal use application software.
Based on first embodiment, the present invention also proposes another embodiment:Before the use application function, also wrap It includes:
Verify the legitimacy of the sampling configuration file and the configuration content in the base configuration file.
It is different it to be likely to occur loss of data etc. in obtaining the sampling configuration file and the data procedures for comparing configuration file Often or the sampling configuration file and compares the hardware parameter of the configuration information and terminal that are hit in configuration file and does not match that, It may lead to the configuration information configuration error of the hit or can not execute, therefore the present embodiment adds verification step, so that terminal Actual configuration information and the accordant configuration information for it is expected hit.
Based on the first embodiment, the present invention proposes that another embodiment, the basis for obtaining the application function are matched After setting file, further include:
Judge whether user logs in, if so, continuing the sampling configuration file for obtaining application function and the ratio Otherwise the step of compared with configuration file, prompts log-on message.
To obtain more detailed user data sample, or it is literary according to the corresponding sampling configuration of user information matching Part, the present invention can also examine whether user logs in after the base configuration file for obtaining the application function;If user steps on Record then can match the sampling configuration file according to the user information of login and prompt user to step on if user is not logged on Record.It, can be in advance by the configurations since the base configuration file can not be related to user information, therefore before user logs in File is loaded onto user terminal, to save load time when user subsequently uses test function.The base configuration file Load time may be configured as this and apply at foreground or running background, and when user is in cable network or wifi network environment, Various flow was consumed to avoid user.
Based on first embodiment, the present invention also proposes another embodiment:The sampling configuration for obtaining the application function File and after comparing configuration file further includes:
Judge whether the sampling configuration file and the relatively configuration file are out-of-date, if so, being obtained from server newest Sampling configuration file and compare configuration file.
After getting the sampling configuration file of the application function due to user terminal and compare configuration file, and differ Determine to run the sampling configuration file of the application function immediately and compare configuration file, may use next time or log in until user Just run when the application, thus after reusing or logging in the application in user, the sampling configuration text of the operation application function Part and compares and can verify the current sampling configuration file obtained before configuration file again and compare whether configuration file is most New configuration file is then continued to run with if newest configuration file;If have been subjected to, newest pumping is obtained from server Sample configuration file and compare configuration file.The newest sampling configuration file obtained with compare before configuration file can cover Obtain out-of-date sampling configuration file and compare configuration file, to save client configuration code.
Fig. 4 is the part flow diagram of third embodiment of the invention, including judging that the sampling configuration file is No out-of-date step.In this embodiment, server can carry out application build compiling in backstage, in case publication has application function The version of test;It is packaged the base configuration file again, the base configuration file includes the configuration item for being possible to test, In case carrying out configuration modification when follow-up test.When user terminal starts in application, described using work(using being obtained from server Can sampling configuration file and compare configuration file, wherein it is described sampling configuration file include hit configuration information, with work For one of test control group;When the relatively configuration file includes the configuration item not having in the base configuration file When, newly-increased configuration item can be added in the base configuration file according to the relatively configuration file, so as to by updated base Plinth configuration file is as another test control group;Before the application sampling configuration file, it is additionally provided with judgement and has downloaded The whether out-of-date step of sampling configuration file;If the sampling configuration file has been subjected to, re-download described in update Sampling configuration file, to ensure the sampling configuration file as latest configuration file.
Based on first embodiment, the present invention also proposes another embodiment:It is described that institute is changed according to the relatively configuration file After stating base configuration file, further include:
Record the modification content of the base configuration file;
The instruction for stopping test being received, the base configuration file is restored according to the modification content, deletes the sampling Configuration file.
After the test of application function, terminal may finally continue to run with original base configuration file, or work as institute When stating sampling configuration file or modified base configuration file operation exception or being verified as illegal, to ensure that user normally makes With, it is necessary to modified base configuration file is reduced to the base configuration file before modification;Therefore the present embodiment also carries Go out it is a kind of can record the base configuration file modification content scheme, with user terminal because certain reason stop test When, it the configuration at family can be used to be restored to the base configuration file before modification.
It is described to use the application function as one embodiment, it obtains the application function and configures text from the sampling After the configuration information hit in part or the base configuration file, further include:
The instruction for stopping test being received, the base configuration file is restored according to the modification content, deletes the sampling Configuration file.
Any time of the present embodiment during the test can receive and stop test instruction;For example, completing to test Afterwards, stop test;It can also find that the content that need to be tested is wrong during the test, stop test immediately.After stopping test, The base configuration file can be restored, the sampling configuration file is deleted and does not exist to ensure application recovery normal operating condition It needs to reinstall or delete function module, it is easy to use.
When the functional test has more than two test configurations, or need to be that user load different sampling configurations in advance When file, the present invention also proposes another embodiment:The sampling configuration file for obtaining the application function and compare configuration text Before part, further include:
At least two sampling configuration files are downloaded from server, each sampling configuration file corresponds to a comparison configuration File;
It obtains the sampling configuration file of the application function and compares configuration file, including:
Gender and the age logged in using user is obtained, is configured from least two sampling according to the gender and age A sampling configuration file and corresponding relatively configuration file are obtained in file.
When the functional test has more than two test configurations, each test configurations will a corresponding sampling Configuration file or in which a test configurations can correspond to the base configuration file;User terminal will be obtained from server at this time At least two configuration files, with the different test configurations of correspondence;Each sampling configuration file can correspond to a comparison configuration File makes modified base configuration file have the configuration information of hit for changing the base configuration file.When with When family terminal determines one of sampling configuration file according to the hardware parameter or software parameters of terminal, or according to the user of login When information determines one of sampling configuration file, you can determine corresponding relatively configuration file, and according to the ratio of the determination The base configuration file is changed compared with configuration file.Such as:The all ages and classes function different with the user test of gender need to be directed to When, if active user is not logged on, obtains all sampling configuration files and compare configuration file with corresponding;When user steps on After record, then corresponding sampling configuration file and corresponding relatively configuration file are matched according to user information, so that test function is more Has specific aim.
Certainly described log in may also include the geographical location of user, usage time preference, using frequency using the information of user The characteristic informations such as rate, also can be according to the corresponding sampling configuration file of this feature information matches and corresponding relatively configuration file.
When the test of the application function includes the association phase that at least two have sequencing in time, this hair It is bright also to go out another embodiment:The sampling configuration file for obtaining application function and before comparing configuration file further includes:
The sampling configuration file of two test phases is downloaded from server, each sampling configuration file corresponds to a ratio Compared with configuration file;Described two test phases include the first test phase and the second test phase;
It obtains the sampling configuration file of the application function and compares configuration file, including:
Determine that current time is first test phase;
The sampling configuration file of first test phase is obtained from the sampling configuration file of described two test phases With corresponding relatively configuration file;
The configuration for obtaining the application function and being hit from the sampling configuration file or the base configuration file After information, further include:
It determines that current time is second test phase according to the configuration information, or is determined currently according to user instruction Moment is second test phase;
The sampling configuration file of second test phase is obtained from the sampling configuration file of described two test phases With corresponding relatively configuration file;Continue described according to described the step of relatively configuration file changes the base configuration file.
Certain applications all have the operation of relevance, such as in video record, it may include whether open personage's mirror image The configuration item of magic square effect;If after opening, can also further comprise the configuration item whether mirror image is carried out to visual processes. In the present embodiment, whether can will open the magic square effect of personage's mirror image and can be used as first test phase, whether will carry out mirror Second test phase is can be used as image carries out visual processes;The pumping of two test phases can be first downloaded from the server Sample configuration file, each sampling configuration file is a test control group, and corresponds to a comparison configuration file;Each ratio Compared with configuration file for changing the corresponding base configuration file, to test control group as corresponding another;Work as determination When current time is first test phase, from the sampling configuration file for two test phases downloaded, whether acquisition The sampling configuration file of personage's mirror image is opened, such as:When the Configuration Values of the configuration item are 1, personage's mirror image is opened, is surveyed as first One test control group in examination stage, further according to the relatively configuration file, by the configuration item in the base configuration file Configuration Values are revised as 0, are not turned on personage's mirror image, another test control group as first test phase;Open personage After mirror image, determine that current time is second test phase further according to the configuration information or user instruction, from what is downloaded In the sampling configuration file of two test phases, the sampling configuration text whether mirror image is carried out to visual processes again obtained Part, such as:When the Configuration Values of the configuration item are 1, mirror image is subjected to visual processes again, as second test phase One test control group, further according to it is described relatively configuration file, by the Configuration Values of the configuration item in the base configuration file It is revised as 0, visual processes are not carried out again to the mirror image, using another test pair as second test phase According to group.
First test phase and the application function of second test phase test can not also have pass in logic Connection property, such as:First test phase corresponds to configuration of the application function on daytime, and second test phase, which corresponds to, applies work( It can be described two to be configured to mutual independent configuration in the configuration at night.
Based on a upper embodiment, at least two sampling that the present invention can also download first test phase from server are matched File, at least two sampling configuration files of second test phase are set, each sampling configuration file corresponds to a ratio Compared with configuration file;
It obtains the sampling configuration file of the application function and compares configuration file, including:
Obtain gender and the age logged in using user;
Determine that current time is first test phase;
According to the gender and age from least two sampling configuration files of first test phase, one is obtained Sampling configuration file and corresponding relatively configuration file;
The configuration for obtaining the application function and being hit from the sampling configuration file or the base configuration file After information, further include:
According to the gender and age, judge whether to enter second test phase;If so, from described two test ranks The sampling configuration file of second test phase and corresponding relatively configuration file are obtained in the sampling configuration file of section;Continue It is described to compare the step of configuration file changes the base configuration file according to described.
The present embodiment can position usage degree of the user to application according to gender and age;If for example, first test Stage is modification picture, and second test phase is that modified picture is shared trip platform in one's hands;In certain age bracket People likes object for appreciation hand trip, and the possible opponent's interest of sightseeing interest of the people of other age levels is less, less using second test phase, therefore The second with proviso test phase can be set.The test of application function is divided into two stages by this programme, is belonged in combination with user Property, carry out more accurate functional test.
The present invention also proposes a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium Machine program when the computer program is executed by processor, realizes the step of the test method of any one of aforementioned application function Suddenly.
The present invention also proposes a kind of terminal device, including memory, processor and storage on a memory and can handled The computer program run on device;When the processor executes the computer program, realizes and applied described in aforementioned any one The step of test method of function.
It is illustrated in figure 3 the part-structure block diagram of terminal device of the present invention, for convenience of description, is illustrated only and this The relevant part of inventive embodiments.The terminal device can be include mobile phone, tablet computer, laptop, desktop computer Etc. the terminal device that may be viewed by programme televised live.Illustrate the working method of terminal device of the present invention by taking desktop computer as an example below.
With reference to figure 3, desktop computer includes the components such as processor, memory, input unit, display unit.Art technology Personnel are appreciated that desktop computer structure shown in Fig. 3 does not constitute the restriction to all desktop computers, may include than figure Show more or fewer components, or the certain components of combination.Memory can be used for storing computer program and each function module, Processor is stored in the computer program of memory by operation, to execute the various function application and data of desktop computer Processing.Memory can include mainly storing program area and storage data field, wherein storing program area can storage program area, extremely Application program (for example watching the function of programme televised live) etc. needed for a few function;Storage data field can be stored according to desktop Brain uses created data (such as live data etc.) etc..In addition, memory may include high-speed random access memory, Can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states is deposited Memory device.
Input unit can be used for receiving search key input by user, and generate with the user setting of desktop computer with And the related signal input of function control.Specifically, input unit may include touch panel and other input equipments.Touch surface Plate collect user on it or neighbouring touch operation (for example user uses any suitable object or attached such as finger, stylus Operation of the part on touch panel or near touch panel), and corresponding attachment device is driven according to a pre-set procedure; Other input equipments can include but is not limited to physical keyboard, function key (such as broadcasting control button, switch key etc.), track It is one or more in ball, mouse, operating lever etc..Display unit can be used for showing information input by user or be supplied to user's The various menus of information and desktop computer.The forms such as liquid crystal display, Organic Light Emitting Diode can be used in display unit.Processing Device is the control centre of desktop computer, using the various pieces of various interfaces and the entire computer of connection, by running or holding Row is stored in software program and/or module in memory, and calls the data being stored in memory, performs various functions With processing data.
In addition, each module in each embodiment of the present invention can be integrated in a processing module, can also be each A unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated module was both The form that hardware may be used is realized, can also be realized in the form of software function module.If the integrated module with The form of software function module realizes and when sold or used as an independent product, can also be stored in one it is computer-readable It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (11)

1. a kind of test method of application function, which is characterized in that including:
Obtain the base configuration file of application function;
It obtains the sampling configuration file of the application function and compares configuration file;Wherein, the relatively configuration file includes institute State the comparison information of sampling configuration file and the sampling configuration content of the base configuration file;
The base configuration file is changed according to the relatively configuration file;
Using the application function, obtains the application function and ordered from the sampling configuration file or the base configuration file In configuration information.
2. test method according to claim 1, which is characterized in that the acquisition application function is matched from the sampling After setting the configuration information hit in file or the base configuration file, further include:
The configuration information of the hit is sent to server, so that the server realizes the configuration testing of the application function.
3. test method according to claim 1, which is characterized in that it is described to use application function, it obtains described using work( The configuration information that can be hit from the sampling configuration file or the base configuration file, including:
Using application function, judge whether the application function hits the configuration information in the sampling configuration file, if so, obtaining Take the configuration information in the sampling configuration file;If it is not, judging whether the application function hits the base configuration file In configuration information, if so, obtaining the configuration information in the base configuration file.
4. test method according to claim 1, which is characterized in that it is described using before the application function, further include:
Verify the legitimacy of the sampling configuration file and the configuration content in the base configuration file.
5. test method according to claim 1, which is characterized in that the configurations text for obtaining the application function After part, further include:
Judge whether user logs in, if so, the continuation sampling configuration file for obtaining application function and the comparison are matched Otherwise the step of setting file prompts log-on message.
6. test method according to claim 1, which is characterized in that the sampling configuration text for obtaining the application function Part and after comparing configuration file further includes:
Judge whether the sampling configuration file and the relatively configuration file are out-of-date, if so, obtaining newest pumping from server Sample configuration file and compare configuration file.
7. test method according to claim 1, which is characterized in that described according to described in the relatively configuration file modification After base configuration file, further include:
Record the modification content of the base configuration file;
The instruction for stopping test being received, the base configuration file is restored according to the modification content, deletes the sampling configuration File.
8. test method according to claim 1, which is characterized in that it is described obtain application function sampling configuration file and Before comparing configuration file, further include:
At least two sampling configuration files are downloaded from server, each sampling configuration file corresponds to a comparison configuration text Part;
It obtains the sampling configuration file of application function and compares configuration file, including:
Gender and the age logged in using user is obtained, according to the gender and age from at least two sampling configuration file It is middle to obtain a sampling configuration file and corresponding relatively configuration file.
9. test method according to claim 1, which is characterized in that it is described obtain application function sampling configuration file and Before comparing configuration file, further include:
The sampling configuration file of two test phases is downloaded from server, each sampling configuration file corresponds to a comparison and matches Set file;Described two test phases include the first test phase and the second test phase;
It obtains the sampling configuration file of the application function and compares configuration file, including:
Determine that current time is first test phase;
The sampling configuration file of first test phase and right is obtained from the sampling configuration file of described two test phases The comparison configuration file answered;
The configuration information for obtaining the application function and being hit from the sampling configuration file or the base configuration file Later, further include:
It determines that current time is second test phase according to the configuration information, or current time is determined according to user instruction For second test phase;
The sampling configuration file of second test phase and right is obtained from the sampling configuration file of described two test phases The comparison configuration file answered;Continue described according to described the step of relatively configuration file changes the base configuration file.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program when the computer program is executed by processor, realizes the test side of any one of claim 1 to 9 application function The step of method.
11. a kind of terminal device, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program;It is characterized in that, when the processor executes the computer program, realize described in claim 1 to 9 any one The step of test method of application function.
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 true CN108319554A (en) 2018-07-24
CN108319554B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753892A (en) * 2018-12-18 2019-05-14 广州市百果园信息技术有限公司 Generation method, device, computer storage medium and the terminal of face wrinkle
CN110046092A (en) * 2019-03-12 2019-07-23 北京创鑫旅程网络技术有限公司 Test shunt method, device, electronic equipment and computer readable storage medium
CN110601922A (en) * 2019-09-18 2019-12-20 北京三快在线科技有限公司 Method and device for realizing comparison experiment, electronic equipment and storage medium
CN110941460A (en) * 2019-11-22 2020-03-31 北京金山云网络技术有限公司 Application program starting method and device, electronic equipment, system and storage medium
CN112948020A (en) * 2021-03-18 2021-06-11 海南视联通信技术有限公司 Configuration file processing method and device

Citations (11)

* 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
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server
CN103825632A (en) * 2012-11-16 2014-05-28 纬创资通股份有限公司 Information rapid synchronization method applying near-field communication
US20150227962A1 (en) * 2014-02-11 2015-08-13 Sears Brands, L.L.C. A/b testing and visualization
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
CN106412955A (en) * 2016-09-29 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method and device for executing IMS service, and terminal
CN106776294A (en) * 2016-11-29 2017-05-31 任子行网络技术股份有限公司 Android mobile phone automated testing method and system
CN107547239A (en) * 2016-10-27 2018-01-05 腾讯科技(深圳)有限公司 Configure the update method and device of object

Patent Citations (11)

* 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
CN103577321A (en) * 2012-08-07 2014-02-12 阿里巴巴集团控股有限公司 Multi-version parallel test method for web pages and server
CN103825632A (en) * 2012-11-16 2014-05-28 纬创资通股份有限公司 Information rapid synchronization method applying near-field communication
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
US20150227962A1 (en) * 2014-02-11 2015-08-13 Sears Brands, L.L.C. A/b testing and visualization
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
CN106412955A (en) * 2016-09-29 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method and device for executing IMS service, and terminal
CN107547239A (en) * 2016-10-27 2018-01-05 腾讯科技(深圳)有限公司 Configure the update method and device of object
CN106776294A (en) * 2016-11-29 2017-05-31 任子行网络技术股份有限公司 Android mobile phone automated testing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张如云: "A/B测试在软件项目开发中的应用探析", 《电脑开发与应用》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753892A (en) * 2018-12-18 2019-05-14 广州市百果园信息技术有限公司 Generation method, device, computer storage medium and the terminal of face wrinkle
CN110046092A (en) * 2019-03-12 2019-07-23 北京创鑫旅程网络技术有限公司 Test shunt method, device, electronic equipment and computer readable storage medium
CN110601922A (en) * 2019-09-18 2019-12-20 北京三快在线科技有限公司 Method and device for realizing comparison experiment, electronic equipment and storage medium
CN110941460A (en) * 2019-11-22 2020-03-31 北京金山云网络技术有限公司 Application program starting method and device, electronic equipment, system and storage medium
CN110941460B (en) * 2019-11-22 2023-09-01 北京金山云网络技术有限公司 Application program starting method and device, electronic equipment, system and storage medium
CN112948020A (en) * 2021-03-18 2021-06-11 海南视联通信技术有限公司 Configuration file processing method and device

Also Published As

Publication number Publication date
CN108319554B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN108319554A (en) Test method, computer readable storage medium and the terminal device of application function
US8544016B2 (en) Rebuilding a first and second image based on software components having earlier versions for one or more appliances and performing a first and second integration test for each respective image in a runtime environment
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
US20120116751A1 (en) Providing message text translations
US9292423B1 (en) Monitoring applications for compatibility issues
CN108920359B (en) Application program testing method and device, storage medium and electronic device
CN110928770B (en) Software testing method, device, system, storage medium and electronic equipment
CN110321178A (en) Starting processing method, device, equipment and the storage medium of attached application end
CN105641931A (en) Game operation configuration method and system
CN110543789A (en) method and device for adapting handle and third-party application program and storage medium
CN106504026A (en) A kind of data capture method and device
CN110647335A (en) Software gray level release method and device, electronic equipment and storage medium
CN104765609A (en) Software related resource recommendation method, obtaining method and corresponding device
CN106909427A (en) A kind of Oftware updating method, device and software update data dissemination method, system
CN114647572A (en) Method and system for software application component testing
CN108875368A (en) A kind of safety detection method, apparatus and system
CN110597496B (en) Method and device for acquiring bytecode file of application program
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CA3055859A1 (en) Method and system for operating a software application on a processor of a mobile device
Michalik et al. Towards a solution for change impact analysis of software product line products
US20100042867A1 (en) Customization and reuse of logged agent activity during remote take over help session
EP3321808A1 (en) Verification system and verification method
CN111078527B (en) Auxiliary system and method for pressure testing of server
CN110413800B (en) Method and equipment for providing novel information
CN106713410A (en) User information acquisition method and related devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
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.