CN112527655B - Software version quality abnormality detection method and device, electronic equipment and storage medium - Google Patents
Software version quality abnormality detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112527655B CN112527655B CN202011490638.XA CN202011490638A CN112527655B CN 112527655 B CN112527655 B CN 112527655B CN 202011490638 A CN202011490638 A CN 202011490638A CN 112527655 B CN112527655 B CN 112527655B
- Authority
- CN
- China
- Prior art keywords
- use case
- standard
- script
- standard use
- abnormal
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 129
- 230000005856 abnormality Effects 0.000 title abstract description 46
- 238000013515 script Methods 0.000 claims abstract description 177
- 230000002159 abnormal effect Effects 0.000 claims abstract description 115
- 238000000034 method Methods 0.000 claims description 28
- 238000012545 processing Methods 0.000 claims description 14
- 238000004422 calculation algorithm Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000012360 testing method Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 13
- 238000007726 management method Methods 0.000 description 9
- 230000008439 repair process Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 230000011218 segmentation Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45591—Monitoring or debugging support
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a test technology, and discloses a software version quality abnormality detection method, which comprises the following steps: generating a use case script set of an original use case set by using a virtual machine, acquiring a standard use case set, matching the use case script corresponding to each standard use case in the standard use case set, executing the corresponding standard use case according to the use case script, judging whether the standard use case is abnormal, judging whether the standard use case is normal if the standard use case is not abnormal, pushing an abnormality detection result to a developer terminal if the standard use case is abnormal, generating an execution task, acquiring the repaired standard use case fed back by the developer terminal, and calling the corresponding use case script of the repaired standard use case by using the execution task. In addition, the invention also relates to a block chain technology, and the original use case set can be obtained from a block chain link point. The invention also provides a software version quality abnormality detection device, electronic equipment and a computer readable storage medium. The invention can solve the problem of lower software version quality detection efficiency.
Description
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a method and apparatus for detecting quality anomalies of a software version, an electronic device, and a computer readable storage medium.
Background
Software quality is the degree to which software conforms to the explicitly recited functional and performance requirements, the development criteria explicitly recited in the document, and the implicit features that any professionally developed software product should possess. Software version quality detection is an indispensable link in the software development process. The existing software version quality detection method comprises manual detection and automatic detection. Manual detection is the requirement that a tester needs to execute a large number of test cases to cover the service, and in each version iteration, the tester needs to execute a large number of test cases, so that the process is time-consuming and labor-consuming, and the fault tolerance is low. The existing automatic detection is generally applicable to fixed business logic, has fewer applicable scenes and has lower detection efficiency.
Disclosure of Invention
The invention provides a software version quality anomaly detection method, a software version quality anomaly detection device and a computer readable storage medium, and mainly aims to solve the problem of low software version quality detection efficiency.
In order to achieve the above object, the present invention provides a method for detecting quality anomalies of a software version, including:
acquiring an original use case set, and generating a use case script set by using a virtual machine according to the original use case set;
The method comprises the steps of obtaining a standard use case set, and matching standard use cases in the standard use case set with use case scripts corresponding to the use case script set to obtain use case scripts corresponding to each standard use case in the standard use case set;
Executing the corresponding standard use case according to the use case script, and judging whether the standard use case is abnormal or not;
If the standard use case is not abnormal, judging that the standard use case is normal, if the standard use case is abnormal, pushing an abnormality detection result to a developer terminal, and generating an execution task according to the abnormality detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling an use case script corresponding to the repaired standard use case by utilizing the execution task.
Optionally, the obtaining the original case set, editing the case script set according to the original case set, includes:
acquiring the number information and the use case type of each original use case in the original use case set;
Acquiring a preset script template according to the use case type;
And writing the number information and the use case type into the script template as parameters to obtain a use case script, and summarizing the use case script to obtain the use case script set.
Optionally, the matching the standard use cases in the standard use case set with the use case scripts corresponding to the use case script set to obtain the use case script corresponding to each standard use case in the standard use case set includes:
extracting keywords of each standard use case in the standard use case set by using a preset language processing algorithm;
and matching the keywords with the use case script set, and searching the use case script corresponding to each standard use case in the standard use case set.
Optionally, the executing the corresponding standard use case according to the use case script includes:
Generating a demonstration environment corresponding to the standard use case by using the virtual machine;
And running the standard use cases in the demonstration environment by using the use case script.
Optionally, pushing the final anomaly detection result set to the developer terminal includes:
the interface with the abnormality is subjected to screen capturing and a corresponding abnormality number is generated, and the execution task is created by using the abnormality number;
Summarizing the anomaly number, screen capturing and the standard use case of the anomaly to obtain an initial anomaly detection result;
And carrying out importance ranking on initial abnormal detection results corresponding to different standard use cases to obtain the final abnormal detection result set, and pushing the final abnormal detection result set to a developer terminal.
Optionally, the ranking the importance of the initial anomaly detection results corresponding to different standard cases to obtain the final anomaly detection result set includes:
The standard use cases in the initial abnormal detection results corresponding to the different standard use cases are subjected to sorting adjustment by using a preset sorting rule;
and summarizing the ordered abnormal detection results to obtain the final abnormal detection result set.
Optionally, the obtaining the repaired standard use case fed back by the developer terminal, and calling the use case script corresponding to the repaired standard use case by using the execution task includes:
Acquiring a corresponding execution task by using the abnormal number, and extracting a standard number in the repaired standard use case;
And searching a corresponding application script according to the standard number, and calling the application script corresponding to the repaired standard application by utilizing the execution task.
In order to solve the above problems, the present invention further provides a software version quality anomaly detection device, the device comprising:
The script generation module is used for acquiring an original case set and generating the case script set by using a virtual machine according to the original case set;
The script matching module is used for acquiring a standard use case set, matching the standard use cases in the standard use case set with the use case scripts corresponding to the use case script set, and acquiring the use case script corresponding to each standard use case in the standard use case set;
The use case judging module is used for executing the corresponding standard use case according to the use case script and judging whether the standard use case is abnormal or not;
the use case repairing module is used for judging that the standard use case is normal if the standard use case is not abnormal, pushing an abnormality detection result to a developer terminal if the standard use case is abnormal, and generating an execution task according to the abnormality detection result;
And the script calling module is used for obtaining the repaired standard use case fed back by the developer terminal and calling the use case script corresponding to the repaired standard use case by utilizing the execution task.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one instruction; and
And the processor executes the instructions stored in the memory to realize the software version quality abnormality detection method.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one instruction that is executed by a processor in an electronic device to implement the above-mentioned software version quality anomaly detection method.
According to the method, the device and the system, the case script set is edited according to the original case set, the standard case in the standard case set is matched with the case script corresponding to the case script set, the corresponding standard case is executed by utilizing the case script, and the abnormality detection efficiency is higher; meanwhile, when the standard use case is abnormal, pushing a final abnormal detection result set to a developer terminal, generating an execution task, and calling a use case script corresponding to the repaired standard use case by using the execution task, so that high-efficiency automatic execution of abnormal detection can be realized. Therefore, the software version quality anomaly detection method, the device, the electronic equipment and the computer readable storage medium can solve the problem of low software version quality detection efficiency.
Drawings
FIG. 1 is a flowchart of a software version quality anomaly detection method according to an embodiment of the present invention;
FIG. 2 is a detailed flow chart of one of the steps shown in FIG. 1;
FIG. 3 is a detailed flow chart of another step of FIG. 1;
FIG. 4 is a detailed flow chart of another step of FIG. 1;
FIG. 5 is a detailed flow chart of another step of FIG. 1;
FIG. 6 is a detailed flow chart of another step of FIG. 1
FIG. 7 is a functional block diagram of a software version quality anomaly detection device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device for implementing the software version quality anomaly detection method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a software version quality abnormality detection method. The execution body of the software version quality abnormality detection method includes, but is not limited to, at least one of a server, a terminal and the like capable of being configured to execute the method provided by the embodiment of the application. In other words, the software version quality anomaly detection method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flowchart of a software version quality anomaly detection method according to an embodiment of the present invention is shown. In this embodiment, the method for detecting quality anomalies of a software version includes:
S1, acquiring an original use case set, and generating a use case script set by using a virtual machine according to the original use case set.
In at least one embodiment of the present invention, the set of original use cases may be a collection of various software versions in various fields that can perform a function. For example, one of the original use cases may be: the function implemented by a certain software product version is that a user clicks a designated button to automatically launch a popup window. The embodiment of the invention can acquire the original use case set from the node of the blockchain.
In the embodiment of the present invention, the use case script set may be a Virtual script generated using Virtual Machine (VM) software, for executing various use cases. The embodiment of the invention utilizes the virtual machine software to facilitate the generation of various demonstration environments, ensures the running speed of a host through running on the virtual machine by using some use cases, and can independently run in one environment for the fields with higher confidentiality requirements, such as the fields with dense customer information, such as banks, and the like, thereby having higher confidentiality and higher safety.
In one embodiment of the present invention, referring to fig. 2, the S1 includes:
S10, acquiring the number information of each original use case in the original use case set and the type of the use case;
s11, acquiring a preset script template according to the use case type;
and S12, writing the number information and the use case type into the script template as parameters to obtain a use case script, and summarizing the use case script to obtain the use case script set.
In the embodiment of the present invention, the preset script templates may be preset according to the original use cases in the original use case set, for example, the types of functions implemented by software in the original use cases include "click to jump", "click to pop window", and the like, and different script templates are edited for the types.
The method and the device for generating the use case script set by using the virtual machine in the embodiment of the invention have higher security because the virtual machine can generate various demonstration environments.
S2, acquiring a standard use case set, and matching the standard use cases in the standard use case set with the use case scripts corresponding to the use case script set to obtain the use case script corresponding to each standard use case in the standard use case set.
In the embodiment of the invention, the standard use case set is obtained by updating the software version in the original use case set.
In the embodiment of the present invention, as described in reference to fig. 3, the matching the standard use cases in the standard use case set with the use case scripts corresponding to the use case script set to obtain the use case script corresponding to each standard use case in the standard use case set includes:
s20, extracting keywords of each standard use case in the standard use case set by using a preset language processing algorithm;
S21, matching the keywords with the use case script set, and searching the use case script corresponding to each standard use case in the standard use case set.
In detail, the extracting, by using a preset language processing algorithm, each standard use case keyword in the standard use case set includes:
Performing word segmentation on the use case name of each standard use case in the standard use case set, and removing stop words to obtain a word segmentation result;
And selecting one or more keywords of the standard use case from the word segmentation result.
In the embodiment of the present invention, the preset language processing algorithm may be a TextRank, a semantic-based keyword extraction algorithm, etc. that have been disclosed at present. For example, the language processing algorithm is utilized to extract the case name "standard case 001" in the standard case set as the standard case keyword, and the case script corresponding to each standard case is determined when the two keywords are successfully matched according to the case script keyword "case script 001" in the case script set in the standard case keyword.
According to the embodiment of the invention, the standard use cases in the standard use case set are matched with the corresponding use case scripts in the use case script set, so that the standard use case set can be quickly matched with the use case scripts, and the speed of abnormality detection is improved.
S3, executing the corresponding standard use case according to the use case script, and judging whether the standard use case is abnormal or not.
Referring to fig. 4, in an embodiment of the present invention, the executing the corresponding standard use case according to the use case script includes:
s30, generating a demonstration environment corresponding to the standard use case by using the virtual machine;
S31, running the standard use cases in the demonstration environment by using the use case script.
For standard use cases from different fields, the embodiment of the invention utilizes the virtual machine to generate corresponding demonstration environments, for example, for credit management products in the banking field, case management products in the judicial field and the like, and the virtual machine can generate different demonstration environments.
The implementation of the invention executes the corresponding standard use case according to the use case script, can realize the automatic execution of the standard use case, and greatly improves the efficiency of detecting the quality abnormality of the software version.
If the standard use case is not abnormal, executing S4, and judging that the standard use case is normal;
And if the standard use case is abnormal, executing S5, summarizing the abnormal detection result of the abnormal standard use case to obtain a final abnormal detection result set, pushing the final abnormal detection result set to a developer terminal, and generating an execution task.
For example, in one embodiment of the present invention, the standard use case is "when a certain software product clicks a certain button, a pop-up window is generated", and in the embodiment of the present invention, the use case script is used to control the clicking of the button, if the pop-up window occurs after clicking, it is indicated that the standard use case is successfully executed, and there is no abnormality; if the popup window does not appear after clicking, the standard use case fails to execute and has abnormality. According to the embodiment of the invention, the screen capturing is carried out on the abnormality detection page when the abnormality exists, and the screen capturing and the standard use case are pushed to the developer terminal for restoration. The developer terminal can be a preset terminal for developing a repair system or a repair person. When the standard use case is detected by using the use case script, the embodiment of the invention performs real-time screen capturing on the detection page, and can reproduce the detection process according to the screen capturing, thereby improving the maintenance capability of the whole detection process.
In detail, referring to fig. 5, pushing the final anomaly detection result set to the developer terminal includes:
S50, screen capturing is carried out on the interface with the abnormality, a corresponding abnormality number is generated, and the execution task is created by using the abnormality number;
s51, summarizing the anomaly number, the screen capturing and the standard use cases of anomalies to obtain an initial anomaly detection result;
s52, sorting the importance of the initial abnormal detection results corresponding to different standard cases to obtain the final abnormal detection result set, and pushing the final abnormal detection result set to a developer terminal.
In the embodiment of the invention, the execution task can be created by using an SQL statement, and the execution task is used for calling the corresponding application case script according to the abnormal number.
Specifically, the ranking the importance of the initial anomaly detection results corresponding to different standard cases to obtain the final anomaly detection result set includes:
The standard use cases in the initial abnormal detection results corresponding to the different standard use cases are subjected to sorting adjustment by using a preset sorting rule;
and summarizing the ordered abnormal detection results to obtain the final abnormal detection result set.
The preset ordering rule may be ordering adjustment logic set manually according to service attributes.
In the embodiment of the present invention, for example, the initial anomaly detection result is: abnormal 001, standard use case 025, screenshot 025, abnormal 002, standard use case 032, screenshot 032, abnormal 003, standard use case 038, screenshot 038; adjusting the initial abnormal detection result set according to the preset ordering rule to obtain the final abnormal detection result set as follows: abnormal 002, standard use case 032, screenshot 032; anomaly 001, standard use case 025, screenshot 025; exception 003, standard use case 038, screenshot 038.
When the standard use case is judged to be abnormal, the invention gathers the abnormal detection results of the abnormal standard use case to obtain a final abnormal detection result set, and the final abnormal detection result set is directly pushed to the developer terminal, thereby improving the efficiency of abnormal detection.
S6, acquiring the repaired standard use cases fed back by the developer terminal, calling the use case script corresponding to the repaired standard use cases by using the execution task, and returning to S3 until all the standard use case sets are judged to be normal.
In detail, referring to fig. 6, the obtaining the repaired standard use case fed back by the developer terminal, and calling the use case script corresponding to the repaired standard use case by using the execution task includes:
S60, acquiring a corresponding execution task by using the abnormal number, and extracting a standard number in the repaired standard use case;
and S61, searching a corresponding application script according to the standard number, and calling the application script corresponding to the repaired standard application by utilizing the execution task.
According to the embodiment of the invention, the use case script is called through the execution task, so that the automatic calling of the use case script can be realized, and the abnormality detection efficiency is greatly improved.
According to the method, the device and the system, the case script set is edited according to the original case set, the standard case in the standard case set is matched with the case script corresponding to the case script set, the corresponding standard case is executed by utilizing the case script, and the abnormality detection efficiency is higher; meanwhile, when the standard use case is abnormal, pushing a final abnormal detection result set to a developer terminal, generating an execution task, and calling a use case script corresponding to the repaired standard use case by using the execution task, so that high-efficiency automatic execution of abnormal detection can be realized. Therefore, the embodiment of the invention can solve the problem of lower software version quality detection efficiency.
Fig. 7 is a functional block diagram of a software version quality anomaly detection device according to an embodiment of the present invention.
The software version quality abnormality detection apparatus 100 of the present invention may be installed in an electronic device. The software version quality anomaly detection device 100 may include a script generation module 101, a script matching module 102, a use case judgment module 103, a use case repair module 104, and a script call module 105 according to the implemented functions. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
The script generation module 101 is configured to obtain an original case set, and generate a case script set by using a virtual machine according to the original case set.
In at least one embodiment of the present invention, the set of original use cases may be a collection of various software versions in various fields that can perform a function. For example, one of the original use cases may be: the function implemented by a certain software product version is that a user clicks a designated button to automatically launch a popup window. The embodiment of the invention can acquire the original use case set from the node of the blockchain.
In the embodiment of the present invention, the use case script set may be a Virtual script generated using Virtual Machine (VM) software, for executing various use cases. The embodiment of the invention utilizes the virtual machine software to facilitate the generation of various demonstration environments, ensures the running speed of a host through running on the virtual machine by using some use cases, and can independently run in one environment for the fields with higher confidentiality requirements, such as the fields with dense customer information, such as banks, and the like, thereby having higher confidentiality and higher safety.
Preferably, the script generation module 101 obtains the use case script set by:
acquiring the number information and the use case type of each original use case in the original use case set;
Acquiring a preset script template according to the use case type;
And writing the number information and the use case type into the script template as parameters to obtain a use case script, and summarizing the use case script to obtain the use case script set.
In the embodiment of the present invention, the preset script templates may be preset according to the original use cases in the original use case set, for example, the types of functions implemented by software in the original use cases include "click to jump", "click to pop window", and the like, and different script templates are edited for the types.
The method and the device for generating the use case script set by using the virtual machine in the embodiment of the invention have higher security because the virtual machine can generate various demonstration environments.
The script matching module 102 is configured to obtain a standard case set, and match standard cases in the standard case set with case scripts corresponding to the case script set, so as to obtain a case script corresponding to each standard case in the standard case set.
In the embodiment of the invention, the standard use case set is obtained by updating the software version in the original use case set.
In the embodiment of the present invention, the script matching module 102 obtains the application script corresponding to each standard use case in the standard use case set by:
extracting keywords of each standard use case in the standard use case set by using a preset language processing algorithm;
and matching the keywords with the use case script set, and searching the use case script corresponding to each standard use case in the standard use case set.
In detail, the script matching module 102 extracts each of the standard use case keywords in the standard use case set by:
Performing word segmentation on the use case name of each standard use case in the standard use case set, and removing stop words to obtain a word segmentation result;
And selecting one or more keywords of the standard use case from the word segmentation result.
In the embodiment of the present invention, the preset language processing algorithm may be a TextRank, a semantic-based keyword extraction algorithm, etc. that have been disclosed at present. For example, the language processing algorithm is utilized to extract the case name "standard case 001" in the standard case set as the standard case keyword, and the case script corresponding to each standard case is determined when the two keywords are successfully matched according to the case script keyword "case script 001" in the case script set in the standard case keyword.
According to the embodiment of the invention, the standard use cases in the standard use case set are matched with the corresponding use case scripts in the use case script set, so that the standard use case set can be quickly matched with the use case scripts, and the speed of abnormality detection is improved.
The use case judging module 103 is configured to execute a corresponding standard use case according to the use case script, and judge whether the standard use case is abnormal.
In the embodiment of the present invention, the use case judgment module 103 executes the corresponding standard use case according to the use case script by the following operations:
Generating a demonstration environment corresponding to the standard use case by using the virtual machine;
And running the standard use cases in the demonstration environment by using the use case script.
For standard use cases from different fields, the embodiment of the invention utilizes the virtual machine to generate corresponding demonstration environments, for example, for credit management products in the banking field, case management products in the judicial field and the like, and the virtual machine can generate different demonstration environments.
The implementation of the invention executes the corresponding standard use case according to the use case script, can realize the automatic execution of the standard use case, and greatly improves the efficiency of detecting the quality abnormality of the software version.
The use case repairing module 104 is configured to determine that the standard use case is normal if the standard use case is not abnormal, push an abnormality detection result to a developer terminal if the standard use case is abnormal, and generate an execution task according to the abnormality detection result.
In the embodiment of the present invention, if the standard use case is not abnormal, the use case repair module 104 determines that the standard use case is normal;
If the standard use case is abnormal, the use case repair module 104 gathers the abnormal detection results of the abnormal standard use case to obtain a final abnormal detection result set, pushes the final abnormal detection result set to a developer terminal, and generates an execution task.
For example, in one embodiment of the present invention, the standard use case is "when a certain software product clicks a certain button, a pop-up window is generated", and in the embodiment of the present invention, the use case script is used to control the clicking of the button, if the pop-up window occurs after clicking, it is indicated that the standard use case is successfully executed, and there is no abnormality; if the popup window does not appear after clicking, the standard use case fails to execute and has abnormality. According to the embodiment of the invention, the screen capturing is carried out on the abnormality detection page when the abnormality exists, and the screen capturing and the standard use case are pushed to the developer terminal for restoration. The developer terminal can be a preset terminal for developing a repair system or a repair person. When the standard use case is detected by using the use case script, the embodiment of the invention performs real-time screen capturing on the detection page, and can reproduce the detection process according to the screen capturing, thereby improving the maintenance capability of the whole detection process.
In detail, the use case repair module 104 pushes the final anomaly detection result set to the developer terminal by:
the interface with the abnormality is subjected to screen capturing and a corresponding abnormality number is generated, and the execution task is created by using the abnormality number;
Summarizing the anomaly number, screen capturing and the standard use case of the anomaly to obtain an initial anomaly detection result;
And carrying out importance ranking on initial abnormal detection results corresponding to different standard use cases to obtain the final abnormal detection result set, and pushing the final abnormal detection result set to a developer terminal.
In the embodiment of the invention, the execution task can be created by using an SQL statement, and the execution task is used for calling the corresponding application case script according to the abnormal number.
Specifically, the use case repair module 104 obtains the final anomaly detection result set by:
The standard use cases in the initial abnormal detection results corresponding to the different standard use cases are subjected to sorting adjustment by using a preset sorting rule;
and summarizing the ordered abnormal detection results to obtain the final abnormal detection result set.
The preset ordering rule may be ordering adjustment logic set manually according to service attributes.
In the embodiment of the present invention, for example, the initial anomaly detection result is: abnormal 001, standard use case 025, screenshot 025, abnormal 002, standard use case 032, screenshot 032, abnormal 003, standard use case 038, screenshot 038; adjusting the initial abnormal detection result set according to the preset ordering rule to obtain the final abnormal detection result set as follows: abnormal 002, standard use case 032, screenshot 032; anomaly 001, standard use case 025, screenshot 025; exception 003, standard use case 038, screenshot 038.
When the standard use case is judged to be abnormal, the invention gathers the abnormal detection results of the abnormal standard use case to obtain a final abnormal detection result set, and the final abnormal detection result set is directly pushed to the developer terminal, thereby improving the efficiency of abnormal detection.
The script calling module 105 is configured to obtain the repaired standard use case fed back by the developer terminal, call the use case script corresponding to the repaired standard use case by using the execution task, and return to the use case judging module 103 until all the standard use case sets are judged to be normal.
In detail, the script calling module 105 uses the execution task to call the application script corresponding to the repaired standard application by:
Acquiring a corresponding execution task by using the abnormal number, and extracting a standard number in the repaired standard use case;
And searching a corresponding application script according to the standard number, and calling the application script corresponding to the repaired standard application by utilizing the execution task.
According to the embodiment of the invention, the use case script is called through the execution task, so that the automatic calling of the use case script can be realized, and the abnormality detection efficiency is greatly improved.
Fig. 8 is a schematic structural diagram of an electronic device for implementing a software version quality anomaly detection method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a software version quality anomaly detection program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of the software version quality abnormality detection program 12, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective components of the entire electronic device using various interfaces and lines, executes or executes programs or modules (e.g., a software version quality abnormality detection program, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process the data.
The bus may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 8 shows only an electronic device with components, and it will be appreciated by a person skilled in the art that the structure shown in fig. 8 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The software version quality anomaly detection program 12 stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, can implement:
acquiring an original use case set, and generating a use case script set by using a virtual machine according to the original use case set;
The method comprises the steps of obtaining a standard use case set, and matching standard use cases in the standard use case set with use case scripts corresponding to the use case script set to obtain use case scripts corresponding to each standard use case in the standard use case set;
Executing the corresponding standard use case according to the use case script, and judging whether the standard use case is abnormal or not;
If the standard use case is not abnormal, judging that the standard use case is normal, if the standard use case is abnormal, pushing an abnormality detection result to a developer terminal, and generating an execution task according to the abnormality detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling an use case script corresponding to the repaired standard use case by utilizing the execution task.
Specifically, the specific implementation method of the above instructions by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 5, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
acquiring an original use case set, and generating a use case script set by using a virtual machine according to the original use case set;
The method comprises the steps of obtaining a standard use case set, and matching standard use cases in the standard use case set with use case scripts corresponding to the use case script set to obtain use case scripts corresponding to each standard use case in the standard use case set;
Executing the corresponding standard use case according to the use case script, and judging whether the standard use case is abnormal or not;
If the standard use case is not abnormal, judging that the standard use case is normal, if the standard use case is abnormal, pushing an abnormality detection result to a developer terminal, and generating an execution task according to the abnormality detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling an use case script corresponding to the repaired standard use case by utilizing the execution task.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.
Claims (7)
1. A method for detecting software version quality anomalies, the method comprising:
acquiring an original use case set, and generating a use case script set by using a virtual machine according to the original use case set;
the method for obtaining the standard use case set, matching the keywords of the standard use cases in the standard use case set with the keywords of the corresponding use case scripts in the use case script set to obtain the use case script corresponding to each standard use case in the standard use case set, comprises the following steps: extracting keywords of each standard use case in the standard use case set by using a preset language processing algorithm, matching the keywords of the standard use cases with the keywords of the use case scripts corresponding to the use case script set, and searching the use case scripts corresponding to each standard use case in the standard use case set;
Executing the corresponding standard use case according to the use case script, and judging whether the standard use case is abnormal or not;
If the standard use case is abnormal, judging that the standard use case is normal, if the standard use case is abnormal, performing screen capturing on an abnormal interface and generating a corresponding abnormal number, creating an execution task by using the abnormal number, summarizing the abnormal number, the screen capturing and the abnormal standard use case to obtain initial abnormal detection results, performing importance ranking on the initial abnormal detection results corresponding to different standard use cases to obtain a final abnormal detection result set, pushing the final abnormal detection result set to a developer terminal, and generating the execution task according to the final abnormal detection result set;
The method for acquiring the repaired standard use case fed back by the developer terminal, and calling the use case script corresponding to the repaired standard use case by utilizing the execution task comprises the following steps: and acquiring a corresponding execution task by using the abnormal number, extracting the standard number in the repaired standard use case, searching a corresponding use case script according to the standard number, and calling the use case script corresponding to the repaired standard use case by using the execution task.
2. The method for detecting quality anomalies in a software version according to claim 1, wherein the obtaining an original set of use cases, editing a set of use case scripts from the original set of use cases, includes:
acquiring the number information and the use case type of each original use case in the original use case set;
Acquiring a preset script template according to the use case type;
And writing the number information and the use case type into the script template as parameters to obtain a use case script, and summarizing the use case script to obtain the use case script set.
3. The method for detecting quality anomalies of a software version according to claim 1, wherein executing the corresponding standard use case according to the use case script includes:
Generating a demonstration environment corresponding to the standard use case by using the virtual machine;
And running the standard use cases in the demonstration environment by using the use case script.
4. The method for detecting quality anomalies of software versions according to claim 1, wherein the ranking the initial anomaly detection results corresponding to different standard cases to obtain a final anomaly detection result set includes:
The standard use cases in the initial abnormal detection results corresponding to the different standard use cases are subjected to sorting adjustment by using a preset sorting rule;
and summarizing the ordered abnormal detection results to obtain the final abnormal detection result set.
5. A software version quality anomaly detection device, the device comprising:
The script generation module is used for acquiring an original case set and generating the case script set by using a virtual machine according to the original case set;
the script matching module is configured to obtain a standard use case set, match keywords of standard use cases in the standard use case set with keywords of use case scripts corresponding to the use case script set, and obtain use case scripts corresponding to each standard use case in the standard use case set, where the script matching module includes: extracting keywords of each standard use case in the standard use case set by using a preset language processing algorithm, matching the keywords of the standard use cases with the keywords of the use case scripts corresponding to the use case script set, and searching the use case scripts corresponding to each standard use case in the standard use case set;
The use case judging module is used for executing the corresponding standard use case according to the use case script and judging whether the standard use case is abnormal or not;
The use case repairing module is used for judging that the standard use case is normal if the standard use case is not abnormal, performing screen capturing on an abnormal interface and generating a corresponding abnormal number if the standard use case is abnormal, creating an execution task by using the abnormal number, summarizing the abnormal number, the screen capturing and the abnormal standard use case to obtain initial abnormal detection results, performing importance ranking on the initial abnormal detection results corresponding to different standard use cases to obtain a final abnormal detection result set, pushing the final abnormal detection result set to a developer terminal, and generating the execution task according to the final abnormal detection result set;
The script calling module is configured to obtain a repaired standard use case fed back by the developer terminal, and call an use case script corresponding to the repaired standard use case by using the execution task, where the script calling module includes: and acquiring a corresponding execution task by using the abnormal number, extracting the standard number in the repaired standard use case, searching a corresponding use case script according to the standard number, and calling the use case script corresponding to the repaired standard use case by using the execution task.
6. An electronic device, the electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the software version quality anomaly detection method of any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the software version quality anomaly detection method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011490638.XA CN112527655B (en) | 2020-12-16 | 2020-12-16 | Software version quality abnormality detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011490638.XA CN112527655B (en) | 2020-12-16 | 2020-12-16 | Software version quality abnormality detection method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112527655A CN112527655A (en) | 2021-03-19 |
CN112527655B true CN112527655B (en) | 2024-06-25 |
Family
ID=75000778
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011490638.XA Active CN112527655B (en) | 2020-12-16 | 2020-12-16 | Software version quality abnormality detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112527655B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113064836A (en) * | 2021-05-07 | 2021-07-02 | 中国工商银行股份有限公司 | Business abnormity repairing method and device based on bank system automation test |
CN113282496B (en) * | 2021-05-31 | 2024-04-02 | 深圳赛安特技术服务有限公司 | Automatic interface testing method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108268373A (en) * | 2017-09-21 | 2018-07-10 | 平安科技(深圳)有限公司 | Automatic test cases management method, device, equipment and storage medium |
CN108459953A (en) * | 2017-02-22 | 2018-08-28 | 北京京东尚科信息技术有限公司 | test method and device |
CN109324969A (en) * | 2018-09-27 | 2019-02-12 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of test report |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567193B (en) * | 2010-12-09 | 2015-02-11 | 北京新媒传信科技有限公司 | Method and system for converting test case to automated testing script |
US20150331779A1 (en) * | 2014-05-13 | 2015-11-19 | Unisys Corporation | Framework to accommodate test plan changes without affecting or interrupting test execution |
CN108255702A (en) * | 2017-09-21 | 2018-07-06 | 平安科技(深圳)有限公司 | A kind of test case creation method, apparatus, equipment and storage medium |
CN109542771A (en) * | 2018-11-01 | 2019-03-29 | 武汉思普崚技术有限公司 | For the test script screening technique and equipment of test case |
CN110309051B (en) * | 2019-05-22 | 2022-09-30 | 深圳壹账通智能科技有限公司 | Method, system, equipment and storage medium for managing test cases |
-
2020
- 2020-12-16 CN CN202011490638.XA patent/CN112527655B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459953A (en) * | 2017-02-22 | 2018-08-28 | 北京京东尚科信息技术有限公司 | test method and device |
CN108268373A (en) * | 2017-09-21 | 2018-07-10 | 平安科技(深圳)有限公司 | Automatic test cases management method, device, equipment and storage medium |
CN109324969A (en) * | 2018-09-27 | 2019-02-12 | 平安普惠企业管理有限公司 | Generation method, device, computer equipment and the storage medium of test report |
Also Published As
Publication number | Publication date |
---|---|
CN112527655A (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107819627B (en) | System fault processing method and server | |
CN110990053A (en) | Method for creating and using machine learning scheme template and device | |
CN113238929B (en) | Code testing method and device based on Mock data, electronic equipment and storage medium | |
CN112527655B (en) | Software version quality abnormality detection method and device, electronic equipment and storage medium | |
CN113051171B (en) | Interface testing method, device, equipment and storage medium | |
CN112231417A (en) | Data classification method and device, electronic equipment and storage medium | |
CN112579475A (en) | Code testing method, device, equipment and readable storage medium | |
CN112148835A (en) | Big data-based after-sale service processing method, intelligent terminal and storage medium | |
CN113434542B (en) | Data relationship identification method and device, electronic equipment and storage medium | |
CN112667244B (en) | Data verification method, device, electronic equipment and computer readable storage medium | |
CN114968816A (en) | Data simulation-based strategy testing method, device, equipment and storage medium | |
CN113032256B (en) | Automated testing method, apparatus, computer system, and readable storage medium | |
CN111859985B (en) | AI customer service model test method and device, electronic equipment and storage medium | |
CN115617661A (en) | Simulation system test method, device, electronic equipment and storage medium | |
CN112631573B (en) | Component adding method, device, equipment and computer readable storage medium | |
CN114662005A (en) | Message pushing method, device, equipment and storage medium for user behavior track | |
CN114896164A (en) | Interface optimization method and device, electronic equipment and storage medium | |
CN114911479A (en) | Interface generation method, device, equipment and storage medium based on configuration | |
CN114693116A (en) | Method and device for detecting code review validity and electronic equipment | |
CN114385155A (en) | vue project visualization tool generation method, device, equipment and storage medium | |
CN113419951A (en) | Artificial intelligence model optimization method and device, electronic equipment and storage medium | |
CN112596828A (en) | Application-based popup window generation method and device, electronic equipment and storage medium | |
CN112380820A (en) | Automatic data backfilling method and device, electronic equipment and computer storage medium | |
CN114936148A (en) | Page testing method and device, electronic equipment and readable storage medium | |
CN112527282B (en) | Front-end page verification method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |