Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Software measurement detection method and system

A software measurement and detection method technology, applied in software testing/debugging, etc., can solve problems such as low measurement efficiency, heavy workload, and heavy tasks, and achieve the effects of reducing labor costs, improving speed, and reducing the amount of heavy tasks

Inactive Publication Date: 2017-03-22
ZTE CORP
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main technical problem to be solved by the present invention is to provide a software measurement and detection method and system to solve the heavy tasks and heavy workload caused by manually executing multiple acceptance cases and manually analyzing the results of multiple acceptance cases in the prior art , measurement inefficiency and time-consuming problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software measurement detection method and system
  • Software measurement detection method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] This embodiment provides a software metric detection method, which has the advantages of low software metric cost, high software metric efficiency, and fast software metric speed compared to the existing manual metric detection method. For this method, please refer to figure 1 shown, including:

[0036] S101: The detection device marks the software under test for acceptance;

[0037] S102: Based on the acceptance identification, the detection device calls and executes the acceptance use case to check the software under test;

[0038] S103: The detection device outputs a measurement report according to the acceptance result.

[0039] Preferably, in the above S101, the method for the detection device to mark the software under test for acceptance is to mark the contents of the software under test that need to be tested through pin insertion operations.

[0040] Preferably, there are multiple sources of acceptance use cases in step S102, such as acceptance use cases pres...

Embodiment 2

[0055] See figure 2 As shown, this embodiment provides a software metric detection system, including:

[0056] Identification module 1, used to identify the software under test for acceptance;

[0057] An acceptance module 2, configured to call and execute an acceptance use case to check and accept the software under test based on the acceptance identification;

[0058] The processing module 3 is configured to output a measurement report according to the acceptance result, and the measurement report includes a coverage report and a cyclomatic complexity report.

[0059] Preferably, the identification module 1 includes an identification sub-module 11, and the identification sub-module 11 is used for performing an acceptance identification on the content in the software under test that needs to be accepted through a pin operation. Of course, the identification sub-module 11 may also perform acceptance identification on the software under test in other ways.

[0060] Preferab...

Embodiment 3

[0070] This embodiment takes the specific testing process of the software under test as an example for illustration, and the process includes:

[0071] Step 1, Thruster identifies each line of code in the software under test;

[0072] Step 2: Write user interface test cases and logic test cases in CI, and uniformly name the file name suffix of the logic test cases as *Test.class;

[0073] Step 3, CIEXE scans and obtains the written acceptance cases in CI;

[0074] Step 4, CIEXE starts to run all acceptance cases in turn, if the acceptance case is a user interface test case, go to step 5; if the acceptance case is a logic test case, go to step 7;

[0075] Step 5, CIEXE defines the interface element type, name and index according to the template file to locate the interface element, obtains the coordinate position corresponding to the interface element, and then calls the mouse movement event to operate the interface element on the coordinate position;

[0076] Step six, judge...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a software measurement detection method and system. The method comprises the steps that a detection device performs acceptance identification on tested software; the detection device calls and executes an acceptance case based on the acceptance identifier to perform acceptance on the tested software; the detection device outputs a measurement report according to an acceptance result, wherein the measurement report comprises a coverage rate report and a cyclomatic complexity report. By the adoption of the software measurement detection method and system, the software measurement detection system automatically executes the acceptance case instead of manual execution according to the software measurement detection method and ranks the cyclomatic complexity and the coverage rate of the tested software according to the result of the acceptance case, and therefore the effects of relieving the heavy task load brought by manual operation, lowering labor cost, improving software measurement efficiency and increasing software measurement speed are achieved.

Description

technical field [0001] The invention relates to the field of software metrics, in particular to a software metrics detection method and system. Background technique [0002] In the field of software measurement, line coverage, branch coverage and cyclomatic complexity are very important key metrics for software measurement. In the prior art, the line coverage rate, branch coverage rate and cyclomatic complexity information of the software under test are obtained by manually executing the acceptance use case. Manually executing the acceptance use case once can only obtain the line coverage of the software tested by the acceptance use case executed this time. Rate, branch coverage and cyclomatic complexity information, to obtain the line coverage, branch coverage and cyclomatic complexity information of the software tested by multiple acceptance cases requires manual execution many times. When software maintainers want to check the health status of the currently maintained so...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/36
Inventor 吴黎华
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products