CN104142881A - Adaptive defect detecting method and device of application program programming interfaces - Google Patents

Adaptive defect detecting method and device of application program programming interfaces Download PDF

Info

Publication number
CN104142881A
CN104142881A CN201310164439.3A CN201310164439A CN104142881A CN 104142881 A CN104142881 A CN 104142881A CN 201310164439 A CN201310164439 A CN 201310164439A CN 104142881 A CN104142881 A CN 104142881A
Authority
CN
China
Prior art keywords
adaptive
dynamic link
link library
dll
adaptive defect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310164439.3A
Other languages
Chinese (zh)
Other versions
CN104142881B (en
Inventor
李艳超
戴健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310164439.3A priority Critical patent/CN104142881B/en
Publication of CN104142881A publication Critical patent/CN104142881A/en
Application granted granted Critical
Publication of CN104142881B publication Critical patent/CN104142881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Disclosed is an adaptive defect detecting method of application program programming interfaces. The method comprises detecting an original code input by a user; comparing an original application program programming interface called inside the original code with a preset target application program programming interface inside an adaptive defect database; if the original application program programming interface is the preset target application program programming interface, displaying alarming information. Besides, the invention also provides an adaptive defect device of the application program programming interfaces. The adaptive defect detecting method and the loading device of the application program programming interfaces can reduce load on adaptive operations during an entire software developing process and accordingly improve the software developing efficiency.

Description

Adaptive defect inspection method and the pick-up unit of application programming interface
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of adaptive defect inspection method and pick-up unit of application programming interface.
Background technology
Along with the development of programming technique, the function of software is also more and more enriched.In order to realize these functions and to save programming cost, software developer generally realizes the various functions of application software by invokes application DLL (dynamic link library) (Application Programming Interface, API) in software.But, due to SDK (Software Development Kit) (Software Development Kit, SDK) difference of version, type, rom version, be not that all API can operate on the terminal device of all models, there is adaptive defect in some API, when on the terminal device that operates in specific model, there will be the application error that cannot move.So after a software early development completes, the later stage also needs conventionally through a large amount of adaptation tests.
But because the adaptation test of every money software is all carried out separately, API and the corresponding solution thereof of the adaptive defect of existence that certain software developer finds in adaptive defect test, all can only become this software developer's test experience, other software developers do not necessarily know, other software developers very likely call the API that has adaptive defect in the time of software development like this, have virtually increased the weight of the burden of later stage software adaptation test.Therefore the burden that how to alleviate the adaptive work of API in whole software development process, improves the efficiency of software development, is a great problem that current urgent need solves.
Summary of the invention
In view of this, the invention provides a kind of adaptive defect inspection method and pick-up unit of application programming interface, can alleviate the burden of software adaptation test, improve testing efficiency.
An adaptive defect inspection method for application programming interface, comprising: detect the source code of user's input; Preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) of calling in described source code and adaptive issue database is compared; And if described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, described prompting message comprises adaptive defect information corresponding with this destination application DLL (dynamic link library) in described adaptive issue database, and the application programming interface that described prompting message calls for source code described in reminding user exists adaptive defect, cannot in the terminal device of target model, apply.
An adaptive defect detecting device for application programming interface, comprising: detection module, for detection of the source code of user's input; Comparison module, the preset destination application DLL (dynamic link library) in original application program DLL (dynamic link library) and the adaptive issue database calling for the described source code that described detection module is detected compares; And prompting module, if the comparative result for described comparison module is that described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, described prompting message comprises adaptive defect information corresponding with this destination application DLL (dynamic link library) in described adaptive issue database, and the application programming interface that described prompting message calls for source code described in reminding user exists adaptive defect, cannot in the terminal device of target model, apply.
Adaptive defect inspection method and the device of the application programming interface that the embodiment of the present invention provides, by the source code of inputting by code editor detection user, preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) that source code is called and adaptive issue database compares, and in the time that original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, make software developer can find to exist the application programming interface of adaptive defect at software development phase, thereby can alleviate the burden of the adaptive work of application programming interface in whole software development process, improve the efficiency of software development.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate appended graphicly, be described in detail below.
Brief description of the drawings
Fig. 1 shows a kind of structured flowchart of terminal device.
The process flow diagram of the adaptive defect inspection method of the application programming interface that Fig. 2 provides for first embodiment of the invention.
The process flow diagram of the adaptive defect inspection method of the application programming interface that Fig. 3 provides for second embodiment of the invention.
Fig. 4 is the interface schematic diagram of prompting message while showing by message window.
Fig. 5 is for the whole development process flow diagram of adaptive defect inspection method of the application programming interface that provides of the embodiment of the present invention is provided.
The structural representation of the adaptive defect detecting device of the application programming interface that Fig. 6 provides for third embodiment of the invention.
Fig. 7 is the storage environment schematic diagram installing in Fig. 6.
The structural representation of the adaptive defect detecting device of the application programming interface that Fig. 8 provides for fourth embodiment of the invention.
Embodiment
Technological means and effect of taking for realizing predetermined goal of the invention for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The adaptive defect inspection method of the application programming interface that the embodiment of the present invention provides can be applicable in terminal device the form of plug-in unit (for example with) and realizes the detection in the adaptive defect of software development phase application programs DLL (dynamic link library), and terminal device can comprise: smart mobile phone, panel computer, pocket computer on knee and desk-top computer etc.
Fig. 1 shows a kind of structured flowchart of terminal device.As shown in Figure 1, terminal device 100 comprises storer 102, memory controller 104, one or more (only illustrating one in figure) processor 106, Peripheral Interface 108, Touch Screen 110 and key-press module 112.These assemblies are by the mutual communication of one or more communication bus/signal wire.
Be appreciated that the structure shown in Fig. 1 is only signal, terminal device 100 also can comprise than assembly more shown in Fig. 1 or still less, or have and configurations different shown in Fig. 1.Each assembly shown in Fig. 1 can adopt hardware, software or its combination to realize.
Storer 102 can be used for storing software program and module, as the method for the adaptive defects detection of carrying out application programming interface in terminal device in the embodiment of the present invention and install corresponding programmed instruction/module, processor 102 is stored in software program and the module in storer 104 by operation, thereby carry out various function application and data processing, realize the above-mentioned method of carrying out the adaptive defects detection of application programming interface in terminal device.
Storer 102 can comprise high speed random access memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.
Various input/output devices are coupled to CPU and storer 102 by Peripheral Interface 108.Various softwares in processor 106 run memories 102, instruction are to carry out the various functions of terminal device 100 and to carry out data processing.
In certain embodiments, Peripheral Interface 108, processor 106 and memory controller 104 can be realized in one single chip.In some other example, they can be respectively realized by chip independently.
Touch Screen 110 provides an output and inputting interface between terminal device 100 and user simultaneously.Particularly, Touch Screen 110 is to the output of user's display video, and the content of these video outputs can comprise word, figure, video and combination in any thereof.Some Output rusults are corresponding to some user interface object.Touch Screen 110 also receives user's input, and such as user's the gesture operation such as click, slip, so that user interface object is made response to these users' input.The technology that detects user's input can be based on resistance-type, condenser type or other any possible touch control detection technology.The instantiation of Touch Screen 110 display units includes, but are not limited to liquid crystal display or light emitting polymer display.
The interface that key-press module 112 provides user to input to terminal device 100 equally, user can be by pressing different buttons so that terminal device 100 be carried out different functions.
The first embodiment
The process flow diagram of the adaptive defect inspection method of the application programming interface that Fig. 2 provides for first embodiment of the invention.As shown in Figure 2, the adaptive defect inspection method of the application programming interface of the present embodiment comprises the following steps:
Step S11, detects the source code of user's input.
Detect the source code that user inputs by code editor.Code editor can be the code editor that Eclipse Integrated Development Environment (Integrated Development Environment, IDE) provides.Eclipse IDE be an open source code, based on Java language can regarded as output controlling platform, make up environment by various plug in component, can be used for software development.
Step S12, compares the preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) of calling in described source code and adaptive issue database.
Step S13, if described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information.
Application programming interface (Application Programming Interface, API) be one group of function and secondary program that predefined quantity is thousands of, extremely complicated, its fundamental purpose is the details that why allows source code that software developer need not consider its bottom or understand its internal work mechanism, can, by calling one group of routine, realize and in application program, read specified file, display menu, display web page etc. function in form.
Preset destination application DLL (dynamic link library) also can be referred to as sensitive API, refers to the API that those exist adaptive defect, when these API move in the terminal device of some specific model, can produce run-time error.In the embodiment of the present invention, these preset destination application DLL (dynamic link library) are stored in an adaptive issue database.In the time the source code that user inputs being detected, preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) of calling in described source code and adaptive issue database is compared, if result relatively shows original application program DLL (dynamic link library) and belongs to the preset destination application DLL (dynamic link library) in adaptive issue database, to user's display alarm information.
The information such as prompting message is for reminding user, and the original API that the source code of its input is called exists adaptive defect, cannot apply in the terminal device of target model.Wherein, target model is the model of the corresponding terminal device of adaptive defect.
The adaptive defect inspection method of the application programming interface that the embodiment of the present invention provides, by the source code of inputting by code editor detection user, preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) that source code is called and adaptive issue database compares, and in the time that original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, make software developer can find to exist the application programming interface of adaptive defect at software development phase, thereby can alleviate the burden of the adaptive work of application programming interface in whole software development process, improve the efficiency of software development.
The second embodiment
The process flow diagram of the adaptive defect inspection method of the application programming interface that Fig. 3 provides for second embodiment of the invention.As shown in Figure 3, the adaptive defect inspection method of the application programming interface of the present embodiment comprises the following steps:
Step S21, sets up adaptive issue database.
In adaptive issue database, preserve title and the corresponding adaptive defect information of multiple preset destination application DLL (dynamic link library).
In adaptive defect information, at least comprise: model and the solution of the existing adaptive defect of each preset target AP I, the corresponding terminal device of adaptive defect.Wherein, solution comprises the preset replacement code of the adaptive defect for making up preset target AP I.
Adaptive issue database can upgrade at any time according to the result of software adaptation test, by setting up and constantly update adaptive issue database, the API of the adaptive defect of various existence that software developer can be found in software adaptation test process and corresponding solution are summarised in together, even if do not have like this software developer of dependence test experience can be in software development process yet, obtain processing the relevant guidance of the API that has adaptive defect by adaptive issue database, thereby can reduce the software of developing and occur the possibility of adaptive problem, alleviate the test burden of adaptive test after software development, and then raising testing efficiency.
Step S22, detects the source code of user's input.
This step can, with reference to the corresponding steps in the first embodiment, repeat no more here.
Step S23, travels through described adaptive issue database, the preset destination application DLL (dynamic link library) that the title of lookup names and described original application program DLL (dynamic link library) matches.
Be understandable that, also can search preset target AP I corresponding with original API in adaptive issue database, the such as key word in API code etc. by other keyword beyond title.
Step S24, if find described preset destination application DLL (dynamic link library), is judged to be described original application program DLL (dynamic link library) described preset destination application DLL (dynamic link library).
Step S25, if described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, described prompting message comprises the quick entrance of solution.
Prompting message can comprise: the reminder flag such as " warning " printed words or by the form such as color, underscore to adaptive defect information corresponding with this target AP I in the highlighting of original API, adaptive issue database and with the quick entrance of the corresponding solution of the adaptive defect of this target AP I.In a kind of embodiment of the present invention, as shown in Figure 4, prompting message for example can show by the mode of message window 200, and what 201 in Fig. 4 represented is the quick entrance of solution.In other embodiments of the present invention, prompting message also can show by the mode of label, and the present invention is not as limit.
The adaptive defect information corresponding with this target AP I can comprise: this target AP I on the terminal device of which model, move there will be mistake, occur concrete manifestation when wrong be what etc.
The quick entrance of the solution corresponding with this target AP I can comprise: with corresponding preset replacement code and the substitute mode of solution or evade the method for this problem.Preset replacement code can be used for making up the adaptive defect of target AP I.Substitute mode can be: the replacement code of inputting by code editor according to user is replaced, or the displacement instruction of inputting by pressing shortcut according to the user who monitors, use preset replacement code section or all replace the content of source code, or the displacement instruction of inputting by clicking the viewing area of preset replacement code according to the user who monitors, use the preset replacement code section in clicked region or all replace content of source code etc.
Step S26, in the time listening to user and trigger described quick entrance, uses substitute mode in described quick entrance by the described replacement code in described partly or entirely replacing with of described source code quick entrance.
The mode that user triggers quick entrance can be: trigger by the code input area of clicking code editor, or trigger by pressing preset shortcut, or trigger etc. by the viewing area of clicking preset replacement code.Shortcut can according to user that interface receives is set by shortcut, that instruction is set be default.
The effect in whole development process by the adaptive defect inspection method that further illustrates the application programming interface that the embodiment of the present invention provides below, as shown in Figure 5, software development generally needs through: software early development, common problem test and adaptive problem test three phases.
In the software early development stage: execution step S31, for example, be that sensitive API (is also preset at those in adaptive issue database and exists the API of adaptive defect when realizing original API that source code that the plug-in unit (eclipse plug-in unit) of adaptive defect inspection method of the application programming interface that the embodiment of the present invention provides detects that user inputs by code editor calls, when these API move in the terminal device of some specific model, can produce run-time error) time, display alarm information, this original API of reminding user is sensitive API, and the solution corresponding with this sensitive API of storing in adaptive issue database can be offered to user, so that user is with reference to the replacement code revision source code in solution, to make up adaptive defect, thereby can reduce the probability that adaptive problem appears in software, alleviate the burden of adaptive test, and then the efficiency of raising software development.
In common problem test phase, execution step S32, feeds back to user by common problem such as the code logic testing out, so that user modifies to software code according to feedback information.
In adaptive test phase, in the time finding adaptive problem, execution step S33, sensitive API related adaptive problem is fed back to software developer, verify this sensitive API, and after processing, execution step S34, adds adaptive issue database by this sensitive API and corresponding solution thereof.By the adaptive issue database of enriching constantly, can make software developer obtain more effective adaptive defect in the software early development stage and instruct, thereby further reduce software and occur the probability of adaptive problem, improve the efficiency of software development.
The adaptive defect inspection method of the application programming interface that the embodiment of the present invention provides, by the source code of inputting by code editor detection user, preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) that source code is called and adaptive issue database compares, and in the time that original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, make software developer can find to exist the application programming interface of adaptive defect at software development phase, thereby can alleviate the burden of the adaptive work of application programming interface in whole software development process, improve the efficiency of software development.
The 3rd embodiment
The structural representation of the adaptive defect detecting device of the application programming interface that Fig. 6 provides for third embodiment of the invention.The adaptive defect detecting device of the application programming interface that the present embodiment provides can be for realizing the adaptive defect inspection method of the application programming interface in the first embodiment.As shown in Figure 5, the adaptive defect detecting device 10 of application programming interface comprises: detection module 11, comparison module 12, prompting module 13.
Wherein, detection module 11 is for detection of the source code of user's input.
Preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) that comparison module 12 calls for the described source code that described detection module 11 is detected and adaptive issue database compares.
If prompting module 13 is that described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library) for the comparative result of described comparison module 12, display alarm information, described prompting message comprises adaptive defect information corresponding with this destination application DLL (dynamic link library) in described adaptive issue database, and the application programming interface that described prompting message calls for source code described in reminding user exists adaptive defect, cannot in the terminal device of target model, apply.
Each module can be by software code realization above, and now, above-mentioned each module can be stored in storer 102, as shown in Figure 7.Each module can be realized by for example integrated circuit (IC) chip of hardware equally above.
Each Implement of Function Module of the adaptive defect detecting device 10 of the present embodiment application programming interface detailed process of function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 4, repeats no more herein.
The adaptive defect detecting device of the application programming interface that the embodiment of the present invention provides, by the source code of inputting by code editor detection user, preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) that source code is called and adaptive issue database compares, and in the time that original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, make software developer can find to exist the application programming interface of adaptive defect at software development phase, thereby can alleviate the burden of the adaptive work of application programming interface in whole software development process, improve the efficiency of software development.
The 4th embodiment
The structural representation of the adaptive defect detecting device of the application programming interface that Fig. 8 provides for fourth embodiment of the invention.The adaptive defect detecting device of the application programming interface that the present embodiment provides can be for realizing the adaptive defect inspection method of the application programming interface in the second embodiment.As shown in Figure 8, the adaptive defect detecting device 20 of application programming interface comprises: adaptive issue database is set up module 21, detection module 22, comparison module 23, prompting module 24, source code replacement module 25.
Wherein, adaptive issue database is set up module 21 for setting up described adaptive issue database, in described adaptive issue database, preserve title and the corresponding adaptive defect information of multiple described preset destination application DLL (dynamic link library), in described adaptive defect information, at least comprise the model of the existing adaptive defect of each preset destination application DLL (dynamic link library) and the corresponding terminal device of adaptive defect.
Detection module 22 is for detection of the source code of user's input.
The preset destination application DLL (dynamic link library) that the original application program DLL (dynamic link library) that comparison module 23 calls for the described source code that described detection module 21 is detected and described adaptive issue database are set up in the adaptive issue database that module 21 sets up compares.Comparison module 23 also comprises: search unit 231 and identifying unit 232.Wherein, search unit 231 and set up for traveling through described adaptive issue database the described adaptive issue database that module 21 is set up, the preset destination application DLL (dynamic link library) that the title of lookup names and described original application program DLL (dynamic link library) matches.If identifying unit 232 for described in search unit 231 and find described preset destination application DLL (dynamic link library), described original application program DLL (dynamic link library) is judged to be to described preset destination application DLL (dynamic link library).
If prompting module 24 is that described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library) for the comparative result of described comparison module 23, display alarm information, described prompting message comprises adaptive defect information corresponding with this destination application DLL (dynamic link library) in described adaptive issue database, and the application programming interface that described prompting message calls for source code described in reminding user exists adaptive defect, cannot in the terminal device of target model, apply.
Preferably, described adaptive defect information also comprises the preset replacement code that the solution of each adaptive defect is used, for replacing part or all of described source code to make up the adaptive defect of described original application program DLL (dynamic link library).
Preferably, also comprise the quick entrance of solution corresponding to described adaptive defect in described prompting message, described quick entrance comprises preset replacement code and the substitute mode that described solution is corresponding.
Source code replacement module 25 is in the time listening to user and trigger described quick entrance, uses substitute mode in described quick entrance by the described replacement code in described partly or entirely replacing with of described source code quick entrance.
Each Implement of Function Module of the adaptive defect detecting device 20 of the present embodiment application programming interface detailed process of function separately, refers to the particular content of above-mentioned Fig. 1 to middle description embodiment illustrated in fig. 4, repeats no more herein.
The adaptive defect detecting device of the application programming interface that the embodiment of the present invention provides, by the source code of inputting by code editor detection user, preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) that source code is called and adaptive issue database compares, and in the time that original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, make software developer can find to exist the application programming interface of adaptive defect at software development phase, thereby can alleviate the burden of the adaptive work of application programming interface in whole software development process, improve the efficiency of software development.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the device that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or device.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the device that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, but not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any simple modification of above embodiment being done according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (10)

1. an adaptive defect inspection method for application programming interface, is characterized in that, comprising:
Detect the source code of user's input;
Preset destination application DLL (dynamic link library) in the original application program DLL (dynamic link library) of calling in described source code and adaptive issue database is compared; And
If described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, described prompting message comprises adaptive defect information corresponding with this destination application DLL (dynamic link library) in described adaptive issue database, and the application programming interface that described prompting message calls for source code described in reminding user exists adaptive defect, cannot in the terminal device of target model, apply.
2. the method for claim 1, is characterized in that, before the step of the source code of described detection user input, also comprises:
Set up described adaptive issue database, in described adaptive issue database, preserve title and the corresponding adaptive defect information of multiple described preset destination application DLL (dynamic link library), in described adaptive defect information, at least comprise the model of the existing adaptive defect of each preset destination application DLL (dynamic link library) and the corresponding terminal device of adaptive defect.
3. method as claimed in claim 2, it is characterized in that, described adaptive defect information also comprises the solution of each adaptive defect, described solution comprises method or the preset replacement code of evading this problem, for replacing part or all of described source code to make up the adaptive defect of described original application program DLL (dynamic link library).
4. method as claimed in claim 3, is characterized in that, also comprises the quick entrance of solution corresponding to described adaptive defect in described prompting message, and described quick entrance comprises preset replacement code and the substitute mode that described solution is corresponding.
5. method as claimed in claim 4, is characterized in that, after the step of described display alarm information, also comprises:
In the time listening to user and trigger described quick entrance, use substitute mode in described quick entrance by the described replacement code in described partly or entirely replacing with of described source code quick entrance.
6. an adaptive defect detecting device for application programming interface, is characterized in that, comprising:
Detection module, for detection of the source code of user's input;
Comparison module, the preset destination application DLL (dynamic link library) in original application program DLL (dynamic link library) and the adaptive issue database calling for the described source code that described detection module is detected compares; And
Prompting module, if the comparative result for described comparison module is that described original application program DLL (dynamic link library) is preset destination application DLL (dynamic link library), display alarm information, described prompting message comprises adaptive defect information corresponding with this destination application DLL (dynamic link library) in described adaptive issue database, and the application programming interface that described prompting message calls for source code described in reminding user exists adaptive defect, cannot in the terminal device of target model, apply.
7. device as claimed in claim 6, is characterized in that, also comprises:
Adaptive issue database is set up module, be used for setting up described adaptive issue database, in described adaptive issue database, preserve title and the corresponding adaptive defect information of multiple described preset destination application DLL (dynamic link library), in described adaptive defect information, at least comprise the model of the existing adaptive defect of each preset destination application DLL (dynamic link library) and the corresponding terminal device of adaptive defect.
8. device as claimed in claim 7, it is characterized in that, described adaptive defect information also comprises the solution of each adaptive defect, described solution comprises method or the preset replacement code of evading this problem, for replacing part or all of described source code to make up the adaptive defect of described original application program DLL (dynamic link library).
9. device as claimed in claim 8, is characterized in that, also comprises the quick entrance of solution corresponding to described adaptive defect in described prompting message, and described quick entrance comprises preset replacement code and the substitute mode that described solution is corresponding.
10. device as claimed in claim 8, is characterized in that, also comprises:
Source code replacement module, in the time listening to user and trigger described quick entrance, uses substitute mode in described quick entrance by the described replacement code in described partly or entirely replacing with of described source code quick entrance.
CN201310164439.3A 2013-05-07 2013-05-07 The adaptation defect inspection method and detection device of application programming interface Active CN104142881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310164439.3A CN104142881B (en) 2013-05-07 2013-05-07 The adaptation defect inspection method and detection device of application programming interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310164439.3A CN104142881B (en) 2013-05-07 2013-05-07 The adaptation defect inspection method and detection device of application programming interface

