CN110968504A - Test method, test platform, electronic device and computer storage medium - Google Patents

Test method, test platform, electronic device and computer storage medium Download PDF

Info

Publication number
CN110968504A
CN110968504A CN201911084270.4A CN201911084270A CN110968504A CN 110968504 A CN110968504 A CN 110968504A CN 201911084270 A CN201911084270 A CN 201911084270A CN 110968504 A CN110968504 A CN 110968504A
Authority
CN
China
Prior art keywords
test
execution
module
modules
platform
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
CN201911084270.4A
Other languages
Chinese (zh)
Inventor
金伟光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings 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 JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN201911084270.4A priority Critical patent/CN110968504A/en
Publication of CN110968504A publication Critical patent/CN110968504A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a test method, a test platform, electronic equipment and a computer storage medium, wherein the method comprises the following steps: configuring test parameters and determining the execution sequence of the N test modules, wherein the test parameters comprise: the communication parameters between the test platform and each test module in the N test modules are N integers which are more than 1, and the N test modules are used for executing different types of tests; and sending corresponding test execution instructions to the N test modules in sequence according to the execution sequence and based on the communication parameters. In the embodiment of the invention, the corresponding automatic test execution instructions can be sequentially sent to the N test modules according to the execution sequence of the N test modules which are configured in advance, and when the N test modules are used for executing different types of automatic tests, the different types of automatic tests can be uniformly realized when one automatic test is carried out, so that the accuracy and the efficiency of the automatic tests are improved.

Description

Test method, test platform, electronic device and computer storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a testing method, a testing platform, electronic equipment and a computer storage medium.
Background
In the related art, a plurality of different types of automated tests may be implemented, for example, a network (web) automated test of a Personal Computer (PC), an Application (APP) automated test of a mobile terminal, an automated test of a Graphical User Interface (GUI), an automated test of a database, an automated test of an Interface, an automated test of performance, and the like may be implemented; however, in implementing the present invention, the inventors found that at least the following problems exist in the above-described related art: different types of automatic tests are isolated, namely, only one type of automatic test can be realized each time the automatic test is carried out, so that the accuracy and the efficiency of the automatic test are reduced.
Disclosure of Invention
Embodiments of the present invention are intended to provide a technical solution for testing (e.g., automated testing).
The embodiment of the invention provides a test method, which is applied to a test platform and comprises the following steps:
configuring test parameters and determining the execution sequence of the N test modules, wherein the test parameters comprise: the communication parameters between the test platform and each test module in the N test modules are N integers which are more than 1, and the N test modules are used for executing different types of tests;
and sending corresponding test execution instructions to the N test modules in sequence according to the execution sequence and based on the communication parameters.
Optionally, the sequentially sending corresponding test execution instructions to the N test modules according to the execution sequence and based on the communication parameters includes:
recording the N test modules as a1 st test module to an Nth test module in sequence according to the execution sequence;
when i is from 1 to N-1, sending a test execution instruction of the ith test module to the ith test module based on the communication parameters, and receiving an execution result of the ith test module; and sending a test execution instruction of the (i + 1) th test module to the (i + 1) th test module according to the execution result and based on the communication parameters.
Optionally, the test execution instruction of the (i + 1) th test module includes an execution result of the (i) th test module.
Optionally, the communication parameters include: and the data interaction mode between the test platform and each test module.
Optionally, the data interaction manner includes: the test platform comprises a first format of data sent to each test module by the test platform and a second format of data sent to the test platform by each test module, wherein the first format and the second format are the same data format.
Optionally, the determining the execution order of the N test modules includes:
and pre-configuring the execution sequence of the N test modules.
Optionally, the determining the execution order of the N test modules includes:
acquiring execution parameters, wherein the execution parameters comprise: input data required by each of the N test modules;
and when an execution result sent by any test module is received, determining a next test module for executing the test according to the execution result sent by any test module and the execution parameters.
The embodiment of the invention also provides a test platform, which comprises a first processing module and a second processing module, wherein,
the first processing module is used for configuring test parameters and determining the execution sequence of the N test modules, wherein the test parameters comprise: the communication parameters between the test platform and each test module in the N test modules are N integers which are more than 1, and the N test modules are used for executing different types of tests;
and the second processing module is used for sequentially sending corresponding test execution instructions to the N test modules according to the execution sequence and based on the communication parameters.
Optionally, the second processing module is configured to sequentially record the N test modules as a1 st test module to an nth test module according to the execution order; when i is from 1 to N-1, sending a test execution instruction of the ith test module to the ith test module based on the communication parameters, and receiving an execution result of the ith test module; and sending a test execution instruction of the (i + 1) th test module to the (i + 1) th test module according to the execution result and based on the communication parameters.
Optionally, the test execution instruction of the (i + 1) th test module includes an execution result of the (i) th test module.
Optionally, the communication parameters include: and the data interaction mode between the test platform and each test module.
Optionally, the data interaction manner includes: the test platform comprises a first format of data sent to each test module by the test platform and a second format of data sent to the test platform by each test module, wherein the first format and the second format are the same data format.
Optionally, the first processing module is configured to pre-configure an execution sequence of the N test modules.
Optionally, the first processing module is configured to obtain an execution parameter, where the execution parameter includes: input data required by each of the N test modules;
and when an execution result sent by any test module is received, determining a next test module for executing the test according to the execution result sent by any test module and the execution parameters.
The embodiment of the invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize any one of the test methods.
An embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements any one of the above-mentioned test methods.
In the testing method, the testing platform, the electronic device and the computer storage medium provided by the embodiment of the invention, testing parameters are configured and the execution sequence of N testing modules is determined, wherein the testing parameters comprise: the communication parameters between the test platform and each test module in the N test modules are N integers which are more than 1, and the N test modules are used for executing different types of tests; and sending corresponding test execution instructions to the N test modules in sequence according to the execution sequence and based on the communication parameters. It can be seen that, in the embodiment of the present invention, the corresponding automated test execution instructions may be sequentially sent to the N test modules according to the execution sequence of the N test modules configured in advance, and when the N test modules are used to execute different types of automated tests, the different types of automated tests may be uniformly implemented when performing one automated test, thereby improving the accuracy and efficiency of the automated tests.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a testing method of an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating interaction between a test platform and a test module according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating automated testing that may be performed in an application scenario in accordance with an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a test platform according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as partial embodiments for implementing the present invention, not all embodiments for implementing the present invention, and the technical solutions described in the embodiments of the present invention may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present invention, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, the use of the phrase "including a. -. said." does not exclude the presence of other elements (e.g., steps in a method or elements in a device, such as portions of circuitry, processors, programs, software, etc.) in the method or device in which the element is included.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
For example, the test method provided in the embodiment of the present invention includes a series of steps, but the test method provided in the embodiment of the present invention is not limited to the described steps, and similarly, the test platform provided in the embodiment of the present invention includes a series of modules, but the test platform provided in the embodiment of the present invention is not limited to include the explicitly described modules, and may also include modules that are required to be configured to obtain relevant information or perform processing based on the information.
The embodiment of the invention can be applied to a test platform, the test platform can form communication connection with a plurality of test modules, illustratively, the communication mode of the test platform and the plurality of test modules can be a socket communication mode or other communication modes, and the embodiment of the invention does not limit the communication mode; each test module is used for realizing one type of test, for example, each test module is used for realizing one type of automatic test, and different test modules can realize different types of automatic tests; in practical applications, the test platform may be implemented on a terminal and/or server basis, where the terminal may be a thin client, a thick client, a hand-held or laptop device, a microprocessor-based system, a set-top box, a programmable consumer electronics, a network personal computer, a small computer system, and so forth. The server may be a small computer system, a mainframe computer system, a distributed cloud computing environment including any of the above, and so on; .
The electronic devices, such as servers, may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Based on the application scenarios described above, the following embodiments are proposed.
First embodiment
The first embodiment of the invention provides a testing method which can be applied to a testing platform.
Fig. 1 is a flowchart of a testing method according to an embodiment of the present invention, and as shown in fig. 1, the flowchart may include:
step 101: configuring test parameters and determining the execution sequence of the N test modules, wherein the test parameters comprise: the communication parameters between the test platform and each of the N test modules, where N is an integer greater than 1, and the N test modules are used to execute different types of tests.
Illustratively, when N test modules are used to perform different types of automated tests, the N automated test modules may include at least two of: the system comprises a web automatic test module, a mobile terminal APP automatic test module, a GUI automatic test module, a database automatic test module, an interface automatic test module and a performance automatic test module; the automatic testing module of web is used for carrying out automatic testing of web, the automatic testing module of mobile terminal APP is used for carrying out automatic testing of mobile terminal APP, the automatic testing module of GUI is used for carrying out automatic testing of GUI, the automatic testing module of database is used for carrying out automatic testing of database, the automatic testing module of interface is used for carrying out automatic testing of interface, the automatic testing module of performance is used for carrying out automatic testing of performance.
In practical application, each of the N test modules may be installed with a corresponding automated test program to implement a corresponding automated test; for example, the web automation test module is installed with a web automation test program, and the web automation test module can implement web automation test by executing the web automation test program; the mobile terminal APP automatic test module is provided with an APP automatic test program, and can realize the mobile terminal APP automatic test by executing the APP automatic test program; the database automation test module is provided with a database automation test program, and can realize the database automation test by executing the database automation test program.
In one embodiment, the communication parameters between the test platform and each of the N test modules may be: the data interaction mode between the test platform and each test module; the data interaction mode between the test platform and each test module may include: a mode of sending data to each test module by the test platform and a mode of sending data to the test platform by each test module; the manner in which the test platform sends data to each test module may include: the interface and/or communication protocol used when the test platform sends data to each test module may include: and each test module sends data to the test platform by adopting an interface and/or a communication protocol.
It can be seen that after determining the communication parameters between the test platform and each of the N test modules, it may be determined how to perform data interaction between the test platform and the N test modules, and since the data interaction manner may be pre-configured according to actual application requirements, based on the pre-configured data interaction manner between the test platform and each test module, the data interaction between the test platform and each test module may be implemented according to the actual application requirements.
In practical applications, the manner of sending data to each test module by the test platform may further include: the first format of the data sent by the test platform to each test module; the method for each test module to send data to the test platform may further include: a second format of data sent by each test module to the test platform; the first format and the second format are the same data format; it can be seen that, under the condition that the first format and the second format are the same data format, the test platform adopts the same data format to interact with each test module, so that the N test modules are conveniently accessed to the test platform in a plug-in mode.
When N test modules are used to execute different types of automated tests, an interaction manner between a test platform and one test module is described below with reference to fig. 2, where fig. 2 is an interaction schematic diagram of the test platform and the test module in an embodiment of the present invention, and with reference to fig. 2, a whole test flow is first triggered on the test platform, and the whole test flow includes execution of the N test modules; when i is from 1 to N and it is determined that the ith test module is required to execute the automated test, sending a corresponding test execution instruction to the ith test module according to the communication parameters of the test platform and the ith test module; and after the ith test module executes the automatic test, generating an execution result and returning the execution result to the test platform.
For an implementation of determining the execution order of the N test modules, in an example, the execution order of the N test modules may be configured in advance; in the embodiment of the present invention, the execution sequence of the N test modules may be preset according to an actual application scenario, for example, in an application scenario, a web automation test, a database automation test, and a mobile terminal APP automation test need to be sequentially executed, and the N test modules are the web automation test module, the database automation test module, and the mobile terminal APP automation test module according to the execution sequence.
In practice, at least one of the following may be configured via a spreadsheet or otherwise: testing parameters and the execution sequence of N testing modules; after the configuration of the test parameters and/or the execution sequence of the N test modules is completed, the test parameters and/or the execution sequence of the N test modules may be stored in the test platform.
For an implementation of determining the execution order of the N test modules, in another example, the execution parameters may be obtained, and the execution parameters include: inputting data required by each of the N test modules; therefore, when the execution result sent by at least one test module is received, the next test module for executing the test is determined according to the execution result sent by the at least one test module and the execution parameters.
Here, the input data required by each test module may be determined according to the test content executed by the test module, for example, when each test module is used to execute an automated test, the input data required by each test module may be determined according to the content of the automated test executed by the test module, in a specific example, the input data required by the web automated test module is data that needs to be input when the web automated test is executed, the input data required by the mobile-end APP automated test module is data that needs to be input when the mobile-end APP automated test is executed, and the input data required by the database automated test module is data that needs to be input when the database automated test is executed.
In practical application, the first test module for executing the test can be specified in advance, 1 to N-1 is taken as the i, the i test module for executing the test can obtain an execution result by executing the corresponding test, and then the i test module for executing the test can send the obtained execution result to the test platform according to the communication parameters; the test platform can determine a test module capable of executing the test according to the execution result of at least one test module and input data required by each test module, and takes the test module capable of executing the test as a next test module for executing the test; therefore, the test platform can realize the automatic sequencing of the N test modules in the test execution process of the N test modules according to the execution result of the test modules.
Step 102: and sending corresponding test execution instructions to the N test modules in sequence according to the execution sequence and based on the communication parameters.
In this embodiment of the present invention, the test execution instruction may include input data required for the test, for example, when each of the N test modules is used to execute the automated test, the test execution instruction may include input data of the automated test, execution parameters of the automated test, and the like; after receiving the test execution instruction sent by the test platform, any one of the test modules can execute the test according to the test execution instruction.
In practical applications, the steps 101 to 102 may be implemented based on a Processor of a test platform, where the Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor.
It can be understood that, in the embodiment of the present invention, the corresponding automated test execution instructions may be sequentially sent to the N test modules according to the execution sequence of the N test modules configured in advance, and when the N test modules are used for executing different types of automated tests, the different types of automated tests may be uniformly implemented when performing one automated test, so that the accuracy and efficiency of the automated tests are improved.
Second embodiment
In order to further embody the object of the present invention, the automated testing is taken as an example to further explain the first embodiment of the present invention.
When one type of automatic test is carried out, the result of the other type of automatic test may be required as input, so that the mutual influence among different types of automatic tests can be reflected; however, in the related art, when an automatic test is performed once, only one type of automatic test can be independently implemented, and mutual influence between different types of automatic tests cannot be reflected, and further, after parameters such as codes of one type of automatic test are modified, influence on another type of automatic test cannot be judged, that is, regression test is difficult to perform.
In order to solve the above problems, a manual mode may be used to input data required for automated testing, for example, if the automated testing of the database requires data output by using web automated testing, the data needs to be input into the automated testing program of the database in a manual mode before the automated testing of the database, so as to implement the automated testing of the database; the automatic testing scheme is complex to implement and high in operation complexity of a user.
In the second embodiment of the present invention, another automated testing method is provided, which can be applied to a testing platform.
The flow of the automated testing method according to the second embodiment of the present invention may include:
step A1: configuring test parameters, wherein the test parameters comprise: the test platform comprises an execution sequence of N test modules and communication parameters between the test platform and each test module in the N test modules, wherein N is an integer larger than 1, and the N test modules are used for executing different types of automatic tests.
The implementation of this step has already been described in the foregoing description, and is not described herein again.
Step A2: recording the N test modules as a1 st test module to an Nth test module in sequence according to the execution sequence; when i is from 1 to N-1, sending a test execution instruction of the ith test module to the ith test module based on the communication parameters, and receiving an execution result of the ith test module; and sending a test execution instruction of the (i + 1) th test module to the (i + 1) th test module according to the received execution result and based on the communication parameters.
In the embodiment of the invention, after the test execution instruction of the ith test module is sent to the ith test module, the ith test module executes the automatic test according to the received test execution instruction, so that the execution result of the ith test module is obtained; the ith test module may send an execution result of the ith test module to the test platform according to the communication parameter.
In the second embodiment of the present invention, the test execution instruction of the (i + 1) th test module may include an execution result of the (i) th test module, so that the interaction between different types of automated tests may be reflected.
A second embodiment of the invention is further illustrated by a specific application example.
Fig. 3 is a schematic diagram of an automated test that needs to be executed in an application scenario according to an embodiment of the present invention, and referring to fig. 3, in an application scenario, a web automated test, a database automated test, and a mobile terminal APP automated test need to be executed in sequence, and then N test modules are a web automated test module, a database automated test module, and a mobile terminal APP automated test module in sequence according to an execution order.
In specific implementation, communication parameters of the test platform, the web automatic test module, the database automatic test module and the mobile terminal APP automatic test module can be configured firstly; according to communication parameters of the test platform and the web automatic test module, the web automatic test execution instruction can be sent to the web automatic test module, for example, the web automatic test execution instruction can be sent to the web automatic test module through an agreed protocol, and the web automatic test module can complete web login and other tasks related to the web according to the web automatic test execution instruction, obtain an execution result of the web automatic test, and send the execution result of the web automatic test to the test platform.
The test platform can record an execution result of the web automatic test, and send a database automatic test execution instruction to the database automatic test module according to the execution result of the web automatic test and communication parameters of the automatic test platform and the database automatic test module, the database automatic test module can obtain the execution result of the database automatic test according to the database automatic test execution instruction, and can send the execution result of the database automatic test to the test platform, and the execution result of the database automatic test can be exemplarily used for verifying whether a user logs in a webpage or not.
The test platform can record the execution result of the database automatic test and send a mobile terminal APP automatic test execution instruction to the mobile terminal APP automatic test module according to the execution result of the database automatic test and the communication parameters of the test platform and the mobile terminal APP automatic test module; the mobile terminal APP automatic test module can obtain an execution result of the mobile terminal APP automatic test according to the mobile terminal APP automatic test execution instruction, and can send the execution result of the mobile terminal APP automatic test to the test platform.
It can be understood that, in the embodiment of the present invention, because the test execution instruction of the (i + 1) th test module can be sent to the (i + 1) th test module according to the execution result of the (i) th test module, the automated test method according to the embodiment of the present invention can reflect the mutual influence between the automated tests of different types, and can automatically implement the execution of the (i + 1) th test module on the basis of obtaining the execution result of the (i) th test module, the implementation manner is simple, and the complexity of the user operation is reduced.
Third embodiment
On the basis of the test method provided by the foregoing embodiment, the embodiment of the present invention also provides a test platform.
Fig. 4 is a schematic structural diagram of an automated testing platform according to an embodiment of the present invention, and as shown in fig. 4, the platform may include a first processing module 401 and a second processing module 402, wherein,
a first processing module 401, configured to configure test parameters and determine an execution order of the N test modules, where the test parameters include: and the communication parameters between the test platform and each test module in the N test modules are N integers larger than 1, and the N test modules are used for executing different types of tests.
And a second processing module 402, configured to send corresponding test execution instructions to the N test modules in sequence according to the execution order and based on the communication parameters.
Optionally, the second processing module 402 is configured to sequentially record the N test modules as a1 st test module to an nth test module according to the execution sequence; when i is from 1 to N-1, sending a test execution instruction of the ith test module to the ith test module based on the communication parameters, and receiving an execution result of the ith test module; and sending a test execution instruction of the (i + 1) th test module to the (i + 1) th test module according to the execution result and based on the communication parameters.
Optionally, the test execution instruction of the (i + 1) th test module includes an execution result of the (i) th test module.
Optionally, the communication parameters include: and the data interaction mode between the test platform and each test module.
Optionally, the data interaction manner includes: the test platform comprises a first format of data sent to each test module by the test platform and a second format of data sent to the test platform by each test module, wherein the first format and the second format are the same data format.
Optionally, the first processing module 401 is configured to configure an execution sequence of the N test modules in advance.
Optionally, the first processing module 401 is configured to obtain an execution parameter, where the execution parameter includes: input data required by each of the N test modules;
and when an execution result sent by any test module is received, determining a next test module for executing the test according to the execution result sent by any test module and the execution parameters.
The first processing module 401 and the second processing module 402 can be implemented by a processor located in a test platform, where the processor is at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Specifically, the computer program instructions corresponding to a test method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to a test method in the storage medium are read or executed by an electronic device, any one of the test methods of the foregoing embodiments is implemented.
Based on the same technical concept of the foregoing embodiment, referring to fig. 5, it shows an electronic device 50 provided by an embodiment of the present invention, which may include: a memory 51, a processor 52, and a computer program stored on the memory 51 and executable on the processor 52; wherein the content of the first and second substances,
a memory 51 for storing computer programs and data;
a processor 52 for executing the computer program stored in the memory to implement any one of the testing methods of the previous embodiments.
In practical applications, the memory 51 may be a volatile memory (RAM); or a non-volatile memory (non-volatile memory) such as a ROM, a flash memory (flash memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 52.
The processor 52 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.
In some embodiments, the functions of the apparatus provided in the embodiments of the present invention or the modules included in the apparatus may be used to execute the method described in the above method embodiments, and for specific implementation, reference may be made to the description of the above method embodiments, and for brevity, details are not described here again
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, which are not repeated herein for brevity
The methods disclosed in the method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in various product embodiments provided by the application can be combined arbitrarily to obtain new product embodiments without conflict.
The features disclosed in the various method or apparatus embodiments provided herein may be combined in any combination to arrive at new method or apparatus embodiments without conflict.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A testing method is applied to a testing platform, and the method comprises the following steps:
configuring test parameters and determining the execution sequence of the N test modules, wherein the test parameters comprise: the communication parameters between the test platform and each test module in the N test modules are N integers which are more than 1, and the N test modules are used for executing different types of tests;
and sending corresponding test execution instructions to the N test modules in sequence according to the execution sequence and based on the communication parameters.
2. The method according to claim 1, wherein said sequentially sending corresponding test execution instructions to the N test modules according to the execution order and based on the communication parameters comprises:
recording the N test modules as a1 st test module to an Nth test module in sequence according to the execution sequence;
when i is from 1 to N-1, sending a test execution instruction of the ith test module to the ith test module based on the communication parameters, and receiving an execution result of the ith test module; and sending a test execution instruction of the (i + 1) th test module to the (i + 1) th test module according to the execution result and based on the communication parameters.
3. The method of claim 2, wherein the test execution instruction of the (i + 1) th test module comprises an execution result of the (i) th test module.
4. The method according to any of claims 1 to 3, wherein the communication parameters comprise: and the data interaction mode between the test platform and each test module.
5. The method of claim 4, wherein the data interaction mode comprises: the test platform comprises a first format of data sent to each test module by the test platform and a second format of data sent to the test platform by each test module, wherein the first format and the second format are the same data format.
6. The method of any of claims 1 to 3, wherein said determining an execution order of the N test modules comprises:
and pre-configuring the execution sequence of the N test modules.
7. The method of any of claims 1 to 3, wherein said determining an execution order of the N test modules comprises:
acquiring execution parameters, wherein the execution parameters comprise: input data required by each of the N test modules;
and when an execution result sent by at least one test module is received, determining the next test module for executing the test according to the execution result sent by the at least one test module and the execution parameters.
8. A test platform comprising a first processing module and a second processing module, wherein,
the first processing module is used for configuring test parameters and determining the execution sequence of the N test modules, wherein the test parameters comprise: the communication parameters between the test platform and each test module in the N test modules are N integers which are more than 1, and the N test modules are used for executing different types of tests;
and the second processing module is used for sequentially sending corresponding test execution instructions to the N test modules according to the execution sequence and based on the communication parameters.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 7 when executing the program.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN201911084270.4A 2019-11-07 2019-11-07 Test method, test platform, electronic device and computer storage medium Pending CN110968504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911084270.4A CN110968504A (en) 2019-11-07 2019-11-07 Test method, test platform, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911084270.4A CN110968504A (en) 2019-11-07 2019-11-07 Test method, test platform, electronic device and computer storage medium

Publications (1)

Publication Number Publication Date
CN110968504A true CN110968504A (en) 2020-04-07

Family

ID=70030412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911084270.4A Pending CN110968504A (en) 2019-11-07 2019-11-07 Test method, test platform, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110968504A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975397A (en) * 2016-07-18 2016-09-28 浪潮(北京)电子信息产业有限公司 Integration testing method and system based on TestNG
CN106708715A (en) * 2015-07-13 2017-05-24 阿里巴巴集团控股有限公司 Automatic test method and device
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
CN108399132A (en) * 2018-03-21 2018-08-14 腾讯科技(深圳)有限公司 A kind of scheduling tests method, apparatus and storage medium
US20190166035A1 (en) * 2017-11-27 2019-05-30 Jpmorgan Chase Bank, N.A. Script accelerate
CN109992506A (en) * 2019-03-18 2019-07-09 平安科技(深圳)有限公司 Scheduling tests method, apparatus, computer equipment and storage medium
CN110377520A (en) * 2019-07-22 2019-10-25 中国工商银行股份有限公司 The test method and device, electronic equipment and readable storage medium storing program for executing for scene of trading

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708715A (en) * 2015-07-13 2017-05-24 阿里巴巴集团控股有限公司 Automatic test method and device
CN105975397A (en) * 2016-07-18 2016-09-28 浪潮(北京)电子信息产业有限公司 Integration testing method and system based on TestNG
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
US20190166035A1 (en) * 2017-11-27 2019-05-30 Jpmorgan Chase Bank, N.A. Script accelerate
CN108399132A (en) * 2018-03-21 2018-08-14 腾讯科技(深圳)有限公司 A kind of scheduling tests method, apparatus and storage medium
CN109992506A (en) * 2019-03-18 2019-07-09 平安科技(深圳)有限公司 Scheduling tests method, apparatus, computer equipment and storage medium
CN110377520A (en) * 2019-07-22 2019-10-25 中国工商银行股份有限公司 The test method and device, electronic equipment and readable storage medium storing program for executing for scene of trading

Similar Documents

Publication Publication Date Title
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
CN110442524B (en) Method and device for testing web service interface with authentication authorization
US20200174915A1 (en) Emulation-based testing of a microservices architecture
US10360087B2 (en) Web API recommendations based on usage in cloud-provided runtimes
US9602599B2 (en) Coordinating application migration processes
US10628243B1 (en) Validation framework for runtime connected API systems
CN107436844B (en) Method and device for generating interface use case aggregate
WO2017083207A1 (en) Digital assistant setting up device
US20140081615A1 (en) Virtual systems testing
US20150007138A1 (en) Method and system for incrementally updating a test suite utilizing run-time application executions
US20180032322A1 (en) Automated devops application deployment
CN109857404B (en) SDK interface packaging method and device, storage medium and electronic equipment
CN108923997B (en) Cloud service node automatic testing method and device based on python
US10552306B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
CN113190464A (en) mock testing method, mock testing device, electronic equipment and mock testing medium
US11010286B1 (en) Software testing with machine learning models
US20170300403A1 (en) Recordation of user interface events for script generation
CN109522202B (en) Software testing method and device
CN110968504A (en) Test method, test platform, electronic device and computer storage medium
CN115914062A (en) Network card testing method and device, electronic equipment and storage medium
CN112395194B (en) Method and device for accessing test platform
US11709936B2 (en) Automatic integrity vulnerability detection in an integrated development environment
CN114500348A (en) CDN gateway test method and system
CN111355629B (en) Client test method and device, computer equipment and storage medium
CN110597517A (en) Method and device for dynamically analyzing mat file

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
CB02 Change of applicant information

Address after: Room 221, 2nd floor, Block C, 18 Kechuang 11th Street, Daxing Economic and Technological Development Zone, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2nd floor, Block C, 18 Kechuang 11th Street, Daxing Economic and Technological Development Zone, Beijing, 100176

Applicant before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

CB02 Change of applicant information