CN111124917A - Public test case management and control method, device, equipment and storage medium - Google Patents

Public test case management and control method, device, equipment and storage medium Download PDF

Info

Publication number
CN111124917A
CN111124917A CN201911339057.3A CN201911339057A CN111124917A CN 111124917 A CN111124917 A CN 111124917A CN 201911339057 A CN201911339057 A CN 201911339057A CN 111124917 A CN111124917 A CN 111124917A
Authority
CN
China
Prior art keywords
case
target
test
common test
public
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
CN201911339057.3A
Other languages
Chinese (zh)
Other versions
CN111124917B (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 International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN201911339057.3A priority Critical patent/CN111124917B/en
Publication of CN111124917A publication Critical patent/CN111124917A/en
Application granted granted Critical
Publication of CN111124917B publication Critical patent/CN111124917B/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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for managing and controlling a public test case, and relates to the technical field of data testing. The method comprises the following steps: counting the reference times and reference states of the common test cases; receiving a reference instruction sent by a target test user; accessing the use case library in response to the reference instruction, searching in the use case library according to the reference requirement, and sending the target common test case to the target test user after matching the target common test case meeting the reference requirement; and updating the reference times of the target common test cases and the total reference times of the common test cases in the case library, and the reference state of the target common test cases. The method can reduce and avoid excessive invalid operation of the public test cases by the tester, and can avoid the problems that the messages are asynchronous and the user cannot know the reference state of the public test cases in time by updating the reference state of the public test cases in real time.

Description

Public test case management and control method, device, equipment and storage medium
Technical Field
The application relates to the technical field of data testing, in particular to a method, a device, equipment and a storage medium for managing and controlling a public test case.
Background
A test case is a set of test inputs, execution conditions, and expected results tailored for a particular purpose to test a certain program path or verify if a certain specific requirement is met, the design of which is the core of software testing. The test cases are descriptions of test tasks performed on a specific software product, and the test cases are different for different types of software.
The common test case refers to a case which guides test work development after being fused with other cases by summarizing the test cases shared by software or shared by software into a set according to the principle of saving case development time and reducing case development cost. And the common module or the common function of the common test extraction software is extracted.
In the current market, common test cases are generally maintained in local excel or project management tools. There are problems such as inconvenient referencing, high maintenance cost, unclear where the common use case is referenced, and lack of an update notification mechanism.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present application is to provide a method, an apparatus, a device and a storage medium for managing and controlling a public test case, so as to reduce invalid operations of a user on the public test case, and update an access state of a case library in real time.
In order to solve the above technical problem, the method for managing and controlling a public test case according to the embodiment of the present application adopts the following technical solutions:
a management and control method for public test cases comprises the following steps:
monitoring a communication process of a case library configured with a plurality of public test cases so as to count the reference times and reference states of all the public test cases in the case library;
receiving a reference instruction sent by a target test user, wherein the reference instruction comprises a reference requirement of the target test user on a common test case;
responding to the reference instruction to access the use case library, searching in the use case library according to the reference requirement, and sending the target common test case to the target test user after matching the target common test case meeting the reference requirement;
and updating the reference times of the target common test cases and the total reference times of the common test cases in the case library, and the reference state of the target common test cases.
The control method for the public test cases can reduce and avoid excessive invalid operations of testing personnel on the public test cases, and can update the reference state of the public test cases in real time, so that the problems that messages are asynchronous and users cannot know the reference state of the public test cases in time are avoided.
Further, the method for managing and controlling the public test cases, wherein the step of monitoring the communication process of the case library configured with a plurality of public test cases comprises:
receiving an editing request for a use case library;
identifying whether the requester of the editing request is a pre-recorded tester;
and if so, opening the operation authority to the case library to the applicant in response to the editing request so as to enable the applicant to edit the case library, wherein the operation authority comprises editing authority for adding, deleting, changing, checking, importing and exporting the common test cases in the case library.
Further, after the step of sending the target common test case to the target test user, the method for managing and controlling the common test case further includes:
receiving feedback opinions of the target test user;
and updating the target public test case in the case base based on the feedback opinions.
Further, in the method for managing and controlling the common test case, the step of updating the target common test case in the case base based on the feedback opinion includes:
generating an updating confirmation instruction based on the feedback opinions, sending the updating confirmation instruction to a target management user for auditing, wherein the updating confirmation instruction is used for confirming whether the target management user accepts the feedback opinions;
receiving an update confirmation instruction returned by the target management user;
if the returned updating confirmation instruction confirms that the target management user receives the feedback opinions, updating the target public test case in the case base based on the feedback opinions;
and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinions, sending the auditing result of the feedback opinions to the target test user until the target test user gives up feedback again or receives new feedback opinions of the target test user and confirms acceptance after the new feedback opinions are audited by the target management user.
Further, after the step of updating the reference times of the target common test case and the total reference times of the common test cases in the case library, the method for managing and controlling the common test cases further includes:
judging whether the total number of times of reference of the public test cases in the case base exceeds a preset statistical threshold value or not;
if the number of times of reference in the case library is less than the activity critical value, identifying a public test case in the case library;
and deleting or logging out the identified public test case in the case library.
Further, before the step of monitoring the communication process of the case library configured with a plurality of common test cases, the method for managing and controlling the common test cases further includes:
configuring a first-level classification comprising a plurality of classes in a use case library, and configuring a plurality of second-level classifications for each class of the first-level classification;
and carrying out multi-dimensional classification on the common test cases in the case base so as to divide each common test case into a second-stage classification under each class of the first-stage classification.
Further, before the step of monitoring the communication process of the case library configured with a plurality of common test cases, the method for managing and controlling the common test cases further includes: configuring a unique case number for each public test case in a case library;
the quote requirement indicates a primary test requirement and a secondary test requirement of a common test case required by a target test user, and the step of searching in the case library according to the quote requirement comprises the following steps: sequentially searching corresponding first-level classification and second-level classification in the use case library according to the first-level test requirement and the second-level test requirement so as to match a target public test case meeting the reference requirement, and acquiring a case number corresponding to the matched target public test case and newly-increased reference times;
the step of updating the reference times of the target common test case and the total reference times of the common test cases in the case base comprises the following steps: and matching the corresponding public test case in the database according to the case number of the target public test case, and updating the reference times of the target public test case and the total reference times of the public test cases in the case library according to the newly increased reference times of the target public test case.
In order to solve the above technical problem, an embodiment of the present application further provides a control device for a public test case, which adopts the following technical scheme:
a management and control device for common test cases comprises:
the state counting module is used for monitoring the communication process of the case library configured with a plurality of public test cases so as to count the reference times and reference states of all the public test cases in the case library;
the instruction receiving module is used for receiving a reference instruction sent by a target test user, wherein the reference instruction comprises a reference requirement of the target test user on a common test case;
the case matching module is used for responding to the reference instruction to access the case library, searching in the case library according to the reference requirement, and sending the target common test case to the target test user after matching the target common test case meeting the reference requirement;
and the state updating module is used for updating the reference times of the target common test case and the total reference times of the common test cases in the case library and the reference state of the target common test case.
The control device of the public test case can reduce and avoid excessive invalid operation of a tester on the public test case, and can update the reference state of the public test case in real time, so that the problem that a user cannot know the reference state of the public test case in time due to asynchronous messages is avoided.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for managing and controlling the public test case according to any one of the above technical solutions when executing the computer program.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the method for managing and controlling a public test case according to any one of the above technical solutions.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
the embodiment of the application discloses a method, a device, equipment and a storage medium for managing and controlling public test cases, wherein the method for managing and controlling the public test cases is used for counting the reference times and the reference state of each public test case in a case library by monitoring the communication process of the case library configured with a plurality of public test cases; after receiving a reference instruction sent by a target test user; responding to the reference instruction to access the use case library, searching in the use case library according to the reference requirement, and sending a target public test case meeting the reference requirement to the target test user; and updating the reference times of the target common test case and the total reference times of the common test cases in the case library, and the reference state of the target common test case. The method can reduce and avoid excessive invalid operation of the public test cases by the tester, and can avoid the problems that the messages are asynchronous and the user cannot know the reference state of the public test cases in time by updating the reference state of the public test cases in real time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram of an exemplary system architecture to which embodiments of the present application may be applied;
FIG. 2 is a flowchart of an embodiment of a method for managing and controlling a common test case in the embodiment of the present application;
fig. 3 is a schematic structural diagram of an embodiment of a management and control apparatus for a common test case in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a computer device in an embodiment of the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It is noted that the terms "comprises," "comprising," and "having" and any variations thereof in the description and claims of this application and the drawings described above are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. In the claims, the description and the drawings of the specification of the present application, relational terms such as "first" and "second", and the like, may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the relevant drawings in the embodiments of the present application.
As shown in fig. 1, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium of communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the first terminal device 101, the second terminal device 102 and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102 and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background server that provides support for pages displayed on the first terminal apparatus 101, the first terminal apparatus 102, and the third terminal apparatus 103.
It should be noted that the method for managing and controlling the common test case provided in the embodiment of the present application is generally executed by the server/terminal device, and accordingly, the management and control apparatus for the common test case is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Continuing to refer to fig. 2, a flowchart of an embodiment of a method for managing and controlling a common test case in the embodiment of the present application is shown. The control method of the public test case comprises the following steps:
step 201: monitoring the communication process of a case library configured with a plurality of common test cases so as to count the reference times and reference states of all the common test cases in the case library.
In the application, before the common test cases are called for testing, a case library stored with a plurality of common test cases can be configured in advance, and then the case library is integrated into a project management tool or is separately connected with other project management tools through a set of service system in an abutting mode.
The reference times and the reference state of each common test case in the case library can be known in real time by monitoring the communication process of the case library. Wherein the reference state of each common test case comprises: whether currently referenced, by which items, etc.
In some embodiments of the present application, the step of monitoring the communication process of the use case library configured with a plurality of common test cases in step 201 includes:
receiving an editing request for a use case library;
identifying whether the requester of the editing request is a pre-recorded tester;
and if so, opening the operation authority to the case library to the applicant in response to the editing request so as to enable the applicant to edit the case library, wherein the operation authority comprises editing authority for adding, deleting, changing, checking, importing and exporting the common test cases in the case library.
Before calling the public test case from the case library for testing, if the public test case in the case library is to be edited and maintained, a related requester sends an editing request to a server, and after the server receives the editing request, the server verifies whether the requester is a tester with corresponding editing permission pre-recorded in a system or not, and if the requester belongs to the tester, the operation permission of the case library can be directly opened to the tester, so that the requester can perform editing operations such as adding, deleting, modifying, checking, importing, exporting and the like on the public test case in the case library.
However, sometimes when the requester is a user with higher authority or a temporarily authorized user, the operation authority of the application case base should be opened to the requester. In a specific embodiment of the application, if the applicant does not belong to the pre-entered testing personnel, the server generates an identity verification instruction and sends the identity verification instruction to the administrator of the use case library, and the administrator further verifies the identity of the applicant and confirms whether the applicant belongs to the personnel with the editing right.
When the operation right of the use case base is opened to the applicant, the operation right can be displayed in a visual online editing page mode, and the applicant can conveniently add, delete, change, check, import and export operations in the visual page. Related configuration content can also be exported by a requester, and the configuration content is locally edited and maintained and then is reintroduced into the use case library for updating. Furthermore, after the requester edits every time, the update is submitted to the server, and further examination and approval are required to be performed by a case library manager, and after the update is passed, the update of the case library is completed in the case library according to the editing condition of the requester on the public test case.
Step 202: and receiving a reference instruction sent by a target test user, wherein the reference instruction comprises the reference requirement of the target test user on the common test case.
When a target test user requests to quote a public test case, a corresponding quote instruction is sent to a server side, and if the target test user introduces the public test case in a case library in the whole, a large number of cases are easy to be inapplicable to a current test scene, so that the quote requirement needs to be indicated in the quote instruction, and a public test case object which is expected to quote and is suitable for the current test scene is confirmed, so that invalid quote to the public test case is reduced.
In this embodiment of the application, an electronic device (for example, the server/terminal device shown in fig. 1) on which the common test case management and control method operates may receive a reference instruction sent by a target test user through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
Step 203: and responding to the reference instruction to access the use case library, searching in the use case library according to the reference requirement, and sending the target common test case to the target test user after matching the target common test case meeting the reference requirement.
And recording the public test cases matched in the case library according to the reference requirements as target public test cases, and sending the target public test cases to a target test user for testing. The number of the matched target common test cases is not unique, and the reference requirement may contain requirement information of a plurality of common test cases required by a plurality of test scenarios.
In some embodiments of the present application, after step 203, the method for managing and controlling a common test case further includes: receiving feedback opinions of the target test user;
and updating the target public test case in the case base based on the feedback opinions.
By introducing a message feedback mechanism, after a target test user refers to a target public test case, when finding that a scene is not applicable, a description error exists, a wrongly written word exists and the like, a corresponding feedback idea can be generated at a terminal and then sent to a server side to update the target public test case in a case library.
Furthermore, if the target test user has feedback suggestions such as proposing to add a use case, replacing the use case and the like, the feedback suggestions can be generated and sent to the server side for further processing.
In a further specific embodiment, the step of updating the target common test case in the case base based on the feedback opinion includes:
generating an updating confirmation instruction based on the feedback opinions, sending the updating confirmation instruction to a target management user for auditing, wherein the updating confirmation instruction is used for confirming whether the target management user accepts the feedback opinions;
receiving an update confirmation instruction returned by the target management user;
if the returned updating confirmation instruction confirms that the target management user receives the feedback opinions, updating the target public test case in the case base based on the feedback opinions;
and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinions, sending the auditing result of the feedback opinions to the target test user until the target test user gives up feedback again or receives new feedback opinions of the target test user and confirms acceptance after the new feedback opinions are audited by the target management user.
In this embodiment, the feedback opinions of the target testers are first sent to the target management user of the server for auditing.
And if the target management user passes the verification, updating the target public test case in the case library according to the feedback opinions.
And if the feedback opinion is not clear or definite during the auditing of the target management user, namely the feedback is not accepted, the auditing opinion can be used as an auditing result and sent to the target test user for further communication. And after the target test user receives the audit result, if the target test user does not need to feed back again, terminating the communication, finishing the feedback, and after the target test user feeds back again according to the audit suggestion, re-auditing the target management user until the flow is repeated, so that the two parties complete the communication of the opinions and the administrator agrees to accept the feedback suggestion.
Step 204: and updating the reference times of the target common test cases and the total reference times of the common test cases in the case library, and other reference states of all the common test cases.
And after the target common test case is matched according to the reference requirement and is sent to the target test user, updating the reference times corresponding to the target common test case in the data counted by the server. And when the target common test case is matched once, the target common test case is referred once, and the reference times are increased once during updating.
In the embodiment of the application, after the case library is updated, the corresponding update prompt is generated in time and automatically sent to the target user associated with the updated target public test case. The target test users here include management personnel and test personnel.
In some embodiments of the present application, after the step of updating the number of times of reference of the target common test case and the total number of times of reference of the common test cases in the case library in step 204, the method for managing and controlling a common test case further includes:
judging whether the total number of times of reference of the public test cases in the case base exceeds a preset statistical threshold value or not;
if the number of times of reference in the case library is less than the activity critical value, identifying a public test case in the case library;
and deleting or logging out the identified public test case in the case library.
And when the total reference times of all the public test cases in the case library exceed a certain value, analyzing the referenced condition of all the public test cases in the case library. The conditions of the use case library are optimized and the quality of the use case library is improved by collecting the conditions of the quoted common use cases through statistics, such as the proportion of the quoted common test cases in the common test cases and more or less times of the quoted common test cases.
The public test cases with the times lower than the activity critical value are found out and deleted or cancelled, so that the purposes of simplifying the case base and improving the search efficiency can be achieved.
In some embodiments of the present application, before step 201, the method for managing and controlling a common test case further includes:
configuring a first-level classification comprising a plurality of classes in a use case library, and configuring a plurality of second-level classifications for each class of the first-level classification;
and carrying out multi-dimensional classification on the common test cases in the case base so as to divide each common test case into a second-stage classification under each class of the first-stage classification.
The first-stage classification refers to a basic classification basis selected according to different classification requirements, and the second-stage classification refers to a classification further subdivided under each classification of the first-stage classification. Each class in the first-level classes may be classified into a group of classes (classes in one dimension), and each common test case needs to be further classified in each group of classes to correspond to a second-level class in each group of first-level classes.
In one embodiment, the first level classification comprises: use case type, scenario traffic and function point. The second-level classification corresponding to the use case type comprises the following steps: safety test cases, performance test cases, compatibility test cases, and the like. The second-level classification corresponding to the scene service flow comprises the following steps: and the service flow use cases are examined and approved in a third level, the service flow use cases of the unified acceptance platform are accepted, and the like. The second-level classification corresponding to the functional point comprises the following steps: adding cases, editing cases, checking cases, deleting cases, logging in cases and the like.
Through the type division, a user can be better positioned to a use case to be maintained, quoted and the like, and the time for the user to search the use case in the use case library is saved.
In a further specific embodiment, before step 201, the method for managing and controlling a common test case further includes: and configuring a unique case number for each common test case in the case library.
The reference requirement indicates a primary test requirement and a secondary test requirement of a common test case required by a target test user, and the step 203 of searching in the case library according to the reference requirement includes: and sequentially searching corresponding first-level classification and second-level classification in the use case library according to the first-level test requirement and the second-level test requirement so as to match a target common test case meeting the reference requirement, and acquiring a case number corresponding to the matched target common test case and newly-increased reference times.
In step 204, the step of updating the number of times of reference of the target common test case and the total number of times of reference of the common test cases in the case base includes: and matching the corresponding public test case in the database according to the case number of the target public test case, and updating the reference times of the target public test case and the total reference times of the public test cases in the case library according to the newly increased reference times of the target public test case.
The first-level test requirement and the second-level test requirement are sequentially searched to be matched with the target common test case, the target common test case can be better positioned, and irrelevant common test cases are avoided being introduced as much as possible.
At the moment, each public test case uniquely corresponds to one case number in the case library of the server, so that the recording and the matching during statistics are carried out according to the case numbers, and the statistical efficiency can be improved.
The control method for the public test cases can reduce and avoid excessive invalid operations of testing personnel on the public test cases, and can update the reference state of the public test cases in real time, so that the problems that messages are asynchronous and users cannot know the reference state of the public test cases in time are avoided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 3, fig. 3 is a schematic structural diagram illustrating an embodiment of a management and control apparatus for a common test case in the embodiment of the present application. As an implementation of the method shown in fig. 2, the present application provides an embodiment of a device for managing and controlling a common test case, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be specifically applied to various electronic devices.
As shown in fig. 3, the apparatus for managing and controlling a common test case in this embodiment includes:
a state statistics module 301; the method is used for monitoring the communication process of the case library configured with a plurality of common test cases so as to count the reference times and reference states of all the common test cases in the case library.
An instruction receiving module 302; the method comprises the steps of receiving a reference instruction sent by a target test user, wherein the reference instruction comprises the reference requirement of the target test user on a common test case.
A use case matching module 303; the system is used for responding to the reference instruction to access the use case library, searching in the use case library according to the reference requirement, and sending the target common test case to the target test user after the target common test case which meets the reference requirement is matched.
A status update module 304; and the method is used for updating the reference times of the target common test case and the total reference times of the common test cases in the case base, and the reference state of the target common test case.
In some embodiments of the present application, the state statistics module 301 comprises: and a user identification submodule. The user identification submodule is used for receiving an editing request of the use case base; and identifying whether the requester of the editing request is a pre-recorded tester.
In some embodiments of the present application, the apparatus for managing and controlling a common test case further includes: and a use case updating module. After the use case matching module 303 sends the target common test use case to the target test user, the use case updating module is configured to receive a feedback opinion of the target test user; and updating the target public test case in the case base based on the feedback opinions.
In a further specific implementation manner, the use case updating module is further configured to generate an update confirmation instruction based on the feedback opinions, and send the update confirmation instruction to a target management user for auditing, where the update confirmation instruction is used to confirm whether the target management user accepts the feedback opinions; receiving an update confirmation instruction returned by the target management user; if the returned updating confirmation instruction confirms that the target management user receives the feedback opinions, updating the target public test case in the case base based on the feedback opinions; and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinions, sending the auditing result of the feedback opinions to the target test user until the target test user gives up feedback again or receives new feedback opinions of the target test user and confirms acceptance after the new feedback opinions are audited by the target management user.
In some embodiments of the present application, the status update module 304 is further configured to: judging whether the total number of times of reference of the public test cases in the case base exceeds a preset statistical threshold value or not;
if the number of times of reference in the case library is less than the activity critical value, identifying a public test case in the case library;
and deleting or logging out the identified public test case in the case library.
In some embodiments of the present application, the apparatus for managing and controlling a common test case further includes: and a multi-dimensional classification module. The multi-dimensional classification module is used for configuring a first-level classification comprising a plurality of classes in a use case library and configuring a plurality of second-level classifications for each class of the first-level classification; and carrying out multi-dimensional classification on the common test cases in the case base so as to divide each common test case into a second-stage classification under each class of the first-stage classification.
In a further specific embodiment, the apparatus for managing and controlling a common test case further includes: and an identification setting module. The representation setting module is used for configuring a unique case number for each common test case in the case base.
The reference requirement indicates a primary test requirement and a secondary test requirement of a common test case required by a target test user, and the case matching module 303 is further configured to sequentially search a corresponding primary class and a corresponding secondary class in the case library according to the primary test requirement and the secondary test requirement to match a target common test case meeting the reference requirement, and obtain a case number corresponding to the matched target common test case and newly increased reference times.
The state updating module 304 is further configured to match a corresponding common test case in the database according to the case number of the target common test case, so as to update the number of times of reference of the target common test case and the total number of times of reference of the common test case in the case base according to the newly increased number of times of reference of the target common test case.
The control device of the public test case can reduce and avoid excessive invalid operation of a tester on the public test case, and can update the reference state of the public test case in real time, so that the problem that a user cannot know the reference state of the public test case in time due to asynchronous messages is avoided.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only a computer device 6 having components 61-63 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), and the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal storage unit of the computer device 6 and an external storage device thereof. In this embodiment, the memory 61 is generally used for storing an operating system installed in the computer device 6 and various types of application software, such as program codes of a management and control method of a common test case. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to run a program code stored in the memory 61 or process data, for example, a program code of a management and control method for running the common test case.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
The present application further provides another embodiment, that is, a computer-readable storage medium is provided, where a control program of a common test case is stored, and the control program of the common test case is executable by at least one processor, so that the at least one processor executes the steps of the control method of the common test case as described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
In the above embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The modules or components may or may not be physically separate, and the components shown as modules or components may or may not be physical modules, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules or components can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The present application is not limited to the above-mentioned embodiments, the above-mentioned embodiments are preferred embodiments of the present application, and the present application is only used for illustrating the present application and not for limiting the scope of the present application, it should be noted that, for a person skilled in the art, it is still possible to make several improvements and modifications to the technical solutions described in the foregoing embodiments or to make equivalent substitutions for some technical features without departing from the principle of the present application. All equivalent structures made by using the contents of the specification and the drawings of the present application can be directly or indirectly applied to other related technical fields, and the same should be considered to be included in the protection scope of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All other embodiments that can be obtained by a person skilled in the art based on the embodiments in this application without any creative effort and all equivalent structures made by using the contents of the specification and the drawings of this application can be directly or indirectly applied to other related technical fields and are within the scope of protection of the present application.

