CN113407454B - Method, device and equipment for comprehensive test - Google Patents

Method, device and equipment for comprehensive test Download PDF

Info

Publication number
CN113407454B
CN113407454B CN202110729959.9A CN202110729959A CN113407454B CN 113407454 B CN113407454 B CN 113407454B CN 202110729959 A CN202110729959 A CN 202110729959A CN 113407454 B CN113407454 B CN 113407454B
Authority
CN
China
Prior art keywords
test
calling
data
keyword
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110729959.9A
Other languages
Chinese (zh)
Other versions
CN113407454A (en
Inventor
王越
姚远
刘岩
杨诗倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Paimeng Network Technology Co ltd
Original Assignee
Shandong Paimeng Network 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 Shandong Paimeng Network Technology Co ltd filed Critical Shandong Paimeng Network Technology Co ltd
Priority to CN202110729959.9A priority Critical patent/CN113407454B/en
Publication of CN113407454A publication Critical patent/CN113407454A/en
Application granted granted Critical
Publication of CN113407454B publication Critical patent/CN113407454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Abstract

The embodiment of the specification discloses a method, a device and equipment for comprehensive testing. The method comprises the following steps: acquiring data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI; calling a packaged interface test case, testing the to-be-tested data to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword; and sending the test result to a preset mailbox in a preset format, so that the multiplexing of a test frame can be realized, the flexibility of an automatic test script is effectively improved, and the comprehensive test is realized.

Description

Method, device and equipment for comprehensive test
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for comprehensive testing.
Background
With the rapid development of the internet, the demand of the Web application system is larger and larger, the design and development of the Web application system are more and more complex, and in order to ensure the quality of the Web application system, a test needs to be performed before the delivery of the Web application system, so as to ensure the function of the Web application system.
In the prior art, the design of an automatic testing method based on a robot frame is not flexible enough, the discovery of code defects is not timely enough, and the coverage rate of codes is low.
Therefore, a new testing method is needed, which can perform automatic testing more conveniently and quickly.
Disclosure of Invention
The embodiment of the specification provides a method, a device and equipment for comprehensive testing, which are used for solving the following technical problems: in the prior art, the automatic testing method based on the robot framework is not flexible in design, the discovery of code defects is not timely enough, and the coverage rate of codes is low.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
the method for comprehensive testing provided by the embodiment of the specification comprises the following steps:
acquiring data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI;
calling a packaged interface test case, testing the to-be-tested data to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
and sending the test result to a preset mailbox in a preset format.
Further, the calling the packaged interface test case, testing the data to be tested to obtain a test result, specifically including:
calling the keyword library of the test interface case layer by layer, and sending a test request to the data to be tested;
and the system to be tested receives the test request, returns a test value and obtains a test result.
Further, the step of calling the keyword library of the test interface case layer by layer and sending a test request to the data to be tested specifically includes:
taking system keywords in the keyword library as first calling keywords, basic keywords in the keyword library as second calling keywords, and variables of the keyword library as third calling keywords;
and calling the keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data.
Further, the keyword library is an FRlibrary library based on python.
Further, the calling the packaged interface test case, testing the data to be tested to obtain a test result, specifically including:
and calling the packaged interface test case, testing the data to be tested, and checking the return value of the test to obtain a test result.
Further, if the test result is negative, positioning the error of the data to be tested, and testing again after adjusting the data to be tested.
Further, the content in the preset format at least comprises: test items and test results.
Further, the test request includes: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
The embodiment of the present specification further provides an apparatus for comprehensive testing, where the apparatus includes:
the acquisition module acquires data to be tested, wherein the test data comprises a test based on Web API and/or a test based on Web GUI;
the test module calls a packaged interface test case to test the to-be-tested data to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
and the sending module is used for sending the test result to a preset mailbox in a preset format.
Further, the calling the packaged interface test case, testing the data to be tested to obtain a test result, specifically including:
calling the keyword library of the test interface case layer by layer, and sending a test request to the data to be tested;
and the system to be tested receives the test request, returns a test value and obtains a test result.
Further, the step of calling the keyword library of the test interface case layer by layer and sending a test request to the data to be tested specifically includes:
taking system keywords in the keyword library as first calling keywords, basic keywords in the keyword library as second calling keywords, and variables of the keyword library as third calling keywords;
and calling the keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data.
Further, the keyword library is an FRlibrary library based on python.
Further, the calling the packaged interface test case, testing the data to be tested to obtain a test result, specifically including:
and calling the packaged interface test case, testing the data to be tested, and checking the return value of the test to obtain a test result.
Further, if the test result is negative, positioning the error of the data to be tested, and testing again after adjusting the data to be tested.
Further, the content in the preset format at least comprises: test items and test results.
Further, the test request includes: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
An embodiment of the present specification further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI;
calling a packaged interface test case, testing the to-be-tested data to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
and sending the test result to a preset mailbox in a preset format.
Further, the calling the packaged interface test case, testing the data to be tested to obtain a test result, specifically including:
calling the keyword library of the test interface case layer by layer, and sending a test request to the data to be tested;
and the system to be tested receives the test request, returns a test value and obtains a test result.
Further, the step of calling the keyword library of the test interface case layer by layer and sending a test request to the data to be tested specifically includes:
taking system keywords in the keyword library as first calling keywords, basic keywords in the keyword library as second calling keywords, and variables of the keyword library as third calling keywords;
and calling the keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data.
Further, the keyword library is an FRlibrary library based on python.
Further, the calling the packaged interface test case, testing the data to be tested to obtain a test result, specifically including:
and calling the packaged interface test case, testing the data to be tested, and checking the return value of the test to obtain a test result.
Further, if the test result is negative, positioning the error of the data to be tested, and testing again after adjusting the data to be tested.
Further, the content in the preset format at least comprises: test items and test results.
Further, the test request includes: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
The method comprises the steps of obtaining data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI; calling a packaged interface test case, testing the to-be-tested data to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword; and sending the test result to a preset mailbox in a preset format, so that the multiplexing of a test frame can be realized, the flexibility of an automatic test script is effectively improved, and the comprehensive test is realized.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic diagram of a comprehensive testing method provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a comprehensive testing apparatus provided in an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of a device for comprehensive testing according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
In the prior art, when a product to be tested in the same style is tested, different test cases are adopted according to different terminal types and different display modes, so that the workload of the test work is increased, and the test efficiency is low. Based on this, the embodiment of the present specification provides a method for comprehensive testing, which can implement automated testing of products of the same type and in different terminal types and different display modes. Fig. 1 is a schematic diagram of a comprehensive testing method provided in an embodiment of the present disclosure, as shown in fig. 1, the comprehensive testing method includes:
step S101: and acquiring data to be tested, wherein the test data comprises a test based on Web API and/or a test based on Web GUI.
In the embodiment of the specification, the data to be tested is located in a system to be tested. Specifically, the system to be tested may be a Web API or a Web GUI. The Web API is a test of a Web interface layer, and the Web GUI is a test of a Web page function.
Step S103: and calling the packaged interface test case, testing the to-be-tested data and obtaining a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword.
In an embodiment of this specification, the calling the packaged interface test case to test the data to be tested, and obtaining a test result specifically includes:
calling the keyword library of the test interface case layer by layer, and sending a test request to the data to be tested;
and the system to be tested receives the test request, returns a test value and obtains a test result.
In an embodiment of this specification, the invoking, layer by layer, the keyword library of the test interface case, and sending a test request to the to-be-tested data specifically includes:
taking system keywords in the keyword library as first calling keywords, basic keywords in the keyword library as second calling keywords, and variables of the keyword library as third calling keywords;
and calling the keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data.
That is, when the keyword library of the test interface case is called layer by layer, the first calling keyword is called first, then the second calling keyword is called, and finally the third calling keyword is called. Or, calling the keyword library according to the sequence of the first calling keyword, the second calling keyword and the third calling keyword.
Specifically, in the embodiment of the present specification, the keyword library is an FRlibrary library based on python.
Table 1 is a schematic diagram of a keyword library provided in an embodiment of the present specification, and as shown in table 1, the schematic diagram of the keyword library in table 1
Figure BDA0003138929170000071
As shown in table 1, the keywords in the keyword library at least include: create User, Auto login As, Create report, Send mail. Wherein, parameters related to the Create User at least comprise: user name, email, password. The Auto login As involves parameters including at least: user name, password. The parameters related to Create report content at least include: detail Content, total Content (total number), pencentage (percentage), att1 (path). The parameters involved in Send mail include at least: att1 (path), logfile (log), reportfile (report).
In an embodiment of this specification, the calling the packaged interface test case to test the data to be tested, and obtaining a test result specifically includes:
and calling the packaged interface test case, testing the to-be-tested data, and checking a return value of the test to obtain a test result.
In the embodiment of the present specification, if the test result is negative, the error of the data to be tested is located, and after the data to be tested is adjusted, the test is performed again.
In an embodiment of the present specification, the content in the preset format at least includes: test items and test results.
In an embodiment of the present specification, the test request includes: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
In order to further understand the keyword library provided in the embodiments of the present disclosure, the following will be further described in detail with reference to tables.
Step S105: and sending the test result to a preset mailbox in a preset format.
In the embodiment of the present specification, the test result may be sent to a preset mailbox in a preset format, so as to achieve customized sending of the test result. In a specific embodiment of the present specification, the preset format includes a mail topic, the mail topic has a uniform template, and the preset mailbox is a mailbox of a mail recipient, so that a test result is sent to a specific mailbox according to the uniform format.
To further understand the method of full testing provided by the embodiments of the present disclosure, the following description is provided with reference to specific block diagrams. Fig. 2 is a comprehensive testing framework diagram provided in an embodiment of this specification, and as shown in fig. 2, after a test interface case is called, a test request is generated, and the generated test request is sent to a system to be tested, so as to perform a test, and a test value is returned. Comparing the test value with an expected value, and if the test value is consistent with the expected value, successfully testing; if the test value is not consistent with the expected value, the test fails.
By adopting the comprehensive testing method provided by the specification, the multiplexing of the testing frame can be realized, the flexibility of the automatic testing script is effectively improved, and the comprehensive testing is realized.
The above details a full test method, and accordingly, the present specification also provides a full test apparatus, as shown in fig. 3. Fig. 3 is a schematic diagram of a comprehensive testing apparatus provided in an embodiment of the present disclosure, where the comprehensive testing apparatus provided in the embodiment of the present disclosure includes:
the acquisition module 301 acquires data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI;
the test module 303 calls a packaged interface test case to test the data to be tested to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
the sending module 305 sends the test result to a preset mailbox in a preset format.
In an embodiment of this specification, the calling the packaged interface test case to test the data to be tested, and obtaining a test result specifically includes:
calling the keyword library of the test interface case layer by layer, and sending a test request to the data to be tested;
and the system to be tested receives the test request, returns a test value and obtains a test result.
In an embodiment of this specification, the invoking, layer by layer, the keyword library of the test interface case, and sending a test request to the to-be-tested data specifically includes:
taking system keywords in the keyword library as first calling keywords, basic keywords in the keyword library as second calling keywords, and variables of the keyword library as third calling keywords;
and calling the keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data.
In the embodiments of the present specification, the keyword library is a python-based FRlibrary library.
In an embodiment of this specification, the calling the packaged interface test case to test the data to be tested, and obtaining a test result specifically includes:
and calling the packaged interface test case, testing the data to be tested, and checking the return value of the test to obtain a test result.
In the embodiment of the present specification, if the test result is negative, the error of the data to be tested is located, and after the data to be tested is adjusted, the test is performed again.
In an embodiment of the present specification, the content in the preset format at least includes: test items and test results.
In an embodiment of the present specification, the test request includes: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
An embodiment of the present specification further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI;
calling a packaged interface test case, testing the to-be-tested data to obtain a test result, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
and sending the test result to a preset mailbox in a preset format.
In an embodiment of this specification, the calling the packaged interface test case to test the data to be tested, and obtaining a test result specifically includes:
calling the keyword library of the test interface case layer by layer, and sending a test request to the data to be tested;
and the system to be tested receives the test request, returns a test value and obtains a test result.
In an embodiment of this specification, the invoking, layer by layer, the keyword library of the test interface case, and sending a test request to the to-be-tested data specifically includes:
taking system keywords in the keyword library as first calling keywords, basic keywords in the keyword library as second calling keywords, and variables of the keyword library as third calling keywords;
and calling the keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data.
In the embodiments of the present specification, the keyword library is a python-based FRlibrary library.
In an embodiment of this specification, the calling the packaged interface test case to test the data to be tested, and obtaining a test result specifically includes:
and calling the packaged interface test case, testing the data to be tested, and checking the return value of the test to obtain a test result.
In the embodiment of the present specification, if the test result is negative, the error of the data to be tested is located, and after the data to be tested is adjusted, the test is performed again.
In an embodiment of the present specification, the content in the preset format at least includes: test items and test results.
In an embodiment of the present specification, the test request includes: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the nonvolatile computer storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the partial description of the embodiments of the method.
The apparatus, the electronic device, the nonvolatile computer storage medium and the method provided in the embodiments of the present description correspond to each other, and therefore, the apparatus, the electronic device, and the nonvolatile computer storage medium also have similar advantageous technical effects to the corresponding method.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in purely computer readable program code means, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data optimization apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data optimization apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data optimization apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data optimization apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A method of full-scale testing, the method comprising:
acquiring data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI;
taking system keywords in a keyword library of a test interface case as first calling keywords, taking basic keywords in the keyword library as second calling keywords, and taking variables of the keyword library as third calling keywords;
calling a keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
the system to be tested receives the test request, returns a test value and obtains a test result;
and sending the test result to a preset mailbox in a preset format.
2. The method of claim 1, wherein the keyword library is a python-based FRlibrary library.
3. The method of claim 1, wherein the invoking of the packaged interface test case to test the data to be tested to obtain a test result specifically comprises:
and calling the packaged interface test case, testing the data to be tested, and checking the return value of the test to obtain a test result.
4. The method of claim 1, wherein if the test result is negative, the error of the data to be tested is located, and the test is performed again after the data to be tested is adjusted.
5. The method of claim 1, wherein the content in the preset format at least comprises: test items and test results.
6. The method of claim 1, wherein the test request comprises: the uniform resource locator of the data to be tested, and/or the user name and/or the password.
7. An apparatus for comprehensive testing, the apparatus comprising:
the acquisition module acquires data to be tested, wherein the test data comprises a test based on Web API and/or a test based on Web GUI;
the testing module is used for taking system keywords in a keyword library of the testing interface case as first calling keywords, taking basic keywords in the keyword library as second calling keywords and taking variables of the keyword library as third calling keywords; calling a keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword; the system to be tested receives the test request, returns a test value and obtains a test result;
and the sending module is used for sending the test result to a preset mailbox in a preset format.
8. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring data to be tested, wherein the test data comprises a test based on a Web API and/or a test based on a Web GUI;
taking system keywords in a keyword library of a test interface case as first calling keywords, taking basic keywords in the keyword library as second calling keywords, and taking variables of the keyword library as third calling keywords;
calling a keyword library of the test interface case layer by layer according to the calling sequence of the first calling keyword, the second calling keyword and the third calling keyword, and sending a test request to the to-be-tested data, wherein the interface test case at least comprises request data, an expected result and a user-defined keyword;
the system to be tested receives the test request, returns a test value and obtains a test result;
and sending the test result to a preset mailbox in a preset format.
CN202110729959.9A 2021-06-29 2021-06-29 Method, device and equipment for comprehensive test Active CN113407454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729959.9A CN113407454B (en) 2021-06-29 2021-06-29 Method, device and equipment for comprehensive test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729959.9A CN113407454B (en) 2021-06-29 2021-06-29 Method, device and equipment for comprehensive test

Publications (2)

Publication Number Publication Date
CN113407454A CN113407454A (en) 2021-09-17
CN113407454B true CN113407454B (en) 2022-08-05

Family

ID=77680118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729959.9A Active CN113407454B (en) 2021-06-29 2021-06-29 Method, device and equipment for comprehensive test

Country Status (1)

Country Link
CN (1) CN113407454B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008058473A1 (en) * 2006-11-17 2008-05-22 Shenzhen Lingce Technology Co., Ltd. Mapping method in the program testing system and program testing system
CN110471833A (en) * 2019-06-27 2019-11-19 网宿科技股份有限公司 A kind of acquisition methods of test data, electronic equipment and storage medium
CN112631914A (en) * 2020-12-24 2021-04-09 上海幻电信息科技有限公司 Data testing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8789022B2 (en) * 2012-03-31 2014-07-22 Bmc Software, Inc. Self-evolving computing service template translation
CN106095673B (en) * 2016-06-07 2018-12-14 深圳市泰久信息系统股份有限公司 Automated testing method and system based on WEB interface
CN106095677B (en) * 2016-06-08 2018-09-25 上海爱数信息技术股份有限公司 The RESTful Webservice automatic interface testing methods realized based on Robot Framework
CN112395184A (en) * 2019-08-19 2021-02-23 中移(苏州)软件技术有限公司 Information acquisition method, equipment and computer storage medium
CN111190812B (en) * 2019-12-12 2023-12-08 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Automatic test framework system based on embedded equipment
CN112131123B (en) * 2020-09-27 2024-04-02 深圳赛安特技术服务有限公司 Method and device for generating test case, terminal equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008058473A1 (en) * 2006-11-17 2008-05-22 Shenzhen Lingce Technology Co., Ltd. Mapping method in the program testing system and program testing system
CN110471833A (en) * 2019-06-27 2019-11-19 网宿科技股份有限公司 A kind of acquisition methods of test data, electronic equipment and storage medium
CN112631914A (en) * 2020-12-24 2021-04-09 上海幻电信息科技有限公司 Data testing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Innovative Packaging Solutions of 3D Integration and System in Package for IoT/Wearable and 5G Application》;Frank Lian;《2019 IEEE 21st Electronics Packaging Technology Conference (EPTC)》;20191231;第515页-第518页 *
《用例驱动自动化测试在国产化环境下应用》;冯亚玲;《数字技术与应用》;20181105(第11期);第97页-第101页 *

Also Published As

Publication number Publication date
CN113407454A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN106970873B (en) On-line mock testing method, device and system
CN109213685B (en) Service logic test method and device
CN108173706B (en) Service marking method, device and equipment under multi-service system
CN107038041B (en) Data processing method, error code dynamic compatibility method, device and system
CN108268289B (en) Parameter configuration method, device and system for web application
CN107786630B (en) Web application package processing method, device and equipment
CN110879781B (en) Program debugging method, device, electronic equipment and computer readable storage medium
CN107479868B (en) Interface loading method, device and equipment
CN112162915A (en) Test data generation method, device, equipment and storage medium
CN114547024A (en) SQL statement risk detection method, device, equipment and medium
CN110046052B (en) Service calling method and device
CN113407454B (en) Method, device and equipment for comprehensive test
CN110602163B (en) File uploading method and device
CN111538667A (en) Page testing method and device
CN109582388B (en) Parameter configuration method, device and equipment
US11846672B2 (en) Method and device for testing system-on-chip, electronic device using method, and computer readable storage medium
CN114840427A (en) Code testing and test case generating method and device
CN107239270B (en) Code processing method and device
CN110688430B (en) Method and device for obtaining data bypass and electronic equipment
CN111796864A (en) Data verification method and device
CN108733564B (en) Browser performance testing method, device and equipment
CN111782533A (en) Test method, test device, electronic equipment and storage medium
CN111984247A (en) Service processing method and device and electronic equipment
CN109324966B (en) Test script generation and execution method and device
CN108628750B (en) Test code processing 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
GR01 Patent grant
GR01 Patent grant