CN107273283A - A kind of automated software detection method and device - Google Patents

A kind of automated software detection method and device Download PDF

Info

Publication number
CN107273283A
CN107273283A CN201610214549.XA CN201610214549A CN107273283A CN 107273283 A CN107273283 A CN 107273283A CN 201610214549 A CN201610214549 A CN 201610214549A CN 107273283 A CN107273283 A CN 107273283A
Authority
CN
China
Prior art keywords
event
under testing
software under
measured
memory block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610214549.XA
Other languages
Chinese (zh)
Other versions
CN107273283B (en
Inventor
崔斌
李文竹
张永峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Autonavi Information 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 Autonavi Information Technology Co Ltd filed Critical Autonavi Information Technology Co Ltd
Priority to CN201610214549.XA priority Critical patent/CN107273283B/en
Publication of CN107273283A publication Critical patent/CN107273283A/en
Application granted granted Critical
Publication of CN107273283B publication Critical patent/CN107273283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of automated software detection method and device, the embodiment of the present invention, which provides method, to be included:According to logic script corresponding with software under testing is edited in advance, event to be measured is generated;Control software under testing automatic operating event to be measured;The real time data that monitoring software under testing is produced in event procedure to be measured is run, and determine and record that abnormal event occurs for software under testing according to real time data, the application realizes the real time data that software under testing is monitored during software under testing automatic operating event to be measured, and determine and record that abnormal event occurs for software under testing according to real time data, the human cost of software under testing detection is saved, software under testing detection efficiency is greatly improved.

Description

A kind of automated software detection method and device
Technical field
The present invention relates to computer realm, more particularly to a kind of automated software detection method and device.
Background technology
Memory overflow is also referred to as " storage seepage ", is the space dynamically opened up with dynamic memory partition function, Do not discharged using after finishing, as a result cause to occupy the internal storage location always.Until EP (end of program), i.e. institute Call memory overflow.Classified in the way of generation, memory overflow can be divided into 4 classes:Often hair property internal memory is let out Leakage, sporadic memory overflow, disposable memory overflow, implicit memory overflow.Software is used from user From the point of view of angle, memory overflow will not produce any harm in itself, as general user, basic to feel not To the presence of memory overflow.Really have harm is the accumulation of memory overflow, this system that can finally run out All internal memories.Common memory overflow harm has:Cpu resource exhausts that (intelligent terminal of runs software is without anti- Should), process ID exhausts and (can not create new process, serial ports), hard disk exhausts.It is above-mentioned in order to prevent The generation of harm, developer during software is developed, it is necessary to find the memory overflow of software, and The operation code for occurring memory overflow is found, and then improves software, is preferably experienced to user.
Equally, in order to preferably be experienced to user, developer needs the electricity of monitoring of software, and (electricity makes With excessive), the running situation (whether collapsing) of flow (expending flow excessive) service condition and software, The running software code occurred using during exception is found, and then improves software.
With the development of intelligent terminal and continually developing for operation system function, the software on intelligent terminal Become increasingly abundant, in order that user obtains more preferable experience, the use to the internal memory, flow, electricity of software Situation and the stability of running software there has been higher requirement.Prior art is main for problem above Detected by the way of manually detecting, but artificial detection needs to consume substantial amounts of human resources, and people Work detection efficiency is relatively low, and whether testing result is accurately limited to the detection level of testing staff.
The content of the invention
The foregoing problems existed for prior art, the application propose a kind of automated software detection method and Device, to realize the software detection of automation, improves detection accuracy and efficiency.
In a first aspect, the embodiment of the present invention provides a kind of automated software detection method, this method includes: According to logic script corresponding with software under testing is edited in advance, event to be measured is generated;Control software under testing Automatic operating event to be measured;The real time data that monitoring software under testing is produced in event procedure to be measured is run, And determine and record that abnormal event occurs for software under testing according to real time data.
Second aspect, the embodiment of the present invention provides a kind of automated software detection means, and the device includes:
Event generation module to be measured, the logic script corresponding with software under testing edited in advance for basis, Generate event to be measured;
Control module, for controlling event to be measured described in the software under testing automatic operating;
Monitoring modular, for monitoring the reality that the software under testing is produced in the event procedure to be measured is run When data, and determine and record that abnormal event occurs for the software under testing according to the real time data.
Technical scheme provided in an embodiment of the present invention, on the one hand, first, the thing to be measured of software under testing operation Part is generated according to logic script corresponding with software under testing is edited in advance, hence in so that the thing to be measured of generation Part more meets software under testing;Secondly, the reality according to software under testing during the event to be measured is run When data determine and record that abnormal event occurs for software under testing, due to real time data be most can be truly anti- The truth reflected in software under testing operation event procedure to be measured, therefore the event of generation is more accurate, to sum up, The detection of the application automated software is more accurate, is not only restricted to artificial level, can also avoid manually bringing Think error or mistake.On the other hand, the carry out software detection of automation is realized, without artificial ginseng With reducing human cost, improving efficiency.
Brief description of the drawings
Fig. 1 is application scenarios schematic diagram of the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of automated software detection method provided in an embodiment of the present invention;
Fig. 3 is a kind of automated software structure of the detecting device schematic diagram provided in an embodiment of the present invention.
Embodiment
As shown in figure 1, the technical scheme that the embodiment of the present invention is provided go for notebook computer, The automatic detection for the software under testing that desktop computer, tablet personal computer, mobile phone and other terminal devices are run. The technical scheme that the present invention is provided can generate simulator in aforementioned terminals equipment, pass through the simulator Generate the corresponding event to be measured of software under testing, and control software under testing to run the event to be measured, and according to treating To obtain software under testing exception occurs for the real time data generated during the survey running software event to be measured Event (uses anomalous event, electricity to use anomalous event, operation as included memory overflow event, flow Crash event etc.), so that developer has found the problem of software under testing is present in time, and according to specifically asking Topic is handled, and improves software under testing.
Below by drawings and examples, technical scheme is described in further detail.
Fig. 2 is a kind of schematic flow sheet of automated software detection method provided in an embodiment of the present invention, side Method includes:
Step S101, according to logic script corresponding with software under testing is edited in advance, generates event to be measured.
In the embodiment of the present invention, abovementioned steps S101 is implemented can be as follows:First, in advance editing Logic script corresponding with software under testing is parsed, and obtains the operational order operated to software under testing And the operation rules of the operational order;Secondly, thing to be measured is generated according to operational order and operation rules Part, indicates that software under testing is performed according to the operation rules to software under testing corresponding in the event to be measured Operational order, so that operation rules of the software under testing in event to be measured performs corresponding operational order.
In the present embodiment, the function of possessing previously according to software under testing, write with needed for the software under testing Logic script, each function of possessing for software under testing is contained in the logic script and is operated Operational order and perform the operation rules of the operational order.By taking electronic map software as an example, the electronics Map software contain POI search function, check road conditions, dragging electronic map, scaling electronic map, Route planning function, navigation feature, periphery P OI inquiry etc. function, then edit in advance with this electronically It may include to give an order in the corresponding logic script of figure software:Click on " navigation " control, selection navigation pattern (bag Include navigation of driving, public transport navigation, bicycle navigation, walking navigation), route planning page input starting point It is " attached with input terminal, click " amplification " control, click " diminution " control, click " route " control, click Closely " control, click " road conditions " control, download offline map, search POI, click on map interface at random Deng operation.
In the present embodiment, the event that event to be measured can be randomly generated, an event correspondence one to be measured Operational order, or the multiple operational orders of event correspondence to be measured.Operational order can have different kinds Class is divided, and by taking electronic map software as an example, its operational order includes:(screen is any for random click screen Position), click on control, dragging, input word, input voice, screen rotation, page layout switch etc.. Operational order rule can include operational order perform opportunity, perform mode, perform order, Ratio of execution etc..For example:Random click screen accounts for the 70% of operational order, click control and accounts for operational order 10%, page layout switch account for 10% of operational order etc..The execution sequence of operational order is such as:It is random to click on screen Curtain>Page layout switch>Click on control>Page layout switch>Screen rotation>Dragging etc..
Step S102, controls software under testing automatic operating event to be measured.
That is in step S102, operation rules of the control software under testing in event to be measured performs corresponding behaviour Instruct.
Step S103, the real time data that monitoring software under testing is produced in event procedure to be measured is run, and root Determine and record that abnormal event occurs for software under testing according to real time data.
In the embodiment of the present invention, abovementioned steps S101- steps S103 is held for each event to be measured Capable step, i.e., often generate an event to be measured and then control software under testing to run the event to be measured, and according to Real time data determines and records that abnormal event occurs for software under testing;After the completion of be further continued for generation and next treat Survey event, repeats abovementioned steps.
In the embodiment of the present invention, abnormal event occurs for the software under testing determined and recorded according to real time data At least include following one kind:Memory overflow event, flow using anomalous event, electricity using anomalous event, Run crash event etc..
Below by specific embodiment, respectively to how to be determined and recorded according to real time data in foregoing Incident of leakage, flow is deposited to carry out using anomalous event and operation crash event using anomalous event, electricity Detailed description.
Alternatively, abovementioned steps 103, specifically may include step A1 and step A2, the correspondence RAM leakage The record of event:
Software under testing described in step A1, dynamic monitoring application and release in the event procedure to be measured is run The situation of memory block, by user's quantity of the memory block adds one when applying for the memory block, when releasing User's quantity of the memory block is subtracted one when putting the memory block;And,
Step A2, judge the memory block whether pointer-free point to and user's quantity be more than zero, if then It will apply for that operation code and the memory block corresponding to the pointer distributed during the memory block are used as internal memory Incident of leakage is recorded.
In step A2, whether pointer-free is pointed to memory block described in dynamic monitoring, is continued if having pointer sensing Dynamic monitoring;Judge whether be more than zero using user's quantity of the memory block if pointer-free is pointed to, if The operation code and the memory block corresponding to pointer distributed during more than zero by the application memory block As memory overflow logout, do not dealt with if less than or equal to zero.
By taking memory block A as an example, when software under testing application uses memory block A, for memory block A One pointer of distribution points to memory block A, to show that memory block A is applied to use, now needs memory block A's User's quantity adds 1;As the complete releasing memory block A of software under testing, pointer is no longer point to memory block A, with Show that memory block A is released, now need to subtract 1 by memory block A user's quantity;When memory block A use When person's quantity is 0, memory block A is completely released.Obviously, when memory block A pointer-frees correspondence still makes When user's quantity is more than 0, then illustrate that memory block A is not released after software under testing is applied use, Memory overflow occurs for memory block A.
Illustrate and the operation principle and process that obtain memory overflow event are illustrated:
First, illustrate:
Memory block B2 (pointer 1, pointer 2) is represented:Memory block B user's quantity is 2, pointer 1 Memory block B is pointed to pointer 3;
Memory block C1 (pointer 3) is represented:Memory block C user's quantity is 1, and pointer 3 points to internal memory Block C;
Memory block D3 (pointer 1, pointer 2, pointer 3) is represented:Memory block D user's quantity is 3, Pointer 1, pointer 2 and pointer 3 point to memory block D.
Monitor the result of memory block used in software under testing such as the first time:Memory block B2 (pointer 1, refers to Pin 2), memory block C1 (pointer 3), memory block D3 (pointer 1, pointer 2, pointer 3);
(as after 10s), the result of memory block used in software under testing is such as second monitoring:Memory block B2 (pointer 1, pointer 2), memory block C1 (pointer-free), memory block D3 (pointer 1, pointer 2, Pointer 3), memory block C can be seen that by second of monitoring result and occur memory overflow, now will be interior Counterfoil C and apply operation code corresponding to the pointer 3 distributed during memory block C as memory overflow Logout.
Alternatively, abovementioned steps 103, specifically may include step B1 and step B2, and the correspondence flow is used The record of anomalous event:
Step B1, dynamic monitoring simultaneously record software under testing institute during the event to be measured is run The real-time traffic of consumption, the real-time traffic is by the unit time interior flow consumed;And,
Step B2, the real-time traffic is judged whether in the range of preset reference flow, if otherwise by institute The event to be measured for stating real-time traffic, current time and the operation of current time software under testing is used as flow Anomalous event is recorded;If then continuing to judge the real-time traffic whether in the range of preset reference flow.
In the embodiment of the present invention, real-time streams of the dynamic monitoring software under testing during event to be measured is run Amount, if monitor some time t real-time traffic exceed reference flow scope, by time t, when Between t real-time traffic, in the time t events to be measured run as flow use anomalous event to record.Its It is middle determine time t run event to be measured can be obtained by Query System Log software under testing when Between t certain time in the range of the event to be measured run.
The reference flow scope pre-set in event to be measured can refer to according to corresponding operate of the event to be measured Make, the internetwork connection mode (wifi, bluetooth, data traffic etc.) of software under testing place terminal device is obtained Arrive.The reference flow scope can also be set to [0.9a, 1.1a], wherein a is software under testing in operation The average value of the real-time traffic consumed in the event procedure to be measured run;Or a is to set The empirical value put.
Alternatively, abovementioned steps 103, specifically may include step C1 and step C2, and the correspondence electricity is used The record of event:
Step C1, dynamic monitoring simultaneously record software under testing institute during the event to be measured is run The real time electrical quantity of consumption, the real time electrical quantity is by the unit time interior electricity consumed;
Dynamic monitoring can periodically be monitored, for example every 10s monitorings once.This monitoring is obtained The difference of power consumption that is obtained with last monitoring of power consumption be used as the consumption of the software under testing in a cycle Electricity, software under testing is obtained according to the duration of the power consumption of software under testing in a cycle and a cycle Real time electrical quantity.
Step C2, the real time electrical quantity is judged whether in the range of preset reference electric quantity, if otherwise by institute State real time electrical quantity, current time, current time software under testing operation event to be measured used as electricity it is different Normal logout.
The reference electric quantity scope pre-set in event to be measured can refer to according to corresponding operate of the event to be measured So that arriving.The reference flow scope can also be set to [0.9b, 1.1b], wherein b is that software under testing exists The average value of the real time electrical quantity consumed in the event procedure to be measured run;Or b is pre- If the empirical value set.
Alternatively, abovementioned steps 103, specifically may include step D1 and step D2, the correspondence operation collapse The record of event:
Step D1, judge whether to have recorded the software under testing in system journal and running the event to be measured During occur collapse and the crash event of operation code collapsed, the execution step D2 if having, If the execution step D1 without if;
Step D2, using the crash event be used as operation crash event record.
The system of terminal device can generate system journal in real time in the running of software, therefore foregoing treat Software is surveyed in event procedure to be measured is run if collapse will necessarily be generated if being collapsed in system journal Event (such as includes time, the operation code collapsed).Crash event refers mainly to software under testing hair It is raw it is unresponsive, out of service, automatically exit from etc. not meeting the situation that software under testing is normally run.
Preferably, during software under testing runs event to be measured, according to the real time electrical quantity of dynamic monitoring, Generate the change curve of the real time electrical quantity changed over time;And/or, run thing to be measured in software under testing During part, according to the real-time traffic of dynamic monitoring, the change of the real-time traffic changed over time is generated Change curve map;So that those skilled in the art more directly perceived, quickly can know software under testing in operation The service condition of electricity and/or flow in event procedure to be measured.
To sum up, abovementioned steps 103 can include following at least one set of step:1 (step A1- step A2) of group, 2 (step B1- step B2) of group, 3 (step C1- step C2) of group, 4 (step D1- step D2) of group.
Fig. 3 is a kind of automated software structure of the detecting device schematic diagram provided in an embodiment of the present invention, such as Fig. 3 Shown, the device that the embodiment of the present invention is provided includes:
Event generation module 11 to be measured, the logic script corresponding with software under testing edited in advance for basis, Generate event to be measured;
Control module 12, for controlling event to be measured described in the software under testing automatic operating;
Monitoring modular 13, is produced for monitoring the software under testing in the event procedure to be measured is run Real time data, and determine and record that abnormal event occurs for the software under testing according to the real time data.
Preferably, the event generation module 11 to be measured, specifically for:To edit in advance with it is to be measured soft The corresponding logic script of part is parsed, obtain the operational order that is operated to the software under testing and The operation rules of the operational order;Thing to be measured is generated according to the operational order and preset operation rules Indicate that software under testing performs phase according to the operation rules to the software under testing in part, the event to be measured The operational order answered.
Preferably, in one embodiment, the monitoring modular 13 includes:
Internal memory monitoring unit, for software under testing described in dynamic monitoring in the event procedure to be measured is run Application and the situation of releasing memory block, when applying for the memory block by user's quantity of the memory block Plus one, user's quantity of the memory block is subtracted one when discharging the memory block;
Memory overflow event recording unit, for judging whether pointer-free is pointed to and user the memory block Quantity is more than zero, if operation code when will then apply for the memory block corresponding to the pointer that distributes and The memory block is used as memory overflow logout.
Preferably, in one embodiment, the monitoring modular 13 includes:
Flow monitoring unit, for dynamic monitoring and records the software under testing and is running the event to be measured During the real-time traffic that is consumed, the real-time traffic is by the flow that is consumed in the unit time;
Whether flow uses anomalous event recording unit, for judging the real-time traffic in preset reference In range of flow, if it is not, then the real-time traffic, current time and current time software under testing are transported Capable event to be measured uses anomalous event to record as flow.
Preferably, in further embodiment, the monitoring modular 13 includes:
Electric quantity monitoring unit, for dynamic monitoring and records the software under testing and is running the event to be measured During the real time electrical quantity that is consumed, the real time electrical quantity is by the electricity that is consumed in the unit time;
Whether electricity uses anomalous event recording unit, for judging the real time electrical quantity in preset reference In the range of electricity, if not by treating that the real time electrical quantity, current time, current time software under testing are run Survey event uses anomalous event to record as electricity.
In last embodiment, monitoring modular 13 includes:
Crash event monitoring unit, for judging whether that record has the software under testing described to be measured in operation The crash event of collapse and the operation code collapsed occurs during event, fortune is triggered if having Row crash event recording unit;
Crash event recording unit is run, for regarding the crash event as operation crash event record.
It should be noted that abnormal event analysis can occur according to the software under testing of record for developer The problems of software under testing, is handled accordingly for the problem.As exception occurs for software under testing Event be memory overflow event, then the operation code recorded in the memory overflow event is modified and It is perfect;It is crash event, the then operation to being recorded in crash event as abnormal event occurs for software under testing Code is modified and perfect;It is that flow uses anomalous event as abnormal event occurs for software under testing, then Detected according to the flow using the corresponding code of event to be measured recorded in anomalous event, if detection has Problem is then modified to the code;It is that electricity uses anomalous event as abnormal event occurs for software under testing, Then detected according to the electricity using the corresponding code of event to be measured recorded in anomalous event, if detection It is problematic, the code is modified.
To sum up, detection module 13 at least includes following set of unit in the present embodiment:(internal memory is monitored group 1 Unit and memory overflow event recording unit), group 2 (using anomalous event remembered by flow monitoring unit and flow Record unit), group 3 (electric quantity monitoring unit and electricity use anomalous event recording unit), (collapse of group 4 Event monitoring unit and operation crash event recording unit).
Obviously, automated software detection method provided in an embodiment of the present invention is applied to various operating systems Terminal device, such as mac, Android, iOS, Linux, Windows.
Professional should further appreciate that, be described with reference to the embodiments described herein The unit and algorithm steps of each example, can be come with electronic hardware, computer software or the combination of the two Realize, in order to clearly demonstrate the interchangeability of hardware and software, in the above description according to function Generally describe the composition and step of each example.These functions are come with hardware or software mode actually Perform, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can be to every Described function is realized in individual specific application using distinct methods, but it is this realize it is not considered that It is beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, can use hardware, processing The software module that device is performed, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, Any other form well known in register, hard disk, moveable magnetic disc, CD-ROM or technical field Storage medium in.
Above-described embodiment, is carried out to the purpose of the present invention, technical scheme and beneficial effect Be further described, should be understood that the embodiment that the foregoing is only of the invention and , the protection domain being not intended to limit the present invention, within the spirit and principles of the invention, is done Any modification, equivalent substitution and improvements etc., should be included in the scope of the protection.

Claims (12)

1. a kind of automated software detection method, it is characterised in that methods described includes:
According to logic script corresponding with software under testing is edited in advance, event to be measured is generated;
Control event to be measured described in the software under testing automatic operating;
Monitor the real time data that the software under testing is produced in the event procedure to be measured is run, and according to The real time data determines and records that abnormal event occurs for the software under testing.
2. according to the method described in claim 1, it is characterised in that the monitoring software under testing is in operation The real time data produced in the event procedure to be measured, and according to being determined and recorded the real time data Abnormal event occurs for software under testing, specifically includes:
Software under testing described in dynamic monitoring application and releasing memory block in the event procedure to be measured is run Situation, adds one when applying for the memory block by user's quantity of the memory block, described interior when discharging User's quantity of the memory block is subtracted one during counterfoil;And
Judge the memory block whether pointer-free point to and user's quantity be more than zero, if will then apply for institute The operation code and the memory block corresponding to the pointer distributed during memory block are stated as memory overflow event Record.
3. according to the method described in claim 1, it is characterised in that the monitoring software under testing exists The real time data produced in the event procedure to be measured is run, and is determined and recorded according to the real time data Abnormal event occurs for the software under testing, specifically includes:
Dynamic monitoring simultaneously records the reality that the software under testing is consumed during the event to be measured is run Shi Liuliang, the real-time traffic is by the unit time interior flow consumed;And,
The real-time traffic is judged whether in the range of preset reference flow, if otherwise by the real-time streams The event to be measured of amount, current time and the operation of current time software under testing uses anomalous event as flow Record.
4. according to the method described in claim 1, it is characterised in that the monitoring software under testing is in operation The real time data produced in the event procedure to be measured, and according to being determined and recorded the real time data Abnormal event occurs for software under testing, specifically includes:
Dynamic monitoring simultaneously records the reality that the software under testing is consumed during the event to be measured is run When electricity, the real time electrical quantity is by the electricity that consumes in the unit time;And
The real time electrical quantity is judged whether in the range of preset reference electric quantity, if otherwise by the real-time electricity Amount, current time, the event to be measured of current time software under testing operation use anomalous event to remember as electricity Record.
5. according to the method described in claim 1, it is characterised in that the monitoring software under testing is in operation The real time data produced in the event procedure to be measured, and according to being determined and recorded the real time data Abnormal event occurs for software under testing, specifically includes:
Judge whether to have recorded the software under testing in system journal during the event to be measured is run Occurs the crash event of collapse and the operation code collapsed, if so, then making the crash event For operation crash event record.
6. the method as described in claim any one of 1-5, it is characterised in that the basis is edited in advance Logic script corresponding with software under testing, generate event to be measured, specifically include:
Parse, obtained to described to be measured soft to editing logic script corresponding with software under testing in advance Operational order and the operation rules of the operational order that part is operated;
Generated according to the operational order and preset operation rules in event to be measured, the event to be measured Indicate that software under testing performs corresponding operational order according to the operation rules to the software under testing.
7. a kind of automated software detection means, it is characterised in that described device includes:
Event generation module to be measured, the logic script corresponding with software under testing edited in advance for basis, Generate event to be measured;
Control module, for controlling event to be measured described in the software under testing automatic operating;
Monitoring modular, for monitoring the reality that the software under testing is produced in the event procedure to be measured is run When data, and determine and record that abnormal event occurs for the software under testing according to the real time data.
8. device according to claim 7, it is characterised in that the monitoring modular includes:
Internal memory monitoring unit, for software under testing described in dynamic monitoring in the event procedure to be measured is run Application and the situation of releasing memory block, when applying for the memory block by user's quantity of the memory block Plus one, user's quantity of the memory block is subtracted one when discharging the memory block;
Memory overflow event recording unit, for judging whether pointer-free is pointed to and user the memory block Quantity is more than zero, if operation code when will then apply for the memory block corresponding to the pointer that distributes and The memory block is used as memory overflow logout.
9. device according to claim 7, it is characterised in that the monitoring modular includes:
Flow monitoring unit, for dynamic monitoring and records the software under testing and is running the event to be measured During the real-time traffic that is consumed, the real-time traffic is by the flow that is consumed in the unit time;
Whether flow uses anomalous event recording unit, for judging the real-time traffic in preset reference In range of flow, if it is not, then the real-time traffic, current time and current time software under testing are transported Capable event to be measured uses anomalous event to record as flow.
10. device according to claim 7, it is characterised in that the monitoring modular includes:
Electric quantity monitoring unit, for dynamic monitoring and records the software under testing and is running the event to be measured During the real time electrical quantity that is consumed, the real time electrical quantity is by the electricity that is consumed in the unit time;
Whether electricity uses anomalous event recording unit, for judging the real time electrical quantity in preset reference In the range of electricity, if otherwise the real time electrical quantity, current time, current time software under testing are run Event to be measured uses anomalous event to record as electricity.
11. device according to claim 7, it is characterised in that the monitoring modular includes:
Crash event monitoring unit, for judging whether that record has the software under testing described to be measured in operation The crash event of collapse and the operation code collapsed occurs during event, fortune is triggered if having Row crash event recording unit;
Crash event recording unit is run, for regarding the crash event as operation crash event record.
12. the device according to claim any one of 7-11, it is characterised in that the event to be measured Generation module, specifically for:
Parse, obtained to described to be measured soft to editing logic script corresponding with software under testing in advance Operational order and the operation rules of the operational order that part is operated;
Generated according to the operational order and preset operation rules in event to be measured, the event to be measured Indicate that software under testing performs corresponding operational order according to the operation rules to the software under testing.
CN201610214549.XA 2016-04-07 2016-04-07 Automatic software detection method and device Active CN107273283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610214549.XA CN107273283B (en) 2016-04-07 2016-04-07 Automatic software detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610214549.XA CN107273283B (en) 2016-04-07 2016-04-07 Automatic software detection method and device

Publications (2)

Publication Number Publication Date
CN107273283A true CN107273283A (en) 2017-10-20
CN107273283B CN107273283B (en) 2020-10-09

Family

ID=60052322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610214549.XA Active CN107273283B (en) 2016-04-07 2016-04-07 Automatic software detection method and device

Country Status (1)

Country Link
CN (1) CN107273283B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459938A (en) * 2017-12-26 2018-08-28 海南智媒云图科技股份有限公司 A kind of method and device that PHP code data monitoring is collected
CN108551404A (en) * 2018-04-20 2018-09-18 北京百度网讯科技有限公司 Method, apparatus, storage medium and the terminal device of client-side information analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240127A1 (en) * 2005-12-08 2007-10-11 Olivier Roques Computer method and system for automatically creating tests for checking software
CN101887392A (en) * 2010-07-06 2010-11-17 中兴通讯股份有限公司 Method and device for testing software system operation stability
CN103530209A (en) * 2013-09-17 2014-01-22 福建升腾资讯有限公司 Automated testing method for code keyboard
CN104270630A (en) * 2014-09-05 2015-01-07 深圳创维数字技术有限公司 Terminal testing method and terminal
CN104809054A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Method and system for realizing program testing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240127A1 (en) * 2005-12-08 2007-10-11 Olivier Roques Computer method and system for automatically creating tests for checking software
CN101887392A (en) * 2010-07-06 2010-11-17 中兴通讯股份有限公司 Method and device for testing software system operation stability
CN103530209A (en) * 2013-09-17 2014-01-22 福建升腾资讯有限公司 Automated testing method for code keyboard
CN104809054A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Method and system for realizing program testing
CN104270630A (en) * 2014-09-05 2015-01-07 深圳创维数字技术有限公司 Terminal testing method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁红伟: "软件完整性自动检测系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459938A (en) * 2017-12-26 2018-08-28 海南智媒云图科技股份有限公司 A kind of method and device that PHP code data monitoring is collected
CN108551404A (en) * 2018-04-20 2018-09-18 北京百度网讯科技有限公司 Method, apparatus, storage medium and the terminal device of client-side information analysis
CN108551404B (en) * 2018-04-20 2019-10-01 北京百度网讯科技有限公司 Method, apparatus, storage medium and the terminal device of client-side information analysis

Also Published As

Publication number Publication date
CN107273283B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
US11354183B2 (en) Memory evaluation method and apparatus
CN109710376A (en) The dynamic dispatching method and device of container cluster management system
JP6870312B2 (en) Measure introduction effect prediction device, measure introduction effect prediction program and measure introduction effect prediction method
CN103473115A (en) Virtual machine placing method and device
US11403202B2 (en) Power monitoring system for virtual platform simulation
CN109710474B (en) Hard disk fault detection method and device, terminal and readable storage medium
CN110704097A (en) Data collection method and device, electronic equipment and storage medium
CN104866296A (en) Data processing method and device
CN107843844A (en) A kind of method, terminal and computer-readable recording medium for calibrating charge value
CN110096430A (en) Third party's SDK entry test method, apparatus, terminal and storage medium
CN107273283A (en) A kind of automated software detection method and device
CN105487971A (en) Method and system for recording and reproducing operation steps in software testing
US10680908B2 (en) User interface with expected response times of commands
CN110018932B (en) Method and device for monitoring container magnetic disk
CN108491213A (en) Software continuous integration method, software continuous integration device and electronic equipment
CN109905261A (en) Method for diagnosing faults and device
CN107562520A (en) The method and apparatus of the internal memory of dilatation virtual machine
CN110688173A (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN110399151A (en) A kind of firmware update, device, equipment and medium
CN109086077A (en) A kind of operation method and device of application program
EP4152715A1 (en) Method and apparatus for determining resource configuration of cloud service system
US20230004824A1 (en) Method, Apparatus, and Device for Updating Hard Disk Prediction Model, and Medium
CN110855484B (en) Method, system, electronic device and storage medium for automatically detecting traffic change
CN111076373B (en) Display method, display device, terminal and readable storage medium
US20220035691A1 (en) Techniques for utilizing disruptions to enterprise systems

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200422

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: Daheng Technology Building No. three Beijing 100080 Haidian District Suzhou Street 16 layer 2.

Applicant before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant