CN113590481A - Automatic testing method, device and equipment - Google Patents

Automatic testing method, device and equipment Download PDF

Info

Publication number
CN113590481A
CN113590481A CN202110854917.8A CN202110854917A CN113590481A CN 113590481 A CN113590481 A CN 113590481A CN 202110854917 A CN202110854917 A CN 202110854917A CN 113590481 A CN113590481 A CN 113590481A
Authority
CN
China
Prior art keywords
test
modular
test result
result
test case
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
CN202110854917.8A
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.)
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 CN202110854917.8A priority Critical patent/CN113590481A/en
Publication of CN113590481A publication Critical patent/CN113590481A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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/3664Environments for testing or debugging software
    • 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/3692Test management for test results analysis
    • 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/3696Methods or tools to render software testable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the specification discloses an automatic testing method, an automatic testing device and automatic testing equipment. The method comprises the following steps: performing modular processing on a test set, and decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying custom keywords according to a hierarchy calling relation when a service is changed; deploying a distributed test environment, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result; and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword. By adopting the automatic testing method provided by the embodiment of the specification, the period of automatic testing can be shortened, the efficiency of automatic testing is improved, and the maintenance cost can be reduced.

Description

Automatic testing method, device and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an automated testing method, an automated testing apparatus, and an automated testing device.
Background
When the existing project architecture based on the RobotFramework is designed, test cases are distinguished according to testsuite (test set), an automatic test script is edited in a mode that a case template layer directly calls service keywords and system keywords, and after the test cases in the test set are executed, the next test case is started. And the test cases, the test plans and the like are manually managed, such as excel management, and the test results need manual statistics. Therefore, when the number of test cases is large and the logic of the test set service is complex, the maintenance cost of keywords and test cases is high, the smoking test and the regression test time are prolonged, the test efficiency is affected, and the automation cannot be realized when the service is changed. .
Therefore, a new automatic test method is needed, which can reduce the test execution time and the workload of the automatic test.
Disclosure of Invention
The embodiment of the specification provides an automatic testing method, an automatic testing device and automatic testing equipment, which are used for solving the following technical problems: when the number of test cases is large and the logic of a test set service is complex, the existing test method can cause high maintenance cost of keywords and test cases, prolong smoking test and regression test time, influence test efficiency and can not realize automation when service change is carried out.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
an automated testing method provided by an embodiment of the present specification includes:
performing modular processing on a test set, and decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying custom keywords according to a hierarchy calling relation when a service is changed;
deploying a distributed test environment, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result;
and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword.
Further, the modularizing the test set into a modularized test case specifically includes
And performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the performing modular processing on the test set based on the attributes of the test set to obtain a modular test case specifically includes:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the service attribute specifically includes:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
Further, the deploying a distributed test environment and executing the modular test case by using a process pool in a parallel execution manner to obtain a test result specifically includes:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
Further, the test results include: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
Furthermore, the test result and the test case script are managed by a testlink platform.
Further, the encapsulating the test result and returning the test result by an e-mail in a form of a high-level service keyword specifically includes:
packaging the test result in a customized format content mode to obtain a packaged test result;
and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log.
An automated testing device provided by the embodiment of the present specification includes:
the decomposition module is used for performing modular processing on the test set and decomposing the test set into modular test cases, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying the custom keywords according to the hierarchy calling relation when the service is changed;
the test module is used for deploying a distributed test environment and executing the modularized test case by utilizing a process pool in a parallel execution mode to obtain a test result;
and the display module is used for packaging the test result and returning the test result through an E-mail in the form of a high-grade service keyword.
Further, the modularizing the test set into a modularized test case specifically includes
And performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the performing modular processing on the test set based on the attributes of the test set to obtain a modular test case specifically includes:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the service attribute specifically includes:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
Further, the deploying a distributed test environment and executing the modular test case by using a process pool in a parallel execution manner to obtain a test result specifically includes:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
Further, the test results include: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
Furthermore, the test result and the test case script are managed by a testlink platform.
Further, the encapsulating the test result and returning the test result by an e-mail in a form of a high-level service keyword specifically includes:
packaging the test result in a customized format content mode to obtain a packaged test result;
and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log.
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:
performing modular processing on a test set, and decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying custom keywords according to a hierarchy calling relation when a service is changed;
deploying a distributed test environment, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result;
and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword.
Further, the modularizing the test set into a modularized test case specifically includes
And performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the performing modular processing on the test set based on the attributes of the test set to obtain a modular test case specifically includes:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the service attribute specifically includes:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
Further, the deploying a distributed test environment and executing the modular test case by using a process pool in a parallel execution manner to obtain a test result specifically includes:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
Further, the test results include: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
Furthermore, the test result and the test case script are managed by a testlink platform.
Further, the encapsulating the test result and returning the test result by an e-mail in a form of a high-level service keyword specifically includes:
packaging the test result in a customized format content mode to obtain a packaged test result;
and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: by adopting the automatic testing method provided by the embodiment of the specification, the automatic testing can be executed concurrently, the period of the automatic testing is shortened, the efficiency of the automatic testing is improved, and the maintenance cost can be reduced.
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 an automated testing method provided in an embodiment of the present disclosure;
FIG. 2 is a block diagram of an automated test framework provided by embodiments of the present disclosure;
fig. 3 is a schematic structural diagram of a custom keyword provided in an embodiment of the present specification;
fig. 4 is a schematic diagram of an automated testing apparatus 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.
Fig. 1 is a schematic diagram of an automated testing method provided in an embodiment of the present disclosure, and as shown in fig. 1, the automated testing method includes:
step S101: and performing modular processing on the test set, decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying the custom keywords according to the hierarchy calling relation when the service is changed.
In an embodiment of the present specification, a test set is a test set in an automated test framework. In a specific embodiment, the automated test framework may be a RobotFramework test framework, or may be other test frameworks, and the specific type of the automated test framework does not constitute a limitation of the present application.
A test set (testunit) is a group of tests, and a test set is generally a set of multiple related tests, and can be customized. The number of the test sets may be one or more. The number of test sets does not constitute a specific limitation of the present application.
In the embodiment of the present specification, the test set includes a plurality of test case scripts, and the test case scripts can be modified by modifying the custom keywords according to the hierarchy calling relationship when the service is changed. The user-defined keywords can be modified according to the hierarchy calling relationship, so that the test case script can be modified, and therefore, when the service is changed, the test case script can be modified simply and quickly to meet the requirement of service change.
In an embodiment of this specification, the modularizing the test set and decomposing the test set into the modularized test cases specifically includes:
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
In the embodiments of the present specification, the attributes of the test set are determined by the test service attributes.
In an embodiment of this specification, the performing modular processing on the test set based on the attribute of the test set to obtain a modular test case specifically includes:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
In this embodiment of the present specification, the service attribute specifically includes:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
Specifically, the functional test refers to testing the function of a product to be tested; the performance test refers to testing the performance of a product to be tested; the UI test refers to the test of the interface design of a product to be tested; the compatibility test refers to the test of the compatibility of the product to be tested on different browsers and different display interfaces; the interface test is a test applied to different interfaces for products to be tested.
In the process of the specific embodiment, the test set can be subjected to modular processing according to different types of services according to different services, so that a modular test case is obtained.
Step S103: and deploying a distributed test environment, and executing the modularized test case by utilizing a process pool in a parallel execution mode to obtain a test result.
The test set is decomposed into the modularized test cases, so that different modularized test cases can realize the tests of different service types, and therefore, when the automatic test is carried out, the next test is not required to be carried out after one test is finished, and the tests of a plurality of test cases can be simultaneously realized.
In the embodiment of the present specification, a Grid environment may be adopted as the distributed test environment. In a specific implementation process, the specific type of the Grid environment does not constitute a limitation to the present application.
In the embodiment of the present specification, the number of process pools depends on the number of test cases.
In an embodiment of this specification, the deploying a distributed test environment and executing the modular test case by using a process pool in a parallel execution manner to obtain a test result specifically includes:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
In the embodiment of the present specification, the VisGrid tool is a tool for starting and managing nodes, and in the implementation process, other tools may also be used to implement the deployment of the distributed test environment.
In an embodiment of the present specification, the test results include: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
In an embodiment of the present specification, the test result and the test case script are managed by a testlink platform. Specifically, the interface provided by the testlink platform is used for management, and the interface can be Tsetlink-API-Python-client. the interface provided by the testlink platform can manage test results and test case scripts and can also manage a test plan. By adopting the method, the original test case script can be compatible, the test result can be automatically fed back and filled in the test report, and the test result can be timely and simply sent to a preset manager.
Step S105: and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword.
In an embodiment of this specification, the encapsulating the test result and returning the test result by an email in a form of a high-level service keyword specifically includes:
packaging the test result in a customized format content mode to obtain a packaged test result;
and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log. In this specification, the content in the preset format may include: test item, test date, test number, etc. The specific content of the preset format does not constitute a limitation of the present application.
In this embodiment, the predetermined designated person may be a tester.
In embodiments of the present description, the test report and the test log may be used as an email attachment.
It should be particularly noted that the automated testing method provided in the embodiments of the present specification is mainly applied to front-end automated testing.
In embodiments of the present description, encapsulation may be performed in conjunction with python.
In order to further understand the automated testing method provided by the embodiments of the present disclosure, the following description will be made with reference to specific block diagrams. Fig. 2 is a schematic diagram of a framework of an automated test provided in an embodiment of the present specification, and as shown in fig. 2, a test set is decomposed into a plurality of module test cases, and the obtained plurality of module test cases are distributed to different nodes (nodes) by performing task distribution via a multiport repeater (Hub). Specifically, in the front-end test, when performing the automated test, compatibility of data to be tested in different browsers needs to be considered, and therefore, the test needs to be performed in different browsers at the same time. In a specific embodiment, the type of Node may include NodeChrom, NodeI, NodeFirefox, nodefinfofmicrosoft, and of course, the type of Node may be other types, and does not constitute a limitation to the present application.
In addition, when a service is changed or updated, the automated testing method provided in the embodiments of the present specification only needs to modify a custom keyword portion in a script corresponding to a test case, and specifically, when the service is changed, the custom keyword in the script corresponding to the test case is modified according to a relation called by a hierarchy. In order to further understand the custom keyword provided in the embodiments of the present specification, the structure of the custom keyword will be described in detail below. Fig. 3 is a schematic structural diagram of a custom keyword provided in an embodiment of this specification. As shown in fig. 3, the custom keywords are layered according to the bottom layer and the business layer. The bottom layer comprises basic bottom layer keywords and basic service keywords, and the user layer comprises some user keywords and advanced service keywords which have larger business relations. It should be noted that the specific content of the custom keyword is determined according to the service.
By adopting the automatic testing method provided by the embodiment of the specification, the automatic testing can be executed concurrently, the period of the automatic testing is shortened, the efficiency of the automatic testing is improved, and the maintenance cost can be reduced.
The above details an automated testing method, and accordingly, the present specification further provides an automated testing apparatus, as shown in fig. 4. Fig. 4 is a schematic diagram of an automated testing apparatus provided in an embodiment of the present specification, where the automated testing apparatus provided in the embodiment of the present specification includes:
the decomposition module 401 is configured to perform modular processing on a test set, and decompose the test set into a modular test case, where the test set includes a plurality of test case scripts, and the test case scripts can be modified by modifying the custom keywords according to a hierarchical calling relationship when a service changes;
the test module 403 is configured to deploy a distributed test environment, and execute the modular test case by using a process pool in a parallel execution manner to obtain a test result;
and the display module 405 encapsulates the test result and returns the test result in the form of a high-level service keyword through an e-mail.
Further, the modularizing the test set into a modularized test case specifically includes
And performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the performing modular processing on the test set based on the attributes of the test set to obtain a modular test case specifically includes:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the service attribute specifically includes:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
Further, the deploying a distributed test environment and executing the modular test case by using a process pool in a parallel execution manner to obtain a test result specifically includes:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
Further, the test results include: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
Furthermore, the test result and the test case script are managed by a testlink platform.
Further, the encapsulating the test result and returning the test result by an e-mail in a form of a high-level service keyword specifically includes:
packaging the test result in a customized format content mode to obtain a packaged test result;
and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log.
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:
performing modular processing on a test set, and decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying custom keywords according to a hierarchy calling relation when a service is changed;
deploying a distributed test environment, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result;
and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword.
Further, the modularizing the test set into a modularized test case specifically includes
And performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the performing modular processing on the test set based on the attributes of the test set to obtain a modular test case specifically includes:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
Further, the service attribute specifically includes:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
Further, the deploying a distributed test environment and executing the modular test case by using a process pool in a parallel execution manner to obtain a test result specifically includes:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
Further, the test results include: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
Furthermore, the test result and the test case script are managed by a testlink platform.
Further, the encapsulating the test result and returning the test result by an e-mail in a form of a high-level service keyword specifically includes:
packaging the test result in a customized format content mode to obtain a packaged test result;
and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log.
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.
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 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 as pure computer readable program code, 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 (10)

1. An automated testing method, the method comprising:
performing modular processing on a test set, and decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying custom keywords according to a hierarchy calling relation when a service is changed;
deploying a distributed test environment, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result;
and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword.
2. The method of claim 1, wherein modularizing the test set into modular test cases comprises
And performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
3. The method of claim 2, wherein the modular processing is performed on the test set based on the attributes of the test set to obtain a modular test case, specifically comprising:
obtaining the attribute of the test set based on the service attribute;
and performing modular processing on the test set based on the attribute of the test set to obtain a modular test case.
4. The method according to claim 3, wherein the service attributes specifically include:
one or more of function test, performance test, UI test, security test, compatibility test and interface test.
5. The method of claim 1, wherein the deploying of the distributed test environment and the executing of the modular test case by the process pool in a parallel execution manner to obtain the test result specifically comprises:
and deploying the Grid environment by using a Visgrid tool, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result.
6. The method of claim 1, wherein the test results comprise: the total number of the test cases, the failure number of the test cases, the passing number of the test cases and the passing rate of the test cases.
7. The method of claim 1, wherein the test results and the test case scripts are managed by a testlink platform.
8. The method of claim 1, wherein the encapsulating the test result and returning the test result in the form of a high-level service keyword through an email specifically comprises:
packaging the test result in a customized format content mode to obtain a packaged test result; and sending the packaged test result to a preset appointed person in the form of a high-grade service keyword through an e-mail, wherein the e-mail directly displays the test result and carries a test report and a test log.
9. An automated testing apparatus, the apparatus comprising:
the decomposition module is used for performing modular processing on the test set and decomposing the test set into modular test cases, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying the custom keywords according to the hierarchy calling relation when the service is changed;
the test module is used for deploying a distributed test environment and executing the modularized test case by utilizing a process pool in a parallel execution mode to obtain a test result;
and the display module is used for packaging the test result and returning the test result through an E-mail in the form of a high-grade service keyword.
10. 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:
performing modular processing on a test set, and decomposing the test set into a modular test case, wherein the test set comprises a plurality of test case scripts, and the test case scripts can be modified by modifying custom keywords according to a hierarchy calling relation when a service is changed;
deploying a distributed test environment, and executing the modularized test case by using a process pool in a parallel execution mode to obtain a test result;
and packaging the test result, and returning the test result through an E-mail in a form of a high-grade service keyword.
CN202110854917.8A 2021-07-28 2021-07-28 Automatic testing method, device and equipment Pending CN113590481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110854917.8A CN113590481A (en) 2021-07-28 2021-07-28 Automatic testing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110854917.8A CN113590481A (en) 2021-07-28 2021-07-28 Automatic testing method, device and equipment