Publications (2)

Publication Number Publication Date
CN104142881A true CN104142881A (en) 2014-11-12
CN104142881B CN104142881B (en) 2019-04-12

Family

ID=51852062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310164439.3A Active CN104142881B (en) 2013-05-07 2013-05-07 The adaptation defect inspection method and detection device of application programming interface

Country Status (1)

Country Link
CN (1) CN104142881B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843947A (en) * 2017-01-04 2017-06-13 腾讯科技(深圳)有限公司 The treating method and apparatus of aacode defect
CN107341106A (en) * 2017-06-21 2017-11-10 努比亚技术有限公司 Application compatibility detection method, exploitation terminal and storage medium
CN107463501A (en) * 2017-08-11 2017-12-12 四川长虹电器股份有限公司 A kind of defect management system for prompting and based reminding method
CN110221880A (en) * 2019-06-05 2019-09-10 北京金山安全软件有限公司 Application programming interface calling method, device, equipment and medium
CN110506243A (en) * 2017-05-30 2019-11-26 欧姆龙株式会社 Man-machine interface development aid device, man-machine interface development support method and man-machine interface development support program
CN112988561A (en) * 2019-12-18 2021-06-18 腾讯科技(深圳)有限公司 Method, device, server and storage medium for detecting display configuration code

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044089A1 (en) * 2003-08-21 2005-02-24 Microsoft Corporation Systems and methods for interfacing application programs with an item-based storage platform
CN101067924A (en) * 2007-05-28 2007-11-07 广东威创日新电子有限公司 Visual frequency accelerating method based on the third party playing software
CN101252578A (en) * 2008-04-02 2008-08-27 电子科技大学 Host computer intrude detecting method decomposed based on inherent subsequence mode
CN102035757A (en) * 2010-12-06 2011-04-27 北京开心人信息技术有限公司 Event reminding method and system based on social networking services
CN102331968A (en) * 2011-06-24 2012-01-25 浙大网新科技股份有限公司 WINE (wine is not an emulator) compatibility automatic checking method on OMS (open mobile system) platform
CN102819715A (en) * 2012-08-15 2012-12-12 腾讯科技(深圳)有限公司 API (application programming interface) monitoring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044089A1 (en) * 2003-08-21 2005-02-24 Microsoft Corporation Systems and methods for interfacing application programs with an item-based storage platform
CN101067924A (en) * 2007-05-28 2007-11-07 广东威创日新电子有限公司 Visual frequency accelerating method based on the third party playing software
CN101252578A (en) * 2008-04-02 2008-08-27 电子科技大学 Host computer intrude detecting method decomposed based on inherent subsequence mode
CN102035757A (en) * 2010-12-06 2011-04-27 北京开心人信息技术有限公司 Event reminding method and system based on social networking services
CN102331968A (en) * 2011-06-24 2012-01-25 浙大网新科技股份有限公司 WINE (wine is not an emulator) compatibility automatic checking method on OMS (open mobile system) platform
CN102819715A (en) * 2012-08-15 2012-12-12 腾讯科技(深圳)有限公司 API (application programming interface) monitoring method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843947A (en) * 2017-01-04 2017-06-13 腾讯科技(深圳)有限公司 The treating method and apparatus of aacode defect
CN106843947B (en) * 2017-01-04 2020-01-24 腾讯科技(深圳)有限公司 Method and device for processing code defects
CN110506243A (en) * 2017-05-30 2019-11-26 欧姆龙株式会社 Man-machine interface development aid device, man-machine interface development support method and man-machine interface development support program
US11287940B2 (en) 2017-05-30 2022-03-29 Omron Corporation HMI development support device, HMI development support method, and non-transitory computer-readable recording medium
CN110506243B (en) * 2017-05-30 2022-07-19 欧姆龙株式会社 Human-machine interface development support device, method, and computer-readable recording medium
CN107341106A (en) * 2017-06-21 2017-11-10 努比亚技术有限公司 Application compatibility detection method, exploitation terminal and storage medium
CN107341106B (en) * 2017-06-21 2021-06-15 努比亚技术有限公司 Application compatibility detection method, development terminal and storage medium
CN107463501A (en) * 2017-08-11 2017-12-12 四川长虹电器股份有限公司 A kind of defect management system for prompting and based reminding method
CN110221880A (en) * 2019-06-05 2019-09-10 北京金山安全软件有限公司 Application programming interface calling method, device, equipment and medium
CN110221880B (en) * 2019-06-05 2023-06-20 北京金山安全软件有限公司 Application programming interface calling method, device, equipment and medium
CN112988561A (en) * 2019-12-18 2021-06-18 腾讯科技(深圳)有限公司 Method, device, server and storage medium for detecting display configuration code
CN112988561B (en) * 2019-12-18 2023-09-08 腾讯科技(深圳)有限公司 Method, device, server and storage medium for detecting display configuration code

