CN115964269A - Test processing method and device, electronic equipment and storage medium - Google Patents

Test processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115964269A
CN115964269A CN202211447467.1A CN202211447467A CN115964269A CN 115964269 A CN115964269 A CN 115964269A CN 202211447467 A CN202211447467 A CN 202211447467A CN 115964269 A CN115964269 A CN 115964269A
Authority
CN
China
Prior art keywords
test
structured document
tested
preset
attribute information
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
CN202211447467.1A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211447467.1A priority Critical patent/CN115964269A/en
Publication of CN115964269A publication Critical patent/CN115964269A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Debugging And Monitoring (AREA)

Abstract

The application provides a test processing method and device, electronic equipment and a storage medium, and relates to the technical field of data processing. The method is applied to a server and comprises the following steps: responding to a test request aiming at an object to be tested and sent by a client, sending a preset structured document template to the client, so that the client searches a table corresponding to the element to be tested in the structured document template, filling attribute information of the element in the table according to a preset format, and generating a structured document; receiving a structured document, and analyzing attribute information of elements from the structured document; searching the test items of the elements from a preset element test library; and generating a test case of the object to be tested according to the attribute information of the element and the test item of the element, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified. The mode improves the testing efficiency of the object to be tested.

Description

Test processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a test processing method and apparatus, an electronic device, and a storage medium.
Background
In the development process of software systems of banks, testing work is an essential link, and the method aims at simple testing process, accurate testing result and short testing period.
The conventional test work includes the steps of requirement analysis, case design, test execution, etc. In the case design step, the traditional method needs to manually analyze the required documents described by natural languages (such as Chinese, english, and the like) word by word and sentence by sentence to extract the test points in the required documents, and then design and compile the test cases, and the process can be manually completed. And a subsequent test execution step, wherein the automatic execution of the test cases can be realized through the interface automation script or the interface automation script, but the process is carried out on the basis of the designed test cases and does not relate to the generation process of the test cases. Therefore, no matter the existing test case process or the existing test execution process, the design of the test case cannot be automatically realized, that is, how to automatically design which test points and which test contents are designed according to the test requirements, and then automatically design the corresponding test case, and the main reason why the automatic generation of the test case cannot be realized in the prior art is that: natural language is rich, and the same meaning can have a plurality of different descriptions, so the prior art can not automatically realize the analysis and processing of the requirement analysis document of the natural language description, and because the requirements of the system under different scenes are different, the difficulty of directly extracting the test point in the natural language processing process is higher.
In summary, the prior art has the technical problem of low test efficiency caused by time consumption and low efficiency in the test case generation process.
Disclosure of Invention
The application provides a test processing method, a test processing device, electronic equipment and a storage medium, which are used for solving the technical problems of time-consuming test case generation process and low test working efficiency caused by low case generation efficiency in the prior art.
According to a first aspect of the present application, a test processing method is provided, which is applied to a server and includes:
responding to a test request which is sent by a client and aims at an object to be tested, sending a preset structured document template to the client, so that the client searches a table corresponding to an element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
receiving the structured document, and analyzing the attribute information of the element from the structured document;
searching a test item of the element from a preset element test library;
and generating a test case of the object to be tested according to the attribute information of the element and the test item of the element, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
Optionally, establishing the preset element test library includes:
taking an Oracle database, a Mysql database, a DB2 database or a Sybase database as an original element test library;
counting various types of known elements, and determining a test item corresponding to each known element in a plurality of preset test items;
and correspondingly storing the test items and the known elements in the original element test library to obtain a preset element test library.
Optionally, the preset plurality of test items include: the method comprises the following steps of character length, input field, validity, stability, pasting function, special character recognition function, adding, deleting and modifying function, data display, query conditions, null value query and full query.
Optionally, after the preset element test library is established, the method further includes:
and updating the preset element test library according to a preset time interval.
Optionally, the elements include one or more of: an input box, a drop-down box, a radio box, a check box, a button, and a search control;
wherein the attribute information of the input box comprises the character length of the input box and/or the character type allowed to be input by the input box;
the attribute information of the drop-down box comprises option contents of a drop-down list corresponding to the drop-down box;
the attribute information of the radio box comprises a content list of the radio box;
the attribute information of the check box comprises a content list of the check box and the number of the check box;
the attribute information of the button comprises element change information of an interface where the button is located after the button is clicked or element deployment information of a new interface to which the button jumps after being clicked;
the attribute information of the search control includes a content format and a search time range of the search box.
According to a second aspect of the present application, there is provided a test processing method applied to a client, including:
sending a test request to a server connected with the client;
receiving a preset structured document template sent by the server based on the test request;
searching a table corresponding to an element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
and sending the structured document to a server side so that the server side can generate a test case of the object to be tested based on the structured document and a preset element test library, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
According to a third aspect of the present application, there is provided a test processing apparatus, applied to a server, including:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for responding to a test request which is sent by a client and aims at an object to be tested, sending a preset structured document template to the client so that the client can search a table corresponding to an element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
the first receiving module is used for receiving the structured document and analyzing the attribute information of the element from the structured document;
the searching module is used for searching the test items of the elements from a preset element test library;
and the generation testing module is used for generating a testing case of the object to be tested according to the attribute information of the element and the testing item of the element, and testing the object to be tested according to the testing case to obtain a testing result of whether the object to be tested is qualified.
According to a fourth aspect of the present application, there is provided a test processing apparatus, applied to a client, including:
the second sending module is used for sending a test request to a server side connected with the client side;
the second receiving module is used for receiving a preset structured document template sent by the server based on the test request;
the searching and filling module is used for searching a table corresponding to the element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
the second sending module is further configured to send the structured document to a server, so that the server generates a test case of the object to be tested based on the structured document and a preset element test library, and tests the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
According to a fifth aspect of the present application, there is provided an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the test processing method of the first or second aspect as described above.
According to a sixth aspect of the present application, there is provided a computer-readable storage medium having stored therein computer-executable instructions for implementing the test processing method of the first or second aspect when executed by a processor.
According to a seventh aspect of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the test handling method of the first or second aspect.
The application provides a test processing method, which is applied to a server and comprises the following steps: responding to a test request aiming at an object to be tested and sent by a client, sending a preset structured document template to the client, so that the client searches a table corresponding to the element to be tested in the structured document template, filling attribute information of the element in the table according to a preset format, and generating a structured document; receiving a structured document, and analyzing attribute information of elements from the structured document; searching a test item of an element from a preset element test library; and generating a test case of the object to be tested according to the attribute information of the element and the test item of the element, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
The structured document template provided by the application is convenient for a client to search a form corresponding to an element to be tested, and further fill attribute information of the element to be tested in the form according to a preset format, and the application can automatically analyze the attribute information of the element from the structured document, and simultaneously combine test items of the element to be tested in an element test library to further automatically generate a test case.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a test processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another test processing method provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of another test processing method provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a test processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another test processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of example in the drawings and will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application.
In the traditional method, a manual mode is adopted to analyze the requirement document described by the natural language word by word and sentence by sentence so as to extract the test points in the requirement document and further design and compile the test case, and the process can be only manually completed. The main reason is that natural languages are rich, and the same meaning can have various descriptions, so that the analysis and processing of the requirement analysis document of the natural language description cannot be automatically realized in the prior art, and the difficulty of directly extracting the test points in the natural language processing process is higher because the requirements of the systems under different scenes are different. Therefore, the technical problem of low test working efficiency caused by time consumption and low efficiency of the test case generation process in the prior art exists.
In order to solve the above technical problems, the present invention provides a test processing method applied to the data processing field and capable of improving the test efficiency.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example 1:
fig. 1 is a schematic flowchart of a test processing method according to an embodiment of the present disclosure. As shown in fig. 1, the method of this embodiment, applied to a server, includes:
s101: and responding to a test request which is sent by a client and aims at the object to be tested, sending a preset structured document template to the client, so that the client searches a table corresponding to the element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document. Wherein the tables corresponding to different elements are fixed in different areas of the structured document template.
It should be understood that the object to be tested may refer to a software system, and may specifically refer to an interface of the software system, i.e. a foreground interface. The above elements are also called interface elements, test points, etc. The test request may include a test case generation request and a test processing request for the object to be tested according to the generated test case, where the test case generation request includes two requests, and in the first aspect, requests which types of test cases are generated, for example: forward case, reverse case, process case, etc.; in a second aspect, a request server provides a preset structured document template to a client. The predetermined format is understood as a fixed format, i.e. a noun meaning corresponds to a fixed descriptive word.
In an embodiment of the present application, the structured document template is a structured requirement template, which is referred to as a structured requirement document, and the like. The structured requirement makes the requirement document not be in a flexible Chinese or English representation mode in the embodiment, but a requirement document which is in a fixed format, in a fixed description mode and can be analyzed by a program.
The structured requirement document describes requirements by taking a foreground interface as a basic unit, lists elements and element types contained in each interface in a tabular form, and lists input requirements or operation reactions of the elements in the tabular form aiming at different types of element types. For example: for an input box, a form specially describing the input box is arranged in a certain area of the structured requirement template, and length requirements, character types, special characters and the like can be definitely input in the form; for the drop-down box, a form specially describing the drop-down box is arranged in another area of the structured requirement template, and a drop-down option content list and the like can be defined in the form; for the button, a table specially describing the button is arranged in other areas of the structured requirement template and is used for displaying interface elements changed by the interface where the button is located after the button is clicked or a new interface entered by jumping and the like.
Due to the profound sophistication of Chinese literature, the same requirement can be described in a plurality of different ways, which is also the reason why the analysis requirement and the design case process cannot be replaced by a machine. However, if a structured and formatted requirement document template is defined and the requirement is described uniformly by the template, the analysis of the requirement becomes simple and feasible and the error rate is low. Therefore, the design of the structured requirement template is a technical point in the embodiment of the present application, and the embodiment of the present application can compile the requirement document on the structured requirement template according to a specific format, so as to facilitate the server to extract accurate attribute information of the element from the requirement document through a preset program.
S102: and receiving the structured document, and analyzing the attribute information of the element from the structured document.
It should be appreciated that the parsing may employ a document parser that determines the format of the desired document in advance. The above elements include: an input box, a drop-down box, a radio box, a check box, a button, a search control, or the like, wherein the drop-down box is alternatively referred to as a drop-down selection box and the button comprises a query button. The attribute information of each element is described below, and is not described herein again.
S103: and searching the test item of the element from a preset element test library.
The element test library is a basic element test library which is established in advance before the test processing method of the application is executed, and comprises a test item set of each element, wherein the test item set of the element comprises a test item of at least one element. The establishment of the basic element test library is a technical point in the embodiment of the present application, and the establishment process is specifically described in the following S11 to S13, which is not described herein again.
S104: and generating a test case of the object to be tested according to the attribute information of the element and the test item of the element, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
In the embodiment of the application, the requirement document is compiled through the structured requirement template, and because the format of the requirement document is determined in advance by the document analysis program, the attribute information of the element can be automatically analyzed and extracted when the document analysis program is used for analyzing, and then the element can be supplemented in different directions such as forward, reverse, process and the like by combining with the basic element test library, so that the test case is automatically generated.
According to the test processing method provided by the embodiment of the application, the requirement document is compiled through the structured requirement template, the test item of the element to be tested is selected from the element test library which is established in advance, and finally the attribute information of the element analyzed from the requirement document is combined with the test item of the element, so that the automatic generation of the test case can be realized, the daily work of testers is reduced, the generation efficiency of the test case is improved, and the test efficiency of the object to be tested is further improved.
That is to say, the structured requirement template provided by the embodiment of the application is a structured requirement template, the requirement document compiled by the template is compiled according to a fixed format, and the number of interfaces, the form of elements in the interfaces, the number of the elements, the input requirements of the elements, the button functions and the like are standardized, so that the analysis and test point extraction of the requirement document by a server side through a program become simple and feasible, and meanwhile, in combination with a basic element test library, a test case can be directly generated through the program, the working time of a tester for analyzing the requirement document word by word and sentence by sentence, extracting the test point and compiling the test case is greatly reduced, and the working efficiency is improved.
In one possible implementation, the elements include one or more of: input boxes, drop down boxes, radio boxes, check boxes, buttons, and search controls.
Wherein the attribute information of the input box comprises the character length of the input box and/or the character type allowed to be input by the input box.
The attribute information of the drop-down box comprises the option content of the drop-down list corresponding to the drop-down box.
The attribute information of the radio box includes a content list of the radio box.
The attribute information of the check box includes a content list of the check box and the number of the check boxes.
The attribute information of the button comprises element change information of an interface where the button is located after the button is clicked or element deployment information of a new interface to which the button jumps after being clicked.
The attribute information of the search control includes a content format and a search time range of the search box.
The embodiment of the application does not specifically limit the types of the elements and the specific attribute information of the elements, and the client can fill different attribute information in the elements according to requirements. According to the method and the device, the requirement document can be compiled on the structured requirement template according to a specific format, and the purpose is to facilitate the server to extract accurate attribute information of elements from the requirement document through a preset program.
In a possible implementation manner, establishing a preset element test library includes the following steps S11 to S13, where:
s11: an Oracle database, mysql database, DB2 database or Sybase database was used as the original element test library.
S12: the known elements of various types are counted, and a test item corresponding to each known element is determined among a plurality of test items set in advance.
In one possible implementation manner, the preset plurality of test items include: the method comprises the following steps of character length, necessary input field, validity, stability, pasting function, special character recognition function, adding, deleting and modifying function, data display, query condition, null value query and full query.
For many common interface elements, there are conventional test items, such as: for the input box, the test items include: checking the character length, checking the necessary input field, judging whether the character can be pasted or not, testing special characters and the like. For the drop-down box, the test items include: selecting head and tail elements, displaying data, selecting emptying and testing whether the elements are necessary to be selected; for the query button, the test items include: single condition testing, combined condition testing, full query, null query, and the like.
S13: and correspondingly storing the test items and the known elements in an original element test library to obtain a preset element test library.
In a possible implementation manner, after the preset element test library is established, the method further includes: and updating the preset element test library according to the preset time interval.
In the embodiment of the application, all the test items of the elements are basic tests without considering the system type and the project type, and the test items are stored in a basic element test library in the form of a test item set of the basic elements and are periodically updated and supplemented by testers to gradually form a powerful and complete basic element test library. In the test case generation process, the application can not only extract the demand points in the structured document by executing the program, but also bring the test items of the matched elements into the test case by combining the basic element test library, thereby automatically generating the test case.
In conclusion, the test processing method provided by the application realizes feasibility of analyzing the demand document according to the demand document compiled by the structured demand template, and simultaneously combines the basic element test library, so that the test case can be automatically generated, time for testers to analyze the demand document word by word and sentence by sentence and manually compile the test case is greatly reduced, and the overall efficiency of test work is improved.
Example 2:
fig. 2 is a schematic flowchart of another test processing method according to an embodiment of the present disclosure. As shown in fig. 2, the test processing method is applied to a client, and includes:
s201: and sending a test request to a server connected with the client.
S202: and receiving a preset structured document template sent by the server based on the test request. Wherein the tables corresponding to different elements are fixed in different areas of the structured document template.
S203: and searching a table corresponding to the element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate the structured document.
S204: and sending the structured document to the server so that the server generates a test case of the object to be tested based on the structured document and a preset element test library, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
The test processing method provided in this embodiment is described differently from the test processing method provided in embodiment 1 from different execution subject ends, and its implementation principle and technical effect are similar, and are not described herein again.
Example 3:
fig. 3 is a schematic flowchart of another test processing method according to an embodiment of the present disclosure. As shown in fig. 3, the test processing method includes the following steps S301 to S310, wherein:
s301: and sending a test request aiming at the object to be tested to the server.
S302: and sending a preset structured document template to the client.
S303: and searching a table corresponding to the element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate the structured document.
S304: and sending the structured document to a server.
S305: the attribute information of the element is parsed from the structured document.
S306: and searching the test items of the elements from a preset element test library.
S307: and generating a test case of the object to be tested according to the attribute information of the element and the test item of the element, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
S308: and sending a test result of whether the object to be tested is qualified to the client.
The implementation principle and technical effect of the test processing method provided in this embodiment are similar to those of the test processing methods provided in embodiments 1 and 2, and are not described herein again.
Example 4:
fig. 4 is a schematic structural diagram of a test processing apparatus according to an embodiment of the present application. The apparatus of the present embodiment may be in the form of software and/or hardware. As shown in fig. 4, the test processing apparatus provided in this embodiment includes: a first sending module 41, a first receiving module 42, a searching module 43 and a generating and testing module 44, wherein:
the first sending module 41 is configured to send a preset structured document template to the client in response to a test request sent by the client for the object to be tested, so that the client searches a table corresponding to the element to be tested in the structured document template, and fills attribute information of the element in the table according to a preset format to generate a structured document.
The first receiving module 42 is configured to receive the structured document and parse the attribute information of the element from the structured document.
And the searching module 43 is used for searching the test items of the elements from the preset element test library.
And the generation testing module 44 is configured to generate a testing case of the object to be tested according to the attribute information of the element and the testing item of the element, and test the object to be tested according to the testing case to obtain a testing result of whether the object to be tested is qualified.
In a possible implementation manner, the test processing apparatus is further configured to:
an Oracle database, mysql database, DB2 database or Sybase database was used as the original element test library.
The known elements of various types are counted, and a test item corresponding to each known element is determined among a plurality of test items set in advance.
And correspondingly storing the test items and the known elements in an original element test library to obtain a preset element test library.
In one possible implementation manner, the plurality of test items preset by the test processing apparatus include: the method comprises the following steps of character length, input field, validity, stability, pasting function, special character recognition function, adding, deleting and modifying function, data display, query conditions, null value query and full query.
In a possible implementation manner, after the preset element test library is established, the test processing apparatus is further configured to: and updating the preset element test library according to the preset time interval.
In one possible implementation, the elements in the structured document template include one or more of: input boxes, drop-down boxes, radio boxes, check boxes, buttons, and search controls.
Wherein the attribute information of the input box comprises the character length of the input box and/or the character type allowed to be input by the input box.
The attribute information of the drop-down box comprises the option content of the drop-down list corresponding to the drop-down box.
The attribute information of the radio box includes a content list of the radio box.
The attribute information of the check box includes a content list of the check box and the number of the check box.
The attribute information of the button comprises element change information of an interface where the button is located after the button is clicked or element deployment information of a new interface to which the button jumps after being clicked.
The attribute information of the search control includes a content format and a search time range of the search box.
The test processing apparatus provided in this embodiment may be configured to execute the test processing method provided in embodiment 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Example 5:
fig. 5 is a schematic structural diagram of another test processing apparatus according to an embodiment of the present application. The apparatus of the present embodiment may be in the form of software and/or hardware. As shown in fig. 5, the test processing apparatus provided in this embodiment includes: a second sending module 51, a second receiving module 52 and a lookup filling module 53. Wherein:
and a second sending module 51, configured to send the test request to a server connected to the client.
And a second receiving module 52, configured to receive the preset structured document template sent by the server based on the test request.
And the searching and filling module 53 is configured to search a table corresponding to the element to be tested in the structured document template, and fill attribute information of the element in the table according to a preset format to generate a structured document.
The second sending module 51 is further configured to send the structured document to the server, so that the server generates a test case of the object to be tested based on the structured document and a preset element test library, and tests the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
The test processing apparatus provided in this embodiment may be configured to execute the test processing method provided in embodiment 2, and the implementation principle and the technical effect are similar, which are not described herein again.
In the technical scheme of the application, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good custom of the public order.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a receiver 60, a transmitter 61, at least one processor 62 and a memory 63, and the electronic device formed by the above components can be used to implement several specific embodiments of the present application, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the steps in the method in the foregoing embodiment are implemented.
Embodiments of the present application further provide a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, the computer instructions implement the steps of the method in the above embodiments.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a computer readable storage medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may be a machine readable signal medium or a machine readable storage medium. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A test processing method is applied to a server side and comprises the following steps:
responding to a test request aiming at an object to be tested and sent by a client, sending a preset structured document template to the client, so that the client searches a table corresponding to the element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
receiving the structured document, and analyzing the attribute information of the element from the structured document;
searching a test item of the element from a preset element test library;
and generating a test case of the object to be tested according to the attribute information of the element and the test item of the element, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
2. The method of claim 1, wherein building the predetermined elemental test library comprises:
taking an Oracle database, a Mysql database, a DB2 database or a Sybase database as an original element test library;
counting various types of known elements, and determining a test item corresponding to each known element in a plurality of preset test items;
and correspondingly storing the test items and the known elements in the original element test library to obtain a preset element test library.
3. The method of claim 2, wherein the preset plurality of test items comprise: the method comprises the following steps of character length, input field, validity, stability, pasting function, special character recognition function, adding, deleting and modifying function, data display, query conditions, null value query and full query.
4. The method of claim 2, further comprising, after establishing the predetermined elemental test library:
and updating the preset element test library according to a preset time interval.
5. The method of claim 1, wherein the elements comprise one or more of: an input box, a drop-down box, a radio box, a check box, a button, and a search control;
wherein the attribute information of the input box comprises the character length of the input box and/or the character type allowed to be input by the input box;
the attribute information of the drop-down box comprises option contents of a drop-down list corresponding to the drop-down box;
the attribute information of the radio box comprises a content list of the radio box;
the attribute information of the check box comprises a content list of the check box and the number of the check box;
the attribute information of the button comprises element change information of an interface where the button is located after the button is clicked or element deployment information of a new interface to which the button jumps after being clicked;
the attribute information of the search control includes a content format and a search time range of the search box.
6. A test processing method is applied to a client and comprises the following steps:
sending a test request to a server connected with the client;
receiving a preset structured document template sent by the server based on the test request;
searching a table corresponding to an element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
and sending the structured document to a server side so that the server side can generate a test case of the object to be tested based on the structured document and a preset element test library, and testing the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
7. A test processing device, which is applied to a server, comprises:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for responding to a test request which is sent by a client and aims at an object to be tested, sending a preset structured document template to the client so that the client can search a table corresponding to an element to be tested in the structured document template, filling attribute information of the element in the table according to a preset format, and generating a structured document;
the first receiving module is used for receiving the structured document and analyzing the attribute information of the element from the structured document;
the searching module is used for searching the test items of the elements from a preset element test library;
and the generation testing module is used for generating a testing case of the object to be tested according to the attribute information of the element and the testing item of the element, and testing the object to be tested according to the testing case to obtain a testing result of whether the object to be tested is qualified.
8. A test processing device applied to a client comprises:
the second sending module is used for sending a test request to a server connected with the client;
the second receiving module is used for receiving a preset structured document template sent by the server based on the test request;
the searching and filling module is used for searching a table corresponding to the element to be tested in the structured document template, and filling attribute information of the element in the table according to a preset format to generate a structured document;
the second sending module is further configured to send the structured document to a server, so that the server generates a test case of the object to be tested based on the structured document and a preset element test library, and tests the object to be tested according to the test case to obtain a test result of whether the object to be tested is qualified.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the test processing method of any of claims 1 to 6.
10. A computer-readable storage medium having computer-executable instructions stored thereon for implementing the test processing method of any one of claims 1 to 6 when executed by a processor.
CN202211447467.1A 2022-11-18 2022-11-18 Test processing method and device, electronic equipment and storage medium Pending CN115964269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211447467.1A CN115964269A (en) 2022-11-18 2022-11-18 Test processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211447467.1A CN115964269A (en) 2022-11-18 2022-11-18 Test processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115964269A true CN115964269A (en) 2023-04-14

Family

ID=87353822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211447467.1A Pending CN115964269A (en) 2022-11-18 2022-11-18 Test processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115964269A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117908929A (en) * 2024-03-19 2024-04-19 深圳市华磊迅拓科技有限公司 Method, device, equipment and storage medium for automatically generating client

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117908929A (en) * 2024-03-19 2024-04-19 深圳市华磊迅拓科技有限公司 Method, device, equipment and storage medium for automatically generating client
CN117908929B (en) * 2024-03-19 2024-06-07 深圳市华磊迅拓科技有限公司 Method, device, equipment and storage medium for automatically generating client

Similar Documents

Publication Publication Date Title
US20140365828A1 (en) Analysis engine for automatically analyzing and linking error logs
EP4322009A1 (en) Test case generation method, apparatus and device
US8364696B2 (en) Efficient incremental parsing of context sensitive programming languages
CN111104423B (en) SQL statement generation method and device, electronic equipment and storage medium
CN108694108B (en) iOS crash data classification and statistics method and device
CN115964269A (en) Test processing method and device, electronic equipment and storage medium
CN110275938B (en) Knowledge extraction method and system based on unstructured document
CN113448869B (en) Method and device for generating test case, electronic equipment and computer readable medium
CN112989789B (en) Test method and device of text auditing model, computer equipment and storage medium
CN113849581A (en) Alarm information processing method, device, equipment and storage medium
EP4246365A1 (en) Webpage identification method and apparatus, electronic device, and medium
CN115495362A (en) Method, device, storage medium and computer equipment for generating test code
CN114860872A (en) Data processing method, device, equipment and storage medium
CN113821496A (en) Database migration method, system, device and computer readable storage medium
CN110045961B (en) Management method and management platform of business rules
US11720531B2 (en) Automatic creation of database objects
US20230135536A1 (en) Method and Apparatus for Processing Table
CN115687141A (en) Application program testing method and device, electronic equipment and storage medium
CN113656443B (en) Data disassembling method and device, electronic equipment and storage medium
CN116320060A (en) Message conversion method and device, electronic equipment and storage medium
CN115408453A (en) Configured report generation method and device, computer equipment and storage medium
CN113835893A (en) Data processing method, device, equipment, storage medium and program product
CN117076297A (en) Automatic test method, device, equipment and storage medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN113792557A (en) Language file generation method and device

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