Publications (1)

Publication Number Publication Date
CN113590481A true CN113590481A (en) 2021-11-02

Family

ID=78250973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110854917.8A Pending CN113590481A (en) 2021-07-28 2021-07-28 Automatic testing method, device and equipment

Country Status (1)

Country Link
CN (1) CN113590481A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383784A (en) * 2016-09-20 2017-02-08 上海爱数信息技术股份有限公司 Software automated test method and system
CN107831757A (en) * 2017-11-29 2018-03-23 合肥巨动力系统有限公司 Based on dSPACE motor control hardware in ring automatization test system and method
CN109032943A (en) * 2018-07-26 2018-12-18 威创软件南京有限公司 A method of it is concurrently executed based on robot framework test case
CN109218139A (en) * 2018-10-23 2019-01-15 京信通信系统(中国)有限公司 Gateway test macro
CN109344076A (en) * 2018-10-22 2019-02-15 浙江执御信息技术有限公司 A kind of automatic interface testing method and its device based on JMeter and Jenkins
CN110109843A (en) * 2019-07-08 2019-08-09 四川驹马科技有限公司 Automatic test cases construction method and system based on Robot Framework

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383784A (en) * 2016-09-20 2017-02-08 上海爱数信息技术股份有限公司 Software automated test method and system
CN107831757A (en) * 2017-11-29 2018-03-23 合肥巨动力系统有限公司 Based on dSPACE motor control hardware in ring automatization test system and method
CN109032943A (en) * 2018-07-26 2018-12-18 威创软件南京有限公司 A method of it is concurrently executed based on robot framework test case
CN109344076A (en) * 2018-10-22 2019-02-15 浙江执御信息技术有限公司 A kind of automatic interface testing method and its device based on JMeter and Jenkins
CN109218139A (en) * 2018-10-23 2019-01-15 京信通信系统(中国)有限公司 Gateway test macro
CN110109843A (en) * 2019-07-08 2019-08-09 四川驹马科技有限公司 Automatic test cases construction method and system based on Robot Framework