Also Published As

Publication number Publication date
CN104142881B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
US9268672B1 (en) Automated test case generation for applications
US8881047B2 (en) Systems and methods for dynamic background user interface(s)
US10489591B2 (en) Detection system and method thereof
CN104142881A (en) Adaptive defect detecting method and device of application program programming interfaces
US20230259691A9 (en) Method, apparatus, device and storage medium for determining page theme
US20130247021A1 (en) Electronic device, system and method for updating and uninstalling software
KR102095069B1 (en) Extension activation for related documents
CN113110941A (en) Managing delivery of code and dependency data using application containers
CN111831176B (en) Application program management method and device
US9785416B2 (en) Presenting a custom view in an integrated development environment based on a variable selection
US10747510B1 (en) Application runtime modification
US20170109136A1 (en) Generation of application behaviors
CN111881019A (en) User interface testing method and device
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
US20210311725A1 (en) Patch package generation method and device
RU2639667C2 (en) Context invitation in trial version of application
CN106095501A (en) A kind of application section arranging method and device
CN103853658A (en) Automated testing method for production and playback in Android equipment and Android equipment
Bauersfeld et al. User interface level testing with TESTAR; what about more sophisticated action specification and selection?
WO2016155387A1 (en) Plug-in management method and device based on mobile terminal
US11042421B1 (en) Modifying system-defined user interface control functionality on a computing device
US20240095048A1 (en) Program control method and apparatus, electronic device, and non-transitory readable storage medium
CN107729010B (en) View display method and device, computing equipment and storage medium
AU2014200140B2 (en) User initiated data rollback using operating system partitions
CN111385661B (en) Method, device, terminal and storage medium for voice control of full screen playing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant