CN109496417A - Data test method, apparatus, equipment/terminal/server and computer readable storage medium - Google Patents

Data test method, apparatus, equipment/terminal/server and computer readable storage medium Download PDF

Info

Publication number
CN109496417A
CN109496417A CN201880001139.4A CN201880001139A CN109496417A CN 109496417 A CN109496417 A CN 109496417A CN 201880001139 A CN201880001139 A CN 201880001139A CN 109496417 A CN109496417 A CN 109496417A
Authority
CN
China
Prior art keywords
file
operational trials
tested
target object
class
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.)
Pending
Application number
CN201880001139.4A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
Ucweb Singapore Pte 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 Ucweb Inc, Ucweb Singapore Pte Ltd filed Critical Ucweb Inc
Publication of CN109496417A publication Critical patent/CN109496417A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The embodiment of the present application provides a kind of data test method, apparatus, electronic equipment and computer storage medium, wherein, data test method includes: the operational trials file that target object to be tested is obtained according to test instruction, wherein, operational trials file includes at least one of: and the corresponding second class incremental testing file of resource class file, third class incremental testing file corresponding with dynamic link library class file in target object to be tested in the corresponding first kind incremental testing file of service logic class file and target object to be tested in target object to be tested;According to the classification for the incremental testing file for including in operational trials file, the file process for operational trials is carried out to the file in incremental testing file and its corresponding target object to be tested;According to file process as a result, treating test target object carries out operational trials.By the embodiment of the present application, the version updating speed of application and the verification efficiency of new business function are greatly promoted.

Description

Data test method, apparatus, equipment/terminal/server and computer-readable storage Medium
Technical field
The invention relates to Internet technical field more particularly to a kind of data test method, apparatus, equipment/end End/server and computer readable storage medium.
Background technique
With the development of computer and Internet technology, electronic equipment is widely used, and installation is on an electronic device Application it is also more and more abundant.It follows that the version updating of application is also getting faster.
When application carries out version updating, generally require to carry out release quickly verifying to business function that is newly-increased or updating, The different products scheme of more sets is designed even for the same business function to carry out publication verifying.Current Normal practice is, It will update or newly-increased business function be compiled into complete application software installation kit, then issued by publication channel to user. User need to actively download complete application software installation kit, and use after being installed.
In the publication verification mode of the above-mentioned business function for application, one side release cycle is longer, and needs to wait User actively downloads and installs update, and publication comparison is passive, and verification efficiency is relatively low, and then affects the whole version of application This renewal speed;On the other hand, user needs to download complete installation kit, causes to occupy more Internet resources and user local Resource.
Summary of the invention
In view of this, one of the technical issues of the embodiment of the present application is solved is to provide a kind of data test method, dress It sets, equipment/terminal/server and computer readable storage medium, to overcome the publication of existing Application Service Function to verify Low efficiency, the problem of occupying more resource.
The embodiment of the present application provides a kind of data test method, comprising: obtains target pair to be tested according to test instruction The operational trials file of elephant, wherein the operational trials file includes at least one of: in the target object to be tested It is the corresponding first kind incremental testing file of service logic class file, corresponding with resource class file in the target object to be tested Second class incremental testing file, third class incremental testing corresponding with dynamic link library class file in the target object to be tested File;According to the classification for the incremental testing file for including in the operational trials file, to the incremental testing file and its right The file in the target object to be tested answered carries out the file process for operational trials;According to the knot of the file process Fruit carries out operational trials to the target object to be tested.
The embodiment of the present application also provides a kind of data test devices, comprising: obtains module, is configured to be instructed according to test Obtain the operational trials file of target object to be tested, wherein the operational trials file includes at least one of: with it is described In target object to be tested in the corresponding first kind incremental testing file of service logic class file and the target object to be tested It is the corresponding second class incremental testing file of resource class file, corresponding with dynamic link library class file in the target object to be tested Third class incremental testing file;Processing module is configured to according to the incremental testing file for including in the operational trials file Classification, the file in the incremental testing file and its corresponding target object to be tested is carried out for operational trials File process;Test module is configured to according to the file process as a result, carrying out business to the target object to be tested Test.
The embodiment of the present application also provides a kind of equipment/terminal/servers, comprising: one or more processors;Storage dress It sets, is configured to store one or more programs;When one or more of programs are executed by one or more of processors, make It obtains one or more of processors and realizes data test method as described above.
The embodiment of the present application also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey Data test method as described above is realized when sequence is executed by processor.
By data test scheme provided by the embodiments of the present application, target object to be tested is obtained according to test instruction automatically Operational trials file, without relying on the down operation of user, and only need to obtain for carrying out operational trials incremental testing text Part, rather than integral installation packet is completely applied, in turn, after getting corresponding incremental testing file, it is carried out for industry The file process of business test, the operational trials of target object to be tested is carried out by file operation result.As it can be seen that passing through the application The data test scheme of embodiment, the automatic operational trials file that obtains carry out operational trials, can greatly promote the version of application The verification efficiency of renewal speed and new business function, operational trials file be incremental testing file, can save Internet resources and User's local resource.In addition, further improving corresponding industry by carrying out targeted file process to incremental testing file The efficiency of business functional test.
Detailed description of the invention
The some specific of the embodiment of the present application is described in detail by way of example and not limitation with reference to the accompanying drawings hereinafter Embodiment.Identical appended drawing reference denotes same or similar part or part in attached drawing.Those skilled in the art should manage Solution, the drawings are not necessarily drawn to scale.In attached drawing:
Fig. 1 is the step flow chart according to a kind of data test method of the embodiment of the present application one;
Fig. 2 is the step flow chart according to a kind of data test method of the embodiment of the present application two;
Fig. 3 is the step flow chart according to a kind of data test method of the embodiment of the present application three;
Fig. 4 is the structural block diagram according to a kind of data test device of the embodiment of the present application four;
Fig. 5 is the structural block diagram according to a kind of data test device of the embodiment of the present application five;
Fig. 6 is the structural schematic diagram according to a kind of equipment/terminal/server of the embodiment of the present application six.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, below in conjunction with the application Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality Applying example only is the embodiment of the present application a part of the embodiment, instead of all the embodiments.Based on the implementation in the embodiment of the present application The range of the embodiment of the present application protection all should belong in example, those of ordinary skill in the art's every other embodiment obtained.
Embodiment one
Referring to Fig.1, a kind of step flow chart of data test method according to the embodiment of the present application one is shown.
The data test method of the present embodiment the following steps are included:
Step S102: the operational trials file of target object to be tested is obtained according to test instruction.
Test instruction is those skilled in the art's setting for periodically or non-periodically treating test target object progress industry The instruction of business test.Test instruction can be set in target object to be tested, new at interval of detecting whether for a period of time Operational trials file, or whether have new operational trials file according to the trigger action detection trigger of setting;Test instruction It is also possible to be sent to target object to be tested by operational trials file distribution end such as server end to indicate its carry out business survey The instruction of examination, target object to be tested obtain operational trials text from business test file publishing side after receiving test instruction Part.
Operational trials file includes at least one of: corresponding with service logic class file in target object to be tested A kind of incremental testing file, second class incremental testing file corresponding with resource class file in target object to be tested, with it is to be measured Try the corresponding third class incremental testing file of dynamic link library class file in target object.
Wherein, service logic class file for realizing target object to be tested various businesses function;Resource class file with Interface alternation is related, for various elements needed for providing generation interactive interface;Dynamic link library class file can be loaded directly It executes, for the method for calling system bottom or progress core logic encryption etc..
It may include the first kind, the in the operational trials file of generation when there is new business function to need to issue test One of two classes and third class incremental testing file are a variety of (two kinds and two or more), first kind incremental testing file and industry Logic class file of being engaged in is corresponding, provides new service logic and realizes, only need to comprising realizing the content of new service logic, without comprising The content of existing service logic class file in target object to be tested;Second class incremental testing file and resource class file pair It answers, new interactive interface resource is provided, also only need to include the content of new resource, without comprising having in target object to be tested Resource class file content;Third class incremental testing file is corresponding with dynamic link library class file, provides new calling system The content of the method for bottom or new core logic encryption method also only need to include new content, without including mesh to be tested Mark the content of existing dynamic link library class file in object.
Step S104: according to the classification for the incremental testing file for including in operational trials file, to incremental testing file and File in its corresponding target object to be tested carries out the file process for operational trials.
What the classification of incremental testing file can indicate to include in operational trials file is first kind incremental testing file, Which of two class incremental testing files, third class incremental testing file or which, and then targetedly to different classes of Incremental testing file carries out the different file process for operational trials.For example, by first kind incremental testing file with it is to be measured The service logic class file tried in target object merges, by the resource in the second class incremental testing file and target object to be tested Class file merging, etc..
Step S106: according to file process as a result, treating test target object carries out operational trials.
After carrying out the file process, after target object to be tested can be used these new merging or not merge File carries out corresponding operational trials, that is, testing the use of new business function, with the new business function of determination Operation and service condition.
Through this embodiment, the operational trials file of target object to be tested is obtained according to test instruction automatically, without according to Rely the down operation of user, and only need to obtain the incremental testing file for carrying out operational trials, rather than complete application is whole Installation kit after getting corresponding incremental testing file, carries out the file process for operational trials to it, passes through in turn File operation result carries out the operational trials of target object to be tested.As it can be seen that through this embodiment, it is automatic to obtain operational trials text Part carries out operational trials, can greatly promote the version updating speed of application and the verification efficiency of new business function, operational trials File is incremental testing file, can save Internet resources and user's local resource.In addition, by being carried out to incremental testing file Targeted file process further improves the efficiency of corresponding service functional test.
The data test method of the present embodiment can be executed by any suitable equipment with data-handling capacity, including But it is not limited to: various terminal equipment or server, e.g., PC machine, tablet computer, mobile terminal etc..
Embodiment two
Referring to Fig. 2, a kind of step flow chart of data test method according to the embodiment of the present application two is shown.
The data test method of the present embodiment the following steps are included:
Step S202: the operational trials file of target object to be tested is obtained according to test instruction.
Wherein, operational trials file includes at least one of: with service logic class file pair in target object to be tested The first kind incremental testing file answered, second class incremental testing file corresponding with resource class file in target object to be tested, Third class incremental testing file corresponding with dynamic link library class file in target object to be tested.
The description that this step can refer to step S102 in embodiment one realizes that details are not described herein.
It should be noted that operational trials file can be by compressed compressed package files, it is also possible to without pressure The original document of contracting.
In addition, when there are more set product design schemes for same function, that is, realize the business of same business function test Test file has different editions and file content, can be by operational trials file distribution end as taken when realizing contrast verification Device end be engaged according to certain regular corresponding operational trials file of equipment transmission to where current target object to be tested.
It can be configured with corresponding information in operational trials file, e.g., if the entry-into-force time information of operational trials file, Processing information when operational trials unsuccessfully causes target object to be tested to collapse and/or report information, etc..
Step S204: according to the classification for the incremental testing file for including in operational trials file, to incremental testing file and File in its corresponding target object to be tested carries out the file process for operational trials.
According to the classification of incremental testing file, the file process for being targetedly used for operational trials is carried out to it, it can be with Effectively improve the efficiency of operational trials.
It, can be by first if in operational trials file including first kind incremental testing file in a kind of feasible pattern Class incremental testing file is merged with the service logic class file in target object to be tested, obtains the first file process knot Fruit;And/or if in operational trials file include the second class incremental testing file, can by the second class incremental testing file with Resource class file in target object to be tested merges, and obtains the second file operation result.For third class incremental testing File does not make merging treatment then.Optionally, the first file operation result can also be used to replace the industry in target object to be tested It is engaged in logic class file, and/or, the resource class file in target object to be tested is replaced using the second file operation result, and/ Or, replacing the dynamic link library class file in target object to be tested using third incremental testing file.If having carried out above-mentioned replace Operation is changed, then can save the storage resource and system power dissipation of target object local to be tested;It can also make target pair to be tested As original and synthesis or replaced file need not be distinguished, simplify the complexity that operational trials executes;If also, business is surveyed It tries successfully, then can directly use new file, without carrying out subsequent processing, improve the efficiency for issuing of new business function.If no Above-mentioned replacement operation is carried out, then when operational trials fails, can be used with fast fallback to original without will affect user, Improve user experience.
For example, carrying out file mergences by the way of merging binary file, Binary diff/patch difference is such as used Patch tool.On the one hand, which is compared the apk packet of what's new and original apk packet by Binary diff, can Go out incremental testing file with difference;On the other hand, after application to be tested gets the function compressed package of incremental testing file, meeting File in compressed package is merged with the respective file of former application installation package with Binary patch function respectively, is wrapped Respective file containing what's new.Using binary file merging by the way of, merge directly it is quick, can greatly improve merging and Testing efficiency.
It should be noted that if operational trials file is compressed package files, carried out again after needing to decompress it above-mentioned Operation.
Step S206: according to the file process as a result, treating test target object carries out operational trials.
It, can be directly using at the file after the result for obtaining the file process in a kind of feasible pattern Reason as a result, treat test target object carry out operational trials.
In another feasible pattern, it can be determined that whether operational trials file meets operational trials condition, if satisfied, then Load the first file operation result and/or the second file operation result of load and/or load third class incremental testing file;According to The first file operation result and/or the second file operation result and/or third class incremental testing file of load, to mesh to be tested It marks object and carries out operational trials.Wherein, operational trials condition includes at least one of: whether operational trials file is when coming into force Whether interior, operational trials file is corresponding with whether crash data, operational trials file are failure by global flag.Pass through judgement Operational trials file can determine the validity of operational trials file whether within the entry-into-force time;By judging operational trials text Whether part is corresponding with crash data, can determine the correctness and robustness of operational trials file;By judging operational trials text Whether part is failure by global flag, can determine whether operational trials file distribution end has eliminated using operational trials text Part is tested.But not limited to this, in actual use, those skilled in the art can also according to actual needs, and it is appropriate to be arranged Operational trials condition.
It, can be by any appropriate after it can treat test target object according to above-mentioned processing determination and carry out operational trials Mode carry out operational trials, e.g., restart target object to be tested, new business function carried out by the trigger action of setting Test is treated test target object and is tested etc. by the control of operational trials file distribution end.
Step S208: feedback traffic test result.
After target object to be tested carries out operational trials, operational trials result is fed back into corresponding control terminal, such as business Test file publishing side or the corresponding server end of target object to be tested etc..
It should be noted that if the result of operational trials indicates that target object to be tested collapses, and, the number of collapse Greater than given threshold, then operational trials file is unloaded;And/or it if receiving the operational trials unloading command of server, unloads Operational trials file.Wherein, given threshold can be appropriately arranged with according to demand by those skilled in the art, the embodiment of the present application pair This is with no restriction.If collapse occurs for target object to be tested and number is greater than given threshold, show real by operational trials file Existing business function is perfect not enough, needs to unload so that target object to be tested is operated normally using original business function;If The operational trials unloading command for receiving server shows that server end abandons the test of this business function, needs mesh to be tested Mark object returns back to former business function.
Through this embodiment, the operational trials file of target object to be tested is obtained according to test instruction automatically, without according to Rely the down operation of user, and only need to obtain the incremental testing file for carrying out operational trials, rather than complete application is whole Installation kit after getting corresponding incremental testing file, carries out the file process for operational trials to it, passes through in turn File operation result carries out the operational trials of target object to be tested.As it can be seen that through this embodiment, it is automatic to obtain operational trials text Part carries out operational trials, can greatly promote the version updating speed of application and the verification efficiency of new business function, operational trials File is incremental testing file, can save Internet resources and user's local resource.In addition, by being carried out to incremental testing file Targeted file process further improves the efficiency of corresponding service functional test.
The data test method of the present embodiment can be executed by any suitable equipment with data-handling capacity, including But it is not limited to: various terminal equipment or server, e.g., PC machine, tablet computer, mobile terminal etc..
Embodiment three
Referring to Fig. 3, a kind of step flow chart of data test method according to the embodiment of the present application three is shown.
The present embodiment is by taking the test of the gray scale of the application based on android system as an example, from server and target pair to be tested As place client between interaction angle, data test method provided by the embodiments of the present application is illustrated.Gray scale is surveyed Examination is a kind of before a certain product or application are formally issued, and selects specific crowd on probation, gradually expands its trier's quantity, so as to A kind of test form for the problem of finding and correct wherein in time.
The data test method of the present embodiment the following steps are included:
Step S302: business function to be tested is compiled into function compressed package (i.e. operational trials file correspondence by server Compressed package).
In android system, when the version iteratively faster of application, generally require to business function that is newly-increased or updating Release quickly verifying is carried out, there are more set product design schemes even for the same function, needs to be carried out with specific business datum Compare verifying.In the embodiment of the present application, by allowing installed applying actively to go to load the business to be verified dynamically issued The compressed package of function enables a user to directly use the business function.
Wherein, function compressed package based on android system may comprising some or all of in following three parts, That is: (one) class file (service logic class file), the service logic of application is programmed in class, is protected with the file of .class format It deposits, and is packaged polymerization in compiling, be compiled into the file of .dex format.In application starting, using load .dex file, protect There are in a dex array of memory, to be loaded into the relevant class file of service logic from it;(2) resource file (resource Class file), multiple files of the relevant all icons of interactive interface, text, interface layout for storing application etc.;(3) so File (a kind of dynamic link library class file), the binary file write and compiled with C or C++, application, which can load, calls so text Part, the purpose of realizing the method for calling system bottom or carry out core logic encryption.
One business function that is newly-increased or updating also relies at least one element among these, it is thus possible to newly-increased or change The element of wherein one or more parts, to generate the compressed package of new business function.The compressed package of business function to be verified is only The element to increase newly or change comprising these, and it is applied to function load, user can directly use the business function.
Wherein, so file is using the file that can be loaded directly into;Resource file and the original resource file of application need It merges, using the resource file that can also be loaded after merging;And for class that class file, business function to be verified are related to File is also required to be compiled into .dex file, and merges with original .dex file, and load is inserted into dex array after merging In, so that application to be tested can load the service logic class that newly-increased business function is relied on from the dex array.Into And it realizes the dynamic of business function and increases.
If gray scale test using AB test form, need for business function to be tested to be compiled into different multiple Function compressed package.AB test is to find out a part of user and they are divided into two groups, allow wherein one group of user using A editions This is tested, then another set is allowed to be tested using B version.Which analyzes from obtained mass data by AB test One version is only most favorite by user, not only can guarantee that new version can be easily accepted by a user but also can guarantee that some small problems exist It is just enhanced before being widely applied.Further, in practical applications, above-mentioned AB test can be not limited to, user is divided into two User can be divided into multiple groups (two groups and more than two) according to actual needs, to meet operational trials needs by the form of group.
This step in specific implementation, can compile resource file and so text of business function code and dependence to be verified Part.The function compressed package being compiled into includes .dex file, resource bundle and so file;It needs to carry out different product design scheme When contrast verification, i.e., when multiple groups user carries out different business test, then need to compile multiple function compressed packages.
Step S304: server is online for target application progress function compressed package deployment to be tested, and sets and come into force Configuration.
Information of the server according to target application, version, user property, area, language including target application etc. carry out Configure it is online, when needing to carry out different product design scheme contrast verification, i.e., multiple groups user carry out different business test when, for Target application carries out being randomly assigned matched product design scheme, while control issues total amount.When configuring online, dynamic can be set The entry-into-force time of function compressed package.Application requests network server, when target application is matched, obtain the configuration of update and under Carry dynamic function compressed package.
Step S306: target application inspection updates, and obtains the configuration of function compressed package, downloads corresponding dynamic function compression Packet (alternatively referred to as gray scale packet when gray scale is tested).
Step S308: it after target application completes the downloading of dynamic function compressed package, is decompressed.
Wherein, where being stored in target application after so file decompression in the local document store of equipment, resource bundle Merge after decompression with using original resource bundle .dex file and original .dex file mergences are stored in target application In the local document store of place equipment, and record file path and version.
Step S310: target application is restarted.
Step S312: target application judges whether to meet operational trials condition, if satisfied, then carrying out operational trials;Otherwise, Terminate current test.
It include: to judge whether current time comes into force in the phase in the function compressed package of configuration, if it is not, then terminate currently to survey Examination;If judging whether once occurred repeatedly to collapse using the function compressed package within the phase of coming into force;If occurring, terminate Current test;If not occurring, whether arbitration functions compressed package was failed by global flag, if marked, terminated to work as Preceding test;If not being labeled, the resource bundle that can load merging replaces original resource bundle, load so text Part, the .dex file after load merging, is then inserted into dex array.If being successfully tested, the user of target application can be just It is often used newly-increased or update the business function that dynamic issues.
And if user makes after loading the .dex file after combined resource bundle, load so file, load merging It is collapsed when with target application, if beyond some collapse amount threshold (as three times), it is automatic to unload corresponding document and function Compressed package will not reload when starting later.If needing temporarily to unload during coming into force, for example because test result indicates Business datum is not reached expected and is unloaded, and can carry out fast discharging by teleinstruction.
Through this embodiment, the application for having issued installation can be loaded directly into the business function file that dynamic issues, and be not necessarily to User installs manually, directly using business function that is newly-increased or updating;Issue process be not necessarily to by conventional publication channel (including Third party's publication channel, such as each Android application market), improve the efficiency and version of the business function verifying of application The speed of iteration;Furthermore, it is possible to the contrast verification of the multiple product design schemes of function is carried out simultaneously, it can be more promptly excellent Change product function.
The data test method of the present embodiment can be executed by any suitable equipment with data-handling capacity, including But it is not limited to: various terminal equipment or server, e.g., PC machine, tablet computer, mobile terminal etc..
Example IV
Referring to Fig. 4, a kind of structural block diagram of data test device according to the embodiment of the present application four is shown.
The data test device of the present embodiment includes: to obtain module 402, is configured to obtain mesh to be tested according to test instruction Mark the operational trials file of object, wherein the operational trials file includes at least one of: with the target pair to be tested As resource class file pair in the corresponding first kind incremental testing file of middle service logic class file and the target object to be tested The second class incremental testing file, the third class increment corresponding with dynamic link library class file in the target object to be tested answered Test file;Processing module 404 is configured to the classification according to the incremental testing file for including in the operational trials file, right File in the incremental testing file and its corresponding target object to be tested carries out at the file for operational trials Reason;Test module 406 is configured to according to the file process as a result, carrying out operational trials to the target object to be tested.
The data test device of the present embodiment for realizing data test method corresponding in aforesaid plurality of embodiment of the method, And the beneficial effect with corresponding embodiment of the method, details are not described herein.
Embodiment five
Referring to Fig. 5, a kind of structural block diagram of data test device according to the embodiment of the present application five is shown.
The data test device of the present embodiment includes: to obtain module 502, is configured to obtain mesh to be tested according to test instruction Mark the operational trials file of object, wherein the operational trials file includes at least one of: with the target pair to be tested As resource class file pair in the corresponding first kind incremental testing file of middle service logic class file and the target object to be tested The second class incremental testing file, the third class increment corresponding with dynamic link library class file in the target object to be tested answered Test file;Processing module 504 is configured to the classification according to the incremental testing file for including in the operational trials file, right File in the incremental testing file and its corresponding target object to be tested carries out at the file for operational trials Reason;Test module 506 is configured to according to the file process as a result, carrying out operational trials to the target object to be tested.
Optionally, the processing module 504 includes: first processing module 5042, if being configured to the operational trials file In include first kind incremental testing file, then the first kind incremental testing file and the service logic class file are closed And obtain the first file operation result;And/or Second processing module 5044, include if being configured in the operational trials file Second class incremental testing file, then merge the second class incremental testing file and the resource class file, obtains the Two file operation results.
Optionally, the processing module 504 is configured to judge whether the operational trials file meets operational trials condition, If satisfied, then loading first file operation result and/or load second file operation result and/or load described the Three classes incremental testing file;According to first file operation result of load and/or second file operation result and/or The third class incremental testing file carries out operational trials to the target object to be tested.
Optionally, the operational trials condition includes at least one of: whether the operational trials file is when coming into force Whether interior, described operational trials file is corresponding with whether crash data, the operational trials file are failure by global flag.
Optionally, the data test device of the present embodiment further include: Unload module 508, if being configured to the operational trials Result indicate that the target object to be tested collapses, and, the number of collapse then unloads the business greater than given threshold Test file;And/or if receiving the operational trials unloading command of server, unload the operational trials file.
The data test device of the present embodiment for realizing data test method corresponding in aforesaid plurality of embodiment of the method, And the beneficial effect with corresponding embodiment of the method, details are not described herein.
Embodiment six
Referring to Fig. 6, a kind of structural schematic diagram of equipment/terminal/server according to the embodiment of the present application six is shown, this Application specific embodiment does not limit the specific implementation of equipment/terminal/server.
As shown in fig. 6, equipment/the terminal/server may include: processor (processor) 602, storage device 604。
Wherein:
Processor 602 can specifically execute the correlation in above-mentioned data test embodiment of the method for executing program 606 Step.
Specifically, program 606 may include program code, which includes computer operation instruction.
Processor 602 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present application Road.The one or more processors that equipment/terminal/server includes can be same type of processor, such as one or more CPU;It is also possible to different types of processor, such as one or more CPU and one or more ASIC.
Storage device 604 is configured to store one or more programs 606.Storage device 604 may be deposited comprising high-speed RAM Reservoir, it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 606 specifically can be used for so that processor 602 executes following operation: obtain mesh to be tested according to test instruction Mark the operational trials file of object, wherein the operational trials file includes at least one of: with the target pair to be tested As resource class file pair in the corresponding first kind incremental testing file of middle service logic class file and the target object to be tested The second class incremental testing file, the third class increment corresponding with dynamic link library class file in the target object to be tested answered Test file;According to the classification for the incremental testing file for including in the operational trials file, to the incremental testing file and File in its corresponding described target object to be tested carries out the file process for operational trials;According to the file process As a result, carrying out operational trials to the target object to be tested.
In a kind of optional embodiment, program 606 is also used to so that processor 602 is according to the operational trials text The classification for the incremental testing file for including in part, in the incremental testing file and its corresponding target object to be tested File when carrying out the file process for operational trials, if in the operational trials file including first kind incremental testing text Part then merges the first kind incremental testing file and the service logic class file, obtains the first file process knot Fruit;And/or if in the operational trials file including the second class incremental testing file, by the second class incremental testing text Part is merged with the resource class file, obtains the second file operation result.
In a kind of optional embodiment, program 606 is also used to so that processor 602 is according to the file process As a result, judging whether the operational trials file meets operational trials when carrying out operational trials to the target object to be tested Condition, if satisfied, then loading first file operation result and/or load second file operation result and/or load The third class incremental testing file;According to first file operation result and/or the second file process knot of load Fruit and/or the third class incremental testing file carry out operational trials to the target object to be tested.
In a kind of optional embodiment, the operational trials condition includes at least one of: the operational trials File whether within the entry-into-force time, the operational trials file whether be corresponding with crash data, the operational trials file It is failure by global flag.
In a kind of optional embodiment, if program 606 be also used to so that processor 602 the operational trials knot Fruit indicates that the target object to be tested collapses, and, the number of collapse is greater than given threshold, then unloads the operational trials File;And/or if receiving the operational trials unloading command of server, unload the operational trials file.
In program 606 specific implementation of each step may refer to corresponding steps in above-mentioned data test embodiment of the method and Corresponding description in unit, this will not be repeated here.It is apparent to those skilled in the art that for description convenience and Succinctly, the specific work process of the equipment and module of foregoing description, can refer to corresponding processes in the foregoing method embodiment and retouch It states, details are not described herein.
Equipment/terminal/server through this embodiment obtains the industry of target object to be tested according to test instruction automatically Business test file, without relying on the down operation of user, and only needs to obtain the incremental testing file for carrying out operational trials, and Incomplete applies integral installation packet, in turn, after getting corresponding incremental testing file, is carried out to it for operational trials File process, the operational trials of target object to be tested is carried out by file operation result.As it can be seen that passing through the embodiment of the present application Data test scheme, the automatic operational trials file that obtains carries out operational trials, can greatly promote the version updating speed of application The verification efficiency of degree and new business function, operational trials file are incremental testing file, can save Internet resources and user's sheet Ground resource.In addition, further improving corresponding service function by carrying out targeted file process to incremental testing file The efficiency of test.
It may be noted that all parts/step described in the embodiment of the present application can be split as more according to the needs of implementation The part operation of two or more components/steps or components/steps can also be combined into new component/step by multi-part/step Suddenly, to realize the purpose of the embodiment of the present application.
Particularly, according to the embodiment of the present application, above with reference to the process of flow chart description, to may be implemented as computer soft Part program.For example, the embodiment of the present application includes a kind of computer program product comprising carry on a computer-readable medium Computer program, the computer program include the program code for executing method shown in multiple embodiments of the method above. In such embodiments, which can be downloaded and installed from network by communications portion, and/or from removable Medium is unloaded to be mounted.When the computer program is executed by central processing unit (CPU), the side shown in the embodiment of the present application is executed The above-mentioned function of being limited in method.It should be noted that computer-readable medium described herein can be computer-readable letter Number medium or computer readable storage medium either the two any combination.Computer readable storage medium for example may be used To be, but be not limited to, electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above group It closes.The more specific example of computer readable storage medium can include but is not limited to: have being electrically connected for one or more conducting wires It connects, portable computer diskette, hard disk, random access memory device (RAM), read-only memory device (ROM), erasable type may be programmed Read-only memory device (EPROM or flash memory), optical fiber, portable compact disc read-only memory device (CD-ROM), light storage device Part, magnetic memory apparatus part or above-mentioned any appropriate combination.In this application, computer readable storage medium can be It is any to include or the tangible medium of storage program, the program can be commanded execution system, device or device using or with It is used in combination.And in this application, computer-readable signal media may include in a base band or as carrier wave one Divide the data-signal propagated, wherein carrying computer-readable program code.The data-signal of this propagation can use more Kind form, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media It can also be any computer-readable medium other than computer readable storage medium, which can send, It propagates or transmits for by the use of instruction execution system, device or device or program in connection.Computer The program code for including on readable medium can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language --- --- such as Java that includes object oriented program language, Smalltalk, C++, further include conventional procedural programming language --- --- such as " C " language or similar programming Language.Program code can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through the net of any kind Network --- --- it is connected to subscriber computer including local area network (LAN) or wide area network (WAN) --- ---, or, it may be connected to it is outer Portion's computer (such as being connected using ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include acquiring unit, processing unit and test cell.Wherein, the title of these units is not constituted under certain conditions to the list The restriction of member itself, for example, acquiring unit is also described as " obtaining the business of target object to be tested according to test instruction The unit of test file ".
As on the other hand, present invention also provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the method as described in above-mentioned any embodiment when the program is executed by processor.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: the operational trials file of target object to be tested is obtained according to test instruction, wherein the operational trials file include with It is at least one lower: first kind incremental testing file corresponding with service logic class file in the target object to be tested and institute It states the corresponding second class incremental testing file of resource class file in target object to be tested, moved with the target object to be tested The corresponding third class incremental testing file of state chained library class file;According to the incremental testing text for including in the operational trials file The classification of part survey for business to the file in the incremental testing file and its corresponding target object to be tested The file process of examination;According to the file process as a result, carrying out operational trials to the target object to be tested.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of data test method, comprising:
The operational trials file of target object to be tested is obtained according to test instruction, wherein the operational trials file include with It is at least one lower: first kind incremental testing file corresponding with service logic class file in the target object to be tested and institute It states the corresponding second class incremental testing file of resource class file in target object to be tested, moved with the target object to be tested The corresponding third class incremental testing file of state chained library class file;
According to the classification for the incremental testing file for including in the operational trials file, to the incremental testing file and its correspondence The target object to be tested in file carry out the file process for operational trials;
According to the file process as a result, carrying out operational trials to the target object to be tested.
2. described according to the incremental testing for including in operational trials file text according to the method described in claim 1, wherein The classification of part survey for business to the file in the incremental testing file and its corresponding target object to be tested The file process of examination, comprising:
If including first kind incremental testing file in the operational trials file, by the first kind incremental testing file and institute It states service logic class file to merge, obtains the first file operation result;
And/or
If including the second class incremental testing file in the operational trials file, by the second class incremental testing file and institute It states resource class file to merge, obtains the second file operation result.
3. according to the method described in claim 2, wherein, it is described according to the file process as a result, to the mesh to be tested It marks object and carries out operational trials, comprising:
Judge whether the operational trials file meets operational trials condition, if satisfied, then loading the first file process knot Fruit and/or load second file operation result and/or the load third class incremental testing file;
Increased according to first file operation result of load and/or second file operation result and/or the third class Test file is measured, operational trials is carried out to the target object to be tested.
4. according to the method described in claim 3, wherein, the operational trials condition includes at least one of:
The operational trials file whether within the entry-into-force time, the operational trials file whether be corresponding with crash data, described Whether operational trials file is failure by global flag.
5. method according to claim 1-4, wherein the method also includes:
If the result of the operational trials indicates that the target object to be tested collapses, and, the number of collapse is greater than setting Threshold value then unloads the operational trials file;
And/or
If receiving the operational trials unloading command of server, the operational trials file is unloaded.
6. a kind of data test device, comprising:
Module is obtained, is configured to obtain the operational trials file of target object to be tested according to test instruction, wherein the business Test file includes at least one of: first kind increment corresponding with service logic class file in the target object to be tested Test file, second class incremental testing file corresponding with resource class file in the target object to be tested, with it is described to be measured Try the corresponding third class incremental testing file of dynamic link library class file in target object;
Processing module is configured to the classification according to the incremental testing file for including in the operational trials file, to the increment File in test file and its corresponding target object to be tested carries out the file process for operational trials;
Test module is configured to according to the file process as a result, carrying out operational trials to the target object to be tested.
7. device according to claim 6, wherein the processing module includes:
First processing module, if being configured to includes first kind incremental testing file in the operational trials file, by described the A kind of incremental testing file is merged with the service logic class file, obtains the first file operation result;
And/or
Second processing module, if being configured to includes the second class incremental testing file in the operational trials file, by described the Two class incremental testing files are merged with the resource class file, obtain the second file operation result.
8. device according to claim 7, wherein the processing module is configured to judge that the operational trials file is It is no to meet operational trials condition, if satisfied, then loading first file operation result and/or load second file process And/or the load third class incremental testing file as a result;According to first file operation result of load and/or described Two file operation results and/or the third class incremental testing file carry out operational trials to the target object to be tested.
9. device according to claim 8, wherein the operational trials condition includes at least one of:
The operational trials file whether within the entry-into-force time, the operational trials file whether be corresponding with crash data, described Whether operational trials file is failure by global flag.
10. according to the described in any item devices of claim 6-9, wherein described device further include:
Unload module, if the result for being configured to the operational trials indicates that the target object to be tested collapses, and, collapse Number be greater than given threshold, then unload the operational trials file;And/or if receive the operational trials unloading of server Instruction, then unload the operational trials file.
11. a kind of equipment/terminal/server, comprising:
One or more processors;
Storage device is configured to store one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer readable storage medium, is stored thereon with computer program, realized such as when which is executed by processor Method as claimed in any one of claims 1 to 5.
CN201880001139.4A 2018-06-12 2018-06-12 Data test method, apparatus, equipment/terminal/server and computer readable storage medium Pending CN109496417A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/090757 WO2019237239A1 (en) 2018-06-12 2018-06-12 Data test method and apparatus, device/terminal/server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109496417A true CN109496417A (en) 2019-03-19

Family

ID=65713832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880001139.4A Pending CN109496417A (en) 2018-06-12 2018-06-12 Data test method, apparatus, equipment/terminal/server and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109496417A (en)
WO (1) WO2019237239A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162928A (en) * 2020-10-15 2021-01-01 网易(杭州)网络有限公司 Game testing method and device, electronic equipment and computer readable medium
CN112948246A (en) * 2021-02-26 2021-06-11 北京百度网讯科技有限公司 AB test control method, device, equipment and storage medium of data platform

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093473A (en) * 2023-07-14 2023-11-21 领悦数字信息技术有限公司 Method and system for big data testing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
US8196133B2 (en) * 2003-12-02 2012-06-05 Cisco Technology, Inc. Software change modeling for network devices
CN106095502A (en) * 2016-06-13 2016-11-09 北京奇虎科技有限公司 Hot restorative procedure, device, server and the system of a kind of Android application
CN106919378A (en) * 2016-08-24 2017-07-04 阿里巴巴集团控股有限公司 Application based on increment updates and method of testing and system, server and client
CN107015831A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 A kind of client updating management method upgraded based on server end and system
CN107463495A (en) * 2017-07-19 2017-12-12 重庆扬讯软件技术股份有限公司 A kind of method for testing software and code increment distributing device of the issue of code increment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7092995B2 (en) * 2002-06-25 2006-08-15 Microsoft Corporation Testing distributed applications
CN102478623B (en) * 2010-11-22 2013-10-16 英业达股份有限公司 Testing method of a unit to be tested
CN107704393B (en) * 2017-09-29 2018-08-21 武汉斗鱼网络科技有限公司 Data test method, apparatus and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8196133B2 (en) * 2003-12-02 2012-06-05 Cisco Technology, Inc. Software change modeling for network devices
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN106095502A (en) * 2016-06-13 2016-11-09 北京奇虎科技有限公司 Hot restorative procedure, device, server and the system of a kind of Android application
CN106919378A (en) * 2016-08-24 2017-07-04 阿里巴巴集团控股有限公司 Application based on increment updates and method of testing and system, server and client
CN107015831A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 A kind of client updating management method upgraded based on server end and system
CN107463495A (en) * 2017-07-19 2017-12-12 重庆扬讯软件技术股份有限公司 A kind of method for testing software and code increment distributing device of the issue of code increment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162928A (en) * 2020-10-15 2021-01-01 网易(杭州)网络有限公司 Game testing method and device, electronic equipment and computer readable medium
CN112162928B (en) * 2020-10-15 2024-03-15 网易(杭州)网络有限公司 Game testing method, game testing device, electronic equipment and computer readable medium
CN112948246A (en) * 2021-02-26 2021-06-11 北京百度网讯科技有限公司 AB test control method, device, equipment and storage medium of data platform
CN112948246B (en) * 2021-02-26 2023-08-04 北京百度网讯科技有限公司 AB test control method, device and equipment of data platform and storage medium

Also Published As

Publication number Publication date
WO2019237239A1 (en) 2019-12-19

Similar Documents

Publication Publication Date Title
CN106815049B (en) Method and device for upgrading feature library
CN109725911A (en) A kind of multi-environment project dispositions method, device, storage medium and processor
CN107896244B (en) Version file distribution method, client and server
CN109496417A (en) Data test method, apparatus, equipment/terminal/server and computer readable storage medium
CN106201615A (en) The application utilizing successful Resolving probiems is compatible
CN110995825B (en) Intelligent contract issuing method, intelligent node equipment and storage medium
CN107273151A (en) A kind of safe Android App feature card methods
CN108234134A (en) Block synchronous method and system
CN108415821A (en) The generation method and device of test report
CN109753300B (en) Algorithm upgrading method, calculation task sending method and related device
CN107797818A (en) Application program updating method and device
CN109800005B (en) Client hot update method and device
CN106055375A (en) Application program installation method and device
CN110418344A (en) A kind of method and device that equipment identities mark generates
CN104780076A (en) A code inspection method and apparatus
CN109684150A (en) Store Performance Test System, test method and the emulation platform of Grain size controlling device
CN109471799B (en) Method, device, storage medium and terminal for deploying demand environment
CN108322466A (en) Verification method, server and the readable storage medium storing program for executing of APK based on Android
CN111176685A (en) Upgrading method and device
CN105446869B (en) The method and system that app application is audited
CN104050054A (en) Processing method for installation package installation failure and cause determining method and device
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
CN107145342B (en) Method and device for processing channel information of application
CN113190238A (en) Framework deployment method and device, computer equipment and storage medium
CN112230930A (en) Method and device for constructing and packaging hybrid technology stack and machine-readable storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20200514

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 10, galley quay, 10-01, offshore financial center, Singapore

Applicant before: YOUSHI TECHNOLOGY SINGAPORE Co.,Ltd.

Applicant before: UC MOBILE Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190319

RJ01 Rejection of invention patent application after publication