Similar Documents

Publication Publication Date Title
CN107450972B (en) Scheduling method and device and electronic equipment
CN100543701C (en) A kind of method and system that realize embedded software unconventionality testing
CN107045438B (en) Application top view processing method, device and component
US20140245199A1 (en) Method and system for customizing a gui of a mes screen
CN103744647A (en) Java workflow development system and method based on workflow GPD
US20130167050A1 (en) Method and system for customizing a graphic user interface of a manufacturing execution system screen
CN112162915A (en) Test data generation method, device, equipment and storage medium
CN117075930B (en) Computing framework management system
CN111026494A (en) Business process processing method, device and equipment
CN108255471B (en) System configuration item configuration device, method and equipment based on configuration suite
CN103699478A (en) Test case generation system and test case generation method
US11454955B2 (en) Method and system for controlling a manufacturing plant with a manufacturing execution system
CN117319235A (en) Service calling method and device
CN116341642B (en) Data processing method and device, storage medium and electronic equipment
CN113590481A (en) Automatic testing method, device and equipment
CN111459573A (en) Method and device for starting intelligent contract execution environment
CN113177292B (en) Universal BIM secondary development implementation method and device
CN114594944A (en) Application construction system and device
CN109446719A (en) A kind of implementation method of the customized product tree of element type
US20140047410A1 (en) Method and system for semiconductor host simulation automation
CN113326117B (en) Task scheduling method, device and equipment
CN113590490B (en) Automatic test method, device and equipment
CN110704742A (en) Feature extraction method and device
CN113407454B (en) Method, device and equipment for comprehensive test
CN117406982B (en) Integrated storage and calculation application generation system and method, storage medium and equipment

Legal Events

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