CN106598844A - Mobile terminal and method for calculating code defect rate of mobile terminal - Google Patents

Mobile terminal and method for calculating code defect rate of mobile terminal Download PDF

Info

Publication number
CN106598844A
CN106598844A CN201611027605.5A CN201611027605A CN106598844A CN 106598844 A CN106598844 A CN 106598844A CN 201611027605 A CN201611027605 A CN 201611027605A CN 106598844 A CN106598844 A CN 106598844A
Authority
CN
China
Prior art keywords
code
project
calculation
leak
line number
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
CN201611027605.5A
Other languages
Chinese (zh)
Other versions
CN106598844B (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.)
Nanjing Boya blockchain Research Institute Co.,Ltd.
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611027605.5A priority Critical patent/CN106598844B/en
Publication of CN106598844A publication Critical patent/CN106598844A/en
Application granted granted Critical
Publication of CN106598844B publication Critical patent/CN106598844B/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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The invention discloses a mobile terminal. The mobile terminal comprises a first calculating module used for obtaining a total number of loopholes obtained by testing a current code, calculating a difference value of line numbers of an item shipping version code and an initial item base line version code, and calculating a minimum code defect rate according to the number of loopholes and the difference value of line numbers; a second calculating module used for obtaining the number of loopholes of an item group in the same period of the same platform and the number of loopholes of an item of a software platform in the same period and the same version, obtaining the difference value of line numbers of a latest item base line shipping version code and an original code of the same base line of the item shipping version, and calculating a maximum code defect rate according to the number of loopholes and the difference value of line numbers; and a third calculating module used for calculating a code defect rate according to the minimum code defect rate and the maximum code defect rate. The invention further discloses a method for calculating the code defect rate based on the mobile terminal. By adoption of the method disclosed by the invention, the accuracy of the code defect rate can be improved.

Description

