CN110377333A - A kind of application installation package document handling method and system - Google Patents
A kind of application installation package document handling method and system Download PDFInfo
- Publication number
- CN110377333A CN110377333A CN201910671417.3A CN201910671417A CN110377333A CN 110377333 A CN110377333 A CN 110377333A CN 201910671417 A CN201910671417 A CN 201910671417A CN 110377333 A CN110377333 A CN 110377333A
- Authority
- CN
- China
- Prior art keywords
- application
- apk file
- installation package
- channel packet
- test
- 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
Links
- 238000009434 installation Methods 0.000 title claims abstract description 178
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012360 testing method Methods 0.000 claims abstract description 171
- 238000012986 modification Methods 0.000 claims description 13
- 230000004048 modification Effects 0.000 claims description 13
- 230000015572 biosynthetic process Effects 0.000 abstract description 7
- 230000006870 function Effects 0.000 description 34
- 230000008569 process Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000003542 behavioural effect Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of application installation package document handling method and systems, by the application installation package APK file and channel configuration information that obtain initialization, channel configuration information includes the identification information using distribution platform, the identification information of distribution platform is applied in write-in in the application installation package APK file of initialization, obtain new opplication installation kit APK file, new opplication installation kit APK file is packaged based on ant script, be applied channel packet, automatic test script according to the pre-stored data is tested using channel packet, is obtained test result and is shown.Pass through the above method, new opplication installation kit APK file is packaged based on ant script, be applied channel packet, and carries out automatic test to channel packet based on automatic test script, the formation efficiency for generating and applying channel packet is not only increased, and improves the testing efficiency to application channel packet.
Description
Technical field
The present invention relates to Internet technical field, more specifically to a kind of application installation package document handling method and
System.
Background technique
With the development of internet, there are more and more applications, application developer is in order to expand the download of application
With activation amount, it is distributed and promotes by precious, the mobile phone assistant by such as application of application distribution platform, when application developer pair
Using the application and development promoted on distribution platform go out new function when, generate the application installation package of latest edition
(AndroidPackage, APK) file, and the application installation package APK file is generated by handling and applies channel packet.
In the prior art, it generates the process using channel packet and generates and surveyed using after channel packet to using channel packet
The process of examination is all to be manually operated to carry out by developer, due to cumbersome, to reduce efficiency.
Summary of the invention
In view of this, realizing to improve to generate and answer the present invention provides a kind of application installation package document handling method and system
With the formation efficiency of channel packet and the purpose of testing efficiency.
To achieve the goals above, it is proposed that scheme it is as follows:
First aspect present invention discloses a kind of application installation package document handling method, comprising:
The application installation package APK file and channel configuration information of initialization are obtained, the channel configuration information includes application
The identification information of distribution platform;
The identification information using distribution platform is written in the application installation package APK file of the initialization, obtains
New opplication installation kit APK file;
It is packaged the new opplication installation kit APK file based on ant script, be applied channel packet;
Automatic test script according to the pre-stored data tests the application channel packet, obtains test result and shows
Show.
Preferably, the initialization procedure of the application installation package APK file, comprising:
Application installation package APK file is uploaded based on upload request;
Installation kit configuration information is input in the application installation package APK file after uploading, after being initialized
Application installation package APK file.
Preferably, described that the mark using distribution platform is written in the application installation package APK file of the initialization
Know information, obtain new opplication installation kit APK file, comprising:
Determine the specified region in the application installation package APK file of the initialization, the specified region is for ensuring institute
The check information for stating the application installation package APK file of initialization is correct;
The specified region is written into the identification information using distribution platform, obtains new opplication installation kit APK file.
Preferably, described to be packaged the new opplication installation kit APK file based on ant script, be applied channel packet, packet
It includes:
The new opplication installation kit APK file is parsed based on ant script;
The configuration file AndroidManifest in the new opplication installation kit APK after modification parsing;
The new opplication installation kit APK after modification configuration file AndroidManifest is packaged, is applied
Channel packet.
Preferably, the automatic test script according to the pre-stored data tests the application channel packet, obtains
Test result is simultaneously shown, comprising:
Automatic test information is written into the application channel packet;
Compare pre-stored automatic test script test function and the application function using channel packet, it is described
Pre-stored automatic test script is write based on test case;
If the test function one of the application function using channel packet and the pre-stored automatic test script
When cause, then the test result is correct test result and shows;
If the test function of the application function using channel packet and the pre-stored automatic test script is not
When consistent, then the test result is false test result and shows.
Second aspect of the present invention discloses a kind of application installation package document handling system, comprising:
Acquiring unit, for obtaining the application installation package APK file and channel configuration information of initialization, the channel configuration
Information includes the identification information using distribution platform;
Writing unit, it is described using distribution platform for being written in the application installation package APK file of the initialization
Identification information obtains new opplication installation kit APK file;
Packaged unit, for being packaged the new opplication installation kit APK file based on ant script, be applied channel packet;
Test cell is tested the application channel packet for automatic test script according to the pre-stored data, is obtained
To test result and show.
Preferably, the acquiring unit of the initialization procedure of the application installation package APK file, comprising:
Uploading module, for uploading application installation package APK file based on upload request;
Initialization module, for installation kit configuration information to be input in the application installation package APK file after uploading,
Application installation package APK file after being initialized.
Preferably, said write unit, comprising:
Determining module, the specified region in application installation package APK file for determining the initialization, the specified area
Domain is for ensuring that the check information of the application installation package APK file of the initialization is correct;
First writing module obtains new for the specified region to be written in the identification information using distribution platform
Application installation package APK file.
Preferably, the packaged unit, comprising:
Parsing module, for being parsed based on ant script to the new opplication installation kit APK file;
Modified module, for modifying the configuration file in the new opplication installation kit APK after parsing
AndroidManifest;
Packetization module is carried out for that will modify the new opplication installation kit APK after configuration file AndroidManifest
It is packaged, be applied channel packet.
Preferably, the test cell, comprising:
Second writing module, for being written automatic test information into the application channel packet;
Contrast module, for comparing the test function of pre-stored automatic test script and described using channel packet
Application function, the pre-stored automatic test script are write based on test case;
First display module, if for the application function using channel packet and the pre-stored automatic test
When the test function of script is consistent, then the test result is correct test result and shows;
Second display module, if for the application function using channel packet and the pre-stored automatic test
When the test function of script is inconsistent, then the test result is false test result and shows.
As can be seen from the above technical solutions, application installation package APK file and channel configuration information by obtaining initialization,
Channel configuration information includes the identification information using distribution platform, and the write-in in the application installation package APK file of initialization is answered
With the identification information of distribution platform, new opplication installation kit APK file is obtained, new opplication installation kit APK text is packaged based on ant script
Part, be applied channel packet, and automatic test script according to the pre-stored data is tested using channel packet, obtains test knot
Fruit simultaneously shows.By the above method, new opplication installation kit APK file is packaged based on ant script, be applied channel
Packet, and automatic test is carried out to channel packet based on automatic test script, not only increase the generation for generating and applying channel packet
Efficiency, and improve the testing efficiency to application channel packet.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of application installation package document handling method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of the initialization procedure of application installation package APK file disclosed by the embodiments of the present invention;
Fig. 3 is that the write-in application distribution disclosed by the embodiments of the present invention in the application installation package APK file of initialization is flat
The identification information of platform obtains the flow diagram of new opplication installation kit APK file;
Fig. 4 is disclosed by the embodiments of the present invention based on ant script packing new opplication installation kit APK file, and be applied canal
The flow diagram of road packet;
Fig. 5 is that automatic test script according to the pre-stored data disclosed by the embodiments of the present invention is surveyed to using channel packet
Examination, the flow diagram for obtaining test result and showing;
Fig. 6 is a kind of structural schematic diagram of application installation package document handling system disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It can be seen from background technology that in the prior art, generate the process using channel packet and generate using right after channel packet
It is all to be manually operated to carry out by developer, due to cumbersome, to reduce effect using the process that channel packet is tested
Rate.
Therefore it the invention discloses a kind of application installation package document handling method and system, realizes to improve to generate and applies channel
The formation efficiency of packet and the purpose of testing efficiency.
As shown in Figure 1, be a kind of flow diagram of application installation package document handling method disclosed by the embodiments of the present invention,
Specifically comprise the following steps:
Step S101: the application installation package APK file and channel configuration information of initialization, the channel configuration information are obtained
Identification information comprising application distribution platform.
During implementing step S101, application installation package APK file is obtained according to application version information.
It should be noted that by application installation package (Android Package, APK) pass to Android simulator or
Installation is executed in Android phone.
Channel information, which refers to, provides the information using distribution platform of software download service for the public.
It can be pea pods platform using distribution platform, be also possible to be also possible to other application platform using precious platform,
Application distribution platform in the present invention does not do specific restriction depending on actual conditions.
Different applies distribution platform, and accessed channel configuration information is also different.
It is related to obtaining the content of the application installation package APK file of initialization, application installation package in above-mentioned steps S101
The initialization procedure of APK file, such as Fig. 2, specifically comprise the following steps:
Step S201: application installation package APK file is uploaded based on upload request.
It should be noted that including application version information in upload request.
Step S202: installation kit configuration information is input in the application installation package APK file after uploading, is obtained just
Application installation package APK file after beginningization.
It should be noted that the quantity of packet ID can be multiple comprising packet ID in installation kit configuration information.
S201- step S202 is based on upload request and uploads application installation package APK file through the above steps, and installation kit is matched
Confidence breath is input in the application installation package APK file after uploading, the application installation package APK file after being initialized.
In embodiments of the present invention, by the way that installation kit configuration information to be input to the application installation package APK file after uploading
In, realize the purpose for initializing the application installation package APK file.
Optionally, further includes:
Configure the information such as device name, device hardware title, version and resolution ratio.
Step S102: the write-in mark using distribution platform in the application installation package APK file of the initialization
Know information, obtains new opplication installation kit APK file.
During implementing step S102, certainly into the specified region of the application installation package APK file of initialization
The identification information of distribution platform is applied in dynamic write-in.
It is related to the write-in application distribution platform in the application installation package APK file of initialization in above-mentioned steps S102
Identification information, obtain the process of new opplication installation kit APK file, such as Fig. 3, specifically comprise the following steps:
Step S301: determine that the specified region in the application installation package APK file of the initialization, the specified region are used
It is correct in the check information for the application installation package APK file for ensuring the initialization.
Step S302: the specified region is written into the identification information using distribution platform, obtains new opplication installation
Packet APK file.
The specified region in the application installation package APK file of the initialization, institute are determined by step S301- step S302
Specified region is stated for ensuring that the check information of the application installation package APK file of the initialization is correct, the application is distributed
The specified region is written in the identification information of platform, obtains new opplication installation kit APK file.
In the embodiment of the present invention, by the way that the identification information of distribution platform will be applied to be written in application installation package APK file
Specified region, it is ensured that the check information of the application installation report APK file after initialization is correct, to successfully obtain new opplication installation
Packet APK file.
Step S103: the new opplication installation kit APK file is packaged based on ant script, be applied channel packet.
It should be noted that using channel packet being generated in application distribution platform.
What is obtained is equivalent to compressed package using channel packet, this can be ZIP format using the format of channel packet, be also possible to
RAR format is also possible to the compressed package of extended formatting, and specific this applies the determination of channel packet format by technical staff according to reality
Situation is configured.
It is related to being packaged new opplication installation kit APK file based on ant script in above-mentioned steps S103, be applied channel
The process of packet, such as Fig. 4, specifically comprise the following steps:
Step S401: the new opplication installation kit APK file is parsed based on ant script.
It should be noted that by parsing application installation package APK file, obtain the application installation package APK file packet name,
The information such as version number, icon file.
Step S402: the configuration file AndroidManifest in the new opplication installation kit APK after modification parsing.
Configuration in the new opplication installation kit APK after the process of specific implementation step S402, concrete modification parsing
The content of file AndroidManifest is < meta-data android:name=" 3KWAN_PackageID " android:
Value=" packet ID "/>.
It should be noted that the information that AndroidManifest file is entire application program describes file, each application
Program must include an AndroidManifest file under the root directory, and AndroidManifest file is XML format.
Step S403: the new opplication installation kit APK after modification configuration file AndroidManifest is beaten
Packet, be applied channel packet.
S401- step S403 solves the new opplication installation kit APK file based on ant script through the above steps
Analysis, the configuration file AndroidManifest in the new opplication installation kit APK after modification parsing, will modify configuration file
The new opplication installation kit APK after AndroidManifest is packaged, and be applied channel packet.
In embodiments of the present invention, new opplication installation kit APK is parsed automatically by ant script, after modification parsing
Application installation package APK file configuration file AndroidManifest, and to configuration file AndroidManifest carry out
It is packaged, be applied channel packet, to improve the formation efficiency using channel packet.
Step S104: automatic test script according to the pre-stored data tests the application channel packet, is surveyed
Test result is simultaneously shown.
During implementing step S104, correct test case is write to using channel according to pre-stored
Packet carries out test operation.
It is related to automatic test script according to the pre-stored data in above-mentioned steps S104 to survey to using channel packet
Examination, the process for obtaining test result and showing, such as Fig. 5 specifically comprise the following steps:
Step S501: automatic test information is written into the application channel packet.
It should be noted that automatic test information includes application installation package APK file information, test case information and report
Accuse recipient's mailbox message.
Step S502: the test function and the application using channel packet of pre-stored automatic test script are compared
Function, the pre-stored automatic test script are write based on test case, if the application function using channel packet
It is consistent with the test function of the pre-stored automatic test script, S503 is thened follow the steps, if the application channel packet
Application function and the pre-stored automatic test script test function it is inconsistent, then follow the steps S504.
During implementing step S502, correct test case can be write by python language, it can also
To be that C language writes correct test case, it is also possible to other programming languages, the language of test case is write not in the present invention
Do any restriction.
It should be noted that test case is that the behavioral activity of software test is done to a scientific tissue to conclude, mesh
Be the behavior of software test can be converted to manageable mode, meanwhile, test case be also will test specifically quantify
One of method, different classes of software, test case are different.
Step S503: the test result is correct test result and shows.
It should be noted that generating correct test report based on correct test result and showing.
Correct test report can be sent to other external equipments, such as USB flash disk, PAD etc., can also be sent to the postal of addressee
Case, the mode present invention for being particularly shown correct test report are not particularly limited.
Step S504: the test result is false test result and shows.
It should be noted that based on false test result generation error test report and showing, wherein the error checking report
It include the specific error message of case in announcement.
Error checking report can be sent to other external equipments, such as USB flash disk, PAD etc., can also be sent to the postal of addressee
Case, the mode present invention for being particularly shown error checking report are not particularly limited.
In a kind of application scenarios of the embodiment of the present invention, by automatic test information input to test controller, and examine
The whether available free mobile terminal of the test controller is surveyed, if so, application installation package APK file is then uploaded to the mobile terminal
It is installed with debugging bridge tool adb, after being installed, test case is uploaded into the mobile terminal, and with the debugging bridge work
Have adb and execute dependence test operation, generates test report, and the test report is sent to recipient's mailbox.
Automatic test information is written into the application channel packet S501- step S504 through the above steps, comparison
The test function of pre-stored automatic test script and the application function using channel packet, it is described it is pre-stored from
Dynamicization test script is write based on test case, if the application function using channel packet and the pre-stored automation
When the test function of test script is consistent, then the test result is correct test result and shows, if the application channel packet
Application function and the pre-stored automatic test script test function it is inconsistent when, then the test result be mistake
It misses test result and shows.
It, will be pre-stored automatic by applying the write-in of automatic test information in channel packet in the embodiment of the present invention
The test function for changing test script is compared with the application function of application channel packet, automatically generates corresponding test result, from
And improve formation efficiency.
A kind of application installation package document handling method is disclosed in the embodiment of the present invention, the application by obtaining initialization is pacified
Packet APK file and channel configuration information are filled, channel configuration information includes the identification information using distribution platform, in answering for initialization
The identification information that distribution platform is applied with the write-in in installation kit APK file, obtains new opplication installation kit APK file, is based on ant
Script is packaged new opplication installation kit APK file, and be applied channel packet, and automatic test script according to the pre-stored data is to application
Channel packet is tested, and is obtained test result and is shown.By the above method, based on ant script to new opplication installation kit APK text
Part is packaged, and be applied channel packet, and carries out automatic test to channel packet based on automatic test script, is not only improved
The formation efficiency for applying channel packet is generated, and improves the testing efficiency to application channel packet.
Based on application installation package document handling method disclosed in the embodiments of the present invention, the embodiment of the present invention is also corresponding public
A kind of application installation package document handling system is opened, as shown in fig. 6, the application installation package document handling system 600 specifically includes that
Acquiring unit 601, for obtaining the application installation package APK file and channel configuration information of initialization, the channel
Configuration information includes the identification information using distribution platform.
Writing unit 602, it is described using distribution platform for being written in the application installation package APK file of the initialization
Identification information, obtain new opplication installation kit APK file.
Packaged unit 603, for being packaged the new opplication installation kit APK file based on ant script, be applied channel
Packet.
Test cell 604 tests the application channel packet for automatic test script according to the pre-stored data,
It obtains test result and shows.
Further, the acquiring unit 601 of the initialization procedure of the application installation package APK file, comprising:
Uploading module, for uploading application installation package APK file based on upload request.
Initialization module, for installation kit configuration information to be input in the application installation package APK file after uploading,
Application installation package APK file after being initialized.
Further, said write unit 602, comprising:
Determining module, the specified region in application installation package APK file for determining the initialization, the specified area
Domain is for ensuring that the check information of the application installation package APK file of the initialization is correct.
First writing module obtains new for the specified region to be written in the identification information using distribution platform
Application installation package APK file.
Further, the packaged unit 603, comprising:
Parsing module, for being parsed based on ant script to the new opplication installation kit APK file.
Modified module, for modifying the configuration file in the new opplication installation kit APK after parsing
AndroidManifest。
Packetization module is carried out for that will modify the new opplication installation kit APK after configuration file AndroidManifest
It is packaged, be applied channel packet.
Further, the test cell 604, comprising:
Contrast module, for comparing the test function of pre-stored automatic test script and described using channel packet
Application function, the pre-stored automatic test script are write based on test case.
First display module, if for the application function using channel packet and the pre-stored automatic test
When the test function of script is consistent, then the test result is correct test result and shows.
Second display module, if for the application function using channel packet and the pre-stored automatic test
When the test function of script is inconsistent, then the test result is false test result and shows.
Optionally, further includes:
Configuration module, for configuring the information such as device name, device hardware title, version, resolution ratio.
Each unit of application installation package document handling system and module disclosed in the embodiments of the present invention are specifically former
Reason and implementation procedure, it is identical as application installation package document handling method disclosed in the embodiments of the present invention, reference can be made to above-mentioned
Corresponding part, is not discussed here in application installation package document handling method disclosed in inventive embodiments.
A kind of application installation package document handling system is disclosed in the embodiment of the present invention, the application by obtaining initialization is pacified
Packet APK file and channel configuration information are filled, channel configuration information includes the identification information using distribution platform, in answering for initialization
The identification information that distribution platform is applied with the write-in in installation kit APK file, obtains new opplication installation kit APK file, is based on ant
Script is packaged new opplication installation kit APK file, and be applied channel packet, and automatic test script according to the pre-stored data is to application
Channel packet is tested, and is obtained test result and is shown.By above system, based on ant script to new opplication installation kit APK text
Part is packaged, and be applied channel packet, and carries out automatic test to channel packet based on automatic test script, is not only improved
The formation efficiency for applying channel packet is generated, and improves the testing efficiency to application channel packet.
Based on application installation package document handling system disclosed in the embodiments of the present invention, above-mentioned each unit and module can
To be realized by a kind of hardware device being made of processor and memory.Specifically: above-mentioned each unit and module are as journey
Sequence unit is stored in memory, and executes above procedure unit stored in memory by processor to realize application installation package
File process.
Wherein, include kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can be set
One or more realizes application installation package file process by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
Further, the embodiment of the invention provides a kind of processors, and the processor is for running program, wherein institute
Application installation package file process is executed when stating program operation.
Equipment disclosed in the embodiment of the present invention can be server, PC, PAD, mobile phone etc..
Further, the embodiment of the invention also provides a kind of storage medium, it is stored thereon with program, the program is processed
Application installation package file process is realized when device executes.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but
Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain
A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification
The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For system class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Step in each embodiment method of the application can be sequentially adjusted, merged and deleted according to actual needs.
In addition, each functional module or submodule in each embodiment of the application can integrate in a processing module
In, it is also possible to modules or submodule physically exists alone, it can also be integrated with two or more modules or submodule
In a module.Above-mentioned integrated module or submodule both can take the form of hardware realization, can also use software function
Energy module or the form of submodule are realized.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest
Range.
The above is only a preferred embodiment 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 (10)
1. a kind of application installation package document handling method characterized by comprising
The application installation package APK file and channel configuration information of initialization are obtained, the channel configuration information includes application distribution
The identification information of platform;
The identification information using distribution platform is written in the application installation package APK file of the initialization, is newly answered
With installation kit APK file;
It is packaged the new opplication installation kit APK file based on ant script, be applied channel packet;
Automatic test script according to the pre-stored data tests the application channel packet, obtains test result and shows.
2. the method according to claim 1, wherein the initialization procedure of the application installation package APK file, packet
It includes:
Application installation package APK file is uploaded based on upload request;
Installation kit configuration information is input in the application installation package APK file after uploading, the application after being initialized
Installation kit APK file.
3. the method according to claim 1, wherein the application installation package APK file in the initialization
The middle write-in identification information using distribution platform, obtains new opplication installation kit APK file, comprising:
Determine that the specified region in the application installation package APK file of the initialization, the specified region are described first for ensuring
The check information of the application installation package APK file of beginningization is correct;
The specified region is written into the identification information using distribution platform, obtains new opplication installation kit APK file.
4. the method according to claim 1, wherein described be packaged the new opplication installation kit based on ant script
APK file, be applied channel packet, comprising:
The new opplication installation kit APK file is parsed based on ant script;
The configuration file AndroidManifest in the new opplication installation kit APK after modification parsing;
The new opplication installation kit APK after modification configuration file AndroidManifest is packaged, be applied channel
Packet.
5. the method according to claim 1, wherein the automatic test script according to the pre-stored data is to institute
It states and is tested using channel packet, obtain test result and show, comprising:
Automatic test information is written into the application channel packet;
Compare pre-stored automatic test script test function and the application function using channel packet, it is described in advance
The automatic test script of storage is write based on test case;
If the application function using channel packet is consistent with the test function of the pre-stored automatic test script,
Then the test result is correct test result and shows;
If the test function of the application function using channel packet and the pre-stored automatic test script is inconsistent
When, then the test result is false test result and shows.
6. a kind of application installation package document handling system characterized by comprising
Acquiring unit, for obtaining the application installation package APK file and channel configuration information of initialization, the channel configuration information
Identification information comprising application distribution platform;
Writing unit, for the mark using distribution platform to be written in the application installation package APK file of the initialization
Information obtains new opplication installation kit APK file;
Packaged unit, for being packaged the new opplication installation kit APK file based on ant script, be applied channel packet;
Test cell is tested the application channel packet for automatic test script according to the pre-stored data, is surveyed
Test result is simultaneously shown.
7. system according to claim 6, which is characterized in that the initialization procedure of the application installation package APK file
The acquiring unit, comprising:
Uploading module, for uploading application installation package APK file based on upload request;
Initialization module is obtained for installation kit configuration information to be input in the application installation package APK file after uploading
Application installation package APK file after initialization.
8. system according to claim 6, which is characterized in that said write unit, comprising:
Determining module, the specified region in application installation package APK file for determining the initialization, the specified region are used
It is correct in the check information for the application installation package APK file for ensuring the initialization;
First writing module obtains new opplication for the specified region to be written in the identification information using distribution platform
Installation kit APK file.
9. system according to claim 6, which is characterized in that the packaged unit, comprising:
Parsing module, for being parsed based on ant script to the new opplication installation kit APK file;
Modified module, for modifying the configuration file AndroidManifest in the new opplication installation kit APK after parsing;
Packetization module, for being beaten the new opplication installation kit APK after modification configuration file AndroidManifest
Packet, be applied channel packet.
10. system according to claim 6, which is characterized in that the test cell, comprising:
Second writing module, for being written automatic test information into the application channel packet;
Contrast module, for comparing the test function and the application using channel packet of pre-stored automatic test script
Function, the pre-stored automatic test script are write based on test case;
First display module, if for the application function using channel packet and the pre-stored automatic test script
Test function it is consistent when, then the test result is correct test result and to show;
Second display module, if for the application function using channel packet and the pre-stored automatic test script
Test function it is inconsistent when, then the test result is false test result and to show.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910671417.3A CN110377333A (en) | 2019-07-24 | 2019-07-24 | A kind of application installation package document handling method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910671417.3A CN110377333A (en) | 2019-07-24 | 2019-07-24 | A kind of application installation package document handling method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110377333A true CN110377333A (en) | 2019-10-25 |
Family
ID=68255456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910671417.3A Pending CN110377333A (en) | 2019-07-24 | 2019-07-24 | A kind of application installation package document handling method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377333A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114553666A (en) * | 2022-01-07 | 2022-05-27 | 广东万丈金数信息技术股份有限公司 | Channel event reporting method, system, device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019708A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for releasing software |
CN104346167A (en) * | 2014-08-25 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for generating application channel package |
WO2016061762A1 (en) * | 2014-10-22 | 2016-04-28 | 刘大澎 | Multi-channel sdk access system and method for mobile terminal software |
CN106484622A (en) * | 2016-10-18 | 2017-03-08 | 网易(杭州)网络有限公司 | Method of testing, apparatus and system |
CN107247661A (en) * | 2017-05-09 | 2017-10-13 | 北京京东尚科信息技术有限公司 | Support the method and system to the installation kit progress automatic Verification of application |
CN108415820A (en) * | 2017-02-09 | 2018-08-17 | 腾讯科技(深圳)有限公司 | The test method and device of application installation package |
CN109542459A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Application program packaging method and device, computer installation and computer storage medium |
-
2019
- 2019-07-24 CN CN201910671417.3A patent/CN110377333A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019708A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for releasing software |
CN104346167A (en) * | 2014-08-25 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for generating application channel package |
WO2016061762A1 (en) * | 2014-10-22 | 2016-04-28 | 刘大澎 | Multi-channel sdk access system and method for mobile terminal software |
CN106484622A (en) * | 2016-10-18 | 2017-03-08 | 网易(杭州)网络有限公司 | Method of testing, apparatus and system |
CN108415820A (en) * | 2017-02-09 | 2018-08-17 | 腾讯科技(深圳)有限公司 | The test method and device of application installation package |
CN107247661A (en) * | 2017-05-09 | 2017-10-13 | 北京京东尚科信息技术有限公司 | Support the method and system to the installation kit progress automatic Verification of application |
CN109542459A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Application program packaging method and device, computer installation and computer storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114553666A (en) * | 2022-01-07 | 2022-05-27 | 广东万丈金数信息技术股份有限公司 | Channel event reporting method, system, device and storage medium |
CN114553666B (en) * | 2022-01-07 | 2024-01-19 | 广东万丈金数信息技术股份有限公司 | Channel event reporting method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
CN109344642A (en) | Interface rules method of calibration, device, computer equipment and storage medium | |
US10642721B2 (en) | Generation of automated testing scripts by converting manual test cases | |
US11010283B2 (en) | Mock-based unit test(s) for an end-to-end test of a code snippet | |
US10872005B1 (en) | Fixed length message generation tool | |
US9846639B2 (en) | System and method for automatically testing an application programming interface (API) | |
CN109032611A (en) | Script dispositions method, device, computer equipment and storage medium | |
CN108446225A (en) | Creating device, method and the computer readable storage medium of analog interface | |
CN1794296B (en) | System and method for creating web services from an existing web site | |
US8607213B2 (en) | SCORM manifest reconciliation | |
JP5414814B2 (en) | Customizing space in a network environment | |
CN111930617B (en) | Automatic test method and device based on data objectification | |
CN110147402A (en) | Excel file introduction method and equipment, deriving method and equipment | |
CN108347356B (en) | Multi-protocol unit testing method and device, electronic equipment and storage medium | |
CN108614767A (en) | A kind of remote debugging method and device | |
CN105468524A (en) | Automatic test method and system of WEB interface | |
US11573780B2 (en) | Automated generation of status chains for software updates | |
US9477582B2 (en) | Executable software specification generation | |
CN108923997A (en) | A kind of cloud service node automatic test approach and device based on python | |
CN111274120B (en) | Interface document verification method and device | |
CN110377333A (en) | A kind of application installation package document handling method and system | |
JP5070286B2 (en) | Customizing space in a network environment | |
CN110633213B (en) | Unit test method, unit test device, computer equipment and storage medium | |
CN105339974B (en) | Analog sensor | |
US20220276862A1 (en) | Methods and systems for scoring quality of open source software documentation |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191025 |