CN108052440A - To the modification method of operation system operation logic, device, equipment and storage medium - Google Patents
To the modification method of operation system operation logic, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108052440A CN108052440A CN201711407947.4A CN201711407947A CN108052440A CN 108052440 A CN108052440 A CN 108052440A CN 201711407947 A CN201711407947 A CN 201711407947A CN 108052440 A CN108052440 A CN 108052440A
- Authority
- CN
- China
- Prior art keywords
- behavioral data
- abnormal
- test
- terminal
- test result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of to the modification method of operation system operation logic, device, computer equipment and computer readable storage medium.The modification method to operation system operation logic, including:Receive the operation requests of terminal-pair operation system;By the corresponding behavioral data writing system daily record of operation requests;When monitoring operation system generation exception, acquisition abnormity information;Corresponding behavioral data is chosen from system log according to exception information;According to the behavioral data simulated operation of selection to be tested, test result is obtained;Corresponding abnormal operation request is determined according to test result;Indication information is fed back to terminal, indication information, which is used to indicate terminal-pair abnormal operation, asks corresponding operation logic to be modified.By implementing the modification method to operation system operation logic, corresponding operation logic can be asked to be modified abnormal operation with instruction terminal, solve problem during terminal operation operation system, promote the reliability of operation system.
Description
Technical field
The present invention relates to system testing field, more particularly to a kind of modification method, dress to operation system operation logic
It puts, computer equipment and computer readable storage medium.
Background technology
At present, operation system can be used by many users, may be led to the problem of in use, but due to
The interface of operation system is only shown on the page of operation system, without directly displaying code, it is difficult to directly be seen according to code
Where the problem of going out operation system.Therefore, by creating system log, the data writing systems that are generated when operation system is run
Daily record, it is where out of joint to analyze operation system by the data in analysis system daily record.
However, user use operation system when, the operation logic of operation service system it is incorrect, also result in problem
Occur, but since this is not that operation system is led to the problem of in itself so that it is difficult come analysis system daily record by traditional method
Be specifically with analysis operation logic which step it is out of joint, so as to repair problem, the reliability of operation system is also
It reduces.
The content of the invention
Based on this, it is necessary to which, for the problem that can not repair problem, the reliability of operation system also just reduces, and provides one kind
To the modification method of operation system operation logic, device, computer equipment and computer readable storage medium.
A kind of modification method to operation system operation logic, the described method includes:
Receive the operation requests of terminal-pair operation system;
By the corresponding behavioral data writing system daily record of the operation requests;
When monitoring operation system generation exception, acquisition abnormity information;
Corresponding behavioral data is chosen from the system log according to the exception information;
According to the behavioral data simulated operation of selection to be tested, test result is obtained;
Corresponding abnormal operation request is determined according to the test result;
Indication information is fed back to the terminal, the indication information is used to indicate abnormal operation described in the terminal-pair and asks
Corresponding operation logic is modified.
In one embodiment, the method further includes:
The exception information is analyzed, obtains abnormal time point;
The behavioral data simulated operation according to selection obtains test result to be tested, including:
It chooses and the immediate test node of the abnormal time point;
Function point identification in the test node of selection, calling function code;
Functional parameter in the test node of selection drives the function code, obtains test result.
In one embodiment, it is described to choose corresponding behavior number from the system log according to the exception information
According to, including:
According to the abnormal time point and system log generation testing time section;
The matched behavioral data of the testing time section is chosen in the system log.
In one embodiment, the behavioral data includes function point identification and corresponding functional parameter;It is described according to choosing
The behavioral data simulated operation taken is to be tested, and before obtaining test result, the method further includes:
The behavioral data chosen is parsed, obtains multiple function point identifications;
According to time sequencing of the multiple function point identification in testing time section, by the multiple function point mark
Know and corresponding functional parameter is encapsulated to multiple test nodes, the multiple test node and the multiple function point identification are one by one
It is corresponding.
In one embodiment, the method further includes:
When obtained test result is mismatched with exception information, then
Test node is chosen again according to order;The order is the test node chosen again corresponding time point with
The gradual increased order in the interval of the abnormal time point;
The function code is driven according to functional parameter of the order in the test node chosen again, until obtain
Test result is matched with exception information.
In one embodiment, the method further includes:
The system log is analyzed, to count the data volume transmitted when each function code is called;
It is each function code dynamic distribution of system resources according to the data volume of statistics.
A kind of correcting device to operation system operation logic, described device include:
Receiving module, for receiving the operation requests of terminal-pair operation system;
Writing module, for by the corresponding behavioral data writing system daily record of the operation requests;
Acquisition module, for when monitoring operation system and generating abnormal, acquisition abnormity information;
Module is chosen, for choosing corresponding behavioral data from the system log according to the exception information;
Test module, for, to be tested, obtaining test result according to the behavioral data simulated operation of selection;
Determining module, for determining that corresponding abnormal operation is asked according to the test result;
Feedback module, for feeding back indication information to the terminal, the indication information is used to indicate the terminal-pair institute
Stating abnormal operation asks corresponding operation logic to be modified.
In one embodiment, described device further includes:
Analysis module for analyzing the exception information, obtains abnormal time point;
The selection module is additionally operable to choose and the immediate test node of the abnormal time point;
Calling module, for the function point identification in the test node according to selection, calling function code;
The test module, the functional parameter being additionally operable in the test node according to selection drive the function code, obtain
To test result.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor,
So that the processor performs the step of as above any one the method.
A kind of computer equipment, including memory and processor, the memory storage has computer program, the calculating
When machine program is performed by the processor so that the processor performs the step of as above any one the method.
Modification method, device, computer equipment and the computer-readable storage medium of the above-mentioned operation logic to operation system
Matter, after receiving to the operation requests of operation system, by the corresponding behavioral data writing system daily record of operation requests.And when monitoring
When generating abnormal to operation system, acquisition abnormity information chooses behavioral data, with basis according to exception information from system log
The behavioral data of selection is tested.After test result is obtained, determine that corresponding abnormal operation is asked according to test result, from
And can go out which specific step in operation logic goes wrong according to abnormal operation requirement analysis, to judge operation system
Where operation logic, which needs, is corrected.Indication information is fed back to terminal again, and then abnormal operation can be asked to correspond to instruction terminal
Operation logic be modified, solve problem during terminal operation operation system, promote the reliability of operation system.
Description of the drawings
Fig. 1 is the applied environment figure of the modification method to operation system operation logic in one embodiment;
Fig. 2 is the flow diagram of the modification method to operation system operation logic in one embodiment;
Fig. 3 is the flow diagram tested in one embodiment according to test node and exception information;
Fig. 4 is the flow diagram of the modification method to operation system operation logic in another embodiment;
Fig. 5 is the structure diagram of the correcting device to operation system operation logic in one embodiment;
Fig. 6 is the structure diagram of the correcting device to operation system operation logic in another embodiment;
Fig. 7 is the structure diagram of the correcting device to operation system operation logic in one embodiment;
Fig. 8 is the structure diagram of the correcting device to operation system operation logic in another embodiment;
Fig. 9 is the structure diagram of the correcting device to operation system operation logic in one embodiment;
Figure 10 is the internal structure schematic diagram of one embodiment Computer equipment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the object, technical solution and advantage for making the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
Fig. 1 is the applied environment figure of the modification method to operation system operation logic in one embodiment.It, should with reference to Fig. 1
It is applied to the update the system to operation system operation logic to the modification method of operation system operation logic.This grasps operation system
Making the update the system of logic includes terminal 110 and server 120.Terminal 110 and server 120 pass through network connection.Terminal 110
Can be specifically terminal console or mobile terminal, mobile terminal specifically can in mobile phone, tablet computer, laptop etc. extremely
Few one kind.Server 120 can be realized with the server cluster that the either multiple servers of independent server form.
As shown in Fig. 2, in one embodiment, provide a kind of modification method to operation system operation logic.This reality
Example is applied mainly to illustrate applied to the server 120 in above-mentioned Fig. 1 in this way.With reference to Fig. 2, this operates operation system
The modification method of logic specifically comprises the following steps:
S202 receives the operation requests of terminal-pair operation system.
Wherein, operation system is the system of on-line processing business.Operation requests are to ask the information of operation service system.Behaviour
Ask can be specifically using input unit triggering operation system function code request or with operation system into
The request of row transmission data.
In one embodiment, terminal receives the activation bit of mouse transmission, according to the corresponding coordinate of the activation bit
Request is clicked in triggering on the interface of operation system;If the page elements phase proper function generation of position specified by click request
Code then sends the operation requests of Trigger Function code to server.
In one embodiment, server, please according to the operation after the operation requests of terminal-pair operation system are received
Operation service system is sought, and new page elements are generated after operation service system, new page elements are fed back into terminal, with
Instruction terminal adjusts the interface of operation system according to new page elements.
S204, by the corresponding behavioral data writing system daily record of operation requests.
Wherein, behavioral data is the data for reflecting user behavior.Behavioral data can be specifically the work(of operation requests triggering
The page elements of functional parameter, operation requests triggering when energy code, Trigger Function code and operation requests triggering page elements
When at least one of coordinate.System log is the daily record of every day events in record system and the record corresponding software of system
With the daily record of the dynamic-change information of hardware.The corresponding behavioral data of operation requests can be specifically recorded in system log, may be used also
With the exception information generated when recording operation service system or operation system operation.
In one embodiment, the operation requests that terminal is sent can be HTTP (HyperText Transfer
Protocol, hypertext transfer protocol) it asks, the HTTP request that server analysis terminal is sent obtains HTTP request
Header (header), wherein containing Cookie (account information), Referer (reference), User-agent (user agent), use
The IP address at family and the login name of user etc., by filter by the header writing system daily records of HTTP request.
S206, when monitoring operation system generation exception, acquisition abnormity information.
Wherein, it is abnormal when being specifically operation system operation different from usual, such as the data volume of operation system transmission is much larger than
Or much smaller than usual, operation system can not transacting business and null pointer or Array Bound etc. during operation operation system.Abnormal letter
Breath is information when operation system generates abnormal.Exception information can be specifically generate abnormal time point, aberrant continuation when
Between at least one of data for generating when generating abnormal of section and operation system etc..Acquisition abnormity information can specifically use foot
This engine obtains exception information from the expression layer of operation system, Business Logic and data access layer.
In one embodiment, when server is according to the operation requests calling function code received, call result is obtained
For null (sky), then using script engine from Business Logic obtain calling function code when time point and function generation for calling
Code, using the time point of acquisition and function code as exception information writing system daily record.
S208 chooses corresponding behavioral data according to exception information from system log.
Wherein, exception information record having time, and system log also records having time, according to exception information from system log
It is middle to choose corresponding behavioral data, it can be specifically the time point recorded according to exception information, be chosen in system log corresponding
The behavioral data at time point.
In one embodiment, server analysis exception information obtains the period of aberrant continuation, according to the time of acquisition
Section chooses the behavioral data recorded in the corresponding period from system log.
S210 according to the behavioral data simulated operation of selection to be tested, obtains test result.
Wherein, simulated operation is the operation of analog subscriber.Specifically, the operation of user can trigger operation system and call simultaneously
Operation function code and functional parameter, then simulated operation is called particular by behavioral data and operation function code and function are joined
Number etc., with the operation of analog subscriber.
In one embodiment, server obtains corresponding function code and functional parameter according to the behavioral data of selection,
Using functional parameter driving function code, test result is obtained.If test result is matched with exception information, it is determined that the row of selection
It is to cause the behavioral data of operation system exception for data, and analyzes behavior data, with the exception of reconditioning work system;If it surveys
Test result is mismatched with exception information, then chooses behavioral data again.
S212 determines that corresponding abnormal operation is asked according to test result.
Wherein, abnormal operation request is to cause abnormal operation requests.Corresponding abnormal operation is determined according to test result
Request, can be specifically to determine corresponding behavioral data by test result, and pass through definite behavioral data and determine abnormal behaviour
It asks, and when server is according to determined abnormal operation request operation service system, record the determined behavior number
According to system log.
S214 feeds back indication information to terminal, and indication information is used to indicate terminal-pair abnormal operation and asks corresponding operation
Logic is modified.
Wherein, operation logic is the logic of operation service system.Operation logic can specifically include operating procedure.Instruction letter
Breath has specifically included the abnormal step in the corresponding operation logic of abnormal operation request, can also include abnormal step accordingly just
True step.
In one embodiment, for server after terminal sends indication information, terminal returns to instruction letter according to indication information
Cease corresponding abnormal step.Terminal is after the information for recalling abnormal operation request is sent, the correct step in indication information,
Resend the operation requests to operation system.
In one embodiment, server is after terminal sends indication information.Terminal initiates to restart the request of business, and
It, please to the operation of operation system when business is restarted in information inspection as indicated after server returns to the response for agreeing to restart business
It asks.
In the present embodiment, after receiving to the operation requests of operation system, the corresponding behavioral data of operation requests is write
System log.And when monitoring operation system generation exception, acquisition abnormity information is selected according to exception information from system log
Behavioral data is taken, is tested with the behavioral data according to selection.After test result is obtained, determined accordingly according to test result
Abnormal operation request, so as to go out which specific step in operation logic goes wrong according to abnormal operation requirement analysis,
To judge where the operation logic of operation system needs to correct.Indication information is fed back to terminal again, and then can be with instruction terminal
Corresponding operation logic is asked to be modified abnormal operation, solve problem during terminal operation operation system, promote industry
The reliability of business system.
In one embodiment, for server after being tested according to behavioral data, obtained test result represents behavior
The corresponding functional parameter of data and/or function code start a leak, will appear from loophole functional parameter and/or function code according to
Test result is repaired.
In one embodiment, the position that server monitoring terminal is clicked on webpage, according to the coordinate of click location and
It is corresponding to click on time generation webpage thermodynamic.In server according to the behavioral data simulated operation of selection to be tested when,
According to behavioral data corresponding time point, the coordinate of corresponding click location is extracted from webpage thermodynamic, and according to click location
The corresponding page elements of coordinate obtain function code.Functional parameter is obtained in subordinate act data, is clicked according to click location
Time, the function code obtained according to webpage thermodynamic is driven using functional parameter successively, to simulate to the behaviour of operation system
Make.
In one embodiment, this further includes the modification method of operation system operation logic:Exception information is analyzed, is obtained
Abnormal time point;Step S210 includes:It chooses and the immediate test node of abnormal time point;According in the test node of selection
Function point identification, calling function code;Functional parameter driving function code in the test node of selection, is tested
As a result.
Wherein, abnormal time point is the time point in exception information.Abnormal time point be specifically exception information generation when
Between point.Test node is the node of the behavioral data of storage test.Function point identification is the mark of function code.Function point identification
Can be specifically function keyword, for example, realize access control function, keyword can be private (privately owned),
Protected (shielded) and public (public), corresponding function code can be called according to function keyword.Function
Code is the code for realizing function.Function code can be specifically computer function.Functional parameter is that functional parameter is driving work(
The parameter of energy code.
Selection and the immediate test node of abnormal time point can be specifically the time that the test node chosen is recorded
Point and/or period and abnormal time point are closest.Calling function code can be specifically the calling function point mark from database
Know corresponding function code.Functional parameter driving function code in the test node of selection can be specifically by function
In parameter read-in function code, the function code of write-in functions parameter is run, to obtain operation result.
With reference to Fig. 3, in one embodiment, server obtains abnormal time point 312 from exception information 310, and reads
Time point in test node chooses the time point of record and the immediate test node 302 of abnormal time point.It is tested choosing
After node 302, further according to the function point identification calling function code in test node 302, joined with the function in test node 302
The function code that number driving is called, to realize simulated operation, obtains test result.
In the present embodiment, abnormal time point is obtained by analyzing exception information, test section is chosen further according to abnormal time point
Point is tested using the function point identification in test node and functional parameter, so as to simulate abnormal hair as much as possible
Scene when raw, with judge to go wrong particularly occur at where.
In one embodiment, step S208 includes:According to abnormal time point and system log generation testing time section;
The testing time matched behavioral data of section is chosen in system log.
Wherein, testing time section is the period that the behavioral data tested is needed to be recorded.According to abnormal time point and it is
It unites the daily record generation testing time section, can be specifically the frequency according to system log in abnormal time point record behavioral data, it is raw
, the then testing time section that generates high in the frequency of abnormal time point record behavioral data into testing time section, such as system log
With regard to short, otherwise system log is low in the frequency of abnormal time point record behavioral data, then the testing time section generated is just long.It is being
The testing time matched behavioral data of section is chosen in system daily record, can be specifically according to the time recorded in system log, choose
In the behavioral data of testing time segment record.
In one embodiment, server determines corresponding time point according to abnormal time point in system log, and divides
The behavioral data recorded before and after the time point determined in analysis system daily record in five minutes, to obtain system log record behavioral data
Frequency.If the frequency is higher than the maximum of pre-set interval, three minutes are testing time section before and after selected abnormal time point;If
The frequency is in pre-set interval, then five minutes before and after selected abnormal time point are testing time section;If the frequency is less than preset areas
Between minimum value, then it is testing time section to select before and after abnormal time point eight minutes.After section of selected testing time, in system
The testing time matched behavioral data of section is chosen in system daily record.
In the present embodiment, by generating testing time section according to abnormal time point and system log, selected in system log
The testing time matched behavioral data of section is taken, can more reasonably be chosen at the behavioral data recorded during abnormal occur, to avoid
The behavioral data occurred extremely is caused to be missed.
In one embodiment, behavioral data includes function point identification and corresponding functional parameter;It, should before step S208
Method further includes:The behavioral data chosen is parsed, obtains multiple function point identifications;According to multiple function point identifications in the testing time
Time sequencing in section encapsulates multiple function point identifications and corresponding functional parameter to multiple test nodes, multiple test sections
Point is corresponded with multiple function point identifications.
With reference to Fig. 3, in one embodiment, the behavioral data that server parsing is chosen obtains multiple function point identifications, presses
According to time sequencing of multiple function point identifications in testing time section, by multiple function point identifications and corresponding functional parameter one by one
Encapsulation is into test node 300,302,304,306 and 308.
In the present embodiment, by the way that by function point identification, according to the time sequencing in testing time section, encapsulation one by one is extremely surveyed
Node is tried, the behavioral data in test node can be caused more to segment, it is easier to find out the behavioral data for causing to occur extremely.
In one embodiment, this method further includes:When obtained test result is mismatched with exception information, then according to
Order chooses test node again;Order is the interval at the test node chosen again corresponding time point and abnormal time point
Gradual increased order;According to functional parameter driving function code of the order in the test node chosen again, until
The test result arrived is matched with exception information.
Wherein, test result is matched with exception information, can be specifically that test result is consistent with exception information.
With reference to Fig. 3, in one embodiment, the function point identification and function that server is recorded according to test node 302 are joined
Number simulated operation, obtained test result are mismatched with exception information, and the time point of test node 300 and abnormal time point
When interval is less than the time point of test node 300 and the interval of abnormal time point, test node 300 is chosen again, according to again
The test node 300 of selection is tested.If it tests obtained test according to test node 300 to match with exception information, root
Corresponding abnormal operation request is determined according to test result;If obtained test and exception information are tested not according to test node 300
Test node 304 is then chosen in matching again.And test node 304 and 306 and 308 corresponding function code of test node and work(
Energy parameter combination can simulate a complete operation, then choose test node 304,306 and 308 simultaneously, carry out simulation behaviour
Make, obtain test result.
In the present embodiment, when obtained test result is mismatched with exception information, the interval according to time point gradually increases
Big order, chooses test node again, can test out the exception occurred due to delay.
In one embodiment, this method further includes:Analysis system daily record is transmitted with counting when each function code is called
Data volume;It is each function code dynamic distribution of system resources according to the data volume of statistics.
Wherein, system resource (System Resource) is system resource heap (System Resource Heap).To be each
Function code dynamic distribution of system resources can also specifically distribute CPU (Central Processing Unit, central processing
Device) in resource, memory (Memory) resource and GPU (Graphics Processing Unit, graphics processor) at least one
Kind.
In one embodiment, server carries out the concurrent test of operation system, and multi-thread number of passes is carried out with test server
During according to mutual passing, each function code is called during monitoring data transmission number.Server is according to the number monitored, dynamic point
System resource with each function code.
In the present embodiment, by count each function code it is called when the data volume transmitted, to judge that operation system is big
Scale in use, each function code by utilization rate, so as to adjust the system resource of each function code distribution, to avoid business system
The system resource allocation of system is uneven, and operation system is caused to go wrong.
In one embodiment, server extracts the corresponding IP of terminal (Internet Protocol) from system log
Address, analyzing IP address obtain the mark in terminal seat area, and all terminal Trigger Function codes in statistical system daily record
Number and the mark in terminal seat area obtain the mark in terminal seat area and associating for the number of terminal Trigger Function code
Relation.
Fig. 4 is the flow diagram of the modification method to operation system operation logic in one embodiment.This method is specific
Comprise the following steps:
S402 receives the operation requests of terminal-pair operation system.
S404, the position being clicked on the page of monitoring business system.
S406 obtains the corresponding coordinate points in the position being clicked.
S408, according to the corresponding coordinate of page elements on the page of operation system and the corresponding coordinate in position being clicked
Point, the time point that statistics page elements are clicked every time.
S410, the time point writing system daily record that the corresponding behavioral data of operation requests and page elements are clicked.
S412, when monitoring operation system generation exception, acquisition abnormity information.
S414 analyzes exception information, obtains abnormal time point.
S416, according to abnormal time point and system log generation testing time section.
S418 chooses the matched behavioral data of testing time section and the page elements being clicked, behavior in system log
Data include function point mark and corresponding functional parameter.
S420 parses the behavioral data of selection, obtains multiple function point identifications.
S422, the time point being clicked every time according to page elements count multiple corresponding function codes of function point identification
The number being triggered.
S424, according to time sequencing of multiple function point identifications in testing time section, by multiple function point identifications, corresponding
The number that is triggered of function code and corresponding functional parameter encapsulate to multiple test nodes.
S426 chooses and the immediate test node of abnormal time point.
S428, the number that function point identification and corresponding function code in the test node of selection are triggered, is pressed
The function code of same number is called according to the number being triggered.
S430, the functional parameter driving function code in the test node of selection, obtains test result.
S432 when obtained test result is mismatched with exception information, then chooses test node again according to order.
S434, according to functional parameter driving function code of the order in the test node chosen again, until obtaining
Test result matched with exception information.
S436 determines that corresponding abnormal operation is asked according to test result.
S438 feeds back indication information to terminal, and indication information is used to indicate terminal-pair abnormal operation and asks corresponding operation
Logic is modified.
The above-mentioned modification method to operation system operation logic after receiving to the operation requests of operation system, will operate
Ask corresponding behavioral data writing system daily record.And when monitoring operation system generation exception, acquisition abnormity information, according to
Exception information chooses behavioral data from system log, is tested with the behavioral data according to selection.Obtaining test result
Afterwards, determine that corresponding abnormal operation is asked according to test result, so as to go out operation logic according to abnormal operation requirement analysis
In which specific step go wrong, to judge where the operation logic of operation system needs to correct.Refer to again to terminal feedback
Show information, and then corresponding operation logic can be asked to be modified abnormal operation with instruction terminal, solve terminal operation business
Problem during system promotes the reliability of operation system.
It should be understood that although each step in the flow chart of Fig. 4 is shown successively according to the instruction of arrow, this
A little steps are not that the inevitable order according to arrow instruction performs successively.Unless expressly state otherwise herein, these steps
It performs there is no the limitation of stringent order, these steps can perform in other order.Moreover, at least a portion in Fig. 4
Step can include multiple sub-steps, and either these sub-steps of multiple stages or stage are performed in synchronization
It completes, but can perform at different times, the execution sequence in these sub-steps or stage is also not necessarily to carry out successively,
It but can either the sub-step of other steps or at least a portion in stage perform in turn or alternately with other steps.
Fig. 5 is a kind of structure diagram of correcting device 500 to operation system operation logic, which includes:It receives
Module 502, writing module 504, acquisition module 506, selection module 508, test module 510, determining module 512 and feedback module
514。
Receiving module 502, for receiving the operation requests of terminal-pair operation system.
Writing module 504, for by the corresponding behavioral data writing system daily record of operation requests.
Acquisition module 506, for when monitoring operation system and generating abnormal, acquisition abnormity information.
Module 508 is chosen, for choosing corresponding behavioral data from system log according to exception information.
Test module 510, for, to be tested, obtaining test result according to the behavioral data simulated operation of selection.
Determining module 512, for determining that corresponding abnormal operation is asked according to test result.
Feedback module 514, for feeding back indication information to terminal, indication information is used to indicate the request of terminal-pair abnormal operation
Corresponding operation logic is modified.
The above-mentioned correcting device to operation system operation logic after receiving to the operation requests of operation system, will operate
Ask corresponding behavioral data writing system daily record.And when monitoring operation system generation exception, acquisition abnormity information, according to
Exception information chooses behavioral data from system log, is tested with the behavioral data according to selection.Obtaining test result
Afterwards, determine that corresponding abnormal operation is asked according to test result, so as to go out operation logic according to abnormal operation requirement analysis
In which specific step go wrong, to judge where the operation logic of operation system needs to correct.Refer to again to terminal feedback
Show information, and then corresponding operation logic can be asked to be modified abnormal operation with instruction terminal, solve terminal operation business
Problem during system promotes the reliability of operation system.
As shown in fig. 6, in one embodiment, which further includes:Analysis module 516 for analyzing exception information, obtains
To abnormal time point;Above-mentioned selection module 508 is additionally operable to choose and the immediate test node of abnormal time point;Calling module
518, for the function point identification in the test node according to selection, calling function code;Above-mentioned test module 510, is additionally operable to
Functional parameter driving function code in the test node of selection, obtains test result.
As shown in fig. 7, in one embodiment, which further includes:Period generation module 520, for according to exception
Time point and system log generation testing time section;Above-mentioned selection module 518, is additionally operable to choose the testing time in system log
The matched behavioral data of section.
In one embodiment, behavioral data includes function point identification and corresponding functional parameter;As shown in figure 8, the dress
It puts and further includes:Parsing module 522 for parsing the behavioral data chosen, obtains multiple function point identifications;Package module 524 is used
In the time sequencing according to multiple function point identifications in testing time section, by multiple function point identifications and corresponding functional parameter
Encapsulation to multiple test nodes, multiple test nodes are corresponded with multiple function point identifications.
In one embodiment, above-mentioned selection module 508 is additionally operable to mismatch when obtained test result and exception information
When, then test node is chosen again according to order;Order is the test node chosen again corresponding time point and abnormal time
The gradual increased order in interval of point;Above-mentioned test module 510, is additionally operable to according to order according in the test node chosen again
Functional parameter driving function code, until obtained test result is matched with exception information.
In one embodiment, above-mentioned analysis module 516, is additionally operable to analysis system daily record, to count each function code quilt
The data volume transmitted during calling;As shown in figure 9, the device further includes:Distribution module 526 for the data volume according to statistics, is
Each function code dynamic distribution of system resources.
In one embodiment, provide a kind of computer equipment, the computer equipment can be server or
Mobile terminal.When the computer equipment is server, cut-away view can be as shown in Figure 10.The computer equipment includes
Processor, memory and the network interface connected by system bus.Wherein, the processor of the computer equipment is based on providing
Calculation and control ability.The memory of the computer equipment includes non-volatile memory medium, built-in storage.The non-volatile memories
Media storage has operating system and computer program.The built-in storage is operating system and calculating in non-volatile memory medium
The operation of machine program provides environment.The network interface of the computer equipment is used to communicate by network connection with external terminal.
To realize a kind of modification method to operation system operation logic when the computer program is executed by processor.People in the art
Member only with the block diagram of the relevant part-structure of application scheme, is not formed pair it is appreciated that the structure that shows in Figure 10
The restriction for the computer equipment that application scheme is applied thereon, specific computer equipment can include than shown in figure more
More or less components either combines some components or is arranged with different components.
In one embodiment, what the application provided can be implemented as one kind to the correcting device of operation system operation logic
The form of computer program, computer program can be run on computer equipment as shown in Figure 10.The storage of computer equipment
The each program module for forming this to the correcting device of operation system operation logic can be stored in device, for example, the reception shown in Fig. 5
Module 502, writing module 504, acquisition module 506, selection module 508, test module 510, determining module 512 and feedback module
514.The computer program that each program module is formed causes processor to perform each implementation of the application described in this specification
Step in the modification method to operation system operation logic of example.
A kind of computer equipment, including memory and processor, memory storage has computer program, computer program quilt
When processor performs so that processor performs the step of following method:Receive the operation requests of terminal-pair operation system;It will operation
Ask corresponding behavioral data writing system daily record;When monitoring operation system generation exception, acquisition abnormity information;According to different
Normal information chooses corresponding behavioral data from system log;According to the behavioral data simulated operation of selection to be tested, obtain
To test result;Corresponding abnormal operation request is determined according to test result;Indication information is fed back to terminal, indication information is used for
Instruction terminal asks corresponding operation logic to be modified abnormal operation.
Above computer equipment, after receiving to the operation requests of operation system, by the corresponding behavioral data of operation requests
Writing system daily record.And when monitoring operation system and generating abnormal, acquisition abnormity information, according to exception information from system log
Middle selection behavioral data, is tested with the behavioral data according to selection.After test result is obtained, determined according to test result
Corresponding abnormal operation request, so as to go out which specific step in operation logic is asked according to abnormal operation requirement analysis
Topic, to judge where the operation logic of operation system needs to correct.Indication information is fed back to terminal again, and then can indicate end
End asks corresponding operation logic to be modified abnormal operation, solves problem during terminal operation operation system, is promoted
The reliability of operation system.
In one embodiment, when computer program is executed by processor, also so that processor performs the step of following method
Suddenly:Exception information is analyzed, obtains abnormal time point;Processor performs according to the behavioral data simulated operation of selection to be surveyed
The step of trying, obtaining test result, including:It chooses and the immediate test node of abnormal time point;According to the test section of selection
Function point identification in point, calling function code;Functional parameter driving function code in the test node of selection, obtains
Test result.
In one embodiment, corresponding behavioral data is chosen in processor execution according to exception information from system log
Step, including:According to abnormal time point and system log generation testing time section;Testing time section is chosen in system log
The behavioral data matched somebody with somebody.
In one embodiment, behavioral data includes function point identification and corresponding functional parameter;Processor performs basis
Before the step of behavioral data simulated operation of selection is to be tested, obtain test result, processor also performs following method
The step of:The behavioral data chosen is parsed, obtains multiple function point identifications;According to multiple function point identifications in testing time section
Time sequencing, multiple function point identifications and corresponding functional parameter are encapsulated to multiple test nodes, multiple test nodes with
Multiple function point identifications correspond.
In one embodiment, when computer program is executed by processor, also so that processor performs the step of following method
Suddenly:When obtained test result is mismatched with exception information, then test node is chosen again according to order;Order is again
The gradual increased order in the test node corresponding time point of selection and the interval of abnormal time point;According to order according to selecting again
Functional parameter driving function code in the test node taken, until obtained test result is matched with exception information.
In one embodiment, when computer program is executed by processor, also so that processor performs the step of following method
Suddenly:Analysis system daily record, to count the data volume transmitted when each function code is called;It is each work(according to the data volume of statistics
It can code dynamic distribution of system resources.
A kind of computer readable storage medium is stored with computer program, when computer program is executed by processor so that
Processor performs the step of following method:Receive the operation requests of terminal-pair operation system;By the corresponding behavior number of operation requests
According to writing system daily record;When monitoring operation system generation exception, acquisition abnormity information;According to exception information from system log
It is middle to choose corresponding behavioral data;According to the behavioral data simulated operation of selection to be tested, test result is obtained;According to survey
Test result determines corresponding abnormal operation request;Indication information is fed back to terminal, indication information is used to indicate terminal-pair and grasps extremely
Make that corresponding operation logic is asked to be modified.
After receiving to the operation requests of operation system, the corresponding behavioral data of operation requests is write for above-mentioned storage medium
Enter system log.And when monitoring operation system generation exception, acquisition abnormity information, according to exception information from system log
Behavioral data is chosen, is tested with the behavioral data according to selection.After test result is obtained, phase is determined according to test result
The abnormal operation request answered, so as to go out which specific step in operation logic is asked according to abnormal operation requirement analysis
Topic, to judge where the operation logic of operation system needs to correct.Indication information is fed back to terminal again, and then can indicate end
End asks corresponding operation logic to be modified abnormal operation, solves problem during terminal operation operation system, is promoted
The reliability of operation system.
In one embodiment, when computer program is executed by processor, also so that processor performs the step of following method
Suddenly:Exception information is analyzed, obtains abnormal time point;Processor performs according to the behavioral data simulated operation of selection to be surveyed
The step of trying, obtaining test result, including:It chooses and the immediate test node of abnormal time point;According to the test section of selection
Function point identification in point, calling function code;Functional parameter driving function code in the test node of selection, obtains
Test result.
In one embodiment, corresponding behavioral data is chosen in processor execution according to exception information from system log
Step, including:According to abnormal time point and system log generation testing time section;Testing time section is chosen in system log
The behavioral data matched somebody with somebody.
In one embodiment, behavioral data includes function point identification and corresponding functional parameter;Processor performs basis
Before the step of behavioral data simulated operation of selection is to be tested, obtain test result, processor also performs following method
The step of:The behavioral data chosen is parsed, obtains multiple function point identifications;According to multiple function point identifications in testing time section
Time sequencing, multiple function point identifications and corresponding functional parameter are encapsulated to multiple test nodes, multiple test nodes with
Multiple function point identifications correspond.
In one embodiment, when computer program is executed by processor, also so that processor performs the step of following method
Suddenly:When obtained test result is mismatched with exception information, then test node is chosen again according to order;Order is again
The gradual increased order in the test node corresponding time point of selection and the interval of abnormal time point;According to order according to selecting again
Functional parameter driving function code in the test node taken, until obtained test result is matched with exception information.
In one embodiment, when computer program is executed by processor, also so that processor performs the step of following method
Suddenly:Analysis system daily record, to count the data volume transmitted when each function code is called;It is each work(according to the data volume of statistics
It can code dynamic distribution of system resources.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, it is provided herein
Each embodiment used in any reference to memory, database or other media, may each comprise non-volatile memories
Device.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that come for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of modification method to operation system operation logic, the described method includes:
Receive the operation requests of terminal-pair operation system;
By the corresponding behavioral data writing system daily record of the operation requests;
When monitoring operation system generation exception, acquisition abnormity information;
Corresponding behavioral data is chosen from the system log according to the exception information;
According to the behavioral data simulated operation of selection to be tested, test result is obtained;
Corresponding abnormal operation request is determined according to the test result;
Indication information is fed back to the terminal, the indication information is used to indicate abnormal operation request described in the terminal-pair and corresponds to
Operation logic be modified.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
The exception information is analyzed, obtains abnormal time point;
The behavioral data simulated operation according to selection obtains test result to be tested, including:
It chooses and the immediate test node of the abnormal time point;
Function point identification in the test node of selection, calling function code;
Functional parameter in the test node of selection drives the function code, obtains test result.
3. according to the method described in claim 2, it is characterized in that, it is described according to the exception information from the system log
Corresponding behavioral data is chosen, including:
According to the abnormal time point and system log generation testing time section;
The matched behavioral data of the testing time section is chosen in the system log.
4. according to the method described in claim 3, it is characterized in that, the behavioral data includes function point identification and corresponding work(
It can parameter;The behavioral data simulated operation according to selection is to be tested, and before obtaining test result, the method is also wrapped
It includes:
The behavioral data chosen is parsed, obtains multiple function point identifications;
According to time sequencing of the multiple function point identification in testing time section, by the multiple function point identification and
Corresponding functional parameter is encapsulated to multiple test nodes, and the multiple test node and the multiple function point identification are right one by one
It should.
5. according to the method described in claim 2, it is characterized in that, the method further includes:
When obtained test result is mismatched with exception information, then
Test node is chosen again according to order;The order is the test node chosen again corresponding time point with it is described
The gradual increased order in the interval of abnormal time point;
The function code is driven according to functional parameter of the order in the test node chosen again, until obtained test
As a result matched with exception information.
6. the method according to any one of claim 2 to 5, which is characterized in that the method further includes:
The system log is analyzed, to count the data volume transmitted when each function code is called;
It is each function code dynamic distribution of system resources according to the data volume of statistics.
7. a kind of correcting device to operation system operation logic, which is characterized in that described device includes:
Receiving module, for receiving the operation requests of terminal-pair operation system;
Writing module, for by the corresponding behavioral data writing system daily record of the operation requests;
Acquisition module, for when monitoring operation system and generating abnormal, acquisition abnormity information;
Module is chosen, for choosing corresponding behavioral data from the system log according to the exception information;
Test module, for, to be tested, obtaining test result according to the behavioral data simulated operation of selection;
Determining module, for determining that corresponding abnormal operation is asked according to the test result;
Feedback module, for feeding back indication information to the terminal, the indication information is used to indicate different described in the terminal-pair
The normal corresponding operation logic of operation requests is modified.
8. device according to claim 7, which is characterized in that described device further includes:
Analysis module for analyzing the exception information, obtains abnormal time point;
The selection module is additionally operable to choose and the immediate test node of the abnormal time point;
Calling module, for the function point identification in the test node according to selection, calling function code;
The test module, the functional parameter being additionally operable in the test node according to selection drive the function code, are surveyed
Test result.
9. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, makes
The processor is obtained to perform as any one of claim 1 to 6 the step of method.
10. a kind of computer equipment, including memory and processor, the memory storage has computer program, the calculating
When machine program is performed by the processor so that the processor performs the step of the method as any one of claim 1 to 6
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711407947.4A CN108052440B (en) | 2017-12-22 | 2017-12-22 | Method, device, equipment and storage medium for correcting operation logic of business system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711407947.4A CN108052440B (en) | 2017-12-22 | 2017-12-22 | Method, device, equipment and storage medium for correcting operation logic of business system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108052440A true CN108052440A (en) | 2018-05-18 |
CN108052440B CN108052440B (en) | 2021-03-23 |
Family
ID=62131465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711407947.4A Active CN108052440B (en) | 2017-12-22 | 2017-12-22 | Method, device, equipment and storage medium for correcting operation logic of business system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108052440B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762966A (en) * | 2018-06-05 | 2018-11-06 | 中国平安人寿保险股份有限公司 | System exception hold-up interception method, device, computer equipment and storage medium |
CN109697456A (en) * | 2018-11-21 | 2019-04-30 | 华为技术有限公司 | Business diagnosis method, apparatus, equipment and storage medium |
CN110716817A (en) * | 2019-09-10 | 2020-01-21 | 中国平安财产保险股份有限公司 | System operation fault processing method and device, storage medium and electronic equipment |
CN111625815A (en) * | 2020-05-26 | 2020-09-04 | 牛津(海南)区块链研究院有限公司 | Data transaction method and device based on trusted execution environment |
CN112631934A (en) * | 2020-12-30 | 2021-04-09 | 上海高顿教育科技有限公司 | Method and device for testing software online problems |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060107152A1 (en) * | 2003-11-10 | 2006-05-18 | Microsoft Corporation | Testing Using Policy-Based Processing of Test Results |
CN102043682A (en) * | 2011-01-27 | 2011-05-04 | 中国农业银行股份有限公司 | Workflow exception handing method and system |
CN104090839A (en) * | 2014-07-02 | 2014-10-08 | 中国银行股份有限公司 | Simulation test method and device for abnormal scene |
CN104182683A (en) * | 2014-07-30 | 2014-12-03 | 中国工商银行股份有限公司 | Method, device and system for monitoring online transactions |
CN104517206A (en) * | 2013-09-27 | 2015-04-15 | ***通信集团黑龙江有限公司 | Business processing method and device |
CN105320572A (en) * | 2014-06-27 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Browser abnormity processing method, device and system |
CN105447057A (en) * | 2014-09-28 | 2016-03-30 | 克拉玛依红有软件有限责任公司 | Model transforming method and system based on business logic model |
CN105678434A (en) * | 2014-11-18 | 2016-06-15 | 金蝶软件(中国)有限公司 | Verification information publishing method and system in ERP system |
-
2017
- 2017-12-22 CN CN201711407947.4A patent/CN108052440B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060107152A1 (en) * | 2003-11-10 | 2006-05-18 | Microsoft Corporation | Testing Using Policy-Based Processing of Test Results |
CN102043682A (en) * | 2011-01-27 | 2011-05-04 | 中国农业银行股份有限公司 | Workflow exception handing method and system |
CN104517206A (en) * | 2013-09-27 | 2015-04-15 | ***通信集团黑龙江有限公司 | Business processing method and device |
CN105320572A (en) * | 2014-06-27 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Browser abnormity processing method, device and system |
CN104090839A (en) * | 2014-07-02 | 2014-10-08 | 中国银行股份有限公司 | Simulation test method and device for abnormal scene |
CN104182683A (en) * | 2014-07-30 | 2014-12-03 | 中国工商银行股份有限公司 | Method, device and system for monitoring online transactions |
CN105447057A (en) * | 2014-09-28 | 2016-03-30 | 克拉玛依红有软件有限责任公司 | Model transforming method and system based on business logic model |
CN105678434A (en) * | 2014-11-18 | 2016-06-15 | 金蝶软件(中国)有限公司 | Verification information publishing method and system in ERP system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762966A (en) * | 2018-06-05 | 2018-11-06 | 中国平安人寿保险股份有限公司 | System exception hold-up interception method, device, computer equipment and storage medium |
CN109697456A (en) * | 2018-11-21 | 2019-04-30 | 华为技术有限公司 | Business diagnosis method, apparatus, equipment and storage medium |
CN109697456B (en) * | 2018-11-21 | 2021-02-09 | 华为技术有限公司 | Service analysis method, device, equipment and storage medium |
CN110716817A (en) * | 2019-09-10 | 2020-01-21 | 中国平安财产保险股份有限公司 | System operation fault processing method and device, storage medium and electronic equipment |
CN110716817B (en) * | 2019-09-10 | 2024-06-25 | 中国平安财产保险股份有限公司 | System operation fault processing method and device, storage medium and electronic equipment |
CN111625815A (en) * | 2020-05-26 | 2020-09-04 | 牛津(海南)区块链研究院有限公司 | Data transaction method and device based on trusted execution environment |
CN111625815B (en) * | 2020-05-26 | 2023-09-26 | 牛津(海南)区块链研究院有限公司 | Data transaction method and device based on trusted execution environment |
CN112631934A (en) * | 2020-12-30 | 2021-04-09 | 上海高顿教育科技有限公司 | Method and device for testing software online problems |
Also Published As
Publication number | Publication date |
---|---|
CN108052440B (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108052440A (en) | To the modification method of operation system operation logic, device, equipment and storage medium | |
US9454450B2 (en) | Modeling and testing of interactions between components of a software system | |
WO2020029375A1 (en) | Interface testing method and system, and computer device and storage medium | |
US9235490B2 (en) | Modeling and testing of interactions between components of a software system | |
US7124328B2 (en) | Capturing system error messages | |
US10521322B2 (en) | Modeling and testing of interactions between components of a software system | |
CN110008118A (en) | Page data test method, device, computer equipment and storage medium | |
US7334220B2 (en) | Data driven test automation of web sites and web services | |
US7881440B2 (en) | Method for automatic graphical profiling of a system | |
CN110944048B (en) | Service logic configuration method and device | |
CN109302522A (en) | Test method, device and computer system and medium | |
WO2020086969A1 (en) | Methods and systems for performance testing | |
CN112988608B (en) | Data testing method and device, computer equipment and storage medium | |
CN108717391A (en) | Monitoring device, method and the computer readable storage medium of test process | |
CN110515854B (en) | Application program abnormality reproduction method and device and electronic equipment | |
CN111475376A (en) | Method and device for processing test data, computer equipment and storage medium | |
US11797427B2 (en) | Automatic generation of unit tests while running an application | |
US11436133B2 (en) | Comparable user interface object identifications | |
CN109325010A (en) | Log inspection method, device, computer equipment and storage medium | |
WO2015156809A1 (en) | Generalized snapshots based on multiple partial snapshots | |
US10775751B2 (en) | Automatic generation of regular expression based on log line data | |
CN112306471A (en) | Task scheduling method and device | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN112231209A (en) | Parameter acquisition method and device, computer equipment and storage medium | |
US7984335B2 (en) | Test amplification for datacenter applications via model checking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |