CN116467179A - Test case batch editing method and device and processing equipment - Google Patents

Test case batch editing method and device and processing equipment Download PDF

Info

Publication number
CN116467179A
CN116467179A CN202310280684.4A CN202310280684A CN116467179A CN 116467179 A CN116467179 A CN 116467179A CN 202310280684 A CN202310280684 A CN 202310280684A CN 116467179 A CN116467179 A CN 116467179A
Authority
CN
China
Prior art keywords
editing
specified
content
value
batch
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.)
Pending
Application number
CN202310280684.4A
Other languages
Chinese (zh)
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.)
Beijing Abt Networks Co ltd
Original Assignee
Beijing Abt Networks 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 Beijing Abt Networks Co ltd filed Critical Beijing Abt Networks Co ltd
Priority to CN202310280684.4A priority Critical patent/CN116467179A/en
Publication of CN116467179A publication Critical patent/CN116467179A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a test case batch editing method, a device and processing equipment, which are used for starting from a visual interface and providing a more convenient test case batch editing scheme for a user, so that the management work of test cases is more convenient and efficient. The test case batch editing method provided by the application comprises the following steps: displaying a use case editing interface, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface; receiving edit contents written in an input box and aiming at a specified edit object; searching a designated editing object in a test case set formed by different test cases; and editing the specified editing objects by using the case editing content, and ignoring other objects except the specified editing objects to finish batch editing.

Description

Test case batch editing method and device and processing equipment
Technical Field
The application relates to the field of testing, in particular to a test case batch editing method, a device and processing equipment.
Background
The management of the test cases is a very important work in the test management, the test cases are also one of important output of the product test design, the quality of the test case management work directly determines the test execution effect, and in the management process, the parameters of the test cases are main basis of management classification, including the number, version, test type, author and the like of the cases.
Because of the iteration of the system version, the functions of the modules of each version are different, so that the test cases of the same function and different versions are different or changed. When test cases are managed, there is often a batch of test cases that need to modify the same parameter or parameters, and there is a need for batch editing operations.
However, in the research process of the prior related technology, the inventor finds that the earlier batch editing method simultaneously modifies one or more parameters of a batch of items to the same value, and the batch editing case method can only try out one or more parameters which are explicitly modified by displaying the parameters on a page for each parameter, for example, a plurality of security policies are required to be modified to be blocking actions in batches, the actions can be displayed on a page drop-down frame, and all policies are effective when blocking is selected, but the method can only be applied to the situation that parameters are fewer, otherwise, the page shows all parameters which need to be edited in batches, and for the situation that parameters are more, the prior batch editing method performs model presetting on the items of the parameters in advance, and can only edit the items with the same parameter model in batches, and then performs batch editing only by searching the model, but the batch editing of the parameters is not suitable for the management of test cases.
Disclosure of Invention
The application provides a test case batch editing method, a device and processing equipment, which are used for starting from a visual interface and providing a more convenient test case batch editing scheme for a user, so that the management work of test cases is more convenient and efficient.
In a first aspect, the present application provides a method for batch editing of test cases, where the method includes:
displaying a use case editing interface, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface;
receiving edit contents written in an input box and aiming at a specified edit object;
searching a designated editing object in a test case set formed by different test cases;
and editing the specified editing objects by using the case editing content, and ignoring other objects except the specified editing objects to finish batch editing.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, the use case editing interface is specifically a batch editing management interface, and the receiving, written in an input box, of editing content for a specified editing object includes:
and receiving the editing content which is written in the test case range selected by the input box and is aimed at the appointed editing object.
With reference to the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, the scope of the test case is specifically determined by five types of vendor, product type, branch, priority and label.
With reference to the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the specified editing object is at least one of a specified test case and a specified case content.
With reference to the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, performing editing processing on a specified editing object by using case editing content, and ignoring other objects except the specified editing object, so as to complete batch editing, including:
transmitting the value of the application editing content corresponding to the appointed editing object to the background, and transmitting the default null value of the editing object except the appointed editing object to the background;
the value of the specified editing object is changed to the value of the use case editing content in the background.
With reference to the fourth possible implementation manner of the first aspect of the present application, in a fifth possible implementation manner of the first aspect of the present application, the null value is specifically configured with a nododity identifier, where the nododity identifier is used to identify that is not modified, and the transmitting, to the background, a default null value of an editing object other than the specified editing object, where the default null value includes:
and transmitting the nododity identifier of the editing object except the designated editing object to the background.
With reference to the fourth possible implementation manner of the first aspect of the present application, in a sixth possible implementation manner of the first aspect of the present application, modifying a value of a specified editing object into a value of a use case editing content in the background includes:
the method comprises the steps of comparing a value of a specified editing object with an original branch value of the specified editing object in a branch table supported by a database in the background to judge whether a difference exists or not;
if the difference exists, updating the branch value to a branch table supported by the database;
if no difference exists, the branch value is updated to the branch table not supported by the database.
In a second aspect, the present application provides a test case batch editing apparatus, the apparatus including:
the display unit is used for displaying a use case editing interface, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface;
a receiving unit configured to receive edit contents for a specified edit object written in an input box;
the searching unit is used for searching the appointed editing object in the test case set formed by different test cases;
and the editing unit is used for editing the specified editing objects through the use case editing content and ignoring other objects except the specified editing objects so as to finish batch editing.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the use case editing interface is specifically a batch editing management interface, and the receiving unit is specifically configured to:
and receiving the editing content which is written in the test case range selected by the input box and is aimed at the appointed editing object.
With reference to the first possible implementation manner of the second aspect of the present application, in a second possible implementation manner of the second aspect of the present application, the scope of the test case is specifically determined by five types of vendor, product type, branch, priority and label.
With reference to the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the specified editing object is at least one of a specified test case and a specified case content.
With reference to the second aspect of the present application, in a fourth possible implementation manner of the second aspect of the present application, the editing unit is specifically configured to:
transmitting the value of the application editing content corresponding to the appointed editing object to the background, and transmitting the default null value of the editing object except the appointed editing object to the background;
the value of the specified editing object is changed to the value of the use case editing content in the background.
With reference to the fourth possible implementation manner of the second aspect of the present application, in a fifth possible implementation manner of the second aspect of the present application, the null value is specifically configured with a nododity identifier, where the nododity identifier is used to identify that the modification is not performed, and the editing unit is specifically configured to:
and transmitting the nododity identifier of the editing object except the designated editing object to the background.
With reference to the fourth possible implementation manner of the second aspect of the present application, in a sixth possible implementation manner of the second aspect of the present application, the editing unit is specifically configured to:
the method comprises the steps of comparing a value of a specified editing object with an original branch value of the specified editing object in a branch table supported by a database in the background to judge whether a difference exists or not;
if the difference exists, updating the branch value to a branch table supported by the database;
if no difference exists, the branch value is updated to the branch table not supported by the database.
In a third aspect, the present application provides a processing device, comprising a processor and a memory, the memory having stored therein a computer program, the processor executing the method provided by the first aspect of the present application or any one of the possible implementations of the first aspect of the present application when calling the computer program in the memory.
In a fourth aspect, the present application provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method provided in the first aspect of the present application or any one of the possible implementations of the first aspect of the present application.
From the above, the present application has the following advantages:
aiming at the management work of test cases, the method and the device can receive the edit contents of the specified edit objects written in the input box in the interface by displaying the case edit interface to the user, so that the specified edit objects can be searched in the test case sets formed by different test cases, then the specified edit objects are edited by the case edit contents, other objects except the specified edit objects are ignored, so as to finish batch editing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being 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 a schematic flow chart of a test case batch editing method of the present application;
FIG. 2 is a schematic view of a scenario of the batch editing management interface of the present application;
FIG. 3 is a schematic view of yet another scenario of the batch editing use case management interface of the present application;
FIG. 4 is a schematic diagram of a scenario of test case 448 of the present application prior to editing;
FIG. 5 is a schematic view of a scenario of the test case 448 of the present application after editing;
FIG. 6 is a schematic diagram of a scenario of test case 448 of the present application prior to editing;
FIG. 7 is a schematic view of a scenario of the test case 448 of the present application after editing;
FIG. 8 is a schematic diagram of a method for batch editing of test cases according to the present application;
FIG. 9 is a schematic structural diagram of a test case batch editing device according to the present application;
fig. 10 is a schematic view of a structure of the processing apparatus of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules that are expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be executed according to the time/logic sequence indicated by the naming or numbering, and the execution sequence of the steps in the flow that are named or numbered may be changed according to the technical purpose to be achieved, so long as the same or similar technical effects can be achieved.
The division of the modules in the present application is a logical division, and may be implemented in another manner in practical application, for example, a plurality of modules may be combined or integrated in another system, or some features may be omitted or not implemented, and in addition, coupling or direct coupling or communication connection between the modules that are shown or discussed may be through some interfaces, and indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separate, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purposes of the present application.
Before introducing the test case batch editing method provided by the application, the background content related to the application is first introduced.
The test case batch editing method, the device and the computer readable storage medium can be applied to processing equipment and used for starting from a visual interface, and a more convenient test case batch editing scheme is provided for a user, so that the management work of the test case is more convenient and efficient.
According to the test case batch editing method, an execution main body can be a test case batch editing device or different types of processing Equipment such as a server, a physical host or User Equipment (UE) integrated with the test case batch editing device. The test case batch editing device can be realized in a hardware or software mode, the UE can be specifically terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a desktop computer or a personal digital assistant (Personal Digital Assistant, PDA) and the like, and the processing equipment can be arranged in an equipment cluster mode.
For the processing device related to the application, it should be understood that the processing device is adjusted according to the test case management work at hand of the tester in actual situations, and the processing device can be externally connected with a display screen (including a touch screen) or is configured with the display screen (including the touch screen) so as to complete corresponding test case management work through a visual interface.
Next, the batch editing method for test cases provided by the application is introduced.
First, referring to fig. 1, fig. 1 shows a flow chart of a test case batch editing method provided by the present application, and the test case batch editing method specifically may include steps S101 to S104 as follows:
step S101, a use case editing interface is displayed, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface;
it can be understood that the batch editing process of the test cases related to the application is provided for users or staff, and better convenience is realized in the batch editing process specifically through a visual interface.
In this regard, the present application configures a case editing interface that includes/presents an input box for inputting editing content for batch editing requirements of test cases.
It should be understood that the input box is provided for a user to input related editing content, which may be editing the editing content directly in the input box or importing the editing content in the input box (not directly editing in the input box), for example, a file of the editing content stored in a related storage address or a file of the editing content forwarded by a related device.
In practical application, the processing device may default to display the use case editing interface, or may trigger the display of the use case editing interface in the form of a task, and how the use case editing interface is displayed obviously may be flexibly configured according to the actual needs, so the application is not particularly limited.
Step S102, receiving the edit content which is written in the input box and is aimed at the appointed edit object;
for the user, in the process of displaying the use case editing interface by the processing device, the user can receive the editing content which is written in the input box and aims at the appointed editing object according to the receiving mode that the input box of the interface can be processed normally.
It can be understood that, in the case editing interface, the relevant content of the test case that can be edited is not shown, which is the biggest difference from the prior art.
In the prior art, the earlier batch editing method is to modify one or more parameters of a lot of items to the same value at the same time, and the batch editing case method can only try out one or more parameters which are explicitly modified by displaying the parameters on a page, for example, a plurality of security policies are to be modified into blocking actions in batches, the actions can be displayed in a drop-down box on the page, and blocking is selected, so that all the policies are effective, but the playing method is only applicable to the condition of fewer parameters, otherwise, the page does not display all the parameters which need to be edited in batches.
Aiming at the situation of more parameters, the existing batch editing method is to preset the model of the item of the parameter in advance, the item with the same parameter model can be edited in batch, and only the model is searched and then the batch editing is carried out, however, the parameter batch editing is not suitable for the management of test cases, because the granularity of the test cases is very fine, the related parameters are very many, the parameters of most of the test cases are not completely consistent, in this case, very many models need to be preset, a great amount of software and hardware resources are obviously wasted, and the batch editing requirement of the test case management is difficult to solve.
That is, the prior art now faces the requirement of batch editing of a large number of test cases, and the related content of all the test cases capable of being edited needs to be traversed in advance and presented to the user in the form of a visual interface for selecting specific editable content and editing the specific editable content, which requires a lot of operation cost in advance.
In the method, a light test case editing scheme is introduced, related contents of test cases are not presented, therefore, configuration of arranging all test cases capable of being edited and related models in advance is not needed, editing contents of specified editing objects are directly input by users, so that users, especially familiar and skilled users, can input the case editing contents which want to be edited in a directional mode (specified editing objects), users and devices do not need to pay much attention to other unrelated object contents, and the users and devices can directly edit as long as specified editing objects can meet the conditions of editing the current case editing contents.
Step S103, searching a designated editing object in a test case set formed by different test cases;
after determining the editing content of the case related to the specified editing object input by the current user, the specified editing object can be searched and positioned in all the test cases which can be edited, namely test case sets formed by different test cases, so as to determine the processing range for the specific editing processing.
Step S104, editing the specified editing object through the use case editing content, and ignoring other objects except the specified editing object to finish batch editing.
After the specified editing object which is expected to be effective by the case editing content is specifically located, on one hand, the specified editing content can be edited according to the specific content of the case editing content under the condition that editing is allowed and normal, and on the other hand, other objects except the specified editing object are directly ignored, so that one-time lightweight and convenient batch editing processing is completed for different test cases in the test case set.
As can be seen from the content of the above embodiment, for the management work of the test cases, the present application can receive the edit content of the specified edit object written in the input box in the interface by displaying the case edit interface to the user, so that the specified edit object can be searched in the test case set formed by different test cases, then the specified edit object is edited by the case edit content, and other objects except the specified edit object are ignored to complete batch editing.
The steps of the embodiment shown in fig. 1 and the possible implementation thereof in practical applications will be described in detail.
It should be understood that, as already mentioned in the foregoing, the user only needs to input the editing content of the specified editing object on the basis of the input box of the use case editing interface, and no other object content needs to be involved.
In this case, some simple screening mechanisms of test case ranges may be introduced, and classification of some identified and symbolized test case ranges may be used to assist the user in restricting the editing range with finer granularity on the basis of specifying the editing object, or restricting the range of specifying the editing object with finer granularity may be considered.
Specifically, as a specific implementation manner, the use case editing interface may specifically be a batch editing management interface, and step S102 receives the editing content for the specified editing object written in the input box, and may include the following contents:
and receiving the editing content which is written in the test case range selected by the input box and is aimed at the appointed editing object.
It will be appreciated that selection of the test case scope may be provided within the display scope of the input box or within the display scope at the input box in the batch editing management interface, and it should be noted that only the names of the test cases or their brief descriptions are simply shown here, and the specific content of the test cases will not be displayed, and therefore, in actual cases, only the simple information of the test cases in the test case set will be traversed, and the specific content of the test cases will not be traversed.
In this way, when the user inputs the edit content of the specified editing object, the user can select the corresponding test case range, which means that the specified editing object is determined in the editable range which can be validated in the test case ranges, and the mechanism is convenient to properly adjust the specific validation range of the specified editing object from the test case name in practical situations.
In particular, the settings herein may also be understood in conjunction with a scene diagram of the batch editing management interface of the present application shown in fig. 2.
In addition, for the selection of the test case scope in the batch editing management interface, as a practical implementation manner, as shown in fig. 3, the test case scope may be specifically determined by five types of vendor, product type, branch, priority and label.
It is easy to see that in the application scenario shown in fig. 3, a specific set of floor application schemes is provided for the application scenario of the service provider, and in the test case management for numerous software products/software services, the corresponding range can be specifically defined from the type of the manufacturer, the product type, and the like.
And after the editing process of the specified editing object is completed, the editing effect is understood by selecting the setting against the test case range here, specifically, after the editing process is completed, the change of the specified editing object can also influence the test case range to which the test case belongs.
Specifically, as shown in fig. 4 and 5, the scene diagrams of the test case 448 of the present application before and after editing are shown, where vendor 1, vendor 2, vendor 7 and vendor 8 selected by the vendor of the test case 448, the product type is selected from intrusion protection and firewall, the branch is selected from R6.0, and the label is WEBUI; later, the vendor of the test case 448 modified vendor 11 and vendor 12, the product type was intrusion prevention and firewall, the branch was R6.0, and the tag was WEBUI.
As shown in fig. 6 and 7, the scene diagrams of the test case 449 before and after editing are shown, where the manufacturer of the test case 449 selects manufacturer 1, manufacturer 2, manufacturer 7 and manufacturer 8, the product type selects firewall, the branches are R5.3, R5.4 and R6.0, and the label is WEBUI; later, the manufacturer of test case 449 modified manufacturer 11 and manufacturer 12, the product type was firewall, the branches were R5.3, R5.4 and R6.0, and the label was WEBUI.
The other contents/parameters of the test cases 448, 489 are not modified, and therefore, the types other than the manufacturer are not changed.
In addition, in a specific application, as another specific implementation manner, the specified editing object that can be edited in the application, or the specified editing object that the user desires to edit, is not limited to the granularity of the test case, but may be the granularity of the case content in the test case more deeply, that is, the specified editing object is at least one of the specified test case and the specified case content.
Because the content of the test case does not need to be traversed in advance, only normal editing content, namely the case editing content, is needed to be provided, the application considers that the editing effect of the more flexible case content is also facilitated, and batch editing processing is initiated conveniently and rapidly aiming at the case content with fine granularity, so that the deeper and accurate batch editing effect is achieved.
In addition, for the subsequent specific editing process, the present application also provides another specific implementation manner, specifically, step S104 performs editing processing on the specified editing object through use case editing content, and ignores other objects except the specified editing object, so as to complete the batch editing process, which specifically may include:
transmitting the value of the application editing content corresponding to the appointed editing object to the background, and transmitting the default null value of the editing object except the appointed editing object to the background;
the value of the specified editing object is changed to the value of the use case editing content in the background.
It can be understood that in the specific implementation scheme, the application of the true value and the null value is introduced, and by default null value, the background can directly ignore the editing objects (the test cases and/or the case contents in the test cases) to be ignored in the batch editing processing conveniently, so that the processing effect of clear and convenient logic processing is achieved, and the floor application under the actual situation is facilitated.
And the value of the content is edited by the use case, and the value of the appointed editing object of the background is directly updated, so that the editing purpose can be finished.
Further, as still another specific implementation manner, here, a default null value of an editing object other than the editing object is specified, and specifically, the configuration may be performed by a nododity identifier, where the nododity identifier is used to identify that no modification is performed, in this case, the foregoing setting passes the default null value of the editing object other than the specified editing object to the background, including:
and transmitting the nododity identifier of the editing object except the designated editing object to the background.
And after receiving the nododity identifier, the background can learn that the editing objects except the appointed editing object are not used for corresponding processing any more, and the processing in the aspect is finished at the first time, so that the meaningless operation cost is avoided.
On the other hand, for the editing process of making the editing object, as a further specific implementation, the setting of the value of the specified editing object in the background and modifying the value to the value of the use case editing content in the previous setting may specifically include:
the method comprises the steps of comparing a value of a specified editing object with an original branch value of the specified editing object in a branch table supported by a database in the background to judge whether a difference exists or not;
if the difference exists, updating the branch value to a branch table supported by the database;
if no difference exists, the branch value is updated to the branch table not supported by the database.
It can be understood that, the application of the branch is referred to herein, a specific editing operation is performed by comparing the branch values, and two types of tables, namely, a branch table supported by the database and a branch table not supported by the database, are configured, so that two data before and after modification are stored, and an operation record is kept, thereby facilitating subsequent checking and backtracking operations without directly losing the operation record.
In order to facilitate understanding of the foregoing, the foregoing may also be understood by referring to a logic schematic diagram of the test case batch editing method shown in fig. 8.
Furthermore, for processes in which the front end passes data to the back end, it can also be understood from the following set of examples:
the test case batch editing method provided by the application is introduced, and in order to facilitate better implementation of the test case batch editing method provided by the application, the application also provides a test case batch editing device from the angle of a functional module.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a test case batch editing apparatus according to the present application, in which the test case batch editing apparatus 900 may specifically include the following structures:
the display unit 901 is configured to display a use case editing interface, where an input box for inputting editing content is presented in an interface of the use case editing interface;
a receiving unit 902 for receiving the edit content for the specified edit object written in the input box;
a searching unit 903, configured to search for a specified editing object in a test case set formed by different test cases;
an editing unit 904 for performing editing processing on the specified editing object by use of the case editing content and ignoring other objects than the specified editing object to complete batch editing.
In an exemplary implementation, the use case editing interface is specifically a batch editing management interface, and the receiving unit 902 is specifically configured to:
and receiving the editing content which is written in the test case range selected by the input box and is aimed at the appointed editing object.
In yet another exemplary implementation, the test case scope is determined specifically by five types of vendor, product type, branch, priority, and label.
In yet another exemplary implementation, the specified editing object is at least one of a specified test case and specified case content.
In yet another exemplary implementation, the editing unit 904 is specifically configured to:
transmitting the value of the application editing content corresponding to the appointed editing object to the background, and transmitting the default null value of the editing object except the appointed editing object to the background;
the value of the specified editing object is changed to the value of the use case editing content in the background.
In yet another exemplary implementation, the null value is specifically configured with a nododity identifier, which is used to identify that no modification is made, the editing unit 904 being specifically configured to:
and transmitting the nododity identifier of the editing object except the designated editing object to the background.
In yet another exemplary implementation, the editing unit 904 is specifically configured to:
the method comprises the steps of comparing a value of a specified editing object with an original branch value of the specified editing object in a branch table supported by a database in the background to judge whether a difference exists or not;
if the difference exists, updating the branch value to a branch table supported by the database;
if no difference exists, the branch value is updated to the branch table not supported by the database.
Referring to fig. 10, fig. 10 shows a schematic structural diagram of the processing device, specifically, the processing device may include a processor 1001, a memory 1002, and an input/output device 1003, where the processor 1001 is configured to implement steps of a test case batch editing method as in the corresponding embodiment of fig. 1 when executing a computer program stored in the memory 1002; alternatively, the processor 1001 is configured to implement functions of each unit in the corresponding embodiment of fig. 9 when executing the computer program stored in the memory 1002, and the memory 1002 is configured to store the computer program required for the processor 1001 to execute the test case batch editing method in the corresponding embodiment of fig. 1.
By way of example, a computer program may be partitioned into one or more modules/units, which are stored in the memory 1002 and executed by the processor 1001 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions to describe the execution of the computer program in a computer device.
The processing devices may include, but are not limited to, a processor 1001, a memory 1002, and an input output device 1003. It will be appreciated by those skilled in the art that the illustrations are merely examples of processing devices, and are not limiting of processing devices, and may include more or fewer components than shown, or may combine some components, or different components, e.g., processing devices may also include network access devices, buses, etc., through which the processor 1001, memory 1002, input output device 1003, etc. are connected.
The processor 1001 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center for a processing device, with various interfaces and lines connecting the various parts of the overall device.
The memory 1002 may be used to store computer programs and/or modules, and the processor 1001 implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 1002 and invoking data stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of the processing device, or the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1001 is configured to execute a computer program stored in the memory 1002, and may specifically implement the following functions:
displaying a use case editing interface, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface;
receiving edit contents written in an input box and aiming at a specified edit object;
searching a designated editing object in a test case set formed by different test cases;
and editing the specified editing objects by using the case editing content, and ignoring other objects except the specified editing objects to finish batch editing.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the test case batch editing apparatus, the processing device and the corresponding units thereof described above may refer to the description of the test case batch editing method in the corresponding embodiment as shown in fig. 1, and will not be repeated herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
For this reason, the present application provides a computer readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of the test case batch editing method in the corresponding embodiment of fig. 1, and specific operations may refer to the description of the test case batch editing method in the corresponding embodiment of fig. 1, which is not repeated herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps of the test case batch editing method in the corresponding embodiment of fig. 1, the beneficial effects that can be realized by the test case batch editing method in the corresponding embodiment of fig. 1 are realized, and detailed descriptions are omitted here.
The batch editing method, device, processing equipment and computer readable storage medium for test cases provided by the application are described in detail, and specific examples are applied to illustrate the principles and embodiments of the application, and the description of the above examples is only used for helping to understand the method and core ideas of the application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for batch editing of test cases, the method comprising:
displaying a use case editing interface, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface;
receiving editing content written in the input box and aiming at a specified editing object;
searching the appointed editing object in a test case set formed by different test cases;
and editing the specified editing object through the use case editing content, and ignoring other objects except the specified editing object to finish batch editing.
2. The method according to claim 1, wherein the use case editing interface is specifically a batch editing management interface, and the receiving the editing content written in the input box and aiming at the specified editing object includes:
and receiving the editing content which is written in the range of the test case selected by the input box and is aimed at the specified editing object.
3. The method of claim 2, wherein the test case scope is determined specifically by five types of vendor, product type, branch, priority, and label.
4. The method of claim 1, wherein the specified editing object is at least one of a specified test case and specified case content.
5. The method according to claim 1, wherein the editing process of the specified editing object by the use case editing content and ignoring other objects than the specified editing object to complete batch editing includes:
transmitting the value of the use case editing content corresponding to the specified editing object to the background, and transmitting the default null value of the editing object except the specified editing object to the background;
and modifying the value of the appointed editing object into the value of the use case editing content in the background.
6. The method according to claim 5, wherein the null value is specifically configured with a nododity identifier, the nododity identifier being used for identifying that no modification is made, and the transferring the default null value of the editing object other than the specified editing object to the background includes:
and transmitting the nododity identifier of the editing object other than the specified editing object to the background.
7. The method of claim 5, wherein modifying the value of the specified editing object to the value of the use case editing content in the background comprises:
the background takes the value of the appointed editing object as a branch value, and compares the value with the original branch value of the appointed editing object in a branch table supported by a database so as to judge whether a difference exists or not;
if the difference exists, updating the branch value into a branch table supported by the database;
if no difference exists, updating the branch value into a branch table which is not supported by the database.
8. A test case batch editing apparatus, the apparatus comprising:
the display unit is used for displaying a use case editing interface, wherein an input box for inputting editing content is displayed in the interface of the use case editing interface;
a receiving unit configured to receive edit contents for a specified edit object written in the input box;
the searching unit is used for searching the appointed editing object in a test case set formed by different test cases;
and the editing unit is used for editing the specified editing object through the use case editing content and ignoring other objects except the specified editing object so as to finish batch editing.
9. A processing device comprising a processor and a memory, the memory having stored therein a computer program, the processor executing the method of any of claims 1 to 7 when invoking the computer program in the memory.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method of any one of claims 1 to 7.
CN202310280684.4A 2023-03-22 2023-03-22 Test case batch editing method and device and processing equipment Pending CN116467179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310280684.4A CN116467179A (en) 2023-03-22 2023-03-22 Test case batch editing method and device and processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310280684.4A CN116467179A (en) 2023-03-22 2023-03-22 Test case batch editing method and device and processing equipment

Publications (1)

Publication Number Publication Date
CN116467179A true CN116467179A (en) 2023-07-21

Family

ID=87181508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310280684.4A Pending CN116467179A (en) 2023-03-22 2023-03-22 Test case batch editing method and device and processing equipment

Country Status (1)

Country Link
CN (1) CN116467179A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033251A (en) * 2023-10-09 2023-11-10 杭州罗莱迪思科技股份有限公司 Regression testing method and device for multi-version system of mobile electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033251A (en) * 2023-10-09 2023-11-10 杭州罗莱迪思科技股份有限公司 Regression testing method and device for multi-version system of mobile electronic equipment
CN117033251B (en) * 2023-10-09 2024-01-09 杭州罗莱迪思科技股份有限公司 Regression testing method and device for multi-version system of mobile electronic equipment

Similar Documents

Publication Publication Date Title
JP6031621B2 (en) Method and device for creating a special page
CN109144997A (en) Data correlation method, device and storage medium
US20220156394A1 (en) Data aggregation system for enabling query operations on restricted data that originates from multiple independent multiple sources
US20130198217A1 (en) Techniques for testing rule-based query transformation and generation
CN111984239B (en) Page configuration method, page configuration device, server and storage medium
US10645090B2 (en) Access control for objects having attributes defined against hierarchically organized domains containing fixed number of values
CN110347946B (en) Page display method and device, computer equipment and storage medium
CN108388623B (en) ER relationship generation method and device, computer equipment and storage medium
US20120078877A1 (en) Multi-source searching in a data driven application
CN109840257A (en) Data base query method, device, computer installation and readable storage medium storing program for executing
US20200342029A1 (en) Systems and methods for querying databases using interactive search paths
CN116467179A (en) Test case batch editing method and device and processing equipment
CN112560422A (en) Chart processing method, device, equipment and medium
WO2019218460A1 (en) Service line processing method, device, terminal equipment and medium
CN109960538A (en) A kind of configuration interface management method, configuration interface managing device and electronic equipment
CN109542398B (en) Business system generation method and device and computer readable storage medium
WO2019242298A1 (en) Data processing method for drawing design, plm plug-in and computing device
US20160210396A1 (en) Method and apparatus for visualizing timing margin on a graphical user interface
CN112463202B (en) Configuration method and device of operating system functional components
US10042957B2 (en) Devices and methods for implementing dynamic collaborative workflow systems
CN114116712A (en) Extended field processing method and device, electronic equipment and storage medium
US11360649B2 (en) Custom preview interface for search results
CN113535650A (en) File naming method and computing device
US8898589B2 (en) Flattening a subset of configuration user interface (UI) panels in a hierarchy of UI panels
CN116108235B (en) Path acquisition method and device for tree structure and processing equipment

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