Claims (10)

1. A control method for public test cases is characterized by comprising the following steps:
monitoring a communication process of a case library configured with a plurality of public test cases so as to count the reference times and reference states of all the public test cases in the case library;
receiving a reference instruction sent by a target test user, wherein the reference instruction comprises a reference requirement of the target test user on a common test case;
responding to the reference instruction to access the use case library, searching in the use case library according to the reference requirement, and sending the target common test case to the target test user after matching the target common test case meeting the reference requirement;
and updating the reference times of the target common test cases and the total reference times of the common test cases in the case library, and the reference state of the target common test cases.
2. The method for managing and controlling the common test cases according to claim 1, wherein the step of monitoring the communication process of the case base configured with a plurality of common test cases includes:
receiving an editing request for a use case library;
identifying whether the requester of the editing request is a pre-recorded tester;
and if so, opening the operation authority to the case library to the applicant in response to the editing request so as to enable the applicant to edit the case library, wherein the operation authority comprises editing authority for adding, deleting, changing, checking, importing and exporting the common test cases in the case library.
3. The method for managing and controlling the common test case according to claim 1, wherein after the step of sending the target common test case to the target test user, the method further comprises:
receiving feedback opinions of the target test user;
and updating the target public test case in the case base based on the feedback opinions.
4. The method for managing and controlling the common test cases according to claim 3, wherein the step of updating the target common test case in the case base based on the feedback opinion includes:
generating an updating confirmation instruction based on the feedback opinions, sending the updating confirmation instruction to a target management user for auditing, wherein the updating confirmation instruction is used for confirming whether the target management user accepts the feedback opinions;
receiving an update confirmation instruction returned by the target management user;
if the returned updating confirmation instruction confirms that the target management user receives the feedback opinions, updating the target public test case in the case base based on the feedback opinions;
and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinions, sending the auditing result of the feedback opinions to the target test user until the target test user gives up feedback again or receives new feedback opinions of the target test user and confirms acceptance after the new feedback opinions are audited by the target management user.
5. The method for managing and controlling the common test cases according to claim 1, wherein after the step of updating the number of times of reference of the target common test case and the total number of times of reference of the common test cases in the case base, the method further comprises:
judging whether the total number of times of reference of the public test cases in the case base exceeds a preset statistical threshold value or not;
if the number of times of reference in the case library is less than the activity critical value, identifying a public test case in the case library;
and deleting or logging out the identified public test case in the case library.
6. The method for managing and controlling common test cases according to claim 1, wherein before the step of monitoring the communication process of the case base configured with a plurality of common test cases, the method further comprises:
configuring a first-level classification comprising a plurality of classes in a use case library, and configuring a plurality of second-level classifications for each class of the first-level classification;
and carrying out multi-dimensional classification on the common test cases in the case base so as to divide each common test case into a second-stage classification under each class of the first-stage classification.
7. The method for managing and controlling common test cases according to claim 6, wherein before the step of monitoring the communication process of the case base configured with a plurality of common test cases, the method further comprises: configuring a unique case number for each public test case in a case library;
the quote requirement indicates a primary test requirement and a secondary test requirement of a common test case required by a target test user, and the step of searching in the case library according to the quote requirement comprises the following steps: sequentially searching corresponding first-level classification and second-level classification in the use case library according to the first-level test requirement and the second-level test requirement so as to match a target public test case meeting the reference requirement, and acquiring a case number corresponding to the matched target public test case and newly-increased reference times;
the step of updating the reference times of the target common test case and the total reference times of the common test cases in the case base comprises the following steps: and matching the corresponding public test case in the database according to the case number of the target public test case, and updating the reference times of the target public test case and the total reference times of the public test cases in the case library according to the newly increased reference times of the target public test case.
8. The utility model provides a management and control device of public test case which characterized in that includes:
the state counting module is used for monitoring the communication process of the case library configured with a plurality of public test cases so as to count the reference times and reference states of all the public test cases in the case library;
the instruction receiving module is used for receiving a reference instruction sent by a target test user, wherein the reference instruction comprises a reference requirement of the target test user on a common test case;
the case matching module is used for responding to the reference instruction to access the case library, searching in the case library according to the reference requirement, and sending the target common test case to the target test user after matching the target common test case meeting the reference requirement;
and the state updating module is used for updating the reference times of the target common test case and the total reference times of the common test cases in the case library and the reference state of the target common test case.
9. A computer device comprising a memory in which a computer program is stored and a processor which, when executing the computer program, implements the steps of the method of governing a common test case according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for governing a common test case according to any one of claims 1 to 7.
CN201911339057.3A 2019-12-23 2019-12-23 Method, device, equipment and storage medium for managing and controlling public test cases Active CN111124917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911339057.3A CN111124917B (en) 2019-12-23 2019-12-23 Method, device, equipment and storage medium for managing and controlling public test cases

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911339057.3A CN111124917B (en) 2019-12-23 2019-12-23 Method, device, equipment and storage medium for managing and controlling public test cases

