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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com