CN110297748A - The method, apparatus and computer readable storage medium of error are called in a kind of positioning - Google Patents

The method, apparatus and computer readable storage medium of error are called in a kind of positioning Download PDF

Info

Publication number
CN110297748A
CN110297748A CN201810239275.9A CN201810239275A CN110297748A CN 110297748 A CN110297748 A CN 110297748A CN 201810239275 A CN201810239275 A CN 201810239275A CN 110297748 A CN110297748 A CN 110297748A
Authority
CN
China
Prior art keywords
module
service request
error
called
debugging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810239275.9A
Other languages
Chinese (zh)
Inventor
周川
刘坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201810239275.9A priority Critical patent/CN110297748A/en
Publication of CN110297748A publication Critical patent/CN110297748A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Abstract

The present invention relates to software test fields, provide the method, apparatus and computer readable storage medium of a kind of positioning calling error, the module of error is called with efficient positioning.The described method includes: obtaining and the matched service request number of preset keyword, wherein service request unique identification single service request simultaneously corresponds to all modules calling that single service request is related to;According to service request number, all debugging logs corresponding with service request number are obtained;According to all debugging logs corresponding with service request number, the module call graph comprising error code prompt is generated.Technical solution provided by the invention can directly identify the Module nodes comprising error code, to save the human cost of tester, improve the efficiency that error is called in positioning.

Description