Publications (2)

Publication Number Publication Date
CN111124917A true CN111124917A (en) 2020-05-08
CN111124917B CN111124917B (en) 2023-06-06

Family

ID=70501625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911339057.3A Active CN111124917B (en) 2019-12-23 2019-12-23 Method, device, equipment and storage medium for managing and controlling public test cases

Country Status (1)

Country Link
CN (1) CN111124917B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111723007A (en) * 2020-05-29 2020-09-29 苏州浪潮智能科技有限公司 Test case merging method, system, equipment and medium
CN111966590A (en) * 2020-08-10 2020-11-20 上海中通吉网络技术有限公司 Service testing method, device and system
CN113220563A (en) * 2021-04-12 2021-08-06 成都安易迅科技有限公司 Test case generation method and system, storage medium and computer equipment
CN115964305A (en) * 2023-03-16 2023-04-14 广州嘉为科技有限公司 Cross-project test case library management method and device and storage medium
CN116304399A (en) * 2023-05-19 2023-06-23 建信金融科技有限责任公司 Visual processing method, device and system for test cases

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902439A (en) * 2012-12-25 2014-07-02 北大方正集团有限公司 Method, device and system for managing test cases
CN104133765A (en) * 2013-12-23 2014-11-05 腾讯科技(深圳)有限公司 Test case sending method and test case server of network activities
CN107291610A (en) * 2016-04-12 2017-10-24 展讯通信(上海)有限公司 Testing case management and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902439A (en) * 2012-12-25 2014-07-02 北大方正集团有限公司 Method, device and system for managing test cases
CN104133765A (en) * 2013-12-23 2014-11-05 腾讯科技(深圳)有限公司 Test case sending method and test case server of network activities
CN107291610A (en) * 2016-04-12 2017-10-24 展讯通信(上海)有限公司 Testing case management and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111723007A (en) * 2020-05-29 2020-09-29 苏州浪潮智能科技有限公司 Test case merging method, system, equipment and medium
CN111966590A (en) * 2020-08-10 2020-11-20 上海中通吉网络技术有限公司 Service testing method, device and system
CN113220563A (en) * 2021-04-12 2021-08-06 成都安易迅科技有限公司 Test case generation method and system, storage medium and computer equipment
CN113220563B (en) * 2021-04-12 2023-11-17 成都安易迅科技有限公司 Test case generation method, system, storage medium and computer equipment
CN115964305A (en) * 2023-03-16 2023-04-14 广州嘉为科技有限公司 Cross-project test case library management method and device and storage medium
CN116304399A (en) * 2023-05-19 2023-06-23 建信金融科技有限责任公司 Visual processing method, device and system for test cases
CN116304399B (en) * 2023-05-19 2023-08-11 建信金融科技有限责任公司 Visual processing method, device and system for test cases

Also Published As

Publication number Publication date
CN111124917B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN111124917B (en) Method, device, equipment and storage medium for managing and controlling public test cases
CN110879808B (en) Information processing method and device
CN108009444A (en) Authority control method, device and the computer-readable recording medium of full-text search
US20080010237A1 (en) System and Method for Managing Multi-Dimensional Data
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN115543428A (en) Simulated data generation method and device based on strategy template
CN110689219A (en) Big data-based user behavior evaluation display method, device, equipment and medium
CN115827051A (en) Software integration management system, method and server
CN116228402A (en) Financial credit investigation feature warehouse technical support system
US20110161304A1 (en) Deployment and compliance manager
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
US11688027B2 (en) Generating actionable information from documents
CN113935295A (en) Valuation table summarizing method, valuation table summarizing device, valuation table summarizing equipment and valuation table summarizing medium
CN112907220A (en) System, method and device for engineering cost
Pieczul et al. Discovering emergent norms in security logs
CN111582648A (en) User policy generation method and device and electronic equipment
CN111144848A (en) Highway engineering quantity standard list management system and method and computer
CN111882294B (en) Method and device for flow approval
CN103634326B (en) A kind of method and device for processing application system request message
US11972018B2 (en) Data categories for purpose-based processing of personal data
CN113610496B (en) Order examination method and corresponding order examination system, computer equipment and medium
CN116932697A (en) Service data processing method based on rule engine optimization and related equipment
CN114004542A (en) Enterprise task management method, system, computer equipment and storage medium
CN118349273A (en) Configuration method of data supervision platform, medium and electronic equipment
CN117273958A (en) Method, device, equipment and medium for processing kernel protection data based on rule engine

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