CN112527655A - Software version quality abnormity detection method and device, electronic equipment and storage medium - Google Patents

Software version quality abnormity detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112527655A
CN112527655A CN202011490638.XA CN202011490638A CN112527655A CN 112527655 A CN112527655 A CN 112527655A CN 202011490638 A CN202011490638 A CN 202011490638A CN 112527655 A CN112527655 A CN 112527655A
Authority
CN
China
Prior art keywords
standard
case
use case
script
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.)
Granted
Application number
CN202011490638.XA
Other languages
Chinese (zh)
Other versions
CN112527655B (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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202011490638.XA priority Critical patent/CN112527655B/en
Publication of CN112527655A publication Critical patent/CN112527655A/en
Application granted granted Critical
Publication of CN112527655B publication Critical patent/CN112527655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/368Test management for test version control, e.g. updating test cases to a new software version
    • 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/3684Test management for test design, e.g. generating new test cases
    • 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/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a test technology, and discloses a software version quality abnormity detection method, which comprises the following steps: the method comprises the steps of generating a case script set of an original case set by using a virtual machine, obtaining a standard case set, matching a case script corresponding to each standard case in the standard case set, executing a corresponding standard case according to the case script, judging whether the standard case is abnormal or not, judging the standard case to be normal if the standard case is not abnormal, pushing an abnormal detection result to a developer terminal if the standard case is abnormal, generating an execution task, obtaining a repaired standard case fed back by the developer terminal, and calling the corresponding case script of the repaired standard 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 block chain link points. The invention also provides a software version quality abnormity detection device, electronic equipment and a computer readable storage medium. The invention can solve the problem of low software version quality detection efficiency.

Description

Software version quality abnormity detection method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of testing, in particular to a software version quality abnormity detection method and device, electronic equipment 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 standards explicitly described in the documentation, and the implicit characteristics that any professionally developed software product should have. The 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. The manual detection is a requirement that a large number of test cases are required to be executed by a tester to cover a 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 rate is low. The existing automatic detection is generally suitable for fixed business logic, has fewer applicable scenes and lower detection efficiency.
Disclosure of Invention
The invention provides a software version quality abnormity detection method, a 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 abnormality of a software version, which comprises:
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;
acquiring a standard use case set, and matching the 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 a corresponding standard case according to the case script, and judging whether the standard case is abnormal or not;
if the standard case is not abnormal, judging that the standard case is normal, if the standard case is abnormal, pushing an abnormal detection result to a developer terminal, and generating an execution task according to the abnormal detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling a use case script corresponding to the repaired standard use case by using the execution task.
Optionally, the obtaining an original use case set, and editing a use case script set according to the original use case set includes:
acquiring the number information and the case type of each original case in the original case set;
acquiring a preset script template according to the use case type;
and writing the number information and the use case type as parameters into the script template 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 scripts corresponding to each standard use case in the standard use case set includes:
extracting the key words of each standard case in the standard case set by using a preset language processing algorithm;
and matching the keywords with the use case script set, and searching for a 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 case in the demonstration environment by using the use case script.
Optionally, the pushing the final anomaly detection result set to the developer terminal includes:
the abnormal interface is subjected to screen capture, a corresponding abnormal number is generated, and the execution task is created by utilizing the abnormal number;
summarizing the abnormal serial numbers, screen shots and abnormal standard cases to obtain an initial abnormal detection result;
and performing importance ranking on the initial anomaly detection results corresponding to different standard cases to obtain a final anomaly detection result set, and pushing the final anomaly detection result set to a developer terminal.
Optionally, the performing importance ranking on the initial anomaly detection results corresponding to different standard use cases to obtain the final anomaly detection result set includes:
performing sequencing adjustment on the standard cases in the initial anomaly detection results corresponding to the different standard cases by using a preset sequencing rule;
and summarizing the sorted abnormal detection results to obtain the final abnormal detection result set.
Optionally, the obtaining of the repaired standard use case fed back by the developer terminal and the calling of the use case script corresponding to the repaired standard use case by using the execution task include:
acquiring a corresponding execution task by using the abnormal number, and extracting a standard number in the repaired standard case;
and finding the corresponding use case script according to the standard serial number, and calling the use case script corresponding to the repaired standard use case by using the execution task.
In order to solve the above problem, the present invention further provides a software version quality anomaly detection apparatus, including:
the script generation module is used for acquiring an original case set and generating a case script set by using a virtual machine according to the original case set;
the script matching module is used for acquiring a standard case set, matching the standard cases in the standard case set with case scripts corresponding to the case script set, and obtaining case scripts corresponding to each standard case in the standard case set;
the case judgment module is used for executing a corresponding standard case according to the case script and judging whether the standard case is abnormal or not;
the case repairing module is used for judging that the standard case is normal if the standard case is not abnormal, pushing an abnormal detection result to the developer terminal if the standard case is abnormal, and generating an execution task according to the abnormal detection result;
and the script calling module is used 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 using the execution task.
In order to solve the above problem, the present invention also provides an electronic device, 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 abnormity detection method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the software version quality anomaly detection method described above.
According to the method, the use case script set is edited according to the original use case set, the corresponding use case script in the use case script set is matched through the standard use case in the standard use case set, the corresponding standard use case is executed by using the use case script, and the abnormity detection efficiency is higher; meanwhile, when the standard case is abnormal, the final abnormal detection result set is pushed to a developer terminal, an execution task is generated, and the execution task is utilized to call a case script corresponding to the repaired standard case, so that high-efficiency automatic execution of abnormal detection can be realized. Therefore, the software version quality anomaly detection method, the software version quality anomaly detection 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 schematic flowchart of a software version quality anomaly detection method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart showing a detailed implementation of one of the steps in FIG. 1;
FIG. 3 is a schematic flow chart showing another step of FIG. 1;
FIG. 4 is a schematic flow chart showing another step of FIG. 1;
FIG. 5 is a schematic flow chart showing another step in FIG. 1;
FIG. 6 is a schematic view of another step in FIG. 1
FIG. 7 is a functional block diagram of an apparatus for detecting quality anomaly of software versions 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 implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a software version quality abnormity detection method. The execution subject of the software version quality anomaly detection method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the software version quality anomaly detection method may be executed by software or hardware installed in a terminal device or a server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Fig. 1 is a schematic flow chart of a software version quality anomaly detection method according to an embodiment of the present invention. In this embodiment, the software version quality anomaly detection method 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 invention, the set of raw use cases may be a set of various software versions that can implement a certain function in various fields. For example, one of the raw cases may be: the function realized by a certain software product version is that a user clicks a designated button to automatically come out a popup window. The embodiment of the invention can acquire the original case set from the nodes of the block chain.
In the embodiment of the present invention, the use case script set may be a Virtual script generated by using Virtual Machine (VM) software, and is used to execute 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 the host by running some use cases on the virtual machine, can independently run in one environment for the fields with higher confidentiality requirements, such as banks and other fields with intensive customer information, and has stronger confidentiality and higher safety.
In one embodiment of the present invention, referring to fig. 2, the S1 includes:
s10, acquiring the number information and the case type of each original case in the original case set;
s11, acquiring a preset script template according to the use case type;
and S12, writing the number information and the use case type as parameters into the script template 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 template may be preset according to an original case in the original case set, for example, the function types implemented by software in the original case include "click to jump", "pop occurs when click", and the like, and different script templates are edited for the types.
The embodiment of the invention utilizes the virtual machine to generate the use case script set of the original use case set, and the virtual machine can generate various demonstration environments, so that the safety is higher.
S2, acquiring a standard case set, and matching the standard cases in the standard case set with case scripts corresponding to the case script set to obtain case scripts corresponding to each standard case in the standard case set.
In the embodiment of the invention, the standard case set is obtained by updating the software version in the original case set.
Referring to fig. 3, in the embodiment of the present invention, 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 scripts corresponding to each standard use case in the standard use case set includes:
s20, extracting the key words of each standard case in the standard case set by using a preset language processing algorithm;
s21, matching the keywords with the use case script set, and searching a 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 processing on the case name of each standard case in the standard case set, and removing stop words to obtain word segmentation results;
and one or more keywords of the standard use case are selected from the word segmentation result.
In the embodiment of the invention, the preset language processing algorithm can be a TextRank which is disclosed at present, a keyword extraction algorithm based on semantics and the like. For example, the language processing algorithm is used to extract the use case name "standard use case 001" in the standard use case set as the standard use case keyword, and according to the script keyword "use case script 001" in the use case script set in the standard use case keyword, when two keywords are successfully matched, the use case script corresponding to each standard use case is determined.
According to the embodiment of the invention, the standard cases in the standard case set are matched with the case scripts corresponding to the case script set, so that the standard case set can be quickly matched with the corresponding case scripts, and the abnormal detection speed is increased.
And 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 the embodiment of the present invention, the executing a 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;
and S31, running the standard use case in the demonstration environment by using the use case script.
For standard use cases from different fields, the embodiment of the present invention uses 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, the virtual machine may generate different demonstration environments.
According to the invention, the corresponding standard case is executed according to the case script, so that the automatic execution of the standard case can be realized, and the efficiency of software version quality abnormity detection is greatly improved.
If the standard case is not abnormal, executing S4 and judging that the standard case is normal;
and if the standard case is abnormal, executing S5, summarizing abnormal detection results of the abnormal standard 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 "a popup window will come out when a certain button is clicked by a certain software product", in the embodiment of the present invention, the use case script is used to control the clicking of the button, and if a popup window appears after clicking, it indicates that the standard use case is successfully executed without exception; and if the popup window does not appear after clicking, the execution failure of the standard case is indicated, and the exception exists. The embodiment of the invention captures the screen of the abnormal detection page when the abnormality exists, and pushes the captured screen and the standard case to the developer terminal for repairing. The developer terminal may be a preset terminal of a development and repair system or a development and repair worker. When the standard case is detected by using the case script, the embodiment of the invention carries out real-time screen capture on a detection page, can reproduce the detection process according to the screen capture, and improves the maintenance capability of the whole detection process.
In detail, referring to fig. 5, the 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 abnormal serial numbers, screen shots and abnormal standard cases to obtain an initial abnormal detection result;
s52, performing importance ranking on the initial anomaly detection results corresponding to different standard cases to obtain the final anomaly detection result set, and pushing the final anomaly detection result set to a developer terminal.
In the embodiment of the present invention, the execution task may be created by using an SQL statement, and the execution task is used to invoke a corresponding use case script according to the exception number.
Specifically, the performing importance ranking on the initial anomaly detection results corresponding to different standard use cases to obtain the final anomaly detection result set includes:
performing sequencing adjustment on the standard cases in the initial anomaly detection results corresponding to the different standard cases by using a preset sequencing rule;
and summarizing the sorted abnormal detection results to obtain the final abnormal detection result set.
The preset ordering rule may be an ordering adjustment logic manually set according to the service attribute.
In the embodiment of the present invention, for example, the initial anomaly detection result is: exception 001, standard case 025, screenshot 025, exception 002, standard case 032, screenshot 032, exception 003, standard case 038, screenshot 038; adjusting the initial anomaly detection result set according to the preset ordering rule to obtain the final anomaly detection result set as follows: exception 002, standard use case 032, screenshot 032; exception 001, standard use case 025, screenshot 025; exception 003, standard use case 038, screenshot 038.
When the abnormal standard cases are judged to be abnormal, the abnormal detection results of the abnormal standard cases are summarized to obtain the final abnormal detection result set, and the final abnormal detection result set is directly pushed to the developer terminal, so that the abnormal detection efficiency is improved.
And S6, acquiring the repaired standard case fed back by the developer terminal, calling a case script corresponding to the repaired standard case by using the execution task, and returning to S3 until all standard case sets are judged to be normal.
In detail, referring to fig. 6, the obtaining of the repaired standard use case fed back by the developer terminal and the calling of 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 case;
and S61, finding the corresponding use case script according to the standard serial number, and calling the use case script corresponding to the repaired standard use case by using the execution task.
The embodiment of the invention calls the use case script through the execution task, can realize the automatic calling of the use case script, and greatly improves the abnormity detection efficiency.
According to the method, the use case script set is edited according to the original use case set, the corresponding use case script in the use case script set is matched through the standard use case in the standard use case set, the corresponding standard use case is executed by using the use case script, and the abnormity detection efficiency is higher; meanwhile, when the standard case is abnormal, the final abnormal detection result set is pushed to a developer terminal, an execution task is generated, and the execution task is utilized to call a case script corresponding to the repaired standard case, so that high-efficiency automatic execution of abnormal detection can be realized. Therefore, the embodiment provided by the invention can solve the problem of low software version quality detection efficiency.
Fig. 7 is a functional block diagram of a software version quality anomaly detection apparatus according to an embodiment of the present invention.
The software version quality anomaly detection device 100 can be installed in electronic equipment. According to the implemented functions, the software version quality anomaly detection apparatus 100 may include a script generation module 101, a script matching module 102, a use case judgment module 103, a use case recovery module 104, and a script calling module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the script generating module 101 is configured to obtain an original use case set, and generate a use case script set by using a virtual machine according to the original use case set.
In at least one embodiment of the invention, the set of raw use cases may be a set of various software versions that can implement a certain function in various fields. For example, one of the raw cases may be: the function realized by a certain software product version is that a user clicks a designated button to automatically come out a popup window. The embodiment of the invention can acquire the original case set from the nodes of the block chain.
In the embodiment of the present invention, the use case script set may be a Virtual script generated by using Virtual Machine (VM) software, and is used to execute 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 the host by running some use cases on the virtual machine, can independently run in one environment for the fields with higher confidentiality requirements, such as banks and other fields with intensive customer information, and has stronger confidentiality and higher safety.
Preferably, the script generating module 101 obtains the use case script set by the following operations:
acquiring the number information and the case type of each original case in the original case set;
acquiring a preset script template according to the use case type;
and writing the number information and the use case type as parameters into the script template 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 template may be preset according to an original case in the original case set, for example, the function types implemented by software in the original case include "click to jump", "pop occurs when click", and the like, and different script templates are edited for the types.
The embodiment of the invention utilizes the virtual machine to generate the use case script set of the original use case set, and the virtual machine can generate various demonstration environments, so that the safety is higher.
The script matching module 102 is configured to obtain a standard case set, match a standard case in the standard case set with a case script corresponding to the case script set, and obtain a case script corresponding to each standard case in the standard case set.
In the embodiment of the invention, the standard case set is obtained by updating the software version in the original case set.
In the embodiment of the present invention, the script matching module 102 obtains a use case script corresponding to each standard use case in the standard use case set by the following operations:
extracting the key words of each standard case in the standard case set by using a preset language processing algorithm;
and matching the keywords with the use case script set, and searching for a use case script corresponding to each standard use case in the standard use case set.
In detail, the script matching module 102 extracts each standard use case keyword in the standard use case set by:
performing word segmentation processing on the case name of each standard case in the standard case set, and removing stop words to obtain word segmentation results;
and one or more keywords of the standard use case are selected from the word segmentation result.
In the embodiment of the invention, the preset language processing algorithm can be a TextRank which is disclosed at present, a keyword extraction algorithm based on semantics and the like. For example, the language processing algorithm is used to extract the use case name "standard use case 001" in the standard use case set as the standard use case keyword, and according to the script keyword "use case script 001" in the use case script set in the standard use case keyword, when two keywords are successfully matched, the use case script corresponding to each standard use case is determined.
According to the embodiment of the invention, the standard cases in the standard case set are matched with the case scripts corresponding to the case script set, so that the standard case set can be quickly matched with the corresponding case scripts, and the abnormal detection speed is increased.
The use case judgment 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 determining 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 case in the demonstration environment by using the use case script.
For standard use cases from different fields, the embodiment of the present invention uses 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, the virtual machine may generate different demonstration environments.
According to the invention, the corresponding standard case is executed according to the case script, so that the automatic execution of the standard case can be realized, and the efficiency of software version quality abnormity detection is greatly improved.
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, and push an abnormal detection result to the developer terminal if the standard use case is abnormal, and generate an execution task according to the abnormal detection result.
In the embodiment of the present invention, if the standard use case is not abnormal, the use case repairing module 104 determines that the standard use case is normal;
if the standard case is abnormal, the case repairing module 104 collects the abnormal detection results of the abnormal standard case to obtain a final abnormal detection result set, and pushes the final abnormal detection result set to the developer terminal to generate an execution task.
For example, in one embodiment of the present invention, the standard use case is "a popup window will come out when a certain button is clicked by a certain software product", in the embodiment of the present invention, the use case script is used to control the clicking of the button, and if a popup window appears after clicking, it indicates that the standard use case is successfully executed without exception; and if the popup window does not appear after clicking, the execution failure of the standard case is indicated, and the exception exists. The embodiment of the invention captures the screen of the abnormal detection page when the abnormality exists, and pushes the captured screen and the standard case to the developer terminal for repairing. The developer terminal may be a preset terminal of a development and repair system or a development and repair worker. When the standard case is detected by using the case script, the embodiment of the invention carries out real-time screen capture on a detection page, can reproduce the detection process according to the screen capture, and improves the maintenance capability of the whole detection process.
In detail, the use case repairing module 104 pushes the final anomaly detection result set to the developer terminal by:
the abnormal interface is subjected to screen capture, a corresponding abnormal number is generated, and the execution task is created by utilizing the abnormal number;
summarizing the abnormal serial numbers, screen shots and abnormal standard cases to obtain an initial abnormal detection result;
and performing importance ranking on the initial anomaly detection results corresponding to different standard cases to obtain a final anomaly detection result set, and pushing the final anomaly detection result set to a developer terminal.
In the embodiment of the present invention, the execution task may be created by using an SQL statement, and the execution task is used to invoke a corresponding use case script according to the exception number.
Specifically, the use case recovery module 104 obtains the final anomaly detection result set by:
performing sequencing adjustment on the standard cases in the initial anomaly detection results corresponding to the different standard cases by using a preset sequencing rule;
and summarizing the sorted abnormal detection results to obtain the final abnormal detection result set.
The preset ordering rule may be an ordering adjustment logic manually set according to the service attribute.
In the embodiment of the present invention, for example, the initial anomaly detection result is: exception 001, standard case 025, screenshot 025, exception 002, standard case 032, screenshot 032, exception 003, standard case 038, screenshot 038; adjusting the initial anomaly detection result set according to the preset ordering rule to obtain the final anomaly detection result set as follows: exception 002, standard use case 032, screenshot 032; exception 001, standard use case 025, screenshot 025; exception 003, standard use case 038, screenshot 038.
When the abnormal standard cases are judged to be abnormal, the abnormal detection results of the abnormal standard cases are summarized to obtain the final abnormal detection result set, and the final abnormal detection result set is directly pushed to the developer terminal, so that the abnormal detection efficiency is improved.
The script calling module 105 is configured to obtain the repaired standard use case fed back by the developer terminal, call a 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 standard use case sets are judged to be normal.
In detail, the script calling module 105 calls the use case script corresponding to the repaired standard use case by using the execution task through the following operations:
acquiring a corresponding execution task by using the abnormal number, and extracting a standard number in the repaired standard case;
and finding the corresponding use case script according to the standard serial number, and calling the use case script corresponding to the repaired standard use case by using the execution task.
The embodiment of the invention calls the use case script through the execution task, can realize the automatic calling of the use case script, and greatly improves the abnormity detection efficiency.
Fig. 8 is a schematic structural diagram of an electronic device 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, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, 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 also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and 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 to store 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 to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., software version quality anomaly detection programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 8 only shows an electronic device with components, and it will be understood by those 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 those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally 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 device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
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, enable:
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;
acquiring a standard use case set, and matching the 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 a corresponding standard case according to the case script, and judging whether the standard case is abnormal or not;
if the standard case is not abnormal, judging that the standard case is normal, if the standard case is abnormal, pushing an abnormal detection result to a developer terminal, and generating an execution task according to the abnormal detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling a use case script corresponding to the repaired standard use case by using the execution task.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 5, which is not repeated herein.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, 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, may 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;
acquiring a standard use case set, and matching the 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 a corresponding standard case according to the case script, and judging whether the standard case is abnormal or not;
if the standard case is not abnormal, judging that the standard case is normal, if the standard case is abnormal, pushing an abnormal detection result to a developer terminal, and generating an execution task according to the abnormal detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling a use case script corresponding to the repaired standard use case by using the execution task.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
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 attributes 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 block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A software version quality anomaly detection method is characterized by comprising the following steps:
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;
acquiring a standard use case set, and matching the 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 a corresponding standard case according to the case script, and judging whether the standard case is abnormal or not;
if the standard case is not abnormal, judging that the standard case is normal, if the standard case is abnormal, pushing an abnormal detection result to a developer terminal, and generating an execution task according to the abnormal detection result;
and acquiring the repaired standard use case fed back by the developer terminal, and calling a use case script corresponding to the repaired standard use case by using the execution task.
2. The method according to claim 1, wherein the obtaining of the raw use case set and the editing of the use case script set according to the raw use case set comprises:
acquiring the number information and the case type of each original case in the original case set;
acquiring a preset script template according to the use case type;
and writing the number information and the use case type as parameters into the script template 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 abnormality of a software version according to claim 1, wherein the step of 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 scripts corresponding to each standard use case in the standard use case set comprises the steps of:
extracting the key words of each standard case in the standard case set by using a preset language processing algorithm;
and matching the keywords with the use case script set, and searching for a use case script corresponding to each standard use case in the standard use case set.
4. The method for detecting the quality anomaly of the software version according to claim 1, wherein the executing of the corresponding standard use case according to the use case script comprises:
generating a demonstration environment corresponding to the standard use case by using the virtual machine;
and running the standard use case in the demonstration environment by using the use case script.
5. The software version quality anomaly detection method according to claim 1, wherein said pushing the final anomaly detection result set to a developer terminal comprises:
the abnormal interface is subjected to screen capture, a corresponding abnormal number is generated, and the execution task is created by utilizing the abnormal number;
summarizing the abnormal serial numbers, screen shots and abnormal standard cases to obtain an initial abnormal detection result;
and performing importance ranking on the initial anomaly detection results corresponding to different standard cases to obtain a final anomaly detection result set, and pushing the final anomaly detection result set to a developer terminal.
6. The method according to claim 5, wherein the step of ranking the importance of the initial anomaly detection results corresponding to different standard use cases to obtain the final anomaly detection result set comprises:
performing sequencing adjustment on the standard cases in the initial anomaly detection results corresponding to the different standard cases by using a preset sequencing rule;
and summarizing the sorted abnormal detection results to obtain the final abnormal detection result set.
7. The method according to any one of claims 1 to 6, wherein the obtaining of the repaired standard use case fed back by the developer terminal and the calling of the use case script corresponding to the repaired standard use case by the execution task includes:
acquiring a corresponding execution task by using the abnormal number, and extracting a standard number in the repaired standard case;
and finding the corresponding use case script according to the standard serial number, and calling the use case script corresponding to the repaired standard use case by using the execution task.
8. An apparatus for detecting software version quality anomaly, the apparatus comprising:
the script generation module is used for acquiring an original case set and generating a case script set by using a virtual machine according to the original case set;
the script matching module is used for acquiring a standard case set, matching the standard cases in the standard case set with case scripts corresponding to the case script set, and obtaining case scripts corresponding to each standard case in the standard case set;
the case judgment module is used for executing a corresponding standard case according to the case script and judging whether the standard case is abnormal or not;
the case repairing module is used for judging that the standard case is normal if the standard case is not abnormal, pushing an abnormal detection result to the developer terminal if the standard case is abnormal, and generating an execution task according to the abnormal detection result;
and the script calling module is used 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 using the execution task.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a software version quality anomaly detection method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements a software version quality anomaly detection method according to any one of claims 1 to 7.
CN202011490638.XA 2020-12-16 2020-12-16 Software version quality abnormality detection method and device, electronic equipment and storage medium Active CN112527655B (en)

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 true CN112527655A (en) 2021-03-19
CN112527655B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282496A (en) * 2021-05-31 2021-08-20 平安国际智慧城市科技股份有限公司 Automatic interface test method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567193A (en) * 2010-12-09 2012-07-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
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
CN109542771A (en) * 2018-11-01 2019-03-29 武汉思普崚技术有限公司 For the test script screening technique and equipment of test case
CN110309051A (en) * 2019-05-22 2019-10-08 深圳壹账通智能科技有限公司 Method, system, equipment and the storage medium of management of test cases

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567193A (en) * 2010-12-09 2012-07-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
CN108459953A (en) * 2017-02-22 2018-08-28 北京京东尚科信息技术有限公司 test method and device
CN108255702A (en) * 2017-09-21 2018-07-06 平安科技(深圳)有限公司 A kind of test case creation method, apparatus, equipment and storage medium
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
CN109542771A (en) * 2018-11-01 2019-03-29 武汉思普崚技术有限公司 For the test script screening technique and equipment of test case
CN110309051A (en) * 2019-05-22 2019-10-08 深圳壹账通智能科技有限公司 Method, system, equipment and the storage medium of management of test cases

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282496A (en) * 2021-05-31 2021-08-20 平安国际智慧城市科技股份有限公司 Automatic interface test method, device, equipment and storage medium
CN113282496B (en) * 2021-05-31 2024-04-02 深圳赛安特技术服务有限公司 Automatic interface testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112527655B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN107819627B (en) System fault processing method and server
CN113138929A (en) Distributed interface testing method and device, electronic equipment and storage medium
CN112559355A (en) Test case generation method and device, electronic equipment and storage medium
CN112527664A (en) Method and device for generating test case, electronic equipment and storage medium
CN114880238A (en) Mobile terminal interface testing method, device, equipment and storage medium
CN113886204A (en) User behavior data collection method and device, electronic equipment and readable storage medium
CN112527655B (en) Software version quality abnormality detection method and device, electronic equipment and storage medium
CN111159028B (en) Webpage testing method and device
CN112579475A (en) Code testing method, device, equipment and readable storage medium
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN113051171B (en) Interface testing method, device, equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN114936111A (en) Front-end variable anomaly detection and restoration method, device, equipment and storage medium
CN112380820A (en) Automatic data backfilling method and device, electronic equipment and computer storage medium
CN113221888A (en) License plate number management system testing method and device, electronic equipment and storage medium
CN113515265A (en) Site configuration method, device, equipment and computer readable 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
CN114519004A (en) Stability testing method, device, equipment and medium for application software
CN113064797B (en) Front-end monitoring method and device, electronic equipment and storage medium
JP2014067109A (en) Data transition trace device, data transition trace method, and data transition trace program
CN113434321B (en) Method, device and equipment for processing deployment errors in operation and maintenance and storage medium
CN116610572A (en) Object testing 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