The method, apparatus and computer readable storage medium of error are called in a kind of positioning
Technical field
The invention belongs to software test fields more particularly to a kind of positioning to call the method, apparatus of error and computer can Read storage medium.
Background technique
In large software or large scale system, the calling between modules is the most frequent.Some payment class systems, single Payment flow calls the module being related to averagely to reach 20 or more.These large softwares or large scale system are formally being issued In use, it will be generally modified before or even after finding out the place bug therein by test.Software or system are carried out Test can be carried out in special test environment, and the calling between locating module whether malfunction be test an important work It is dynamic.
The method that error is called in a kind of existing positioning is to be carried out by log system according to the keyword provided in log Blog search carrys out orientation problem.
However, above-mentioned existing method is in fact no to solve orientation problem, because, as long as a module is called and mistake occurs Accidentally, the module passed through when returning is called, going out in ginseng all can include the corresponding error code of the mistake, a plurality of disparate modules occur Malfunction log, needs tester to call link and unpack log information being apparent from, which or which check one by one on earth is A little modules calling are out of joint, under efficiency is very low.
Summary of the invention
The present invention provides the method, apparatus and computer readable storage medium of a kind of positioning calling error, efficiently to position Call the module of error.
One aspect of the present invention provides a kind of method that error is called in positioning, which comprises
Acquisition and the matched service request number of preset keyword, the service request unique identification single service request is simultaneously All modules being related to corresponding to the single service request are called;
According to the service request number, all debugging logs corresponding with the service request number are obtained;
According to all debugging logs corresponding with the service request number, generates the module comprising error code prompt and call pass System's figure.
One aspect of the present invention provides a kind of device of positioning calling error, and described device includes:
First obtains module, and for acquisition and the matched service request number of preset keyword, the service request number is unique Mark single service request simultaneously corresponds to all modules calling that the single service request is related to;
Second obtains module, for obtaining all tune corresponding with the service request number according to the service request number Try log;
Generation module, for according to all debugging logs corresponding with the service request number, generation to be mentioned comprising error code The module call graph shown.
One aspect of the present invention provides a kind of calculating equipment, including memory, processor and storage are in memory simultaneously The computer program that can be run on a processor, processor perform the steps of when executing computer program
Acquisition and the matched service request number of preset keyword, the service request unique identification single service request is simultaneously All modules being related to corresponding to the single service request are called;
According to the service request number, all debugging logs corresponding with the service request number are obtained;
According to all debugging logs corresponding with the service request number, generates the module comprising error code prompt and call pass System's figure.
The one side of the embodiment of the present invention provides a kind of computer readable storage medium, and computer readable storage medium is deposited The step of containing computer program, following methods realized when computer program is executed by processor:
Acquisition and the matched service request number of preset keyword, the service request unique identification single service request is simultaneously All modules being related to corresponding to the single service request are called;
According to the service request number, all debugging logs corresponding with the service request number are obtained;
According to all debugging logs corresponding with the service request number, generates the module comprising error code prompt and call pass System's figure.
From the embodiments of the present invention provide technical solution it is found that due to can according to the matched industry of preset keyword Business request number ultimately generates the module call graph comprising error code prompt, and module call graph can be wrong to occurring Accidentally the Module nodes of code are identified, and therefore, are carried out blog search only according to log system with the prior art, are needed manually Further gradually investigation come orientation problem compare, technical solution provided by the invention directly identifies the module comprising error code Node improves the efficiency that error is called in positioning to save the human cost of tester.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art, can also be according to these attached drawings under the premise of not making the creative labor Obtain other attached drawings.
Fig. 1 is the implementation process schematic diagram for the method that error is called in positioning provided in an embodiment of the present invention;
Fig. 2-a is module call graph provided in an embodiment of the present invention;
Fig. 2-b be another embodiment of the present invention provides module call graph;
Fig. 3 is the structural schematic diagram for the device that error is called in positioning provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram for the device that error is called in positioning provided in an embodiment of the present invention;
Fig. 5 be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 6-a be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 6-b be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 6-c be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 7-a be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 7-b be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 7-c be another embodiment of the present invention provides positioning call error device structural schematic diagram;
Fig. 8 is the structural schematic diagram provided in an embodiment of the present invention for calculating equipment;
Fig. 9-a is the hardware implementing architecture figure for the method that error is called in positioning provided in an embodiment of the present invention;
Fig. 9-b be another embodiment of the present invention provides positioning call error method hardware implementing architecture figure;
Fig. 9-c be another embodiment of the present invention provides positioning call error method hardware implementing architecture figure;
Fig. 9-d be another embodiment of the present invention provides positioning call error method hardware implementing architecture figure.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solution of the present invention, the following is a description of specific embodiments.
Attached drawing 1 is the implementation process schematic diagram for the method that error is called in positioning provided in an embodiment of the present invention, executes master Body can be terminal or server where being called the system (for example, wechat payment system of Tencent) to malfunction by positioning, For example, a PC or any calculating equipment with server capability etc..The side of error is called in the exemplary positioning of attached drawing 1 Method mainly includes the following steps that S101 to S103, described further below:
S101 is obtained and the matched service request number of preset keyword, wherein service request unique identification single business All modules that single service request is related to are requested and correspond to call.
So-called preset keyword is that tester is arranged some relevant to the bit-errors undetermined to position mistake The keyword of information, these settings is also the letter for including in debugging log (log generated when debugging log is debugging routine) Breath.For example, the module call error occurred during in order to position the shopping that places an order on primary line, payment, tester can be with The module call error occurred during positioning place an order on primary line shopping, payment as preset keyword using order number.It needs It is noted that preset keyword can be with more than one, for example, preset keyword can also be UIN and trading company in above-mentioned example Deng.
In embodiments of the present invention, service request unique identification single service request and correspond to single service request relate to And all modules call, the content of service request number includes that module calls the mark of involved module, 16 system IP, sample stage Not, the information such as timestamp, port numbers and serial number, and module calling each time can all print the service request in debugging log Number, therefore, as long as in debugging log including preset keyword, it can be matched to debugging log according to preset keyword, To get and the matched service request number of preset keyword.
It should be noted that debugging log can store in log database, can according to the service request of initiation, to Log database stores debugging log.Specifically, according to the service request of initiation, can lead to log database storage debugging log Cross following steps S1011 to S1013 realization:
S1011 acquires debugging log according to the service request of initiation.
As long as can be related to module calling as previously mentioned, there is service request, and module calling can correspondingly generate debugging Log, therefore debugging log can be acquired according to the service request of initiation.
S1012 caches the debugging log acquired through step S1011.
Since there are many debugging log, collected in embodiments of the present invention to mitigate the storage pressure of log database Debugging log be not log database to be written at once, but be cached.
S1013, periodically to the debugging log of log database batch write-in caching.
The period that debugging log is written to log database batch can be determined according to actual scene, for example, if bandwidth Machine performance itself where smaller or log database is not high, can will determine in the period it is larger, for example, it may be with 3 seconds For the period, conversely, can will then determine in the period it is smaller, such as with 1 second for the period, by the period be 1 second or 3 seconds caching when Between, to the debugging log of log database batch write-in caching.
S102 obtains all debugging days corresponding with service request number according to the service request number obtained through step S101 Will.
If the service request number called with the secondary module will necessarily be generated as previously mentioned, being related to module calling, and It can print in debugging log, therefore, as long as getting a service request number, can get and the service request number Corresponding all debugging logs.
It should be noted that since preset keyword does not appear in all debugging for having printed some service request number It is that can not be matched to all debugging logs for having printed some service request number only according to preset keyword therefore in log 's.For example, certain preset keyword K is contained in debugging log L1, L2And L5, it is assumed that debugging log L1、L2And L5It is in module M1It adjusts With module M2Shi Shengcheng, meanwhile, this module is called generates service request SeqN again1, on the other hand, it is also possible to due to mould Block M3Calling module M5When also create service request SeqN1And have printed debugging log L3、L4And L6, but debugging log L3、L4 And L6In and do not include preset keyword K debugging log L therefore can not be got according to preset keyword K3、L4And L6.By Debugging log L is contained in preset keyword K1、L2And L5In, and be in module M1Calling module M2Shi Shengcheng and module are called Generate service request SeqN1, therefore, available to arrive service request SeqN according to preset keyword K1, and in module M3Calling module M5When generate service request SeqN1And have printed debugging log L3、L4And L6, therefore, according to service request Number SeqN1, just got and service request SeqN1Corresponding all debugging logs, i.e. debugging log L1、L2、L3、L4、L5 And L6
S103 generates the module comprising error code prompt and calls according to all debugging logs corresponding with service request number Relational graph.
As one embodiment of the invention, according to all debugging logs corresponding with service request number, generating includes mistake The module call graph of code prompt S1031 to S1033 can be realized as follows:
S1031, according to the sequencing that module in debugging log is called, generation module call graph.
The sequencing that so-called module is called can be the relationship that module is called with is called, for example, modules A calls mould Module B can be then placed on the right of modules A by block B from left to right, if modules A calling module B and module C, and module B and Module C does not have call relation, then module B and module C can be placed on to the right of modules A, and module B and module C are arranged side by side, If attached drawing 2-a is the module call graph that the embodiment of the present invention generates, each of each module composition module call graph Module nodes.
S1032, by each Module nodes enter ginseng and out Shenfu is added in module call graph to constitute each module Node enters to join node and out ginseng node.
For example, the node that enters to join of each Module nodes is marked using " in " in the exemplary module call graph of attached drawing 2-a Note, and the ginseng node that goes out of each Module nodes is marked using " out ".
S1033 goes out parameter according to analyzing, if wrong code, to first to the logs of all Module nodes The Module nodes of error are identified.
In embodiments of the present invention, going out at ginseng node for the Module nodes that can be malfunctioned at first uses special color, example If red or black identifies it, so that the Module nodes accordingly to malfunction are identified, for example, logos go out in attached drawing 2-b Ginseng node shows that error code occurs in corresponding Module nodes F.
For there are the Module nodes of error code, its error message can be shown, that is, receiving open instructions Afterwards, the error message of the Module nodes of error is shown.For example, Module nodes F can be clicked for the Module nodes F of attached drawing 2-b Or it goes out to join node, the then error message of display module node F.
Below by taking the wechat payment system of Tencent (or mobile phone QQ payment system) as an example, the present invention is further explained Technical solution.Wechat payment system mainly includes external calling interface, protocol conversion module and some intermediate service modules Deng, wherein external calling interface is that the entrance of a business can be called in wechat payment system by external calling interface Various services (service), complete payment transaction logical process, and protocol conversion module completes external calling interface and intermediary service Protocol conversion between module, it is possible to provide the routing of a variety of machinery equipments, intermediate service module provide certain business logic processings, Externally the service interface that calls for wechat payment system is provided individually to service (service), and an intermediate service module Multiple service interfaces may be present, and allow service call service.
It is the hardware implementing architecture figure for the method that error is called in positioning provided in an embodiment of the present invention as shown in attached drawing 9-a, Wherein, marked as 901 it is mobile terminal, is connect by network with the server marked as 902, run on server 902 The program of the method for error is called in positioning, and server 902 is also to be positioned to call the system of error (for example, Tencent is micro- Believe payment system) where server, installation log capture program and log buffer program etc. thereon, what it is marked as 903 is day Will database (Data Base, DB) is mainly used for storing debugging log.
User's (main specific bit calls out wrong tester or research staff herein) is by mobile terminal 901 to external Calling interface initiates a service request, wherein including preset keyword.Since service request unique identification single business is asked It seeks and corresponds to all modules that single service request is related to call, the content of service request number includes that module calls involved mould The information such as the mark of block, 16 system IP, sampling rank, timestamp, port numbers and serial number, and call all can be for module each time The service request number is printed in debugging log, it therefore, can be according to preset keyword after server 902 receives the service request It is matched to debugging log, to get and the matched service request number of preset keyword.
It should be noted that the above-mentioned debugging log referred to is stored in log database 903.Server 902 can basis Service request from mobile terminal 901 stores debugging log to log database 903, and specific method is in server 902 The service request that log collection program is initiated according to mobile terminal 901 acquires debugging log, and in order to mitigate log database The debugging log of log collection programmed acquisition is cached by 903 storage pressure, the log buffer program in server 902, Then, these debugging logs cached are periodically written in batches to log database 903.
After server 902 gets service request number, it can be obtained according to the service request number of acquisition from log database 903 Take all debugging logs corresponding with service request number.Debugging log is the basis of 902 generation module call graph of server Material, that is, server 902 can generate the mould comprising error code prompt according to all debugging logs corresponding with service request number Block call graph, the specific method is as follows S1 to S3:
S1, the sequencing that server 902 is called according to module in debugging log, generation module call graph.
As previously mentioned, wechat payment system includes external calling interface, protocol conversion module and multiple intermediate service modules, There is the sequencing called in protocol conversion module and intermediate service module, also there is the successive of calling between intermediate service module Sequentially.For example, protocol conversion module R intermediate service module M1, then can be placed on agreement by intermediate service module M1 from left to right The right of conversion module R, if intermediate service module M1 calling intermediate service module M2 and intermediate service module M3, and intermediary service Module M2 and intermediate service module M3 do not have call relation, then can all put intermediate service module M2 and intermediate service module M3 It sets on the right of intermediate service module M1, intermediate service module M2 and intermediate service module M3 are arranged side by side, further, if intermediate clothes Be engaged in module M3 calling intermediate service module M4, then intermediate service module M4 can be placed on to the right of intermediate service module M3.It needs It is noted that the module call graph generated through step S1, each module of each module composition module call graph Node.
S2, server 902 by each Module nodes enter ginseng and out Shenfu be added in module call graph it is every to constitute A Module nodes enter to join node and out ginseng node.
In the module call graph generated through step S1, the node that enters to join of each Module nodes is marked using " in ", and The ginseng node that goes out of each Module nodes is marked using " out ".
S3, server 902 go out parameter according to analyzing, if wrong code, right to the logs of all Module nodes The Module nodes of first error are identified.
For example, server 902 to the logs of all Module nodes go out parameter according to analyzing after, can malfunction at first Module nodes go out at ginseng node to use the special color, such as red or black identify to it.For there is error code Module nodes can be shown its error message, that is, be referred to through user by the opening that mobile terminal 901 is sent receiving After order, server 902 shows the error message of the Module nodes of error.
It should be noted that mobile terminal 901 can also be by based on personal computer terminal in the architecture diagram of attached drawing 9-a Automatic test platform replace, as shown in attached drawing 9-b, be another embodiment of the present invention provides positioning call error method Hardware implementing architecture figure, what it is marked as 904 is the personal computer terminal for running automatic test platform.
It should also be noted that the framework of either attached drawing 9-a or attached drawing 9-b, log database 903 be can integrate in clothes Be engaged in device 902, as shown in attached drawing 9-c and attached drawing 9-c another embodiment of the present invention provides positioning call error method hardware It realizes in architecture diagram, log database 905 or 906 is integrated in server 902.
Call the method for error it is found that due to that can match according to preset keyword from the exemplary positioning of above-mentioned attached drawing 1 Service request number, ultimately generate comprising error code prompt module call graph, and module call graph can to go out The Module nodes of existing error code are identified, and therefore, are carried out blog search only according to log system with the prior art, are needed Manually further gradually investigation come orientation problem compare, technical solution provided by the invention is directly identified comprising error code Module nodes improve the efficiency that error is called in positioning to save the human cost of tester.
Fig. 3 is the schematic diagram for the device that error is called in positioning provided in an embodiment of the present invention.Book for ease of description only shows Part related to the present invention is gone out.It mainly includes the first acquisition module 301, that the device of error is called in the exemplary positioning of Fig. 3 Two obtain module 302 and generation module 303, and detailed description are as follows:
First obtains module 301, for obtaining and the matched service request number of preset keyword, wherein service request number Unique identification single service request simultaneously corresponds to all modules calling that single service request is related to;
Second obtains module 302, for obtaining all debugging days corresponding with service request number according to service request number Will;
Generation module 303, for generating and being prompted comprising error code according to all debugging logs corresponding with service request number Module call graph.
It should be noted that device provided in an embodiment of the present invention, due to being based on same structure with embodiment of the present invention method Think, bring technical effect is identical as embodiment of the present invention method, and particular content can be found in embodiment of the present invention method Narration, details are not described herein again.
The exemplary generation module 303 of attached drawing 3 may include that mould tune relationship generation unit 401, extra cell 402 and mark are single Member 402, as the device of error is called in the exemplary positioning of attached drawing 4, in which:
Mould tune relationship generation unit 401, the sequencing for being called according to module in debugging log, generation module call Relational graph;
Extra cell 402, for by each Module nodes enter ginseng and out Shenfu is added in module call graph with structure Enter to join node and out ginseng node at each Module nodes;
Identify unit 403, for the log to all Module nodes go out parameter according to analyzing, if wrong code, The Module nodes then to malfunction to first are identified.
The exemplary device of attached drawing 4 can also include display module 501, as the device of error is called in the exemplary positioning of attached drawing 5. Display module 501 is used for after receiving open instructions, shows the error message of the Module nodes of first error.
It to include memory module 601 that the device of error is called in the positioning of attached drawing 3 to 5 any example of attached drawing, such as attached drawing 6-a calls the device of error to the positioning of attached drawing 6-c any example.Memory module 601 is used for the service request according to initiation, to Log database stores debugging log.
The memory module 601 of attached drawing 6-a to attached drawing 6-c any example may include acquisition unit 701, cache unit 702 The device of error is called with writing unit 703, such as positioning of attached drawing 7-a to attached drawing 7-c any example, in which:
Acquisition unit 701 acquires debugging log for the service request according to initiation;
Cache unit 702 is used for multistage pipeline log;
Writing unit 703, for periodically to the debugging log of log database batch write-in caching.
Fig. 8 is the structural schematic diagram for the calculating equipment that one embodiment of the invention provides.As shown in figure 8, the meter of the embodiment Equipment 8 is calculated to specifically include that processor 80, memory 81 and be stored in the meter that can be run in memory 81 and on processor 80 The program of the method for error is called in calculation machine program 82, such as positioning.It is above-mentioned fixed that processor 80 is realized when executing computer program 82 Call the step in the embodiment of the method for error, such as step S101 to S103 shown in FIG. 1 in position.Alternatively, processor 80 executes The function of each module/unit in above-mentioned each Installation practice is realized when computer program 82, such as the first acquisition module shown in Fig. 3 301, the function of the second acquisition module 302 and generation module 303.
Illustratively, positioning calls the computer program 82 of the method for error to specifically include that acquisition and preset keyword The service request number matched, wherein service request unique identification single service request simultaneously corresponds to what single service request was related to All modules are called;According to service request number, all debugging logs corresponding with service request number are obtained;According to service request Number corresponding all debugging logs generate the module call graph comprising error code prompt.Computer program 82 can be divided One or more module/units are cut into, one or more module/unit is stored in memory 81, and by processor 80 It executes, to complete the present invention.One or more module/units can be the series of computation machine program that can complete specific function Instruction segment, the instruction segment are used to describe computer program 82 and are calculating the implementation procedure in equipment 8.For example, computer program 82 Function (the mould in virtual bench of user's screening module 201, characteristic extracting module 202 and output module 203 can be divided into Block), each module concrete function is as follows: first obtains module 301, is used for acquisition and the matched service request number of preset keyword, Wherein, service request unique identification single service request and all modules calling being related to corresponding to single service request;The Two obtain module 302, for obtaining all debugging logs corresponding with service request number according to service request number;Generation module 303, for generating the module call relation comprising error code prompt according to all debugging logs corresponding with service request number Figure.
Calculating equipment 8 may include, but are not limited to processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8 The example for only calculating equipment 8, does not constitute the restriction to equipment 8 is calculated, and may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as calculating equipment can also connect including input-output equipment, network Enter equipment, bus etc..
Alleged processor 80 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory 81 can be the internal storage unit for calculating equipment 8, such as calculate the hard disk or memory of equipment 8.Storage Device 81 is also possible to calculate the External memory equipment of equipment 8, such as calculates the plug-in type hard disk being equipped in equipment 8, intelligent storage Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc.. Further, memory 81 can also both include calculating the internal storage unit of equipment 8 or including External memory equipment.Memory 81 for other programs and data needed for storing computer program and calculating equipment.Memory 81 can be also used for temporarily Store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of device are divided into different functional unit or module, to complete above description All or part of function.Each functional unit in embodiment, module can integrate in one processing unit, be also possible to Each unit physically exists alone, and can also be integrated in one unit with two or more units, above-mentioned integrated unit Both it can take the form of hardware realization, can also realize in the form of software functional units.In addition, each functional unit, mould The specific name of block is also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.It is single in above system Member, the specific work process of module, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/calculating device and method, it can be with It realizes by another way.For example, device described above/calculating apparatus embodiments are only schematical, for example, mould The division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is another Point, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device or The INDIRECT COUPLING or communication connection of unit can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If integrated module/unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete by computer program, and error is called in positioning The computer program of method can be stored in a computer readable storage medium, which is being executed by processor When, it can be achieved that the step of above-mentioned each embodiment of the method, that is, obtain and the matched service request number of preset keyword, wherein industry Business request unique identification single service request simultaneously corresponds to all modules calling that single service request is related to;It is asked according to business The number of asking obtains all debugging logs corresponding with service request number;It is raw according to all debugging logs corresponding with service request number At the module call graph prompted comprising error code.Wherein, computer program includes computer program code, computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable medium can To include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry computer program code Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that computer-readable The content that medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as at certain A little jurisdictions do not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.More than Embodiment is merely illustrative of the technical solution of the present invention, rather than its limitations;Although being carried out with reference to the foregoing embodiments to the present invention Detailed description, those skilled in the art should understand that: it still can be to skill documented by foregoing embodiments Art scheme is modified or equivalent replacement of some of the technical features;And these are modified or replaceed, and do not make phase It answers the essence of technical solution to depart from the spirit and scope of the technical scheme of various embodiments of the present invention, should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of method that error is called in positioning, which is characterized in that the described method includes:
It obtains and the matched service request number of preset keyword, the service request unique identification single service request and correspondence It is called in all modules that the single service request is related to;
According to the service request number, all debugging logs corresponding with the service request number are obtained;
According to all debugging logs corresponding with the service request number, the module call relation comprising error code prompt is generated Figure.
2. the method that error is called in positioning as described in claim 1, which is characterized in that the basis and the service request number are right All debugging logs answered generate the module call graph comprising error code prompt, comprising:
According to the sequencing that module in the debugging log is called, generation module call graph;
By each Module nodes enter ginseng and out Shenfu is added in the module call graph to constitute each Module nodes Enter to join node and goes out ginseng node;
Parameter is gone out according to analyzing to the logs of all Module nodes, if wrong code, the module that malfunctions to first Node is identified.
3. the method that error is called in positioning as claimed in claim 2, which is characterized in that the method also includes:
After receiving open instructions, the error message of the Module nodes of the error is shown.
4. the method that error is called in the positioning as described in claims 1 to 3 any one, which is characterized in that the method also includes:
According to the service request of initiation, debugging log is stored to log database.
5. the method that error is called in positioning as claimed in claim 4, which is characterized in that the service request according to initiation, to Log database stores debugging log, comprising:
According to the service request of the initiation, debugging log is acquired;
Cache the debugging log;
The debugging log of the caching is periodically written to the log database batch.
6. the device that error is called in a kind of positioning, which is characterized in that described device includes:
First obtains module, for obtaining and the matched service request number of preset keyword, the service request unique identification Single service request simultaneously corresponds to all modules calling that the single service request is related to;
Second obtains module, for obtaining all debugging days corresponding with the service request number according to the service request number Will;
Generation module, for generating comprising error code prompt according to all debugging logs corresponding with the service request number Module call graph.
7. the device of error is called in positioning as claimed in claim 6, which is characterized in that the generation module includes:
Mould tune relationship generation unit, the sequencing for being called according to module in the debugging log, generation module, which calls, to close System's figure;
Extra cell, for by each Module nodes enter ginseng and out Shenfu be added in the module call graph it is every to constitute A Module nodes enter to join node and out ginseng node;
Unit is identified, goes out parameter according to analyzing, if wrong code, to first for the log to all Module nodes The Module nodes of a error are identified.
8. the device of error is called in positioning as claimed in claim 7, which is characterized in that described device further include:
Display module, the error message of the Module nodes for after receiving open instructions, showing the error.
9. a kind of calculating equipment, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization is such as the step of claim 1 to 5 any one the method when the computer program is executed by processor.
CN201810239275.9A 2018-03-22 2018-03-22 The method, apparatus and computer readable storage medium of error are called in a kind of positioning Pending CN110297748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810239275.9A CN110297748A (en) 2018-03-22 2018-03-22 The method, apparatus and computer readable storage medium of error are called in a kind of positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810239275.9A CN110297748A (en) 2018-03-22 2018-03-22 The method, apparatus and computer readable storage medium of error are called in a kind of positioning

Publications (1)

Publication Number Publication Date
CN110297748A true CN110297748A (en) 2019-10-01

Family

ID=68025560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810239275.9A Pending CN110297748A (en) 2018-03-22 2018-03-22 The method, apparatus and computer readable storage medium of error are called in a kind of positioning

Country Status (1)

Country Link
CN (1) CN110297748A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078447A (en) * 2019-11-24 2020-04-28 杭州安恒信息技术股份有限公司 Method, device, equipment and medium for positioning abnormity in micro-service architecture
CN111104322A (en) * 2019-12-17 2020-05-05 深圳前海环融联易信息科技服务有限公司 Method, device, equipment and storage medium for debugging and rapidly positioning problem at mobile terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870260A (en) * 2012-12-14 2014-06-18 腾讯科技(深圳)有限公司 Method and system for service interface development
CN105207806A (en) * 2015-08-20 2015-12-30 百度在线网络技术(北京)有限公司 Monitoring method and apparatus of distributed service
CN105391772A (en) * 2015-10-16 2016-03-09 百度在线网络技术(北京)有限公司 Service request processing method, log processing method and service request processing device
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107330034A (en) * 2017-06-26 2017-11-07 百度在线网络技术(北京)有限公司 A kind of log analysis method and device, computer equipment, storage medium
CN107678933A (en) * 2017-09-28 2018-02-09 中国平安人寿保险股份有限公司 Daily record generation management method, device, equipment and computer-readable recording medium
CN107688899A (en) * 2017-08-22 2018-02-13 北京潘达互娱科技有限公司 Business process monitoring method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870260A (en) * 2012-12-14 2014-06-18 腾讯科技(深圳)有限公司 Method and system for service interface development
CN105207806A (en) * 2015-08-20 2015-12-30 百度在线网络技术(北京)有限公司 Monitoring method and apparatus of distributed service
CN105391772A (en) * 2015-10-16 2016-03-09 百度在线网络技术(北京)有限公司 Service request processing method, log processing method and service request processing device
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107330034A (en) * 2017-06-26 2017-11-07 百度在线网络技术(北京)有限公司 A kind of log analysis method and device, computer equipment, storage medium
CN107688899A (en) * 2017-08-22 2018-02-13 北京潘达互娱科技有限公司 Business process monitoring method and device
CN107678933A (en) * 2017-09-28 2018-02-09 中国平安人寿保险股份有限公司 Daily record generation management method, device, equipment and computer-readable recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078447A (en) * 2019-11-24 2020-04-28 杭州安恒信息技术股份有限公司 Method, device, equipment and medium for positioning abnormity in micro-service architecture
CN111078447B (en) * 2019-11-24 2023-09-19 杭州安恒信息技术股份有限公司 Abnormality positioning method, device, equipment and medium in micro-service architecture
CN111104322A (en) * 2019-12-17 2020-05-05 深圳前海环融联易信息科技服务有限公司 Method, device, equipment and storage medium for debugging and rapidly positioning problem at mobile terminal

Similar Documents

Publication Publication Date Title
US9639444B2 (en) Architecture for end-to-end testing of long-running, multi-stage asynchronous data processing services
WO2019006654A1 (en) Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device
CN108415832A (en) Automatic interface testing method, device, equipment and storage medium
CN107645562A (en) Data transmission processing method, device, equipment and system
CN109634728A (en) Job scheduling method, device, terminal device and readable storage medium storing program for executing
CN109194617A (en) The automatically parsing of XML message, packaging method and device
CN109039829A (en) A kind of network card performance testing method, apparatus, terminal and storage medium
CN111290958B (en) Method and device for debugging intelligent contract
CN107025167A (en) The method and apparatus for carrying out data-flow analysis using compiler type information in processor trace log
CN110795697A (en) Logic expression obtaining method and device, storage medium and electronic device
CN113642300A (en) Report generation method and device, electronic equipment and computer readable medium
CN107704331A (en) Electrical equipment fault analyzes and processes householder method and device
CN111159897B (en) Target optimization method and device based on system modeling application
CN114745295A (en) Data acquisition method, device, equipment and readable storage medium
CN110297748A (en) The method, apparatus and computer readable storage medium of error are called in a kind of positioning
CN110351131B (en) Monitoring method and device for distributed link and electronic equipment
CN108345658A (en) Algorithm calculates decomposing process, server and the storage medium of track
CN107273250A (en) The method of testing and device of electronic declaration form automatic cover system
CN108255467A (en) The method, apparatus and system of service are performed according to workflow sequence
CN114791927A (en) Data analysis method and device
CN109067605A (en) A kind of storage subsystem method for diagnosing faults, device, terminal and storage medium
CN107368300B (en) MapReduce-based data summarization system and method
CN112860954A (en) Real-time computing method and real-time computing system
CN111143304A (en) Micro-service system abnormal log analysis method based on request link
Savolainen et al. Conflict-centric software architectural views: Exposing trade-offs in quality requirements

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