CN106843947A - The treating method and apparatus of aacode defect - Google Patents
The treating method and apparatus of aacode defect Download PDFInfo
- Publication number
- CN106843947A CN106843947A CN201710005495.0A CN201710005495A CN106843947A CN 106843947 A CN106843947 A CN 106843947A CN 201710005495 A CN201710005495 A CN 201710005495A CN 106843947 A CN106843947 A CN 106843947A
- Authority
- CN
- China
- Prior art keywords
- defect
- application program
- facility information
- terminal
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- 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
Abstract
The present invention relates to a kind for the treatment of method and apparatus of aacode defect.Methods described includes:Start and run application program;The facility information of the terminal where obtaining defect configuration file corresponding with the application program, and the acquisition application program;The defect mark in the code file of the application program is detected, and the defect is read from the defect configuration file and identify corresponding facility information set;Judge the facility information of the terminal whether in the facility information set;If the facility information is in the facility information set, reparation code corresponding with defect mark is found out from the code file of the application program, and perform the reparation code.The treating method and apparatus of above-mentioned aacode defect, quickly realize the treatment of aacode defect, it is not necessary to change local code, improve the treatment effeciency of aacode defect.
Description
Technical field
The present invention relates to computer application field, more particularly to a kind for the treatment of method and apparatus of aacode defect.
Background technology
Because of the problem of Android fragmentations, the developer of Android applications is frequently encountered in the test type of oneself
Had no problem on mobile terminal, and the mobile terminal in other types can occur the phenomenon of problem.Now need to be moved according to other
The trouble-shoots reason that dynamic terminal occurs, and the reparation bag of compatible different mobile terminal is revised as far as possible.Wherein, Android is broken
Piece refers to that the version of android system has a lot, and the function of each version may have different differences, or use
The manufacturer of android system is a lot, and each manufacturer may change bottom content according to the demand of oneself so that identical installation kit
It is installed on the mobile terminal of different machineries it may happen that different phenomenons.
Lead to not adapt to the problem of various types for aacode defect, traditional processing mode is to be directed to each factory every time
The problem of business's feedback, repairs after defect, it is necessary to regenerating one repairs bag, will repair bag and be sent to each manufacturer and surveyed
Examination, processes defect inefficiency.
The content of the invention
Based on this, the embodiment of the present invention provides a kind for the treatment of method and apparatus of aacode defect, can improve aacode defect
Treatment effeciency.
A kind of processing method of aacode defect, including:
Start and run application program;
Obtain corresponding with application program defect configuration file, and terminal where obtaining the application program
Facility information;
The defect mark in the code file of the application program is detected, and is read from the defect configuration file described
Defect identifies corresponding facility information set;
Judge the facility information of the terminal whether in the facility information set;
If the facility information is in the facility information set, found out from the code file of the application program with
The defect identifies corresponding reparation code, and performs the reparation code.
A kind of processing unit of aacode defect, including:
Starting module, for starting and runs application program;
Acquisition module, for obtaining defect configuration file corresponding with the application program, and obtains the application journey
The facility information of the terminal where sequence;
Read module, for the defect mark in the code file for detecting the application program, text is configured from the defect
Facility information set corresponding with defect mark is read in part;
Judge module, for judging the facility information of the terminal whether in the facility information set;
Performing module, if for the facility information in the facility information set, from the generation of the application program
Reparation code corresponding with defect mark is found out in code file, and performs the reparation code.
The treating method and apparatus of above-mentioned aacode defect, after starting and running application program, obtain and the application program
The facility information of the terminal where corresponding defect configuration file, and the acquisition application program, detects the generation of application program
When defect in code file is identified, facility information set corresponding with defect mark is obtained from defect configuration file, sentenced
The facility information of disconnected terminal whether in the facility information set corresponding with defect mark of defect configuration file, if holding
Row repairs code, quickly realizes the treatment of aacode defect, it is not necessary to change local code, improves the treatment effect of aacode defect
Rate.
Brief description of the drawings
Fig. 1 is the applied environment schematic diagram of the processing method of aacode defect in one embodiment;
Fig. 2A is the internal structure schematic diagram of terminal in one embodiment;
Fig. 2 B are the internal structure schematic diagram of server in one embodiment;
Fig. 3 is the flow chart of the processing method of aacode defect in one embodiment;
Fig. 4 is the flow chart of the processing method of aacode defect in another embodiment;
Fig. 5 is the flow chart of the processing method of aacode defect in one embodiment;
Fig. 6 is the flow chart of the processing method of aacode defect in one embodiment;
Fig. 7 is the structured flowchart of the processing unit of aacode defect in one embodiment;
Fig. 8 is the structured flowchart of the processing unit of aacode defect in another embodiment;
Fig. 9 is the structured flowchart of the processing unit of aacode defect in another embodiment;
Figure 10 is the structured flowchart of the processing unit of aacode defect in another embodiment;
Figure 11 is the structured flowchart of the processing unit of aacode defect in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes
Say, without departing from the scope of the invention, the first client can be referred to as the second client, and similarly, can be by
Second client is referred to as the first client.First client and the second client both client, but it is not same visitor
Family end.
Fig. 1 is the applied environment schematic diagram of the processing method of aacode defect in one embodiment.As shown in figure 1, the application
Environment includes terminal 110 and server 120.Terminal 110 enters row data communication with server 120.Being stored with server 120 should
With the corresponding defect configuration file of program.Facility information and defect mark etc. have been recorded in the defect configuration file.Terminal 110 is transported
From the defect configuration file of down loading updating on server 120 after row application program, and the facility information of terminal is obtained, when going to
When defect is identified, defect configuration file facility information set corresponding with defect mark is read, the facility information of such as terminal exists
In the facility information set corresponding with defect mark of the defect configuration file, then performing should reparation generation corresponding with defect mark
Code, repairs with to aacode defect.If the facility information of terminal is not in the defect configuration file, non-repair generation is performed
Code.Non-repair code refers to the code before being repaired to defect.The treatment effeciency for so repairing aacode defect is higher.Its
In, terminal 110 can be the smart machines such as smart mobile phone, panel computer, personal digital assistant, Wearable.Server 120 can
For one or more servers constitute server cluster or be cloud server.
Fig. 2A is the internal structure schematic diagram of terminal in one embodiment.As shown in Figure 2 A, the terminal includes passing through system
Processor, non-volatile memory medium, built-in storage, network interface, display screen and input unit that bus is connected.Wherein, eventually
The non-volatile memory medium at end is stored with operating system, also including a kind of processing unit of aacode defect, the aacode defect
Processing unit is used to realize a kind of processing method of aacode defect.The processor is used to provide calculating and control ability, supports whole
The operation of individual terminal.Built-in storage in terminal is that the operation of the processing unit of the aacode defect in non-volatile memory medium is carried
For environment, computer-readable instruction can be stored in the built-in storage, when the computer-readable instruction is by the computing device,
May be such that a kind of processing method of aacode defect of the computing device.Network interface is used to carry out network service with server,
Server is updated request to as sent, defect configuration file of renewal that the reception server is returned etc..The display screen of terminal can be with
LCDs or electric ink display screen etc., input unit can be the touch layer that is covered on display screen, or
Button, trace ball or the Trackpad, or external keyboard, Trackpad or mouse etc. set in terminal enclosure.The terminal
Can be mobile phone, panel computer or personal digital assistant or Wearable etc..It will be understood by those skilled in the art that Fig. 2A
In the structure that shows, only the block diagram of the part-structure related to application scheme, does not constitute and application scheme is answered
With the restriction of terminal thereon, specific terminal can include than more or less part shown in figure, or combine certain
A little parts, or arranged with different parts.
Fig. 2 B are the internal structure schematic diagram of server (or high in the clouds etc.) in one embodiment.As shown in Figure 2 B, the service
Device includes the processor, non-volatile memory medium, built-in storage and the network interface that are connected by system bus.Wherein, the clothes
The be engaged in non-volatile memory medium of device is stored with the processing unit of operating system, database and aacode defect, is stored in database
There is the corresponding defect configuration file of application program, the processing unit of the aacode defect is used to realize a kind of generation suitable for server
The processing method of code defect.The processor of the server is used to provide calculating and control ability, supports the operation of whole server.
The built-in storage of the server provides environment for the operation of the processing unit of the aacode defect in non-volatile memory medium, and this is interior
Computer-readable instruction can be stored in memory, when the computer-readable instruction is by the computing device, be may be such that described
A kind of processing method of aacode defect of computing device.The network interface of the server is used to pass through net with outside terminal according to this
Renewal request and return to defect configuration file after updating etc. to terminal that network connection communication, such as receiving terminal send.Clothes
Business device can with independent server or multiple server groups into server cluster realize.Those skilled in the art can
To understand, the structure shown in Fig. 2 B, only the block diagram of the part-structure related to application scheme, is not constituted to this Shen
Please the restriction of server that is applied thereon of scheme, specific server can include than more or less portion shown in figure
Part, or some parts are combined, or arranged with different parts.
Fig. 3 is the flow chart of the processing method of aacode defect in one embodiment.As shown in figure 3, a kind of aacode defect
Processing method, runs in the terminal in Fig. 1 and Fig. 2A, including:
Step 302, starts and runs application program.
In the present embodiment, one or more application programs are installed in terminal.Terminal obtains user in application program
Touch control operation on icon or shortcut, starts and runs the application program.
Step 304, the facility information of the terminal where obtaining defect configuration file, and the acquisition application program.
In the present embodiment, defect configuration file causes the terminal that application program breaks down when being performed for record code
Facility information and defect mark file.Facility information may include model information, may also include hardware information.Model information can
It is type keyword, type keyword is the unique identity information of the type for indicating terminal.Hardware information may include CPU (centers
Processor), built-in storage, graphic process unit etc..Defect is identified for unique identity documents for representing defect.Defect is identified
Defect numbering etc..When the code file of application program is performed on different terminals, some terminals can produce defect, some terminals
Defect will not be produced.The position of the defect that different terminal operating application programs occurs may be identical, it is also possible to different.Using scarce
Fall into configuration file records application program and produce the defect mark of defect and facility information set corresponding with defect mark.Defect
Configuration file is the defect configuration file corresponding with the application program that terminal is downloaded from a server.
Be stored with the corresponding relation of application program identification and defect configuration file in terminal.Application program identification be for
Unique character string for representing application program etc..Character string may include one or more in numeral, letter, character etc..
The defect can be exited or stuck or splashette etc. for application program.
The facility information of the terminal where application program may include model information, or model information and hardware information etc..
Step 306, detects the defect mark in the code file of the application program, reads from the defect configuration file
Take facility information set corresponding with defect mark.
In the present embodiment, when performing application program, the defect mark in the code file of application program is run into, obtaining should
Identified with the defect in the code file of program.Read from defect configuration file according to defect mark corresponding with defect mark
Facility information set.
Whether step 308, judges the facility information of the terminal in the facility information set, if so, performing step
310, if it is not, performing step 312.
Step 310, finds out reparation code corresponding with defect mark from the code file of the application program, and
Perform the reparation code.
Step 312, finds out non-repair code corresponding with defect mark from the code file of the application program,
And perform the non-repair code.
In the present embodiment, the facility information of the terminal where judging the application program whether the defect configuration file with
Defect is identified in corresponding facility information set, refers to configure the facility information of the terminal where the application program and the defect
Facility information set corresponding with defect mark is compared in file, if identical, terminal where the application program sets
For information in the defect of the defect configuration file identifies corresponding facility information set, if differing, the application program institute
The facility information of terminal do not identify corresponding facility information set in the defect of the defect configuration file.
It refers to the code repaired to defect in the code file for be previously recorded in application program to repair code.In code
Record has two branch roads in file, i.e., when defect mark is gone to, judge the facility information of terminal in defect configuration file
In in facility information set corresponding with defect mark when, perform and repair code, if judging, the facility information of terminal is not lacking
When in sunken configuration file in facility information set corresponding with defect mark, non-repair code is performed.Non-repair code refers to right
Defect repaired before code.
The processing method of above-mentioned aacode defect, after starting and running application program, obtains corresponding with the application program
The facility information of the terminal where defect configuration file, and the acquisition application program, obtains the code file of application program
In defect identify when, facility information set corresponding with defect mark is obtained from defect configuration file, judge terminal
Facility information whether in the facility information set corresponding with defect mark of defect configuration file, if performing reparation
Code, quickly realizes the treatment of aacode defect, it is not necessary to change local code, improves the treatment effeciency of aacode defect.
In one embodiment, as shown in figure 4, above-mentioned acquisition defect configuration file bag corresponding with the application program
Include:
Step 402, initiates whether defect configuration file corresponding with the application program has the inquiry of renewal to server
Request.
Be stored with defect configuration file corresponding with application program in the present embodiment, on server.Terminal operating application journey
After sequence, application program identification is obtained, initiate whether defect configuration file corresponding with the application program has renewal to server
Inquiry request.May include that the corresponding with the application program identification of storage lacks in application program identification and terminal in the inquiry request
Fall into configuration file version information.
Step 404, receiving the defect configuration file of the server return has the response results of renewal.
In the present embodiment, after server receives inquiry request, application program identification in inquiry request is from service
On device store application program identification with corresponding defect configuration file is found in the corresponding relation of defect configuration file, acquisition
The corresponding defect configuration file version information of the application program stored on server, the defect configuration text that will be stored on server
Part version information is compared with the defect configuration file version information in terminal, if identical, server sends to terminal not to be had
There is the result of renewal, if it is different, then server there are the response results of renewal to terminal transmission defect configuration file.
Step 406, according to the response results from the defect configuration file of the server down loading updating.
In the present embodiment, terminal is according to response results from the defect configuration file of server down loading updating.
In the present embodiment, after starting and running application program, defect corresponding with the application program is sent to server
Whether configuration file has the inquiry request of renewal, after receiving the response results of renewal, from the defect of server down loading updating
Configuration file, it is ensured that the defect configuration file stored in terminal is newest, it is to avoid application program is performed mistake occurs, and only
Defect configuration file need to be downloaded from server, you can realize the reparation of the aacode defect of terminal, it is not necessary to change local code, save
Network traffics are saved.
In one embodiment, the processing method of above-mentioned aacode defect also includes:The application program is obtained in terminal
There is the defect mark of defect;The defect mark of the application program is corresponding with the application program with what is stored on server
Defect configuration file in defect mark be compared;If identical, the facility information of the terminal is obtained, by the terminal
Facility information be added in the defect configuration file in facility information set corresponding with defect mark;If it is different,
The facility information of the terminal is then obtained, the corresponding code reparation bag of defect mark generation according to the application program, by institute
The facility information for stating defect mark and terminal is added in the defect configuration file.
Fig. 5 is the flow chart of the processing method of aacode defect in one embodiment.As shown in figure 5, a kind of aacode defect
Processing method, runs on the server of Fig. 1 and Fig. 2 B, including:
Step 502, receiving terminal starts and runs the defect corresponding with the application program initiated after application program and matches somebody with somebody
Put whether file has the inquiry request of renewal.
In the present embodiment, server receiving terminal starts and runs initiate after application program corresponding with application program and lacks
Whether sunken configuration file has the inquiry request of renewal.Be may include in the inquiry request in application program identification and terminal store with
The corresponding defect configuration file version information of the application program identification.
Step 504, returning to defect configuration file has the response results of renewal to the terminal.
In the present embodiment, after server receives inquiry request, application program identification in inquiry request is from service
On device store application program identification with corresponding defect configuration file is found in the corresponding relation of defect configuration file, acquisition
The corresponding defect configuration file version information of the application program stored on server, the defect configuration text that will be stored on server
Part version information is compared with the defect configuration file version information in terminal, if identical, server sends to terminal not to be had
There is the result of renewal, if it is different, then server there are the response results of renewal to terminal transmission defect configuration file.
Be sent to for the defect configuration file of renewal according to the download request by step 506, the download request of receiving terminal
The terminal, so that the terminal obtains defect configuration file corresponding with the application program, and obtains the application journey
The facility information of the terminal where sequence;The defect mark in the code file of the application program is detected, from defect configuration
Facility information set corresponding with defect mark is obtained in file;Judge whether the facility information of the terminal sets described
In standby information aggregate;If the facility information is in the facility information set, from the code file of the application program
Reparation code corresponding with defect mark is found out, the reparation code is performed.
In the present embodiment, the facility information includes model information, or including model information and hardware information.
In the present embodiment, server receive terminal start and send after running application program with the application program pair
Whether the defect configuration file answered has the inquiry request of renewal, and inquiry request is responded, and sends the defect configuration text for updating
Part is to terminal, it is ensured that the defect configuration file stored in terminal is newest, it is to avoid application program is performed mistake occurs, and only
Defect configuration file need to be downloaded from server, you can realize the reparation of the aacode defect of terminal, it is not necessary to change local code, save
Network traffics are saved, and has caused that terminal, when defect mark is gone to, is obtained according to defect mark from defect configuration file
Whether corresponding facility information, judge the facility information of terminal in defect configuration file and the defect corresponding facility information of mark
In set, if in facility information set, performing and repairing code, if not in facility information set, performing non-repair generation
Code, quickly realizes the treatment of aacode defect, it is not necessary to change local code, improves the treatment effeciency of aacode defect.
Fig. 6 is the flow chart of the processing method of aacode defect in one embodiment.As shown in fig. 6, above-mentioned aacode defect
Processing method also includes:
Step 602, obtains the defect mark of the defect that the application program occurs in terminal.
In the present embodiment, defect is identified for unique identity documents for representing defect.Defect can be exited such as application program, blocked
Wait indefinitely defect.
Step 604, the defect mark of the application program is corresponding with the application program with what is stored on server
Defect mark in defect configuration file is compared.
Defective configuration file is stored on server, defective mark and corresponding equipment are recorded in the defect configuration file
Information.
Step 606, if identical, obtains the facility information of the terminal, and the facility information is added into the defect
In configuration file in facility information set corresponding with defect mark.
In the present embodiment, facility information includes model information, or including model information and hardware information.Model information can
It is type keyword, type keyword is the unique identity information for indicating the type of terminal.Hardware information may include CPU,
Built-in storage, graphic process unit etc..Defect configuration file be terminal download from a server it is corresponding with the application program lack
Fall into configuration file.
If defect mark is identical, then it represents that the terminal of existing other types occurs in that identical defect, and facility information is added
It is added in defect configuration file, the defect can be repaired using existing reparation code.If defect mark is different, then it represents that the defect
To occur first, then according to the corresponding code reparation bag of defect mark generation.
Step 608, if it is different, the facility information of the terminal is then obtained, the defect mark life according to the application program
Into corresponding code reparation bag, the facility information of defect mark and terminal is added in the defect configuration file.
In the present embodiment, the corresponding code reparation bag of the defect mark generation of application program is added to application program
In code file, to there is identical defect next time, then the code reparation bag is performed, to repair corresponding to defect mark
Defect.
Defect mark in the defect configuration file in the defect mark that application program occurs in terminal with server
When identical, the facility information of terminal is directly added to defect configuration file and the defect corresponding equipment of mark on server
In information aggregate, the terminal with identical device information can download newest defect configuration file when starting application program, so that
Solve the problems, such as the aacode defect of the application program in the terminal with identical device information.
Fig. 7 is the structured flowchart of the processing unit of aacode defect in one embodiment.As shown in fig. 7, a kind of aacode defect
Processing unit 700, run in the terminal of Fig. 1 and Fig. 2A, including starting module 702, acquisition module 704, read module
706th, judge module 708 and performing module 710.Wherein:
Starting module 702 is used to start and run application program.
In the present embodiment, one or more application programs are installed in terminal.Terminal obtains user in application program
Touch control operation on icon or shortcut, starts and runs the application program.
Acquisition module 704 is used to obtain defect configuration file corresponding with the application program, and obtains the application
The facility information of the terminal where program.In the present embodiment, defect configuration file causes application when being performed for record code
The file of facility information and the defect mark of the terminal that program breaks down.Facility information may include model information, may also include
Hardware information.Model information can be type keyword, and type keyword is the unique identity information of the type for indicating terminal.Hardware
Information may include CPU, built-in storage, graphic process unit etc..Defect is identified for unique identity documents for representing defect.Defect mark
It can be defect numbering etc. to know.When the code file of application program is performed on different terminals, some terminals can produce defect, have
Terminal will not produce defect.The position of the defect that different terminal operating application programs occurs may be identical, it is also possible to different.
The defect mark and facility information collection corresponding with defect mark of defect are produced using defect configuration file records application program
Close.Defect configuration file is the defect configuration file corresponding with the application program that terminal is downloaded from a server.
Be stored with the corresponding relation of application program identification and defect configuration file in terminal.Application program identification be for
Unique character string for representing application program etc..Character string may include one or more in numeral, letter, character etc..
The defect can be exited or stuck or splashette etc. for application program.
The facility information of the terminal where application program may include model information, or model information and hardware information etc..
The defect mark that read module 706 is used to detect in the code file of the application program, from defect configuration
Facility information set corresponding with defect mark is read in file.
In the present embodiment, when performing application program, the defect mark in the code file of application program is run into, obtaining should
Identified with the defect in the code file of program.Obtain corresponding with defect mark from defect configuration file according to defect mark
Facility information set.
Judge module 708 is used to judge whether the facility information of the terminal corresponding with defect mark to set described
In standby information aggregate.
If performing module 710 is used for the facility information in the facility information set, from the application program
Reparation code corresponding with defect mark is found out in code file, the reparation code is performed.
In the present embodiment, the facility information of the terminal where judging the application program whether the defect configuration file with
Defect is identified in corresponding facility information set, refers to configure the facility information of the terminal where the application program and the defect
Facility information set corresponding with defect mark is compared in file, if identical, terminal where the application program sets
For information in the defect of the defect configuration file identifies corresponding facility information set, if differing, the application program institute
The facility information of terminal do not identify corresponding facility information set in the defect of the defect configuration file.
If the facility information of the terminal is not in the facility information set corresponding with defect mark, from institute
Non-repair code corresponding with defect mark is found out in the code file for stating application program, the non-repair code is performed.
It refers to the code repaired to defect in the code file for be previously recorded in application program to repair code.In code
Record has two branch roads in file, i.e., when defect mark is gone to, judge the facility information of terminal in defect configuration file
In in facility information set corresponding with defect mark when, perform and repair code, if judging, the facility information of terminal is not lacking
Fall into when in configuration file, perform non-repair code.Non-repair code refers to the code before being repaired to defect.
The processing unit of above-mentioned aacode defect, after starting and running application program, obtains corresponding with the application program
The facility information of the terminal where defect configuration file, and the acquisition application program, obtains the code file of application program
In defect identify when, facility information set corresponding with defect mark is obtained from defect configuration file, judge terminal
Facility information whether in the facility information set corresponding with defect mark of defect configuration file, if performing reparation
Code, quickly realizes the treatment of aacode defect, it is not necessary to change local code, improves the treatment effeciency of aacode defect.
Fig. 8 is the structured flowchart of the first acquisition module in one embodiment.As shown in figure 8, acquisition module 704 includes inquiry
Request initiating cell 7042, response receiving unit 7044 and download unit 7046.Wherein:
Inquiry request initiates unit 7042 to be used for after the startup and running application program, is initiated to server and institute
State whether the corresponding defect configuration file of application program has the inquiry request of renewal.
Be stored with defect configuration file corresponding with application program in the present embodiment, on server.Terminal operating application journey
After sequence, application program identification is obtained, initiate whether defect configuration file corresponding with the application program has renewal to server
Inquiry request.May include that the corresponding with the application program identification of storage lacks in application program identification and terminal in the inquiry request
Fall into configuration file version information.
Response receiving unit 7044 has the response results of renewal for receiving the defect configuration file that the server is returned.
In the present embodiment, after server receives inquiry request, application program identification in inquiry request is from service
On device store application program identification with corresponding defect configuration file is found in the corresponding relation of defect configuration file, acquisition
The corresponding defect configuration file version information of the application program stored on server, the defect configuration text that will be stored on server
Part version information is compared with the defect configuration file version information in terminal, if identical, server sends to terminal not to be had
There is the result of renewal, if it is different, then server there are the response results of renewal to terminal transmission defect configuration file.
Download unit 7046 is used for the defect configuration file from the server down loading updating according to the response results.
In the present embodiment, after starting and running application program, defect corresponding with the application program is sent to server
Whether configuration file has the inquiry request of renewal, after receiving the response results of renewal, from the defect of server down loading updating
Configuration file, it is ensured that the defect configuration file stored in terminal is newest, it is to avoid application program is performed mistake occurs, and only
Defect configuration file need to be downloaded from server, you can realize the reparation of the aacode defect of terminal, it is not necessary to change local code, save
Network traffics are saved.
Fig. 9 is the structured flowchart of the processing unit of aacode defect in another embodiment.As shown in figure 9, a kind of code lacks
Sunken processing unit 700, runs in the terminal of Fig. 1 and Fig. 2A, except including starting module 702, acquisition module 704, reading
Module 706, judge module 708 and performing module 710, also including defect identifier acquisition module 712, comparison module 714, addition mould
Block 716 and generation module 718.
Defect identifier acquisition module 712 is used to obtain the defect mark of the defect that the application program occurs in terminal
Know.
Comparison module 714 is used for storing with the application program with server by the defect of application program mark
Defect mark in corresponding defect configuration file is compared.
If add module 716 obtains the facility information of the terminal for identical, the facility information of the terminal is added
It is added in the defect configuration file in facility information set corresponding with defect mark.
Generation module 718 is used for if it is different, then obtain the facility information of the terminal, according to the defect of the application program
The corresponding code reparation bag of mark generation, the defect configuration file is added to by the facility information of defect mark and terminal
In.
Figure 10 is the structured flowchart of the processing unit of aacode defect in another embodiment.As shown in Figure 10, a kind of code
The processing unit of defect, runs on the server of Fig. 1 and Fig. 2 B, including request receiving module 1002, respond module 1004, hair
Send module 1006.Wherein:
Request receiving module 1002 starts for receiving terminal and runs initiating with the application program after application program
Whether corresponding defect configuration file has the inquiry request of renewal.
In the present embodiment, server receiving terminal starts and runs initiate after application program corresponding with application program and lacks
Whether sunken configuration file has the inquiry request of renewal.Be may include in the inquiry request in application program identification and terminal store with
The corresponding defect configuration file version information of the application program identification.
Respond module 1004 has the response results of renewal to the terminal for returning to defect configuration file.
In the present embodiment, after server receives inquiry request, application program identification in inquiry request is from service
On device store application program identification with corresponding defect configuration file is found in the corresponding relation of defect configuration file, acquisition
The corresponding defect configuration file version information of the application program stored on server, the defect configuration text that will be stored on server
Part version information is compared with the defect configuration file version information in terminal, if identical, server sends to terminal not to be had
There is the result of renewal, if it is different, then server there are the response results of renewal to terminal transmission defect configuration file.
Sending module 1006 is used for the download request of receiving terminal, according to the configuration file hair that the download request will update
The terminal is given, so that the terminal obtains defect configuration file corresponding with the application program, and described answering is obtained
With the facility information of the terminal where program;The defect mark in the code file of the application program is detected, from the defect
Facility information set corresponding with defect mark is read in configuration file;Judge the facility information of the terminal whether in institute
In stating facility information set corresponding with defect mark;If the facility information is in the defect configuration file, from
Reparation code corresponding with defect mark is found out in the code file of the application program, the reparation code is performed.
In the present embodiment, the facility information includes model information, or including model information and hardware information.
In the present embodiment, server receive terminal start and send after running application program with the application program pair
Whether the defect configuration file answered has the inquiry request of renewal, and inquiry request is responded, and sends the defect configuration text for updating
Part is to terminal, it is ensured that the defect configuration file stored in terminal is newest, it is to avoid application program is performed mistake occurs, and only
Defect configuration file need to be downloaded from server, you can realize the reparation of the aacode defect of terminal, it is not necessary to change local code, save
Network traffics are saved, and has caused that terminal, when defect mark is gone to, is obtained according to defect mark from defect configuration file
Whether corresponding facility information, judge the facility information of terminal in defect configuration file and the defect corresponding facility information of mark
In set, if in defect configuration file, performing and repairing code, if not in configuration file, performing non-repair code, soon
Speed realizes the treatment of aacode defect, it is not necessary to change local code, improves the treatment effeciency of aacode defect.
Figure 11 is the structured flowchart of the processing unit of aacode defect in another embodiment.As shown in figure 11, a kind of code
The processing unit of defect, runs on the server of Fig. 1 and Fig. 2 B, except including request receiving module 1002, respond module
1004th, sending module 1006, also including defect identifier acquisition module 1008, comparison module 1010, add module 1012 and generation
Module 1014.Wherein:
Defect identifier acquisition module 1008 is used to obtain the defect mark of the defect that the application program occurs in terminal
Know.
Comparison module 1010 is used for storing with the application journey with server by the defect of application program mark
Defect mark in the corresponding defect configuration file of sequence is compared.
If add module 1012 obtains the facility information of the terminal, by the facility information of the terminal for identical
It is added in the defect configuration file in facility information set corresponding with defect mark.Facility information is believed including type
Breath, or including model information and hardware information.
Generation module 1014 is used for if it is different, then obtain the facility information of the terminal, according to lacking for the application program
The corresponding code reparation bag of mark generation is fallen into, the facility information of defect mark and terminal is added to the defect configuration text
In part.
In the present embodiment, when in the defect configuration file in the defect mark that application program occurs in terminal with server
Defect mark it is identical when, the facility information of terminal is directly added to defect configuration file on server and is identified with the defect
In corresponding facility information set, the terminal with identical device information can download newest defect configuration when starting application program
File, so as to solve the problems, such as the defect code of the application program in the terminal with identical device information.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be
The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between
Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of processing method of aacode defect, including:
Start and run application program;
The equipment of the terminal where obtaining defect configuration file corresponding with the application program, and the acquisition application program
Information;
The defect mark in the code file of the application program is detected, and the defect is read from the defect configuration file
Identify corresponding facility information set;
Judge the facility information of the terminal whether in the facility information set;
If the facility information is in the facility information set, found out from the code file of the application program with it is described
Defect identifies corresponding reparation code, and performs the reparation code.
2. method according to claim 1, it is characterised in that acquisition defect configuration corresponding with the application program
File, including:
Initiate whether the defect configuration file corresponding with application program has the inquiry request of renewal to server;
Receiving the defect configuration file of the server return has the response results of renewal;
According to the response results from the defect configuration file of the server down loading updating.
3. method according to claim 1 and 2, it is characterised in that the facility information includes model information, or including
Model information and hardware information.
4. method according to claim 1, it is characterised in that methods described also includes:
If the facility information of the terminal is not in the facility information set corresponding with defect mark, answered from described
With finding out non-repair code corresponding with defect mark in the code file of program, and perform the non-repair code.
5. method according to claim 1, it is characterised in that methods described also includes:
Obtain the defect mark of the defect that the application program occurs in terminal;
By the defect mark of the application program and the defect configuration file corresponding with the application program stored on server
In defect mark be compared;
If identical, the facility information of the terminal is obtained, the facility information of the terminal is added to the defect configuration text
In part in facility information set corresponding with defect mark;
If it is different, the facility information of the terminal is then obtained, the corresponding code of defect mark generation according to the application program
Bag is repaired, and the facility information of defect mark and terminal is added in the defect configuration file.
6. a kind of processing unit of aacode defect, it is characterised in that including:
Starting module, for starting and runs application program;
Acquisition module, for obtaining defect configuration file corresponding with the application program, and obtains the application program institute
Terminal facility information;
Read module, for the defect mark in the code file for detecting the application program, from the defect configuration file
Read facility information set corresponding with defect mark;
Judge module, for judging the facility information of the terminal whether in the facility information set;
Performing module, if for the facility information in the facility information set, from the code text of the application program
Reparation code corresponding with defect mark is found out in part, and performs the reparation code.
7. device according to claim 6, it is characterised in that the acquisition module includes:
Inquiry request initiates unit, for initiating whether defect configuration file corresponding with the application program has more to server
New inquiry request;
Response receiving unit, has the response results of renewal for receiving the defect configuration file that the server is returned;
Download unit, for according to the response results from the defect configuration file of the server down loading updating.
8. the device according to claim 6 or 7, it is characterised in that the facility information includes model information, or including
Model information and hardware information.
9. device according to claim 6, it is characterised in that if the performing module is additionally operable to the equipment letter of the terminal
Breath is then found out not in the facility information set corresponding with defect mark from the code file of the application program
Non-repair code corresponding with defect mark, and perform the non-repair code.
10. device according to claim 6, it is characterised in that described device also includes:
Defect identifier acquisition module, the defect for obtaining the defect that the application program occurs in terminal is identified;
Comparison module, for the defect mark of the application program is corresponding with the application program with what is stored on server
Defect mark in defect configuration file is compared;
Add module, if for identical, obtaining the facility information of the terminal, institute is added to by the facility information of the terminal
State in defect configuration file in facility information set corresponding with defect mark;
Generation module, for if it is different, then obtaining the facility information of the terminal, the defect mark according to the application program is given birth to
Into corresponding code reparation bag, the facility information of defect mark and terminal is added in the defect configuration file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710005495.0A CN106843947B (en) | 2017-01-04 | 2017-01-04 | Method and device for processing code defects |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710005495.0A CN106843947B (en) | 2017-01-04 | 2017-01-04 | Method and device for processing code defects |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843947A true CN106843947A (en) | 2017-06-13 |
CN106843947B CN106843947B (en) | 2020-01-24 |
Family
ID=59116733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710005495.0A Active CN106843947B (en) | 2017-01-04 | 2017-01-04 | Method and device for processing code defects |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106843947B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108681464A (en) * | 2018-05-12 | 2018-10-19 | 芜湖市疾病预防控制中心 | Method of the old B/S architecture systems to mobile client optimization and compatibility adaptation |
CN110633099A (en) * | 2019-09-05 | 2019-12-31 | 北京无限光场科技有限公司 | Application program repairing method, device, equipment and readable medium |
CN111722998A (en) * | 2019-03-21 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Code quality control method, system, device and storage medium |
CN111858113A (en) * | 2019-04-30 | 2020-10-30 | 北京达佳互联信息技术有限公司 | Application program repairing method, device, service system and storage medium |
CN114610516A (en) * | 2022-03-10 | 2022-06-10 | 北京字节跳动网络技术有限公司 | Application program repairing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120159420A1 (en) * | 2010-12-16 | 2012-06-21 | Sap Ag | Quality on Submit Process |
CN102662833A (en) * | 2012-03-21 | 2012-09-12 | 天津书生软件技术有限公司 | Method for managing test cases |
CN103559127A (en) * | 2013-10-28 | 2014-02-05 | 北京邮电大学 | Defect processing method and defect processor |
CN104142881A (en) * | 2013-05-07 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Adaptive defect detecting method and device of application program programming interfaces |
CN104765678A (en) * | 2014-01-08 | 2015-07-08 | 阿里巴巴集团控股有限公司 | Method and device for testing applications on mobile terminal |
-
2017
- 2017-01-04 CN CN201710005495.0A patent/CN106843947B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120159420A1 (en) * | 2010-12-16 | 2012-06-21 | Sap Ag | Quality on Submit Process |
CN102662833A (en) * | 2012-03-21 | 2012-09-12 | 天津书生软件技术有限公司 | Method for managing test cases |
CN104142881A (en) * | 2013-05-07 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Adaptive defect detecting method and device of application program programming interfaces |
CN103559127A (en) * | 2013-10-28 | 2014-02-05 | 北京邮电大学 | Defect processing method and defect processor |
CN104765678A (en) * | 2014-01-08 | 2015-07-08 | 阿里巴巴集团控股有限公司 | Method and device for testing applications on mobile terminal |
Non-Patent Citations (1)
Title |
---|
夏慧等: "基于PI3000平台的软件缺陷管理系统的应用实践", 《计算机与现代化》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108681464A (en) * | 2018-05-12 | 2018-10-19 | 芜湖市疾病预防控制中心 | Method of the old B/S architecture systems to mobile client optimization and compatibility adaptation |
CN111722998A (en) * | 2019-03-21 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Code quality control method, system, device and storage medium |
CN111858113A (en) * | 2019-04-30 | 2020-10-30 | 北京达佳互联信息技术有限公司 | Application program repairing method, device, service system and storage medium |
CN111858113B (en) * | 2019-04-30 | 2024-03-12 | 北京达佳互联信息技术有限公司 | Application program repairing method and device, service system and storage medium |
CN110633099A (en) * | 2019-09-05 | 2019-12-31 | 北京无限光场科技有限公司 | Application program repairing method, device, equipment and readable medium |
CN114610516A (en) * | 2022-03-10 | 2022-06-10 | 北京字节跳动网络技术有限公司 | Application program repairing method and device, computer equipment and storage medium |
CN114610516B (en) * | 2022-03-10 | 2023-07-04 | 抖音视界有限公司 | Application program repairing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106843947B (en) | 2020-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106843947A (en) | The treating method and apparatus of aacode defect | |
CN109033772B (en) | Verification information input method and device | |
CN111897740B (en) | User interface testing method and device, electronic equipment and computer readable medium | |
CN110196795B (en) | Method and related device for detecting running state of mobile terminal application | |
CN104769598B (en) | System and method for detecting unauthorized applications | |
CN104246759A (en) | Application programming interface testing services | |
CN109582873B (en) | Method and device for pushing information | |
CN104978213B (en) | Realize the link acquisition methods and device of application installation package | |
CN103249027B (en) | The method and apparatus that a kind of terminal traffic processes | |
CN109446753A (en) | Detect method, apparatus, computer equipment and the storage medium of pirate application program | |
CN112559355A (en) | Test case generation method and device, electronic equipment and storage medium | |
CN112650909A (en) | Product display method and device, electronic equipment and storage medium | |
CN110688305B (en) | Test environment synchronization method, device, medium and electronic equipment | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
CN108228611B (en) | Document information copying method and device | |
CN114727100B (en) | Joint debugging method and device for monitoring equipment | |
CN115328764A (en) | Test code optimization method based on automatic test and related equipment thereof | |
CN115061916A (en) | Method for automatically generating interface test case and related equipment thereof | |
CN104636228A (en) | Electronic device convenient to test and testing method | |
CN113760631A (en) | Page loading duration determination method, device, equipment and storage medium | |
CN111061625A (en) | Automatic testing method and device applied to out-of-order password keyboard | |
CN112783886B (en) | Cache cleaning method, device, computer equipment and storage medium | |
CN114218191A (en) | System function migration method and device, computer equipment and storage medium | |
CN111562913B (en) | Method, device and equipment for pre-creating view component and computer readable medium | |
CN102402437B (en) | Data processing equipment and download control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |