CN115328789A - Test case editing method, device, equipment and medium - Google Patents

Test case editing method, device, equipment and medium Download PDF

Info

Publication number
CN115328789A
CN115328789A CN202210998385.XA CN202210998385A CN115328789A CN 115328789 A CN115328789 A CN 115328789A CN 202210998385 A CN202210998385 A CN 202210998385A CN 115328789 A CN115328789 A CN 115328789A
Authority
CN
China
Prior art keywords
test case
target
information
test
workbook
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
CN202210998385.XA
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202210998385.XA priority Critical patent/CN115328789A/en
Publication of CN115328789A publication Critical patent/CN115328789A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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

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)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a test case editing method, a device, equipment and a medium, which relate to the technical field of testing and comprise the following steps: determining a target workbook selected by a client, and displaying a target graphical interface corresponding to the target workbook in a preset display screen; acquiring test case information compiled in the target graphical interface by the client based on a preset test case compiling item, and storing the test case information in the target workbook; and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system. By compiling the test cases on the target graphical interface corresponding to the target workbook, the compiling efficiency of the test cases can be improved, the test cases can be displayed more visually, meanwhile, the function of directly leading the test case information stored in the workbook into the online case management system can be supported, and the local operation is facilitated.

Description

Test case editing method, device, equipment and medium
Technical Field
The invention relates to the technical field of testing, in particular to a method, a device, equipment and a medium for editing a test case.
Background
The Test Case (i.e. Test Case) refers to the description of the testing task for a specific software product, and embodies the testing scheme, method, technology and strategy. The contents of the test object, the test environment, the input data, the test steps, the expected results, the test scripts and the like are included, and finally, a document is formed. In particular, a test case is a set of test inputs, execution conditions, and expected results tailored for a particular target to verify that a particular software requirement is met. The test cases are an important part in the test work, and in the actual test work, a tester needs to write and check the test cases on a local machine frequently. The method comprises the following steps that two common use case management workers exist at present, firstly, an excel (namely a workbook) is used for compiling and checking use cases on a local machine, and then the excel use cases are led into an online management system; and secondly, using an online use case management system based on a B/S mode (Browser/Server mode) to manage, write and view use cases. The two modes are more suitable for the construction management of the use case library, but for testers who simply need to frequently write and check module use cases, the two modes have great inconvenience, and therefore the working efficiency is influenced.
For writing and checking a test case by using the excel in the machine, a tester directly operates the excel, frequently stretches and drags cells, slides scroll bars and the like, the cells cannot be completely displayed for the test case with more use case steps, and particularly, when the steps are added or deleted to the test case, the number of the test step needs to be manually modified; for the case that the sheet (i.e. worksheet) has more pages and the number of test cases is more, it is inconvenient to check the test cases, and the risks of misoperation and file damage also exist. For compiling test cases by using the B/S mode-based online case management system, the problems of frequent browser page skipping, overtime page quitting, non-visual page display, low compiling efficiency and the like exist. Especially for test executors, the test executors usually only check the use cases, and the use of the two modes is inconvenient.
In summary, how to more conveniently execute editing operation on a test case to improve the working efficiency is a problem to be solved at present.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device and a medium for editing a test case, which can perform editing operation on the test case more conveniently, so as to improve work efficiency. The specific scheme is as follows:
in a first aspect, the present application discloses a test case editing method, including:
determining a target workbook selected by a client, and displaying a target graphical interface corresponding to the target workbook in a preset display screen;
test case information compiled in the target graphical interface by the client based on a preset test case compiling item is obtained, and the test case information is stored in the target workbook;
and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system.
Optionally, the obtaining test case information compiled by the client in the target graphical interface based on a preset test case compilation item includes:
determining preset test case writing items comprising test case titles, test case preconditions, test steps, test case expected results and other preset fields;
and acquiring test case information which is compiled in the target graphical interface by the client based on the test case compiling item and comprises test case title information, test case precondition information, test step information, test case expected result information and other preset field information.
Optionally, after obtaining the test case information written in the target graphical interface by the client based on the preset test case writing item, the method further includes:
and extracting the test case title information from the test case information, and adding the corresponding test case title to a preset test case title list.
Optionally, the test case editing method further includes:
and when a test case title display instruction is acquired, displaying each test case title in the test case title list in a first preset display area of the target graphical interface.
Optionally, the test case editing method further includes:
when the client side is detected to double click a target test case title to be checked in the test case title list, determining to acquire a test case checking instruction;
and displaying the test case information corresponding to the target test case title in a second preset display area of the target graphical interface based on the test case viewing instruction.
Optionally, after the test case information corresponding to the target test case title is displayed in a second preset display area of the target graphical interface based on the test case viewing instruction, the method further includes:
and if the test case information is detected to have the updating information, numbering the corresponding test steps and the expected results of the test cases again according to the renumbering instruction input by the user side.
Optionally, after determining the target workbook selected by the client, the method further includes:
determining a target worksheet selected by the client in the target workbook; wherein the target workbook includes a number of worksheets;
correspondingly, the storing the test case information in the target workbook includes:
and storing the test case information in the target worksheet of the target workbook.
In a second aspect, the present application discloses a test case editing apparatus, including:
the graphical interface display module is used for determining the target workbook selected by the client and displaying a target graphical interface corresponding to the target workbook in a preset display screen;
the test case compiling module is used for acquiring test case information input by the client side in the target graphical interface based on preset input items and storing the test case information in the target workbook;
and the test case importing module is used for importing the test case information into the online case management system based on a template in the online case management system according to an importing command input by the client.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the test case editing method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the steps of the test case editing method disclosed above.
Therefore, the target workbook selected by the client is determined, and the target graphical interface corresponding to the target workbook is displayed in a preset display screen; acquiring test case information compiled in the target graphical interface by the client based on a preset test case compiling item, and storing the test case information in the target workbook; and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system. Therefore, after the target workbook selected by the client is determined, the target graphical interface corresponding to the target workbook is displayed in the preset display screen; then the client can compile test cases in the target graphical interface, specifically can compile test case information according to preset test case compiling items, and automatically stores the test case information through the target workbook after the compilation is finished; meanwhile, the test case information can be butted with an online case management system, namely, the written test case information can be directly imported into the online case management system by one key based on a template exported from the online case management system. Therefore, by compiling the test case on the target graphical interface corresponding to the target workbook, the efficiency of compiling the test case can be improved, the test case can be displayed more intuitively, better user interaction is realized, and the user experience is improved; meanwhile, the function of directly importing the test case information stored in the workbook into the online case management system can be supported, and the localized operation is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a test case editing method disclosed in the present application;
FIG. 2 is a flowchart of a specific test case editing method disclosed in the present application;
FIG. 3 is a schematic structural diagram of a test case editing apparatus disclosed in the present application;
fig. 4 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
For writing and checking a test case by using the excel in the machine, a tester directly operates the excel, frequently stretches and drags cells, slides scroll bars and the like, the cells cannot be completely displayed for the test case with more use case steps, and particularly, when the steps are added or deleted to the test case, the number of the test step needs to be manually modified; for the case that the sheet (i.e. worksheet) has more pages and the number of test cases is more, it is inconvenient to check the test cases, and the risks of misoperation and file damage also exist. For compiling test cases by using the online case management system based on the B/S mode, the problems of frequent page skipping, overtime page quitting, non-intuitive page display, low compiling efficiency and the like of a browser exist. Especially for the test executive, the test executive usually only checks the use case, and the use of the two modes is inconvenient. Therefore, the embodiment of the application discloses a method, a device, equipment and a medium for editing a test case, which can more conveniently execute editing operation on the test case so as to improve the working efficiency.
Referring to fig. 1, an embodiment of the present application discloses a test case editing method, including:
step S11: and determining a target workbook selected by the client, and displaying a target graphical interface corresponding to the target workbook in a preset display screen.
In the embodiment, after the target workbook selected by the client is determined, a target graphical interface corresponding to the target workbook is displayed in a preset display screen; the preset display screen can be a computer display screen, and the client can be a tester. That is, the tester may select to open any workbook, and then a graphical interface corresponding to the workbook may be displayed in the display screen. It should be noted that the graphical interface in this embodiment is implemented by using python language, and is a graphical interface application running on a standalone Windows.
Further, after the determining the target workbook selected by the client, the method further includes: determining a target worksheet selected by the client in the target workbook; wherein the target workbook includes a number of worksheets. It can be understood that one or more worksheets (i.e., sheets) may be in one workbook (i.e., excel), and when test cases are written subsequently, the test cases may be written in a specific graphical interface of one worksheet.
Step S12: and obtaining test case information compiled in the target graphical interface by the client based on a preset test case compiling item, and storing the test case information in the target workbook.
In this embodiment, the target graphical interface is preset with test case compiling items, that is, when compiling the test cases, a tester can input corresponding test case information based on the test case compiling items to complete the compiling of the test cases. When the tester clicks the save button, the compiled test case information can be automatically saved in the selected target workbook. Further, the storing the test case information in the target workbook includes: and storing the test case information in the target worksheet of the target workbook. That is, the test case information may be saved in the target worksheet of the target workbook based on the selected target worksheet.
Step S13: and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system.
In this embodiment, the graphical interface may also interface with the online case management system, and specifically, the compiled test case information may be directly imported to the online management system by one key based on a template derived from the online management system
Therefore, the target workbook selected by the client is determined, and the target graphical interface corresponding to the target workbook is displayed in a preset display screen; acquiring test case information compiled in the target graphical interface by the client based on a preset test case compiling item, and storing the test case information in the target workbook; and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system. Therefore, after the target workbook selected by the client is determined, the target graphical interface corresponding to the target workbook is displayed in the preset display screen; then the client can compile test cases in the target graphical interface, specifically can compile test case information according to preset test case compiling items, and automatically stores the test case information through the target workbook after the compilation is finished; meanwhile, the test case information can be butted with an online case management system, namely, the written test case information can be directly imported into the online case management system by one key based on a template exported from the online case management system. Therefore, by compiling the test cases on the target graphical interface corresponding to the target workbook, the compiling efficiency of the test cases can be improved, the test cases can be displayed more visually, better user interaction is realized, and the user experience is improved; meanwhile, the function of directly importing the test case information stored in the workbook into the online case management system can be supported, and the localized operation is facilitated.
Referring to fig. 2, the embodiment of the present application discloses a specific test case editing method, and compared with the previous embodiment, the present embodiment further describes and optimizes the technical solution. The method specifically comprises the following steps:
step S21: and determining a target workbook selected by the client, and displaying a target graphical interface corresponding to the target workbook in a preset display screen.
Step S22: and determining preset test case writing items comprising test case titles, test case preconditions, test steps, test case expected results and other preset fields.
In this embodiment, the preset test case writing items may include, but are not limited to, test case titles, test case preconditions, test steps, test case expected results, other preset fields, and the like. Wherein, the test case title mainly describes a certain function of the test; the test case precondition means that the test case title needs to meet the condition; the test step mainly describes the operation steps of the test case; the expected result of the test case refers to meeting the expected (development specification, requirement document, user requirement and the like) requirement; other preset fields of the test case are other self-defined fields.
Step S23: and acquiring test case information which is compiled in the target graphical interface by the client based on the test case compiling item and comprises test case title information, test case precondition information, test step information, test case expected result information and other preset field information, and storing the test case information in the target workbook.
In this embodiment, when a tester writes a use case on the interface, corresponding test case title information, test case precondition information, test step information, test case expected result information, and other preset field information need to be input based on the test case writing item in the target graphical interface, and then the test case title information, the test case precondition information, the test step information, the test case expected result information, and other preset field information can be automatically stored in the selected excel after the save button is clicked. Further, after obtaining the test case information written in the target graphical interface by the client based on the preset test case writing item, the method may further include: and extracting the test case title information from the test case information, and adding the corresponding test case title to a preset test case title list. That is, a test case title list is preset in the graphical interface, and after the test case information input by the client is obtained, the test case title information can be extracted from the test case information, and the corresponding test case title is added to the test case title list. Further, the method may further include: and when a test case title display instruction is acquired, displaying each test case title in the test case title list in a first preset display area of the target graphical interface. In a specific embodiment, the first preset display area may be a left area of the target graphical interface, that is, when the tester clicks the button to obtain all test case titles in the corresponding worksheet, the background service may display each test case title in the test case title list on the left side of the target graphical interface according to the test case title display instruction transmitted by the button. Moreover, the method and the device can support searching or searching the test case according to the test case title, and display the searched test case title in the test case title list.
Moreover, the method may further include: when the client side is detected to double click a target test case title to be checked in the test case title list, determining to acquire a test case checking instruction; and displaying the test case information corresponding to the target test case title in a second preset display area of the target graphical interface based on the test case viewing instruction. That is, when a tester needs to check a test case, the target test case title to be checked can be double-clicked in the test case title list, and then the background service can display the test case information corresponding to the target test case title in a second preset display area of the target graphical interface. In a specific embodiment, the second preset display area may specifically be a right area of the target graphical interface, that is, information such as test case title information, test case precondition information, test step information, test case expected result information, and other preset field information may be automatically displayed in the corresponding input box on the right side of the interface.
Further, after the test case information corresponding to the target test case title is displayed in a second preset display area of the target graphical interface based on the test case viewing instruction, the method further includes: and if the test case information is detected to have the updating information, numbering the corresponding test steps and the expected results of the test cases again according to the renumbering instruction input by the user side. It can be understood that when the background service detects that the test case information is updated, the background service indicates that the tester modifies the test case information, a renumbering button is arranged in the graphical interface, when the tester modifies the test case information, the renumbering button is clicked, the background service automatically renumbers the test steps and expected test case results according to the renumbering instruction transmitted by the renumbering button, and the problem of low working efficiency caused by manual modification of the test step number is avoided; the modification operation may specifically include adding or deleting a test step, or replacing a specific item in the test case information, and the like. In addition, because the test case titles can not be repeated, the title of a certain test case is modified, and after clicking and storing, the new test case can be written on the basis of the original test case.
In a specific embodiment, a graphical interface, that is, a client interface, mainly adopts a tkinet graphic library of python itself to realize functions of a test case title list, an input box, various function buttons, a menu, and the like, and a program acquires various test case information of a case input by a user from the client interface, including test case title information, test case precondition information, test step information, test case expected result information, and other preset field information, and writes the test case information, the test case expected result information, and the test case information and the other preset field information into corresponding excel to be stored. The background service mainly adopts a python third-party library xlrd/openpyxl and the like to operate the reading and writing of the excel, so that the storage and reading of the test case information are realized, and the user interaction is realized more friendly.
Step S24: and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system.
For a more specific processing procedure of the step S21, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the test case writing items preset in the embodiment of the application can include, but are not limited to, test case titles, test case preconditions, test steps, test case expected results, other preset fields and the like; correspondingly, when a tester compiles a use case on the interface, corresponding test case title information, test case precondition information, test step information, test case expected result information and other preset field information need to be input based on the test case compilation item in the target graphical interface so as to complete the compilation of the test case. When the test case needs to be checked, all information of the test case can be displayed by double clicking the title of the test case; in addition, the test cases can be rapidly renumbered when being modified, such as the test steps of adding and deleting the test cases. Therefore, by the technical scheme, the graphical operation convenience and intuition can be provided for the test personnel to write, check and modify the test cases, various inconveniences caused by the fact that the test personnel directly use excel to write, check and modify the test cases are avoided, and therefore the working efficiency is improved. Meanwhile, the method can be used as a bridge between an excel case and an online case management system, and is more convenient for local operation.
Referring to fig. 3, an embodiment of the present application discloses a test case editing apparatus, including:
the graphical interface display module 11 is used for determining a target workbook selected by the client and displaying a target graphical interface corresponding to the target workbook in a preset display screen;
the test case compiling module 12 is configured to obtain test case information input by the client in the target graphical interface based on a preset input item, and store the test case information in the target workbook;
and the test case importing module 13 is configured to import the test case information into the online case management system according to an importing command input by the client based on a template in the online case management system.
Therefore, the target workbook selected by the client is determined, and the target graphical interface corresponding to the target workbook is displayed in a preset display screen; test case information compiled in the target graphical interface by the client based on a preset test case compiling item is obtained, and the test case information is stored in the target workbook; and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system. Therefore, after the target workbook selected by the client is determined, the target graphical interface corresponding to the target workbook is displayed in the preset display screen; then the client can compile test cases in the target graphical interface, specifically can compile test case information according to preset test case compiling items, and automatically stores the test case information through the target workbook after the compiling is completed; meanwhile, the test case information can be butted with an online case management system, namely, the written test case information can be directly imported into the online case management system by one key based on a template exported from the online case management system. Therefore, by compiling the test case on the target graphical interface corresponding to the target workbook, the efficiency of compiling the test case can be improved, the test case can be displayed more intuitively, better user interaction is realized, and the user experience is improved; meanwhile, the function of directly importing the test case information stored in the workbook into the online case management system can be supported, and the localized operation is facilitated.
In some specific embodiments, the test case writing module 12 may specifically include:
the system comprises a compiling item determining unit, a compiling item determining unit and a compiling unit, wherein the compiling item determining unit is used for determining preset testing case compiling items comprising testing case titles, testing case preconditions, testing steps, testing case expected results and other preset fields;
and the case compiling unit is used for acquiring the test case information which is compiled in the target graphical interface by the client based on the test case compiling item and comprises test case title information, test case precondition information, test step information, test case expected result information and other preset field information.
In some specific embodiments, after the test case writing module 12, the method may further include:
and the case title extracting unit is used for extracting the test case title information from the test case information and adding the corresponding test case title to a preset test case title list.
In some specific embodiments, the test case editing apparatus may further include:
and the case title display unit is used for displaying each test case title in the test case title list in a first preset display area of the target graphical interface when the test case title display instruction is obtained.
In some specific embodiments, the test case editing apparatus may further include:
the test case viewing instruction obtaining unit is used for determining to obtain a test case viewing instruction when the client side is detected to double-click the target test case title to be viewed in the test case title list;
and the test case information display unit is used for displaying the test case information corresponding to the target test case title in a second preset display area of the target graphical interface based on the test case viewing instruction.
In some specific embodiments, after the test case information display unit, the method may further include:
and the renumbering unit is used for renumbering the corresponding test steps and the expected results of the test cases according to the renumbering instruction input by the user side if the test case information is detected to have the updating information.
In some specific embodiments, the graphical interface display module 11 may further include:
a target worksheet determining unit, configured to determine a target worksheet selected by the client in the target workbook; wherein the target workbook includes a number of worksheets;
correspondingly, the test case writing module 12 may specifically include:
and the test case information storage unit is used for storing the test case information in the target worksheet of the target workbook.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The method specifically comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is adapted to store a computer program, which is loaded and executed by the processor 21, to implement the steps of:
determining a target workbook selected by a client, and displaying a target graphical interface corresponding to the target workbook in a preset display screen;
acquiring test case information compiled in the target graphical interface by the client based on a preset test case compiling item, and storing the test case information in the target workbook;
and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
determining preset test case writing items comprising test case titles, test case preconditions, test steps, test case expected results and other preset fields;
and acquiring test case information which is compiled in the target graphical interface by the client based on the test case compiling item and comprises test case title information, test case precondition information, test step information, test case expected result information and other preset field information.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
and extracting the test case title information from the test case information, and adding the corresponding test case title to a preset test case title list.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
and when a test case title display instruction is acquired, displaying each test case title in the test case title list in a first preset display area of the target graphical interface.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
when the client side is detected to double click a target test case title to be checked in the test case title list, determining to acquire a test case checking instruction;
and displaying the test case information corresponding to the target test case title in a second preset display area of the target graphical interface based on the test case viewing instruction.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
and if the test case information is detected to have the updating information, renumbering the corresponding test steps and the expected results of the test cases according to the renumbering instruction input by the user side.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
determining a target worksheet selected by the client in the target workbook; wherein the target workbook includes a number of worksheets;
correspondingly, the storing the test case information in the target workbook includes:
and storing the test case information in the target worksheet of the target workbook.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the mass data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux, or the like. The computer programs 222 may further include computer programs that can be used to perform other specific tasks in addition to the computer programs that can be used to perform the test case editing method performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include data received by the electronic device and transmitted from an external device, or may include data collected by the input/output interface 25 itself.
Further, an embodiment of the present application further discloses a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the method steps executed in the test case editing process disclosed in any of the foregoing embodiments are implemented.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the storage medium for editing the test cases provided by the invention are described in detail, specific examples are applied in the description to explain the principle and the implementation of the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A test case editing method is characterized by comprising the following steps:
determining a target workbook selected by a client, and displaying a target graphical interface corresponding to the target workbook in a preset display screen;
test case information compiled in the target graphical interface by the client based on a preset test case compiling item is obtained, and the test case information is stored in the target workbook;
and importing the test case information into the online case management system according to an import command input by the client based on a template in the online case management system.
2. The method for editing test cases according to claim 1, wherein the obtaining of the test case information written by the client in the target graphical interface based on a preset test case writing item includes:
determining preset test case writing items comprising test case titles, test case preconditions, test steps, test case expected results and other preset fields;
and acquiring test case information which is compiled in the target graphical interface by the client based on the test case compiling item and comprises test case title information, test case precondition information, test step information, test case expected result information and other preset field information.
3. The method for editing test cases according to claim 2, after obtaining the test case information written by the client in the target graphical interface based on the preset test case writing item, further comprising:
and extracting the test case title information from the test case information, and adding the corresponding test case title to a preset test case title list.
4. The test case editing method according to claim 3, further comprising:
and when a test case title display instruction is acquired, displaying each test case title in the test case title list in a first preset display area of the target graphical interface.
5. The test case editing method according to claim 3, further comprising:
when the client side is detected to double click a target test case title to be checked in the test case title list, determining to acquire a test case checking instruction;
and displaying the test case information corresponding to the target test case title in a second preset display area of the target graphical interface based on the test case viewing instruction.
6. The method for editing the test cases according to claim 5, wherein after the test case information corresponding to the target test case title is displayed in a second preset display area of the target graphical interface based on the test case viewing instruction, the method further comprises:
and if the test case information is detected to have the updating information, numbering the corresponding test steps and the expected results of the test cases again according to the renumbering instruction input by the user side.
7. The test case editing method according to any one of claims 1 to 6, wherein after determining the target workbook selected by the client, the method further comprises:
determining a target worksheet selected by the client in the target workbook; wherein the target workbook includes a number of worksheets;
correspondingly, the storing the test case information in the target workbook includes:
and storing the test case information in the target worksheet of the target workbook.
8. A test case editing apparatus, comprising:
the graphical interface display module is used for determining the target workbook selected by the client and displaying a target graphical interface corresponding to the target workbook in a preset display screen;
the test case compiling module is used for acquiring test case information input by the client side in the target graphical interface based on preset input items and storing the test case information in the target workbook;
and the test case importing module is used for importing the test case information into the online case management system based on a template in the online case management system according to an importing command input by the client.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the test case editing method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the steps of the test case editing method of any of claims 1 to 7.
CN202210998385.XA 2022-08-19 2022-08-19 Test case editing method, device, equipment and medium Pending CN115328789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210998385.XA CN115328789A (en) 2022-08-19 2022-08-19 Test case editing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210998385.XA CN115328789A (en) 2022-08-19 2022-08-19 Test case editing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115328789A true CN115328789A (en) 2022-11-11

Family

ID=83926213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210998385.XA Pending CN115328789A (en) 2022-08-19 2022-08-19 Test case editing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115328789A (en)

Similar Documents

Publication Publication Date Title
JP7017613B2 (en) Naming Robotic Process Automation activities based on auto-discovered target labels
US7913225B2 (en) Error handling using declarative constraints in a graphical modeling tool
KR101087312B1 (en) Importation of automatically generated content
KR101076867B1 (en) Automatic image capture for generating content
CN112464623A (en) RPA flow file generation method and device, computer equipment and storage medium
AU4098700A (en) Circuit arrangement for measuring the resistances of a pressure-sensitive resistance mat
JP2005508552A (en) Memory system for data objects
US10635855B1 (en) Code comment markup
US11514237B2 (en) Spreadsheet and method for updating same
EP3113016A1 (en) Tracing dependencies between development artifacts in a development project
Akiki CHAIN: Developing model-driven contextual help for adaptive user interfaces
Mehrpour et al. Active documentation: Helping developers follow design decisions
CN112799718A (en) Enumerated document generation method and device, electronic equipment and storage medium
CN101710275B (en) Gui tool is utilized to carry out the method and system of editing stream logic and screens
US11010140B2 (en) Integration of workflow and logical data objects using visual programming
CN117234487A (en) Method and device for generating software interface, electronic equipment and storage medium
Sterca et al. Primary building blocks for web automation
CN116225902A (en) Method, device and equipment for generating test cases
CN115328789A (en) Test case editing method, device, equipment and medium
US20220091863A1 (en) Dynamically generating guided tours for software
CN114063868A (en) AI (Artificial intelligence) dragging modeling system and method, computer equipment and application
AU760395B2 (en) Program reproducing method and device, and medium on which program for program reproduction recording
CN112181483A (en) Plasma control system software development platform and method
US11822773B2 (en) Systems and methods for generating and utilizing an interactive causal loop diagram using a causal loop designer
US12001322B2 (en) Code linting in dynamic application environments

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