Mobile terminal and the computational methods based on mobile terminal aacode defect rate
Technical field
The present invention relates to calculation code ratio of defects field, more particularly to a kind of mobile terminal and lacked based on mobile terminal code The computational methods of sunken rate.
Background technology
With science and technology it is growing, mobile terminal have become user use temperature highest electronic equipment, move The function of possessing in dynamic terminal is more and more, and performance is also stronger and stronger.But thing followed problem is, in mobile terminal The source code line number that software is included is also more and more, and the bar number of the source code of some of them software has reached ten million bar.One Individual mobile terminal software exploration project, from startup project to smoothly completing, generally requires up to a hundred software engineers.Cannot be accurate Ground calculates the ratio of defects of item code.
The content of the invention
Present invention is primarily targeted at proposing a kind of mobile terminal and the calculating side based on mobile terminal aacode defect rate Method, it is intended to more accurately calculate the ratio of defects of item code.
For achieving the above object, the present invention provides a kind of mobile terminal, and the mobile terminal includes:
First computing module, for obtaining the leak sum that test current code is obtained, calculates project delivery edition code With the line number difference of project initial baseline edition code, and according to the leak number and line number mathematic interpolation code minimum defect Rate;
Second computing module is with the leak number of the synperiodic project cluster of platform and flat with version software with the cycle for obtaining The leak number of platform project, obtains the row of the newest baseline delivery edition code of project baseline source code identical with project delivery version Number difference, and according to the leak number and line number mathematic interpolation code greatest drawback rate;
3rd computing module, for according to code minimum ratio of defects and code greatest drawback rate calculation code defect Rate.
Alternatively, first computing module includes:
First multiplying unit, the leak sum for test current code to be obtained is multiplied with preset value, obtains first and counts Calculate result;
First is divided by unit, for by first result of calculation and project delivery edition code and project initial baseline version The line number difference of this code is divided by, and obtains code minimum ratio of defects.
Alternatively, second computing module includes:
First addition unit, for by the leak number and same version software of same cycle of the synperiodic project cluster of the same platform The leak number of platform project is added, and obtains the second result of calculation;
Second multiplying unit, for second result of calculation to be multiplied with preset value, obtains the 3rd result of calculation;
Second is divided by unit, for by the newest baseline delivery edition code of the 3rd result of calculation and the project and item The line number difference of the identical baseline source code of mesh delivery version is divided by, and obtains code greatest drawback rate.
Alternatively, the 3rd computing module includes:
Third phase takes advantage of unit, for by code minimum ratio of defects and default weighted average calculation fac-tor, obtaining 4th result of calculation;
4th multiplying unit, for subtracting each other acquisition difference with the default weighted average calculation factor by 1, and by the difference Value is multiplied with code greatest drawback rate, obtains the 5th result of calculation;
Second addition unit, for the 4th result of calculation to be added with the 5th result of calculation, obtains code and lacks Sunken rate.
Alternatively, the mobile terminal also includes:
4th computing module, the instruction for being triggered according to user calculates current code line number;
Setup module, for arranging corresponding preset value according to the current code line number.
Additionally, for achieving the above object, the present invention also provides a kind of computational methods based on mobile terminal aacode defect rate, The method comprising the steps of:
The leak sum that test current code is obtained is obtained, project delivery edition code and project initial baseline version is calculated The line number difference of code, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;
Obtain with the leak number of the synperiodic project cluster of platform and with the cycle with the leak number of version software platform project, obtain The line number difference of the newest baseline delivery edition code of project baseline source code identical with project delivery version is taken, and according to described Leak number and line number mathematic interpolation code greatest drawback rate;
According to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects.
Alternatively, it is described to obtain the leak sum that test current code is obtained, calculate project delivery edition code and project The line number difference of initial baseline edition code, and according to leak sum and bag the step of line number mathematic interpolation minimum ratio of defects Include:
The leak sum that test current code is obtained is multiplied with preset value, obtains the first result of calculation;
The line number difference of edition code and project initial baseline edition code that first result of calculation and project are delivered It is divided by, obtains code minimum ratio of defects.
Alternatively, it is described to obtain with the leak number of the synperiodic project cluster of platform and with the cycle with version software platform project Leak number, the line number for obtaining the baseline source code identical with project delivery version of project newest baseline delivery edition code is poor Value, and according to the leak number with line number mathematic interpolation greatest drawback rate the step of include:
By the leak number of the synperiodic project cluster of the same platform and same cycle with version software platform project leak number It is added, obtains the second result of calculation;
Second result of calculation is multiplied with preset value, the 3rd result of calculation is obtained;
By the newest baseline delivery edition code of the 3rd result of calculation and the project and project delivery version same base The line number difference of line source code is divided by, and obtains code greatest drawback rate.
Alternatively, it is described according to the step of code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects Including:
By code minimum ratio of defects and default weighted average calculation fac-tor, the 4th result of calculation is obtained;
Subtract each other acquisition difference with the default weighted average calculation factor by 1, and by the difference and code greatest drawback Rate is multiplied, and obtains the 5th result of calculation;
4th result of calculation is added with the 5th result of calculation, aacode defect rate is obtained.
Alternatively, methods described also includes:
Current code line number is calculated according to the instruction of user's triggering;
Corresponding preset value is arranged according to the current code line number.
The leak sum that the present invention is obtained by acquisition test current code, at the beginning of calculating project delivery edition code and project The line number difference of primordium line edition code, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;Obtain same The leak number of the synperiodic project cluster of platform and with the cycle with the leak number of version software platform project, obtain the newest baseline of project The line number difference of delivery edition code baseline source code identical with project delivery version, and it is poor according to the leak number and line number Value calculation code greatest drawback rate;According to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects.It is logical Aforesaid way is crossed, first the leak sum that test current code is obtained is obtained according to the acquisition instruction of user's triggering, then obtain item Mesh delivery edition code and project initial baseline edition code, and it is initial with project to calculate the project delivery edition code respectively The line number of baseline version code, then calculates the project delivery edition code poor with the line number of project initial baseline edition code Value, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;Then obtain and the same platform of the current code The leak number of synperiodic project cluster and with the current code with the cycle with version software platform project leak number, then will The leak number of the synperiodic project cluster of the same platform is added with the same cycle with the leak number of version software platform project, obtains Obtain the sum of leak number, then the row for obtaining the baseline source code identical with project delivery version of the newest baseline delivery edition code of project Number difference, and according to the leak number and line number mathematic interpolation code greatest drawback rate;According to the code minimum ratio of defects and Code greatest drawback rate calculation code ratio of defects.The aacode defect rate higher so as to obtain accuracy, lifts mobile terminal software Total quality, and then lift Consumer's Experience and development efficiency, the core competitiveness of improving product.
Description of the drawings
Fig. 1 is a kind of optional hardware architecture diagram of the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the radio communication device schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the module diagram of mobile terminal first embodiment of the present invention;
Fig. 4 is the refinement module schematic diagram of the first computing module in Fig. 3;
Fig. 5 is the refinement module schematic diagram of the second computing module in Fig. 3;
Fig. 6 is the refinement module schematic diagram of the 3rd computing module in Fig. 3;
Fig. 7 is the module diagram of mobile terminal second embodiment of the present invention;
Fig. 8 is schematic flow sheet of the present invention based on the computational methods first embodiment of mobile terminal aacode defect rate;
Fig. 9 is the leak sum that acquisition test current code is obtained in Fig. 8, at the beginning of calculating project delivery edition code and project The line number difference of primordium line edition code, and according to the step of the leak number and line number mathematic interpolation code minimum ratio of defects Refinement schematic flow sheet;
Figure 10 is to obtain the leak number of the synperiodic project cluster of same platform and with the cycle with version software platform project in Fig. 8 Leak number, the line number for obtaining the baseline source code identical with project delivery version of project newest baseline delivery edition code is poor Value, and the refinement schematic flow sheet according to the step of the leak number and line number mathematic interpolation code greatest drawback rate;
Figure 11 is according to code minimum ratio of defects and the step of code greatest drawback rate calculation code ratio of defects in Fig. 8 Refinement schematic flow sheet;
Figure 12 is schematic flow sheet of the present invention based on the computational methods second embodiment of mobile terminal aacode defect rate.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for illustrating Part.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and radio communication device Or the radio communication between network.For example, wireless communication unit can include mobile communication module 112 and wireless Internet mould At least one of block 113.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, and (for example, mobile terminal 1 00 opens or closes shape State), the presence or absence of contact (that is, touch input), the mobile terminal of the position of mobile terminal 1 00, user for mobile terminal 1 00 100 orientation, the acceleration of mobile terminal 1 00 or by speed is mobile and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect whether power subsystem 190 provides electric power and be It is no to couple with external device (ED).Sensing unit 140 can include that proximity transducer 140 will be carried out with reference to touch screen below to this Description.
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another in the form of layer, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touch Input pressure and touch input position and touch input area.
Memorizer 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke With the data (for example, telephone directory, message, still image, video etc.) for temporarily storing own Jing outputs or will export.And And, memorizer 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch screen and audio signal Data.
Memorizer 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memorizer (for example, SD or DX memorizeies etc.), random access storage device (RAM), static random-access storage Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memorizer with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or is so structured that and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various embodiments described herein can be with using such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.For hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein Implementing, in some cases, such embodiment can be implemented at least one in electronic unit in controller 180. For software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memorizer 160 and be performed by controller 180.
So far, own Jing describes mobile terminal according to its function.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any Line and radio communication device and satellite-based communicator are operating.
The communicator that mobile terminal wherein of the invention is operable to is described referring now to Fig. 2.
Such communicator can use different air interface and/or physical layer.For example, used by communicator Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress Put (UMTS) (especially, Long Term Evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under The description in face is related to cdma communication device, but such teaching is equally applicable to other types of device.
With reference to Fig. 2, cdma wireless communication device can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If any one that back haul link can be in the interface that Ganji knows is constructing, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that as shown in Figure 2 device can include multiple BSC2750.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion that line is covered is radially away from BS270.Or, each subregion can by for diversity reception two or more Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in device 100.As shown in Figure 1 broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global pick device (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, but it is understood that, it is possible to use any number of satellite is obtained Useful location information.As shown in Figure 1 location information module 115 is generally configured to coordinate to be thought with satellite 300 The location information wanted.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use mobile terminal can be tracked Other technologies of position.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of radio communication device, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.BSC275 is also by the number for receiving According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration, the structure of communicator, apparatus of the present invention and method each enforcement are proposed Example.
The present invention provides a kind of mobile terminal.
With reference to Fig. 3, Fig. 3 is the module diagram of mobile terminal first embodiment of the present invention.
In one embodiment, the mobile terminal includes:
First computing module 100, for obtaining the leak sum that test current code is obtained, calculates project delivery version generation Code and the line number difference of project initial baseline edition code, and according to the leak number and the minimum defect of line number mathematic interpolation code Rate.
In the present embodiment, first computing module 100 can be the controller 180 in Fig. 1.To ensure energy of the present invention Enough normal enforcement, it is necessary first to start code ratio of defects software for calculation, then obtains the leak sum that test current code is obtained.Institute State leak sum be in the Current software development process, the leak found when testing the Current software each time it is total With.Such as in the Current software development process, the Current software is tested 3 times, then the leak sum is 3 surveys The summation of the leak number found in examination.Due to needing to obtain software vulnerability number in software development, therefore software entered every time During row test, the leak number to finding during test is needed to preserve.Then project delivery edition code is obtained, and calculates described The line number of project delivery edition code, then project initial baseline edition code is obtained, calculate the project initial baseline version generation The line number of code, the line number of project delivery edition code is subtracted each other with the line number of the project initial baseline edition code, is obtained Obtain line number difference.Further according to the total minimum ratio of defects with the line number mathematic interpolation code of the leak.Concrete calculation is, Leak sum is multiplied with preset value, the first result of calculation is obtained;Then first result of calculation is poor with the line number Value is divided by, and obtains code minimum ratio of defects.The line number of current code is corresponding described in the preset value, such as described current code Line number be 1000 when, then the preset value be 1000.
Second computing module 200, for obtaining with the leak number of the synperiodic project cluster of platform and soft with version with the cycle The leak number of part platform project, obtains the baseline source code identical with project delivery version of the newest baseline delivery edition code of project Line number difference, and according to the leak number and line number mathematic interpolation code greatest drawback rate.
In the present embodiment, first user's triggering obtains instruction, and mobile terminal receives the acquisition instruction, and according to described Obtain and instruct the leak number obtained with the current code with the synperiodic project cluster of platform, then obtain same with the current code Cycle with version software platform project leak number.Then user triggers computations, and mobile terminal receives the computations, And the leak number of the synperiodic project cluster of the same platform is calculated with same cycle same version software according to the computations The sum of the leak number of platform project.The leak number of the synperiodic project cluster of the same platform is flat with version software with the same cycle Platform project leak number and for the second result of calculation.User triggers again acquisition instruction, and mobile terminal obtains instruction according to described The newest baseline delivery edition code of acquisition project, then the identical baseline source code of project delivery version is obtained, then according to user It is original that the computations of triggering calculates respectively the newest baseline delivery edition code of project baseline identical with project delivery version The line number of code is then original by the line number of the newest baseline delivery edition code of project baseline identical with project delivery version The line number of code is subtracted each other, and obtains the baseline source code identical with project delivery version of the newest baseline delivery edition code of the project Line number difference.Further according to second result of calculation and the line number mathematic interpolation code greatest drawback rate.Concrete calculating side Formula is, by the leak number and be multiplied with preset value, obtain the 3rd result of calculation;Then by the 3rd result of calculation and institute State line number difference to be divided by, obtain code greatest drawback rate.
3rd computing module 300, for being lacked according to code minimum ratio of defects and code greatest drawback rate calculation code Sunken rate.
After code minimum ratio of defects and code greatest drawback rate is obtained, according to code minimum ratio of defects and Code greatest drawback rate can calculation code ratio of defects.Specifically, by code minimum ratio of defects and default weighted average meter Fac-tor is calculated, the 4th result of calculation is obtained;Subtract each other acquisition difference with the default weighted average calculation factor by 1, and by institute State difference to be multiplied with code greatest drawback rate, obtain the 5th result of calculation;4th result of calculation is calculated with the described 5th Results added, obtains aacode defect rate.
The present embodiment calculates project delivery edition code and project by obtaining the leak sum that test current code is obtained The line number difference of initial baseline edition code, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;Obtain With the leak number of the synperiodic project cluster of platform and with the cycle with the leak number of version software platform project, the newest base of project is obtained The line number difference of line delivery edition code baseline source code identical with project delivery version, and according to the leak number and line number Mathematic interpolation code greatest drawback rate;According to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects. By the way, first the leak sum that test current code is obtained is obtained according to the acquisition instruction of user's triggering, then is obtained Project delivery edition code and project initial baseline edition code, and at the beginning of calculating the project delivery edition code and project respectively The line number of primordium line edition code, then calculates the line number of the project delivery edition code and project initial baseline edition code Difference, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;Then obtain with the current code with flat The leak number of the synperiodic project cluster of platform and with the current code with the cycle with version software platform project leak number, then The leak number of the synperiodic project cluster of the same platform is added with the same cycle with the leak number of version software platform project, The sum of leak number is obtained, then obtains the baseline source code identical with project delivery version of the newest baseline delivery edition code of project Line number difference, and according to the leak number and line number mathematic interpolation code greatest drawback rate;According to code minimum ratio of defects With code greatest drawback rate calculation code ratio of defects.The aacode defect rate higher so as to obtain accuracy, lifts mobile terminal soft The total quality of part, and then lift Consumer's Experience and development efficiency, the core competitiveness of improving product.
Further, with reference to Fig. 4, Fig. 4 is the refinement module schematic diagram of the first computing module in Fig. 3.
Based on mobile terminal first embodiment of the present invention, first computing module 100 can include:
First multiplying unit 110, the leak sum for test current code to be obtained is multiplied with preset value, obtains first Result of calculation;
First is divided by unit 120, for by the first primordium of first result of calculation and project delivery edition code and project The line number difference of line edition code is divided by, and obtains code minimum ratio of defects.
In the present embodiment, the leak sum that test current code is obtained is obtained first.Specifically, can be from software defect The leak sum is obtained in vulnerability database.Due in software development process, from startup project to smoothly completing, generally requiring Hundred software engineers.Therefore need to set up the defect vulnerability database of a Current software, it is soft when testing software every time Part engineer is required for the leak number to finding during test and defect problem to upload to the defect vulnerability database, and is preserved. So that the software engineer of later stage research and development improves.The leak sum is in the Current software development process, each time The summation of the leak found when testing the Current software.Such as in the Current software development process, to described current Software test 3 times, the then summation of leak number of the leak sum to find in 3 tests.Then by leak sum Be multiplied with preset value, obtain the first result of calculation, the line number of current code is corresponding described in the preset value, such as it is described current When the line number of code is 1000, then the preset value is 1000.
Then project delivery edition code is obtained, and calculates the line number of the project delivery edition code.The project is sent out Goods version is the corresponding business software version of software corresponding with current code.Project initial baseline edition code is obtained again, is counted Calculate the line number of the project initial baseline edition code.The project initial baseline version is one of Current software most original steady Determine version, it is the basis of further exploitation.So, after the project initial baseline is formed, need to notify related software work Journey Shi Suoshu project initial baseline has been formed, and the project initial baseline is uploaded to into stationary storage position.Then by institute The line number for stating project delivery edition code is subtracted each other with the line number of the project initial baseline edition code, obtains line number difference.Again According to first result of calculation and line number mathematic interpolation code minimum ratio of defects.Concrete calculation is, by described the One result of calculation is divided by with the line number difference, obtains code minimum ratio of defects.
Further, with reference to Fig. 5, Fig. 5 is the refinement module schematic diagram of the second computing module in Fig. 3.
Based on mobile terminal first embodiment of the present invention, second computing module 200 can include:
First addition unit 210, for by the leak number and same version of same cycle of the synperiodic project cluster of the same platform The leak number of software platform project is added, and obtains the second result of calculation;
Second multiplying unit 220, for second result of calculation to be multiplied with preset value, obtains the 3rd result of calculation;
Second is divided by unit 230, for the newest baseline of the 3rd result of calculation and the project to be delivered edition code The line number difference of baseline source code identical with project delivery version is divided by, and obtains code greatest drawback rate.
In the present embodiment, after the leak number with the current code with the synperiodic project cluster of platform is obtained, then Obtain with the current code with the cycle with version software platform project leak number.The synperiodic project cluster of the same platform is Software corresponding with current code in identical platform and same period research software project.Then user triggers computations, Mobile terminal receives the computations, and calculates the leak of the synperiodic project cluster of the same platform according to the computations Number and the same cycle with the leak number of version software platform project and.The leak number of the synperiodic project cluster of the same platform With the same cycle with the leak number of version software platform project and for the second result of calculation.Second result of calculation is pre- If value is multiplied, the 3rd result of calculation is obtained.
User triggers again acquisition instruction, and mobile terminal is delivered version generation according to the newest baseline of instruction acquisition project that obtains Code, then the identical baseline source code of project delivery version is obtained, the baseline is a stable release of software or source code, it It is the basis of further exploitation.So, after the baseline is formed, need to notify the shape of baseline described in related software engineer Into, and the baseline is uploaded to into stationary storage position, and in order to ensure the synchronization of software engineer's development, it is fixed to need Phase sets up baseline.Change each time to the code after baseline is set up will all be recorded as a difference, under foundation One baseline.Therefore the newest baseline delivery version be current code correspondence software it is corresponding it is newest set up baseline, and record The business software version of newest modification record.The project delivers the identical baseline source code of version for current code correspondence software The corresponding newest business software version source code for setting up baseline.
Then the newest baseline delivery edition code of the project and project are calculated respectively according to the computations of user's triggering The line number of the identical baseline source code of delivery version, then by the line number and project of the newest baseline delivery edition code of the project The line number of the identical baseline source code of delivery version is subtracted each other, and is obtained the newest baseline delivery edition code of the project and is delivered with project The line number difference of the identical baseline source code of version.Further according to the 3rd result of calculation with the line number mathematic interpolation code most Big ratio of defects.Concrete calculation is, by the newest baseline delivery edition code of the 3rd result of calculation and the project and item The line number difference of the identical baseline source code of mesh delivery version is divided by, and obtains code greatest drawback rate.
Further, with reference to Fig. 6, Fig. 6 is the refinement module schematic diagram of the 3rd computing module in Fig. 3.
Based on mobile terminal first embodiment of the present invention, the 3rd computing module 300 can include:
Third phase takes advantage of unit 310, for by code minimum ratio of defects and default weighted average calculation fac-tor, obtaining Obtain the 4th result of calculation;
4th multiplying unit 320, for subtracting each other acquisition difference with the default weighted average calculation factor by 1, and by institute State difference to be multiplied with code greatest drawback rate, obtain the 5th result of calculation;
Second addition unit 330, for the 4th result of calculation to be added with the 5th result of calculation, obtains code Ratio of defects.
In the present embodiment, after the code minimum ratio of defects and code greatest drawback rate is obtained, according to the generation The minimum ratio of defects of code and code greatest drawback rate can calculation code ratio of defects.Specifically, by the code minimum ratio of defects with Default weighted average calculation fac-tor, obtains the 4th result of calculation;1 is subtracted each other with the default weighted average calculation factor and is obtained Difference is obtained, and the difference is multiplied with code greatest drawback rate, obtain the 5th result of calculation;By the 4th result of calculation with 5th result of calculation is added, and obtains aacode defect rate.The span of the default weighted average calculation factor is more than 0 Less than 1, specific value is referred to the research and development progress of current code and carries out value.Such as in the initial stage rank of software project research and development Section, the value of the weighted average calculation factor is typically greater than 0 less than 0.5, such as value 0.2 or 0.3 etc..In software item The later stage of mesh research and development, the value of the weighted average calculation factor is typically greater than 0.5 less than 1, such as value be 0.7 or Person 0.8 etc..
Further, with reference to Fig. 7, Fig. 7 is the module diagram of mobile terminal second embodiment of the present invention.
Based on mobile terminal first embodiment of the present invention, the mobile terminal also includes:
4th computing module 400, the instruction for being triggered according to user calculates current code line number;
Setup module 500, for arranging corresponding preset value according to the current code line number.
In the present embodiment, for the ease of calculating the aacode defect rate, need to arrange preset value, the preset value can be with Arranged before the code minimum ratio of defects is obtained, it is also possible to be configured when the code minimum ratio of defects is calculated.Tool Body ground, calculates first the line number of the current code, then arranges the preset value according to the line number of the current code.Such as The line number of current code is 1000, then the preset value is set to into 1000.
The present invention further provides a kind of computational methods based on mobile terminal aacode defect rate.
With reference to Fig. 8, Fig. 8 is that the present invention is shown based on the flow process of the computational methods first embodiment of mobile terminal aacode defect rate It is intended to.
In one embodiment, the method includes:
Step S100, the leak sum that acquisition test current code is obtained, at the beginning of calculating project delivery edition code and project The line number difference of primordium line edition code, and according to the leak number and line number mathematic interpolation code minimum ratio of defects.
To ensure that the present invention can normally be implemented, it is necessary first to start code ratio of defects software for calculation, then obtain test and work as The leak sum that front code is obtained.The leak sum is in the Current software development process, each time to described current The summation of the leak found during software test.Such as in the Current software development process, 3 are tested to the Current software It is secondary, then the summation of the leak number of discovery during the leak sum is tested for 3 times.Due to needing to obtain software leakage in software development Hole number, therefore when testing software every time, need the leak number to finding during test to preserve.Then project is obtained Delivery edition code, and the line number of the project delivery edition code is calculated, then project initial baseline edition code is obtained, calculate The line number of the project initial baseline edition code, the line number and the project initial baseline of edition code that the project is delivered The line number of edition code is subtracted each other, and obtains line number difference.It is total minimum with the line number mathematic interpolation code further according to the leak Ratio of defects.Concrete calculation is that leak sum is multiplied with preset value, obtains the first result of calculation;Then described One result of calculation is divided by with the line number difference, obtains code minimum ratio of defects.The line number of current code described in the preset value Corresponding, such as when the line number of described current code is 1000, then the preset value is 1000.
Step S200, obtains with the leak number of the synperiodic project cluster of platform and with the cycle with version software platform project Leak number, obtains the line number difference of the newest baseline delivery edition code of project baseline source code identical with project delivery version, And according to the leak number and line number mathematic interpolation code greatest drawback rate.
In the present embodiment, first user's triggering obtains instruction, and mobile terminal receives the acquisition instruction, and according to described Obtain and instruct the leak number obtained with the current code with the synperiodic project cluster of platform, then obtain same with the current code Cycle with version software platform project leak number.Then user triggers computations, and mobile terminal receives the computations, And the leak number of the synperiodic project cluster of the same platform is calculated with same cycle same version software according to the computations The sum of the leak number of platform project.The leak number of the synperiodic project cluster of the same platform is flat with version software with the same cycle Platform project leak number and for the second result of calculation.User triggers again acquisition instruction, and mobile terminal obtains instruction according to described The newest baseline delivery edition code of acquisition project, then the identical baseline source code of project delivery version is obtained, then according to user It is original that the computations of triggering calculates respectively the newest baseline delivery edition code of project baseline identical with project delivery version The line number of code is then original by the line number of the newest baseline delivery edition code of project baseline identical with project delivery version The line number of code is subtracted each other, and obtains the baseline source code identical with project delivery version of the newest baseline delivery edition code of the project Line number difference.Further according to second result of calculation and the line number mathematic interpolation code greatest drawback rate.Concrete calculating side Formula is, by the leak number and be multiplied with preset value, obtain the 3rd result of calculation;Then by the 3rd result of calculation and institute State line number difference to be divided by, obtain code greatest drawback rate.
Step S300, according to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects.
After code minimum ratio of defects and code greatest drawback rate is obtained, according to code minimum ratio of defects and Code greatest drawback rate can calculation code ratio of defects.Specifically, by code minimum ratio of defects and default weighted average meter Fac-tor is calculated, the 4th result of calculation is obtained;Subtract each other acquisition difference with the default weighted average calculation factor by 1, and by institute State difference to be multiplied with code greatest drawback rate, obtain the 5th result of calculation;4th result of calculation is calculated with the described 5th Results added, obtains aacode defect rate.
The present embodiment calculates project delivery edition code and project by obtaining the leak sum that test current code is obtained The line number difference of initial baseline edition code, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;Obtain With the leak number of the synperiodic project cluster of platform and with the cycle with the leak number of version software platform project, the newest base of project is obtained The line number difference of line delivery edition code baseline source code identical with project delivery version, and according to the leak number and line number Mathematic interpolation code greatest drawback rate;According to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects. By the way, first the leak sum that test current code is obtained is obtained according to the acquisition instruction of user's triggering, then is obtained Project delivery edition code and project initial baseline edition code, and at the beginning of calculating the project delivery edition code and project respectively The line number of primordium line edition code, then calculates the line number of the project delivery edition code and project initial baseline edition code Difference, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;Then obtain with the current code with flat The leak number of the synperiodic project cluster of platform and with the current code with the cycle with version software platform project leak number, then The leak number of the synperiodic project cluster of the same platform is added with the same cycle with the leak number of version software platform project, The sum of leak number is obtained, then obtains the baseline source code identical with project delivery version of the newest baseline delivery edition code of project Line number difference, and according to the leak number and line number mathematic interpolation code greatest drawback rate;According to code minimum ratio of defects With code greatest drawback rate calculation code ratio of defects.The aacode defect rate higher so as to obtain accuracy, lifts mobile terminal soft The total quality of part, and then lift Consumer's Experience and development efficiency, the core competitiveness of improving product.
Further, with reference to Fig. 9, Fig. 9 is that the leak sum that test current code is obtained is obtained in Fig. 8, calculates project and sends out The line number difference of goods edition code and project initial baseline edition code, and according to the leak number and line number mathematic interpolation code The refinement schematic flow sheet of the step of minimum ratio of defects.
Based on computational methods first embodiment of the present invention based on mobile terminal aacode defect rate, step S100 can be with Including:
Step S110, the leak sum that test current code is obtained is multiplied with preset value, obtains the first result of calculation;
Step S120, by first result of calculation and project delivery edition code and project initial baseline edition code Line number difference is divided by, and obtains code minimum ratio of defects.
In the present embodiment, the leak sum that test current code is obtained is obtained first.Specifically, can be from software defect The leak sum is obtained in vulnerability database.Due in software development process, from startup project to smoothly completing, generally requiring Hundred software engineers.Therefore need to set up the defect vulnerability database of a Current software, it is soft when testing software every time Part engineer is required for the leak number to finding during test and defect problem to upload to the defect vulnerability database, and is preserved. So that the software engineer of later stage research and development improves.The leak sum is in the Current software development process, each time The summation of the leak found when testing the Current software.Such as in the Current software development process, to described current Software test 3 times, the then summation of leak number of the leak sum to find in 3 tests.Then by leak sum Be multiplied with preset value, obtain the first result of calculation, the line number of current code is corresponding described in the preset value, such as it is described current When the line number of code is 1000, then the preset value is 1000.
Then project delivery edition code is obtained, and calculates the line number of the project delivery edition code.The project is sent out Goods version is the corresponding business software version of software corresponding with current code.Project initial baseline edition code is obtained again, is counted Calculate the line number of the project initial baseline edition code.The project initial baseline version is one of Current software most original steady Determine version, it is the basis of further exploitation.So, after the project initial baseline is formed, need to notify related software work Journey Shi Suoshu project initial baseline has been formed, and the project initial baseline is uploaded to into stationary storage position.Then by institute The line number for stating project delivery edition code is subtracted each other with the line number of the project initial baseline edition code, obtains line number difference.Again According to first result of calculation and line number mathematic interpolation code minimum ratio of defects.Concrete calculation is, by described the One result of calculation is divided by with the line number difference, obtains code minimum ratio of defects.
Further, with reference to Figure 10, Figure 10 is to obtain the leak number of the synperiodic project cluster of same platform and same cycle in Fig. 8 With the leak number of version software platform project, the newest baseline delivery edition code of project baseline identical with project delivery version is obtained The line number difference of source code, and the refinement stream according to the step of the leak number and line number mathematic interpolation code greatest drawback rate Journey schematic diagram.
Based on computational methods first embodiment of the present invention based on mobile terminal aacode defect rate, step S200 can be with Including:
Step S210, by the leak number of the synperiodic project cluster of the same platform with the same cycle with version software platform project Leak number be added, obtain the second result of calculation;
Step S220, second result of calculation is multiplied with preset value, obtains the 3rd result of calculation;
Step S230, by the newest baseline delivery edition code of the 3rd result of calculation and the project and project delivery version The line number difference of this identical baseline source code is divided by, and obtains code greatest drawback rate.
In the present embodiment, after the leak number with the current code with the synperiodic project cluster of platform is obtained, then Obtain with the current code with the cycle with version software platform project leak number.The synperiodic project cluster of the same platform is Software corresponding with current code in identical platform and same period research software project.Then user triggers computations, Mobile terminal receives the computations, and calculates the leak of the synperiodic project cluster of the same platform according to the computations Number and the same cycle with the leak number of version software platform project and.The leak number of the synperiodic project cluster of the same platform With the same cycle with the leak number of version software platform project and for the second result of calculation.Second result of calculation is pre- If value is multiplied, the 3rd result of calculation is obtained.
User triggers again acquisition instruction, and mobile terminal is delivered version generation according to the newest baseline of instruction acquisition project that obtains Code, then the identical baseline source code of project delivery version is obtained, the baseline is a stable release of software or source code, it It is the basis of further exploitation.So, after the baseline is formed, need to notify the shape of baseline described in related software engineer Into, and the baseline is uploaded to into stationary storage position, and in order to ensure the synchronization of software engineer's development, it is fixed to need Phase sets up baseline.Change each time to the code after baseline is set up will all be recorded as a difference, under foundation One baseline.Therefore the newest baseline delivery version be current code correspondence software it is corresponding it is newest set up baseline, and record The business software version of newest modification record.The project delivers the identical baseline source code of version for current code correspondence software The corresponding newest business software version source code for setting up baseline.
Then the newest baseline delivery edition code of the project and project are calculated respectively according to the computations of user's triggering The line number of the identical baseline source code of delivery version, then by the line number and project of the newest baseline delivery edition code of the project The line number of the identical baseline source code of delivery version is subtracted each other, and is obtained the newest baseline delivery edition code of the project and is delivered with project The line number difference of the identical baseline source code of version.Further according to the 3rd result of calculation with the line number mathematic interpolation code most Big ratio of defects.Concrete calculation is, by the newest baseline delivery edition code of the 3rd result of calculation and the project and item The line number difference of the identical baseline source code of mesh delivery version is divided by, and obtains code greatest drawback rate.
Further, with reference to Figure 11, Figure 11 is according to code minimum ratio of defects and code greatest drawback rate meter in Fig. 8 The refinement schematic flow sheet of the step of calculating aacode defect rate.
Based on computational methods first embodiment of the present invention based on mobile terminal aacode defect rate, step S300 can be with Including:
Step S310, by code minimum ratio of defects and default weighted average calculation fac-tor, obtains the 4th and calculates As a result;
Step S320, acquisition difference is subtracted each other by 1 with the default weighted average calculation factor, and by the difference and code Greatest drawback rate is multiplied, and obtains the 5th result of calculation;
Step S330, the 4th result of calculation is added with the 5th result of calculation, obtains aacode defect rate.
In the present embodiment, after the code minimum ratio of defects and code greatest drawback rate is obtained, according to the generation The minimum ratio of defects of code and code greatest drawback rate can calculation code ratio of defects.Specifically, by the code minimum ratio of defects with Default weighted average calculation fac-tor, obtains the 4th result of calculation;1 is subtracted each other with the default weighted average calculation factor and is obtained Difference is obtained, and the difference is multiplied with code greatest drawback rate, obtain the 5th result of calculation;By the 4th result of calculation with 5th result of calculation is added, and obtains aacode defect rate.The span of the default weighted average calculation factor is more than 0 Less than 1, specific value is referred to the research and development progress of current code and carries out value.Such as in the initial stage rank of software project research and development Section, the value of the weighted average calculation factor is typically greater than 0 less than 0.5, such as value 0.2 or 0.3 etc..In software item The later stage of mesh research and development, the value of the weighted average calculation factor is typically greater than 0.5 less than 1, such as value be 0.7 or Person 0.8 etc..
Further, with reference to Figure 12, Figure 12 is that computational methods second of the present invention based on mobile terminal aacode defect rate are real Apply the schematic flow sheet of example.
Based on computational methods first embodiment of the present invention based on mobile terminal aacode defect rate, methods described also includes:
Step S400, according to the instruction of user's triggering current code line number is calculated;
If step S500, corresponding preset value is arranged according to the current code line number.
In the present embodiment, for the ease of calculating the aacode defect rate, need to arrange preset value, the preset value can be with Arranged before the code minimum ratio of defects is obtained, it is also possible to be configured when the code minimum ratio of defects is calculated.Tool Body ground, calculates first the line number of the current code, then arranges the preset value according to the line number of the current code.Such as The line number of current code is 1000, then the preset value is set to into 1000.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer takes Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
First computing module, for obtaining the leak sum that test current code is obtained, calculates project delivery edition code and item The line number difference of mesh initial baseline edition code, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;
Second computing module, for obtaining with the leak number of the synperiodic project cluster of platform and with the cycle with version software platform item Purpose leak number, the line number for obtaining the baseline source code identical with project delivery version of the newest baseline delivery edition code of project is poor Value, and according to the leak number and line number mathematic interpolation code greatest drawback rate;
3rd computing module, for according to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects.
2. mobile terminal as claimed in claim 1, it is characterised in that first computing module includes:
First multiplying unit, the leak sum for test current code to be obtained is multiplied with preset value, obtains first and calculates knot Really;
First is divided by unit, for by first result of calculation and project delivery edition code and project initial baseline version generation The line number difference of code is divided by, and obtains code minimum ratio of defects.
3. mobile terminal as claimed in claim 1, it is characterised in that second computing module includes:
First addition unit, for by the leak number of the synperiodic project cluster of the same platform with the same cycle with version software platform The leak number of project is added, and obtains the second result of calculation;
Second multiplying unit, for second result of calculation to be multiplied with preset value, obtains the 3rd result of calculation;
Second is divided by unit, for the newest baseline delivery edition code of the 3rd result of calculation and the project to be sent out with project The line number difference of the identical baseline source code of goods version is divided by, and obtains code greatest drawback rate.
4. mobile terminal as claimed in claim 1, it is characterised in that the 3rd computing module includes:
Third phase takes advantage of unit, for by code minimum ratio of defects and default weighted average calculation fac-tor, obtaining the 4th Result of calculation;
4th multiplying unit, for subtracting each other acquisition difference with the default weighted average calculation factor by 1, and by the difference with Code greatest drawback rate is multiplied, and obtains the 5th result of calculation;
Second addition unit, for the 4th result of calculation to be added with the 5th result of calculation, obtains aacode defect rate.
5. the mobile terminal as described in any one of claim 1-4, it is characterised in that the mobile terminal also includes:
4th computing module, the instruction for being triggered according to user calculates current code line number;
Setup module, for arranging corresponding preset value according to the current code line number.
6. a kind of computational methods based on mobile terminal aacode defect rate, it is characterised in that the method comprising the steps of:
The leak sum that test current code is obtained is obtained, project delivery edition code and project initial baseline edition code is calculated Line number difference, and according to the leak number and line number mathematic interpolation code minimum ratio of defects;
Obtain with the leak number of the synperiodic project cluster of platform and with the cycle with the leak number of version software platform project, obtain item The line number difference of the newest baseline delivery edition code of mesh baseline source code identical with project delivery version, and according to the leak Number and line number mathematic interpolation code greatest drawback rate;
According to code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects.
7. the computational methods of mobile terminal aacode defect rate are based on as claimed in claim 6, it is characterised in that the acquisition is surveyed The leak sum that examination current code is obtained, calculates project delivery edition code poor with the line number of project initial baseline edition code It is worth, and the step of ratio of defects minimum with line number mathematic interpolation according to leak sum includes:
The leak sum that test current code is obtained is multiplied with preset value, obtains the first result of calculation;
First result of calculation is divided by with project delivery edition code with the line number difference of project initial baseline edition code, Obtain code minimum ratio of defects.
8. the computational methods of mobile terminal aacode defect rate are based on as claimed in claim 6, it is characterised in that the acquisition is same The leak number of the synperiodic project cluster of platform and with the cycle with the leak number of version software platform project, obtain the newest baseline of project The line number difference of delivery edition code baseline source code identical with project delivery version, and it is poor according to the leak number and line number The step of value calculates greatest drawback rate includes:
The leak number of the synperiodic project cluster of the same platform is added with the same cycle with the leak number of version software platform project, Obtain the second result of calculation;
Second result of calculation is multiplied with preset value, the 3rd result of calculation is obtained;
The newest baseline delivery edition code of 3rd result of calculation and project baseline identical with project delivery version is former The line number difference of beginning code is divided by, and obtains code greatest drawback rate.
9. the computational methods of mobile terminal aacode defect rate are based on as claimed in claim 6, it is characterised in that described according to institute The step of stating code minimum ratio of defects and code greatest drawback rate calculation code ratio of defects includes:
By code minimum ratio of defects and default weighted average calculation fac-tor, the 4th result of calculation is obtained;
Subtract each other acquisition difference with the default weighted average calculation factor by 1, and by the difference and code greatest drawback rate phase Take advantage of, obtain the 5th result of calculation;
4th result of calculation is added with the 5th result of calculation, aacode defect rate is obtained.
10. computational methods based on mobile terminal aacode defect rate as described in any one of claim 6-9, it is characterised in that Methods described also includes:
Current code line number is calculated according to the instruction of user's triggering;
Corresponding preset value is arranged according to the current code line number.
CN201611027605.5A 2016-11-17 2016-11-17 Mobile terminal and calculation method based on mobile terminal code defect rate Active CN106598844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611027605.5A CN106598844B (en) 2016-11-17 2016-11-17 Mobile terminal and calculation method based on mobile terminal code defect rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027605.5A CN106598844B (en) 2016-11-17 2016-11-17 Mobile terminal and calculation method based on mobile terminal code defect rate

Publications (2)

Publication Number Publication Date
CN106598844A true CN106598844A (en) 2017-04-26
CN106598844B CN106598844B (en) 2020-07-31

Family

ID=58592395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611027605.5A Active CN106598844B (en) 2016-11-17 2016-11-17 Mobile terminal and calculation method based on mobile terminal code defect rate

Country Status (1)

Country Link
CN (1) CN106598844B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220176A (en) * 2017-05-19 2017-09-29 郑州云海信息技术有限公司 It is a kind of based on the method for testing software for estimating defect
CN107844422A (en) * 2017-11-03 2018-03-27 郑州云海信息技术有限公司 A kind of method of the programming count Js speech encoding ratio of defects under linux
CN108228466A (en) * 2018-01-26 2018-06-29 中国银行股份有限公司 code review method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710306A (en) * 2009-12-15 2010-05-19 中国科学院软件研究所 Method and system for detecting software reliability
US20140331211A1 (en) * 2013-03-27 2014-11-06 Zhiqiang Ma Method and system for detecting concurrency programming errors in kernel modules and device drivers
CN104156312A (en) * 2014-08-11 2014-11-19 浪潮(北京)电子信息产业有限公司 Method for evaluating software reliability
CN104503919A (en) * 2015-01-13 2015-04-08 中国船舶重工集团公司第七二二研究所 Method for software reliability evaluation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710306A (en) * 2009-12-15 2010-05-19 中国科学院软件研究所 Method and system for detecting software reliability
US20140331211A1 (en) * 2013-03-27 2014-11-06 Zhiqiang Ma Method and system for detecting concurrency programming errors in kernel modules and device drivers
CN104156312A (en) * 2014-08-11 2014-11-19 浪潮(北京)电子信息产业有限公司 Method for evaluating software reliability
CN104503919A (en) * 2015-01-13 2015-04-08 中国船舶重工集团公司第七二二研究所 Method for software reliability evaluation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220176A (en) * 2017-05-19 2017-09-29 郑州云海信息技术有限公司 It is a kind of based on the method for testing software for estimating defect
CN107844422A (en) * 2017-11-03 2018-03-27 郑州云海信息技术有限公司 A kind of method of the programming count Js speech encoding ratio of defects under linux
CN108228466A (en) * 2018-01-26 2018-06-29 中国银行股份有限公司 code review method and device

Also Published As

Publication number Publication date
CN106598844B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN105939416A (en) Mobile terminal and application prestart method thereof
CN106648369A (en) Switching device and method for application program
CN105808659B (en) Mobile terminal and its webpage capture method
CN106951291A (en) Application program accelerates to start method and device
CN104731456B (en) Desktop widget display methods and device
CN106547446A (en) Using switching device and method
CN105530608B (en) The localization method and mobile terminal of Wi-Fi hotspot
CN105843478B (en) The icon display control method and device of rapid switch
CN106570155A (en) Image management device and method
CN106803860A (en) The storage processing method and device of a kind of terminal applies
CN106961668A (en) Mobile terminal location device and method
CN109033263A (en) A kind of application recommended method and terminal
CN104866095B (en) Mobile terminal and its desktop management method and apparatus
CN106598844A (en) Mobile terminal and method for calculating code defect rate of mobile terminal
CN106598538A (en) Method and system for updating instruction set
CN105955650A (en) Human-computer interaction operation method and device
CN106568468A (en) Automatic test calibration system based on light sensor and method thereof
CN106372264A (en) Map data migration device and method
CN105573017A (en) Method and device for realizing focusing
CN106657670A (en) Mobile terminal and application triggering method based on mobile terminal
CN105183830B (en) picture browsing method and device
CN106446284A (en) Map loading device and method
CN104915230B (en) application control method and device
CN106547674A (en) A kind of fingerprint input method, device and terminal
CN105744508B (en) Game data backup method and mobile terminal

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

Effective date of registration: 20200708

Address after: 210036, 301 Hanzhoung Avenue, Gulou District, Jiangsu, Nanjing

Applicant after: Nanjing Boya blockchain Research Institute Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170426

Assignee: HENGBAO Corp.

Assignor: Nanjing Boya blockchain Research Institute Co.,Ltd.

Contract record no.: X2022980006378

Denomination of invention: Mobile terminal and calculation method based on mobile terminal code defect rate

Granted publication date: 20200731

License type: Common License

Record date: 20220526

EE01 Entry into force of recordation of patent licensing contract