CN111124917B - Method, device, equipment and storage medium for managing and controlling public test cases - Google Patents

Method, device, equipment and storage medium for managing and controlling public test cases Download PDF

Info

Publication number
CN111124917B
CN111124917B CN201911339057.3A CN201911339057A CN111124917B CN 111124917 B CN111124917 B CN 111124917B CN 201911339057 A CN201911339057 A CN 201911339057A CN 111124917 B CN111124917 B CN 111124917B
Authority
CN
China
Prior art keywords
case
target
test cases
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.)
Active
Application number
CN201911339057.3A
Other languages
Chinese (zh)
Other versions
CN111124917A (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)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

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

Description

Method, device, equipment and storage medium for managing and controlling public test cases
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 public test cases.
Background
A test case is a set of test inputs, execution conditions, and expected results that are tailored for a particular goal in order to test a program path or verify whether a particular requirement is met, the design of which is the core of a software test. Test cases are descriptions of test tasks performed on a particular software product, and are different for different classes of software.
The common test cases are the cases in which the common or shared test cases of the software are integrated into a set, and the development time of the cases is saved, the development cost of the cases is reduced as a principle, and the common test cases are combined with other cases to guide the development of the test work. Common test refinements software common or shared modules, extracting common modules or functions.
Currently, common test cases are typically maintained locally in excel or in project management tools. There are problems such as inconvenient reference, high maintenance cost, unclear case of common instance being referenced, and lack of update notification mechanism.
Disclosure of Invention
The technical problem to be solved by the embodiment of the application is to provide a method, a device, equipment and a storage medium for managing and controlling public test cases, so that invalid operation of users on the public test cases is reduced, and the access state of a case library can be updated in real time.
In order to solve the above technical problems, the method for managing and controlling the public test cases according to the embodiments of the present application adopts the following technical scheme:
a method for managing and controlling 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 each public test case in the case library;
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 public test case;
responding to the reference instruction to access the case library, searching in the case library according to the reference requirement, and sending the target public test case to the target test user after matching the target public test case meeting the reference requirement;
and updating the reference times of the target public test cases and the total reference times of the public test cases in the case library and the reference states of the target public test cases.
According to the method for managing and controlling the public test cases, excessive invalid operations of the public test cases by testers can be reduced and avoided, and the problem that a user cannot know the reference state of the public test cases in time due to the fact that messages are not synchronous is avoided by updating the reference state of the public test cases in real time.
Further, the step of monitoring the communication process of the case library configured with a plurality of common test cases includes the steps of:
receiving an editing request of a use case library;
identifying whether the requestor of the editing request is a pre-entered tester;
if yes, the operation authority of the case library is opened to the applicant in response to the editing request, so that the applicant edits the case library, and the operation authority comprises editing authorities for adding, deleting, modifying, searching, importing and exporting public test cases in the case library.
Further, in the method for managing and controlling a public test case, after the step of sending the target public test case to the target test user, the method further includes:
receiving feedback comments of the target test user;
And updating the target public test case in the case library based on the feedback opinion.
Further, the step of updating the target common test case in the case library based on the feedback opinion includes:
generating an update confirmation instruction based on the feedback opinion and sending the update confirmation instruction to a target management user for auditing, wherein the update confirmation instruction is used for confirming whether the target management user accepts the feedback opinion;
receiving an update confirmation instruction returned by the target management user;
if the returned updating confirmation instruction confirms that the target management user accepts the feedback opinion, updating the target public test case in the case library based on the feedback opinion;
and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinion, sending the auditing result of the feedback opinion to the target test user until the target test user gives up to feed back again, or receiving the new feedback opinion of the target test user and confirming acceptance after auditing by the target management user.
Further, after the step of updating the reference number of the target public test case and the total reference number of the public test case in the case library, the method further includes:
Judging whether the total reference times of the public test cases in the case library exceeds a preset statistical threshold value;
if yes, identifying a public test case with the reference times lower than an activity critical value in the case library;
and deleting or canceling the identified public test cases in the case library.
Further, in the method for managing and controlling the common test cases, before the step of monitoring the communication process of the case library configured with the plurality of common test cases, the method further includes:
configuring a first-stage classification comprising a plurality of categories in a use case library, and configuring a plurality of second-stage classifications for each category of the first-stage classification;
and carrying out multidimensional classification on the public test cases in the case library so as to divide each public test case into second-stage classification under each type of first-stage classification.
Further, in the method for managing and controlling the common test cases, before the step of monitoring the communication process of the case library configured with the plurality of common test cases, the method further includes: configuring a unique case number for each public test case in the case library;
the reference requirement indicates a primary test requirement and a secondary test requirement of a public test case required by a target test user, and the step of searching in the case library according to the reference requirement comprises the following steps: sequentially searching corresponding first-level classification and second-level classification in the case library according to the first-level test requirements and the second-level test requirements to match target public test cases meeting the reference requirements, and acquiring case numbers and newly-increased reference times corresponding to the matched target public test cases;
The step of updating the reference times of the target public test cases and the total reference times of the public test cases in the case library comprises the following steps: matching corresponding public test cases in a database according to the case numbers of the target public test cases so as to update the reference times of the target public test cases and the total reference times of the public test cases in the case library according to the newly added reference times of the target public test cases.
In order to solve the technical problem, the embodiment of the application also provides a management and control device for a public test case, which adopts the following technical scheme:
a device for managing and controlling a common test case, comprising:
the state statistics module is used for monitoring the communication process of a case library configured with a plurality of public test cases so as to count the reference times and the 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 the reference requirement of the target test user on a public 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 to match a target public test case meeting the reference requirement, and then sending the target public test case to the target test user;
And the state updating module is used for updating the reference times of the target public test cases and the total reference times of the public test cases in the case library and the reference state of the target public test cases.
The management and control device for the public test cases can reduce and avoid excessive invalid operations of the public test cases by testers, and avoid the problem that messages are asynchronous and users cannot know the reference states of the public test cases in time by updating the reference states of the public test cases in real time.
In order to solve the above technical problems, the embodiments of the present application further provide a computer device, which adopts the following technical schemes:
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 a public test case according to any one of the above technical solutions when executing the computer program.
In order to solve the above technical problems, embodiments of the present application further provide a computer readable storage medium, which adopts the following technical solutions:
a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for managing and controlling a public test case according to any one of the above-mentioned technical solutions.
Compared with the prior art, the embodiment of the application has the following main 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 states 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 case library, searching in the 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 public test cases and the total reference times of the public test cases in the case library and the reference states of the target public test cases. The method can reduce and avoid excessive invalid operations of the public test cases by the testers, and avoid the problem that the messages are asynchronous and the users cannot know the reference states of the public test cases in time by updating the reference states of the public test cases in real time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed 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 that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method for managing common test cases described in embodiments of the present application;
FIG. 3 is a schematic structural diagram of one embodiment of a control device for a common test case according to the embodiments of the present application;
fig. 4 is a schematic structural view of one 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 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 "comprising," "including," and "having," and any variations thereof, in the description and claims of the present application and in the foregoing figures, 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 listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. In the claims, specification, and drawings of this application, relational terms such as "first" and "second," and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any actual such relationship or order between such entities/operations/objects.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the solution of the present application, the following description will clearly and completely describe the technical solution of the embodiment of the present application with reference to the related drawings in the embodiment 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 a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user can interact with the server 105 through the network 104 using the first terminal device 101, the second terminal device 102, and the third terminal device 103 to receive or transmit a message or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first, second and third terminal devices 101, 102 and 103 may be various electronic devices having a display screen 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, moving picture experts compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture experts compression standard audio layer 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the first terminal device 101, the first terminal device 102, and the third terminal device 103.
It should be noted that, the method for controlling the public test case provided in the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the device for controlling the public 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.
With continued reference to FIG. 2, a flowchart of one embodiment of a method of managing common test cases is shown in an embodiment of the present application. The method for managing and controlling the public test cases comprises the following steps:
step 201: and monitoring the communication process of a case library configured with a plurality of public test cases so as to count the reference times and the reference states of all the public 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 preconfigured, and then integrated into a project management tool, or the case library is in butt joint with other project management tools through a set of service systems alone.
And monitoring the communication process of the case library to know the reference times and the reference states of all the public test cases in the case library in real time. Wherein the reference state of each common test case comprises: whether currently referenced, which items are referenced, etc.
In some embodiments of the present application, the step of monitoring the communication process of the case library configured with the plurality of common test cases in step 201 includes:
receiving an editing request of a use case library;
identifying whether the requestor of the editing request is a pre-entered tester;
if yes, the operation authority of the case library is opened to the applicant in response to the editing request, so that the applicant edits the case library, and the operation authority comprises editing authorities for adding, deleting, modifying, searching, importing and exporting public test cases in the case library.
Before the public test cases are called from the case library for testing, if editing and maintenance are required to be carried out on the public test cases in the case library, the relevant requesters send editing requests to the service end, after receiving the editing requests, the service end verifies whether the requesters are testers with corresponding editing authorities in the pre-input system, if the testers belong to the testers, the operation authorities of the case library can be directly opened to the testers, so that the requesters can carry out editing operations such as adding, deleting, modifying, searching, importing and exporting on the public test cases in the case library.
But since sometimes a user with higher authority or a user with temporary authority is requested, the operation authority to the use case library should be opened to the user as well. In a specific embodiment of the present application, if the applicant does not belong to the pre-entered tester, the server generates an authentication command to send the authentication command to the manager of the use case library, and the manager further verifies the identity of the applicant to determine whether the applicant belongs to the person with editing authority.
When the operation right of the use case library is opened to the applicant, the operation right can be displayed in the form of a visual online editing page, so that the applicant can conveniently perform operations of adding, deleting, modifying, searching, importing and exporting in the visual page. The related configuration content can be exported by the applicant, edited and maintained locally and then imported into the use case library again for updating. Furthermore, after each time the requester edits, the update is submitted to the server, and the use case library is further checked and approved by the use case library manager, and after the use case library passes, the update of the use case library is completed according to the edit 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 public test case.
When a target test user requests to quote the public test cases, a corresponding quote instruction is sent to the server, if the target test user entirely introduces the public test cases in the case library, a large number of cases are easy to appear and are not applicable to the current test scene, so that the quote instruction needs to indicate the quote requirement of the target test user, and the public test case object which is expected to be quoted and is suitable for the current test scene is confirmed, so that invalid quotes to the public test cases are reduced.
In this embodiment of the present application, the electronic device (for example, the server/terminal device shown in fig. 1) on which the management method of the public test case operates may receive the reference instruction sent by the target test user through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connections, wiFi connections, bluetooth connections, wiMAX connections, zigbee connections, UWB (ultra wideband) connections, and other now known or later developed wireless connection means.
Step 203: and responding to the reference instruction to access the case library, searching in the case library according to the reference requirement, and sending the target public test case to the target test user after matching the target public test case meeting the reference requirement.
And marking 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 for various test scenes.
In some embodiments of the present application, after step 203, the method for managing a common test case further includes: receiving feedback comments of the target test user;
and updating the target public test case in the case library based on the feedback opinion.
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 other errors exist, the target test user can generate corresponding feedback comments at a terminal and then send the corresponding feedback comments to a server to update the target public test case in a case library.
Furthermore, if the target test user has feedback suggestions for proposing the addition use case, replacing the use case and the like, the feedback suggestions can be generated and sent to the server for further processing.
In a further specific embodiment, the step of updating the target common test case in the case library based on the feedback opinion includes:
generating an update confirmation instruction based on the feedback opinion and sending the update confirmation instruction to a target management user for auditing, wherein the update confirmation instruction is used for confirming whether the target management user accepts the feedback opinion;
receiving an update confirmation instruction returned by the target management user;
if the returned updating confirmation instruction confirms that the target management user accepts the feedback opinion, updating the target public test case in the case library based on the feedback opinion;
and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinion, sending the auditing result of the feedback opinion to the target test user until the target test user gives up to feed back again, or receiving the new feedback opinion of the target test user and confirming acceptance after auditing by the target management user.
In the specific embodiment, the feedback opinion of the target tester is sent to the target management user of the server for verification.
And if the target management user passes the audit, updating the target public test cases in the case library according to the feedback opinion.
If the target management user considers that the feedback opinion is unclear and ambiguous in auditing, namely, does not accept the feedback, the auditing opinion can be sent to the target test user as an auditing result for further communication. After receiving the auditing result, the target test user stops communication if no feedback is considered to be needed, and the feedback is ended, if feedback is carried out again according to the auditing opinion, the target management user audits again until the flow is repeated, so that the opinion communication of the two parties is completed, and the administrator agrees to accept the feedback opinion.
Step 204: and updating the reference times of the target public test cases and the total reference times of the public test cases in the case library, and other reference states of the public test cases.
After the reference requirements are matched with the target public test cases and the target public test cases are sent to the target test users, the reference times corresponding to the target public test cases are updated in the data counted by the server. And each time the target public test case is matched, the target public test case is referred once, and the reference times are increased once during updating.
In the embodiment of the application, after the use case library is updated, a corresponding update prompt is timely generated and automatically sent to the target user associated with the updated target public test case. The target test user here includes a manager and a tester.
In some embodiments of the present application, after the step of updating the reference number of the target common test case and the total reference number of the common test case in the case library in step 204, the method for managing the common test case further includes:
judging whether the total reference times of the public test cases in the case library exceeds a preset statistical threshold value;
if yes, identifying a public test case with the reference times lower than an activity critical value in the case library;
and deleting or canceling the identified public test cases in the case library.
And when the total reference times of all the public test cases in the case library exceeds a certain value, analyzing the referenced conditions of all the public test cases in the case library. And collecting the cited cases of the common cases through statistics, such as the proportion of the cited common test cases to the common test cases and the more or less times of the cited common test cases, so as to optimize the condition of the case library and improve the quality of the case library.
The purposes of simplifying the case library and improving the search efficiency can be achieved by finding out the public test cases with times lower than the activity critical value and deleting or canceling the public test cases.
In some embodiments of the present application, before step 201, the method for managing a common test case further includes:
configuring a first-stage classification comprising a plurality of categories in a use case library, and configuring a plurality of second-stage classifications for each category of the first-stage classification;
and carrying out multidimensional classification on the public test cases in the case library so as to divide each public test case into second-stage classification under each type of first-stage classification.
The first-stage classification refers to basic classification basis selected according to different classification requirements, and the second-stage classification refers to classification further subdivided under each classification of the first-stage classification. Each class in the first-level classification may be a set of classifications (classifications in one dimension), and each common test case needs to be further classified in each set of classifications to correspond to a second-level classification under each set of first-level classifications.
In one embodiment, the first level classification comprises: use case type, scene traffic flow and function point. The second-stage classification corresponding to the use case type comprises the following steps: security test cases, performance test cases, compatibility test cases, and the like. The second-stage classification corresponding to the scene service flow comprises the following steps: three-level approval service flow cases, unified acceptance platform service flow cases and the like. The second-stage classification corresponding to the function point comprises: new use cases, edit use cases, view use cases, delete use cases, log-in use cases, etc.
Through the division of the types, the user can better locate the use cases to be subjected to maintenance, quotation and other operations, and the time for the user to search the use cases 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.
And the reference requirement indicates a primary test requirement and a secondary test requirement of a common test case required by the target test user, and the step of searching in the case library according to the reference requirement in step 203 includes: and sequentially searching corresponding first-stage classification and second-stage classification in the case library according to the first-stage test requirement and the second-stage test requirement so as to match the target public test case meeting the reference requirement, and acquiring the case number corresponding to the matched target public test case and the newly added reference number.
The step of updating the reference number of the target common test case and the total reference number of the common test case in the case library in step 204 includes: matching corresponding public test cases in a database according to the case numbers of the target public test cases so as to update the reference times of the target public test cases and the total reference times of the public test cases in the case library according to the newly added reference times of the target public test cases.
The primary test requirement and the secondary test requirement are sequentially searched to be matched with the target public test cases, so that the target public test cases can be better positioned, and the reference of irrelevant public test cases is avoided as much as possible.
At this time, each public test case uniquely corresponds to one case number in the case library of the server, so that the statistics efficiency can be improved more by matching when recording and statistics are performed according to the case numbers.
According to the method for managing and controlling the public test cases, excessive invalid operations of the public test cases by testers can be reduced and avoided, and the problem that a user cannot know the reference state of the public test cases in time due to the fact that messages are not synchronous is avoided by updating the reference state of the public test cases in real time.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (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, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
With further reference to fig. 3, fig. 3 illustrates a schematic structural diagram of one embodiment of a control device for a common test case according to an 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 a common test case, where an 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 management and control device for a common test case according to this embodiment includes:
a status statistics module 301; the method 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 the reference states of all the public test cases in the case library.
An instruction receiving module 302; the method is used for 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 public test case.
A use case matching module 303; and the system 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 public test case to the target test user after matching the target public test case meeting the reference requirement.
A status update module 304; the method is used for updating the reference times of the target public test cases and the total reference times of the public test cases in the case library and the reference states of the target public test cases.
In some embodiments of the present application, the state statistics module 301 includes: the user identifies the sub-module. The user identification sub-module is used for receiving an editing request of the use case library; and identifying whether the requestor of the editing request is a pre-entered tester.
In some embodiments of the present application, the device for managing and controlling a common test case further includes: and the use case updating module. After the case matching module 303 sends the target public test case to the target test user, the case updating module is configured to receive feedback comments of the target test user; and updating the target public test case in the case library based on the feedback opinion.
In a further specific embodiment, the use case update module is further configured to generate an update confirmation instruction based on the feedback opinion, and send the update confirmation instruction to a target management user for auditing, where the update confirmation instruction is used for confirming whether the target management user accepts the feedback opinion; receiving an update confirmation instruction returned by the target management user; if the returned updating confirmation instruction confirms that the target management user accepts the feedback opinion, updating the target public test case in the case library based on the feedback opinion; and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinion, sending the auditing result of the feedback opinion to the target test user until the target test user gives up to feed back again, or receiving the new feedback opinion of the target test user and confirming acceptance after auditing 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 reference times of the public test cases in the case library exceeds a preset statistical threshold value;
if yes, identifying a public test case with the reference times lower than an activity critical value in the case library;
and deleting or canceling the identified public test cases in the case library.
In some embodiments of the present application, the device 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-stage classification comprising a plurality of categories in the use case library, and configuring a plurality of second-stage classifications for each category of the first-stage classification; and carrying out multidimensional classification on the public test cases in the case library so as to divide each public test case into second-stage classification under each type of first-stage classification.
In a further specific embodiment, the device for managing and controlling the common test case further includes: and the identification setting module. The representation setting module is used for configuring a unique case number for each public test case in the case library.
The reference requirement indicates a first-level test requirement and a second-level test requirement of a public test case required by a target test user, and the case matching module 303 is further configured to search the case library for a corresponding first-level classification and a second-level classification in sequence according to the first-level test requirement and the second-level test requirement, so as to match the target public test case meeting the reference requirement, and obtain a case number corresponding to the matched target public test case and a newly added reference number.
The state updating module 304 is further configured to match corresponding public test cases in a database according to the case numbers of the target public test cases, so as to update the reference times of the target public test cases and the total reference times of the public test cases in the case library according to the newly added reference times of the target public test cases.
The management and control device for the public test cases can reduce and avoid excessive invalid operations of the public test cases by testers, and avoid the problem that messages are asynchronous and users cannot know the reference states of the public test cases in time by updating the reference states of the public test cases in real time.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 4, fig. 4 is a basic structural block diagram 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 computer device 6 having components 61-63 is shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 61 includes at least one type of readable storage media including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 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 (Flash Card) or the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal memory unit of the computer device 6 and an external memory device. In this embodiment, the memory 61 is generally used to store an operating system and various application software installed on the computer device 6, such as program codes of a method for managing a common test case. Further, the memory 61 may 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 (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 execute the program code stored in the memory 61 or process data, such as the program code of the method for managing the common test case.
The network interface 63 may comprise a wireless network interface or a wired network interface, which 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, namely, a computer readable storage medium, where a control program of a common test case is stored, where the control program of the common test case may be executed by at least one processor, so that the at least one processor performs the steps of the control method of the common test case as described above.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
In the foregoing embodiments provided herein, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed.
The modules or components may or may not be physically separate, and components shown as modules or components may or may not be physical modules, may or may not be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules or components thereof may be selected according to actual needs to achieve the purpose of the embodiment.
The present application is not limited to the above embodiments, but the above embodiments are preferred embodiments of the present application, and the examples are only for illustrating the present application and not for limiting the scope of the present application, and it should be noted that, for those skilled in the art, it is still possible to make several improvements and modifications to the technical solutions described in the foregoing specific embodiments, or to make equivalent substitutions for some of the technical features thereof, without departing from the principles of the present application. All equivalent structures made by the specification and drawings of the present application, directly or indirectly, are considered to be included in the protection scope of the present application.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All other embodiments obtained by those skilled in the art without creative efforts based on the embodiments in the application and all equivalent structures made by the specification and drawings of the application are directly or indirectly applied to other related technical fields and are equally within the protection scope of the application.

Claims (9)

1. The utility model provides a management and control method of public test cases, which is characterized by comprising the following steps:
monitoring a communication process of a case library configured with a plurality of public test cases to count the reference times and reference states of all the public test cases in the case library, wherein the reference states comprise whether the current reference is carried out and which items are referenced;
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 public test case;
responding to the reference instruction to access the case library, searching in the case library according to the reference requirement, and sending the target public test case to the target test user after matching the target public test case meeting the reference requirement;
updating the reference times of the target public test cases and the total reference times of the public test cases in the case library and the reference states of the target public test cases;
before the step of monitoring the communication process of the case library configured with the plurality of common test cases, the method further includes:
configuring a first-stage classification comprising a plurality of categories in a use case library, and configuring a plurality of second-stage classifications for each category of the first-stage classification;
carrying out multidimensional classification on the public test cases in the case library so as to divide each public test case into second-stage classification under each type of first-stage classification;
the first-level classification comprises a case type, a scene service flow and a function point, the second-level classification corresponding to the case type comprises a security test case, a performance test case and a compatibility test case, the second-level classification corresponding to the scene service flow comprises a three-level approval service flow case and a unified acceptance platform service flow case, and the second-level classification corresponding to the function point comprises a new case, an editing case, a viewing case, a deletion case and a login case.
2. The method for managing and controlling common test cases according to claim 1, wherein the step of monitoring the communication process of the case library configured with the plurality of common test cases comprises:
receiving an editing request of a use case library;
identifying whether the requestor of the editing request is a pre-entered tester;
if yes, the operation authority of the case library is opened to the applicant in response to the editing request, so that the applicant edits the case library, and the operation authority comprises editing authorities for adding, deleting, modifying, searching, importing and exporting public test cases in the case library.
3. The method for managing and controlling a 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 comments of the target test user;
and updating the target public test case in the case library based on the feedback opinion.
4. The method of claim 3, wherein the step of updating the target common test case in the case library based on the feedback opinion comprises:
Generating an update confirmation instruction based on the feedback opinion and sending the update confirmation instruction to a target management user for auditing, wherein the update confirmation instruction is used for confirming whether the target management user accepts the feedback opinion;
receiving an update confirmation instruction returned by the target management user;
if the returned updating confirmation instruction confirms that the target management user accepts the feedback opinion, updating the target public test case in the case library based on the feedback opinion;
and if the returned updating confirmation instruction confirms that the target management user refuses to accept the feedback opinion, sending the auditing result of the feedback opinion to the target test user until the target test user gives up to feed back again, or receiving the new feedback opinion of the target test user and confirming acceptance after auditing by the target management user.
5. The method for managing and controlling common test cases according to claim 1, wherein after the step of updating the reference number of the target common test case and the total reference number of common test cases in the case library, the method further comprises:
judging whether the total reference times of the public test cases in the case library exceeds a preset statistical threshold value;
If yes, identifying a public test case with the reference times lower than an activity critical value in the case library;
and deleting or canceling the identified public test cases 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 library configured with the plurality of common test cases, the method further comprises: configuring a unique case number for each public test case in the case library;
the reference requirement indicates a primary test requirement and a secondary test requirement of a public test case required by a target test user, and the step of searching in the case library according to the reference requirement comprises the following steps: sequentially searching corresponding first-level classification and second-level classification in the case library according to the first-level test requirements and the second-level test requirements to match target public test cases meeting the reference requirements, and acquiring case numbers and newly-increased reference times corresponding to the matched target public test cases;
the step of updating the reference times of the target public test cases and the total reference times of the public test cases in the case library comprises the following steps: matching corresponding public test cases in a database according to the case numbers of the target public test cases so as to update the reference times of the target public test cases and the total reference times of the public test cases in the case library according to the newly added reference times of the target public test cases.
7. The utility model provides a management and control device of public test case which characterized in that includes:
the state statistics module is used for monitoring the communication process of a case library configured with a plurality of public test cases so as to count the reference times and the reference states of the public test cases in the case library, wherein the reference states comprise whether the current reference is carried out and which items are referenced;
the instruction receiving module is used for 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 public 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 to match a target public test case meeting the reference requirement, and then sending the target public test case to the target test user;
the state updating module is used for updating the reference times of the target public test cases and the total reference times of the public test cases in the case library and the reference state of the target public test cases;
the device for managing and controlling the public test cases further comprises:
The multi-dimensional classification module is used for configuring a first-stage classification comprising a plurality of categories in the use case library and configuring a plurality of second-stage classifications for each category of the first-stage classification; carrying out multidimensional classification on the public test cases in the case library so as to divide each public test case into second-stage classification under each type of first-stage classification;
the first-level classification comprises a case type, a scene service flow and a function point, the second-level classification corresponding to the case type comprises a security test case, a performance test case and a compatibility test case, the second-level classification corresponding to the scene service flow comprises a three-level approval service flow case and a unified acceptance platform service flow case, and the second-level classification corresponding to the function point comprises a new case, an editing case, a viewing case, a deletion case and a login case.
8. A computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method of managing common test cases as claimed in any one of claims 1-6 when the computer program is executed.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for managing public test cases according to any of the claims 1-6.
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 CN111124917A (en) 2020-05-08
CN111124917B true 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)

Families Citing this family (5)

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

Also Published As

Publication number Publication date
CN111124917A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111124917B (en) Method, device, equipment and storage medium for managing and controlling public test cases
CN113326991B (en) Automatic authorization method, device, computer equipment and storage medium
CN112445854B (en) Multi-source service data real-time processing method, device, terminal and storage medium
CN114493255A (en) Enterprise abnormity monitoring method based on knowledge graph and related equipment thereof
CN111367982B (en) Method, device, computer equipment and storage medium for importing TRRIGA basic data
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
CN115543428A (en) Simulated data generation method and device based on strategy template
CN116151631A (en) Service decision processing system, service decision processing method and device
CN115827051A (en) Software integration management system, method and server
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN113935295A (en) Valuation table summarizing method, valuation table summarizing device, valuation table summarizing equipment and valuation table summarizing medium
CN111582648A (en) User policy generation method and device and electronic equipment
CN111882294B (en) Method and device for flow approval
CN111163088B (en) Message processing method, system and device and electronic equipment
CN117273958A (en) Method, device, equipment and medium for processing kernel protection data based on rule engine
CN116932697A (en) Service data processing method based on rule engine optimization and related equipment
CN103634326A (en) Method and device for processing request message of application system
CN117421311A (en) Data verification method, device, equipment and storage medium based on artificial intelligence
CN116415914A (en) Service data processing method, device, computer equipment and storage medium
CN113420053A (en) Data processing method and device, electronic equipment and storage medium
CN117032789A (en) Business rule configuration and execution method, system, computer equipment and storage medium
CN117632161A (en) Terminal software processing method and device and electronic equipment
CN117172686A (en) Intelligent government office platform system and electronic document processing method
CN117407191A (en) Data processing method, system, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant