CN113032284A - System integration test method and device, electronic equipment and storage medium - Google Patents

System integration test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113032284A
CN113032284A CN202110556880.0A CN202110556880A CN113032284A CN 113032284 A CN113032284 A CN 113032284A CN 202110556880 A CN202110556880 A CN 202110556880A CN 113032284 A CN113032284 A CN 113032284A
Authority
CN
China
Prior art keywords
task
test
source file
node
system integration
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
CN202110556880.0A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110556880.0A priority Critical patent/CN113032284A/en
Publication of CN113032284A publication Critical patent/CN113032284A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

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

Abstract

The disclosure relates to a system integration test method, a system integration test device, an electronic device and a storage medium, wherein the method comprises the following steps: after the first task node acquires the system integration test task request, acquiring a test task corresponding to the system integration test task request according to the system integration test task request, directly acquiring a source file required by the test task from the second task node under the condition that the source file required by the test task is stored on the second task node, and executing the test task according to the source file required by the test task. In the process of performing system integration test based on the task nodes, part of the task nodes can acquire source files required by the test tasks from other task nodes, all the task nodes are not required to acquire the source files required by the test tasks from the server, the time for acquiring the source files corresponding to the test tasks by the task nodes in the process of system integration test is reduced, the efficiency of acquiring the source files in the process of test can be improved, and the test efficiency can be improved.

Description

System integration test method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a system integration test method and apparatus, an electronic device, and a storage medium.
Background
In the process of developing the application program, a code server is generally used for storing a source file corresponding to the application program, and a plurality of task nodes are used for obtaining the source file corresponding to a test task from the code server, so as to perform system integration test on the application program.
In the related art, in the process of performing a system integration test on an application program, a plurality of task nodes need to acquire source files required by a corresponding system integration test task from a code server one by one, and execute the test task based on the acquired source files. However, the time required for all the task nodes to directly obtain the source file from the code server is long, which affects the testing efficiency of the application program.
Disclosure of Invention
The present disclosure is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the following technical scheme is provided in the disclosure:
an embodiment of a first aspect of the present disclosure provides a system integration test method, which is applied to a first task node, and the method includes: acquiring a system integration test task request; obtaining a test task corresponding to the system integration test task request according to the system integration test task request; responding to the fact that the source file required by the testing task is stored on a second task node, and obtaining the source file required by the testing task from the second task node; and executing the test task according to the source file required by the test task.
In an embodiment of the present disclosure, the second task node includes a plurality of nodes, and the obtaining, from the second task node, a source file required by the test task includes: determining a target task node from the plurality of second task nodes; and obtaining a source file required by the test task from the target task node.
In an embodiment of the present disclosure, the determining a target task node from the plurality of second task nodes includes: acquiring a multidimensional parameter of each second task node; and selecting a task node from the plurality of second task nodes as the target task node according to the multi-dimensional parameters of each second task node.
In an embodiment of the present disclosure, the target task node is a task node whose multidimensional parameters satisfy a preset condition.
In an embodiment of the present disclosure, the preset condition is that a parameter value of each dimension parameter is greater than a threshold value of a corresponding dimension parameter, or a value obtained by weighting the parameter values of the multidimensional parameter is greater than a preset threshold value.
In one embodiment of the disclosure, the method further comprises, in response to the source file required for the test task not being stored on the second task node, obtaining the source file required for the test task from a server.
In one embodiment of the disclosure, before the source file required for the test task is obtained from a second task node in response to the source file required for the test task having been stored on the second task node, the method further comprises determining that the test task has not been executed.
In one embodiment of the present disclosure, the method further comprises: responding to the test task executed, acquiring a first source file used for executing the test task at the last time, and acquiring an increment source file corresponding to the first source file from a server; and determining a source file required by the test task according to the incremental source file and the first source file.
An embodiment of a second aspect of the present disclosure provides a system integration test apparatus, where the apparatus includes: the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire a system integration test task request; the second acquisition module is configured to acquire a test task corresponding to the system integration test task request according to the system integration test task request; a third obtaining module configured to obtain a source file required by the test task from a second task node in response to the source file required by the test task having been stored on the second task node; the testing module is configured to execute the testing task according to the source file required by the testing task.
In an embodiment of the disclosure, the second task node includes a plurality of nodes, and the third obtaining module includes: a determining unit configured to determine a target task node from the plurality of second task nodes; and the acquisition unit is configured to acquire a source file required by the test task from the target task node.
In an embodiment of the present disclosure, the determining unit is specifically configured to: acquiring a multidimensional parameter of each second task node; and selecting a task node from the plurality of second task nodes as the target task node according to the multi-dimensional parameters of each second task node.
In an embodiment of the present disclosure, the target task node is a task node whose multidimensional parameters satisfy a preset condition.
In an embodiment of the present disclosure, the preset condition is that a parameter value of each dimension parameter is greater than a threshold value of a corresponding dimension parameter, or a value obtained by weighting the parameter values of the multidimensional parameter is greater than a preset threshold value.
In one embodiment of the disclosure, the apparatus further comprises a fourth obtaining module configured to obtain the source file required by the test task from the server in response to the source file required by the test task not being stored on the second task node.
In one embodiment of the present disclosure, the apparatus further includes a first determination module configured to determine that the test task has not been performed.
In one embodiment of the present disclosure, the apparatus further comprises: the fifth obtaining module is configured to respond to the test task being executed, obtain a first source file used for executing the test task last time, and obtain an incremental source file corresponding to the first source file from a server; and the second determination module is configured to determine a source file required by the test task according to the incremental source file and the first source file.
An embodiment of a third aspect of the present disclosure provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; the processor is configured to call and execute the executable instructions stored in the memory to implement the system integration testing method proposed in the embodiment of the first aspect of the present disclosure.
A fourth aspect of the present disclosure provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the system integration testing method provided in the first aspect of the present disclosure.
A fifth aspect of the present disclosure provides a computer program product, which when executed by a processor of an electronic device, enables the electronic device to perform the system integration testing method provided in the first aspect of the present disclosure.
According to the technical scheme, after a first task node acquires a system integration test task request, a test task corresponding to the system integration test task request is acquired according to the system integration test task request, a source file required by the test task is directly acquired from a second task node under the condition that a source file required by the test task is determined to be stored on the second task node, and the test task is executed according to the source file required by the test task. Therefore, under the condition that the source file required by the test task is stored on the second task node, the first task node does not need to acquire the source file required by the test task from the server, the test task can be rapidly performed based on the source file acquired from the second task node, the efficiency of acquiring the source file in the test process can be improved, and the test efficiency can be improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a system integration test method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a system integration test method according to another embodiment of the present disclosure;
FIG. 3 is a flow chart of a system integration test method according to another embodiment of the present disclosure;
FIG. 4 is a block diagram of a system integration test apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
A system integration test method, an apparatus, an electronic device, and a storage medium according to embodiments of the present disclosure are described below with reference to the drawings.
Fig. 1 is a flow chart of a system integration testing method according to an embodiment of the present disclosure. It should be noted that, an execution main body of the system integration test method provided in this embodiment is a system integration test device, and the system integration test device may be implemented in a software and/or hardware manner, and in this embodiment, the system integration test device may be configured on a first task node, where the first task node is a node of a test server, and the first task node is an entity device, and for example, the first task node may be an electronic device.
As shown in fig. 1, the system integration test method includes:
step 101, acquiring a system integration test task request.
And 102, acquiring a test task corresponding to the system integration test task request according to the system integration test task request.
And 103, responding to the fact that the source file required by the test task is stored on the second task node, and obtaining the source file required by the test task from the second task node.
Wherein, the source file stores the code information needed by the testing task.
The second task node is another task node different from the first task node in the task node set.
In some embodiments, the first task node and the second task node may be located on the same electronic device, or may be located on different electronic devices, which is not specifically limited in this embodiment.
In some embodiments, after the test task corresponding to the system integration test task request is obtained, the central node may be queried based on the test task to determine whether a source file required by the test task is stored in the second task node. The central node is one node in the node set, and the central node is used for communicating with other nodes in the node set and managing the other nodes in the node set.
In other embodiments, after obtaining the test task corresponding to the system integration test task request, the central node may communicate with the second task node to determine whether the source file required by the test task is stored on the second task node. If the source file is stored on the second task node, the source file required by the test task is acquired from the second task node.
As a possible implementation manner, when a source file required by the test task is stored in the second task node, the second task node may return file link information corresponding to the source file to the first task node, and correspondingly, the first task node may obtain the source file required by the test task from the second task node according to the file link information.
And step 104, executing the test task according to the source file required by the test task.
According to the system integration test method, after the first task node obtains the system integration test task request, the test task corresponding to the system integration test task request is obtained according to the system integration test task request, the source file required by the test task is directly obtained from the second task node under the condition that the source file required by the test task is determined to be stored on the second task node, and the test task is executed according to the source file required by the test task. Therefore, in the process of carrying out system integration test based on the task nodes, part of the task nodes can obtain the source files required by the test tasks from other task nodes, and all the task nodes are not required to obtain the source files required by the test tasks from the server, so that the time for obtaining the source files corresponding to the test tasks by the task nodes in the system integration test process can be reduced, the efficiency for obtaining the source files in the test process can be improved, and the test efficiency can be improved.
Fig. 2 is a flow chart of a system integration testing method according to another embodiment of the present disclosure. It should be noted that an execution main body of the system integration test method provided in this embodiment is a system integration test device, and the system integration test device may be implemented in a software and/or hardware manner, and in this embodiment, the system integration test device may configure a first task node, and the first task node may be configured in an electronic device.
As shown in fig. 2, the system integration test method includes:
step 201, a system integration test task request is obtained.
Step 202, obtaining a test task corresponding to the system integration test task request according to the system integration test task request.
In some embodiments, the system integration test task request includes a task identifier of a test task, and after the corresponding first task node acquires the system integration test task request, the test task corresponding to the system integration test task request may be acquired based on the task identifier.
In some embodiments, in a case that the task nodes adopt a centralized structure, the integrated test task request is obtained at the corresponding first task node, and the test task corresponding to the integrated test task request may be obtained from the central node based on the integrated test task request.
In other embodiments, when the task node adopts a distributed structure, a corresponding relationship between the task identifier and the test task exists in the task node, the integrated test task request is obtained at the corresponding first task node, and the test task corresponding to the task identifier can be obtained based on the task identifier in the integrated test task request and the corresponding relationship.
Step 203, determining whether the source file required by the test task is stored on the second task node, if so, executing step 204, otherwise, executing step 205.
And step 204, obtaining a source file required by the test task from the second task node.
Wherein, the source file stores the code information needed by the testing task.
The second task node is another task node different from the first task node in the task node set.
In some embodiments, the first task node and the second task node may be located on the same electronic device, or may be located on different electronic devices, which is not specifically limited in this embodiment.
In some embodiments, after the test task corresponding to the system integration test task request is obtained, the central node may be queried based on the test task to determine whether a source file required by the test task is stored in the second task node. The central node is one node in the node set, and the central node is used for communicating with other nodes in the node set and managing the other nodes in the node set.
In other embodiments, after obtaining the test task corresponding to the system integration test task request, it may be determined whether a source file required by the test task is already stored on the second task node by communicating with the second task node. If the source file is stored on the second task node, the source file required by the test task is acquired from the second task node.
As a possible implementation manner, when a source file required by the test task is stored in the second task node, the second task node may return file link information corresponding to the source file to the first task node, and correspondingly, the first task node may obtain the source file required by the test task from the second task node according to the file link information.
In step 205, a source file required by the test task is obtained from the server.
In this embodiment, when it is determined that the source file required for the test task is not stored in the second task node, the source file required for the test task is acquired from the server, and the test task is executed based on the acquired source file.
And step 206, executing the test task according to the source file required by the test task.
The system integration testing method of the embodiment of the disclosure obtains a testing task corresponding to a system integration testing task request according to the system integration testing task request after the first task node obtains the system integration testing task request, directly obtains a source file required by the testing task from the second task node under the condition that the source file required by the testing task is determined to be stored on the second task node, obtains the source file required by the testing task from a server under the condition that the source file required by the testing task is determined not to be stored on the second task node, and finally executes the testing task according to the source file required by the testing task. Under the condition that the number of the task nodes is large, some task nodes can obtain the source files corresponding to the test tasks from other task nodes, and do not need to obtain the source files corresponding to the test tasks from the server, so that the time for obtaining the source codes corresponding to the test tasks by the task nodes in the system integration test process can be reduced in the process of carrying out the system integration test on the application program, the efficiency for obtaining the source files by the task nodes in the test process can be improved, and the task node obtaining can be reduced, so that the test efficiency can be improved.
In some embodiments, the second task node includes a plurality of source files required by the test task, and the obtaining of the source files required by the test task from the second task node includes: determining a target task node from the plurality of second task nodes; and obtaining a source file required by the test task from the target task node.
In some embodiments, one possible implementation manner of the above determining the target task node from the plurality of second task nodes is as follows: any one task node can be selected from the plurality of second task nodes as a target task node.
In other embodiments, when there are a plurality of second task nodes, different second task nodes have different operating conditions, and in order to enable the first task node to quickly obtain a source file required by the test task from the target task node, another possible implementation manner of determining the target task node from the plurality of second task nodes is as follows: obtaining a multidimensional parameter of each second task node; and selecting the task node from the plurality of second task nodes as a target task node according to the multi-dimensional parameters of each second task node.
In some embodiments, the multi-dimensional parameters may include, but are not limited to, a device state dimension and a sharing dimension. The sharing dimension parameter is used for measuring the historical sharing condition corresponding to the second task node. The device state dimension is used for measuring the device state, for example, the device state dimension may include memory usage, CPU usage, and the like.
In some embodiments, the target task node is a task node whose multidimensional parameters meet preset conditions.
In some embodiments, one possible implementation manner of selecting a task node from the plurality of second task nodes as the target task node according to the multidimensional parameter of each second task node is as follows: and for each second task node, acquiring the parameter value of each dimension parameter of the corresponding second task node, determining whether the parameter value of each dimension parameter corresponds to the threshold value of the dimension parameter, and if the parameter value of each dimension parameter is greater than the threshold value of the corresponding dimension parameter, taking the corresponding second task node as a target task node.
The parameter value of the equipment state parameter is obtained by analyzing the equipment state information of the electronic equipment where the second task node is located.
In other embodiments, one possible implementation manner of selecting a task node from the plurality of second task nodes as the target task node according to the multidimensional parameter of each second task node is as follows: for each second task node, the parameter value of each dimension parameter of the corresponding second task node can be obtained, weighting processing is carried out on the basis of the weight value and the parameter value corresponding to each dimension parameter, so that a numerical value obtained after weighting processing is carried out on the parameter value of the multidimensional parameter is obtained, whether the numerical value is larger than a preset threshold value or not is determined, and the corresponding second task node is used as a target task node.
In other embodiments, one possible implementation manner of selecting a task node from the plurality of second task nodes as the target task node according to the multidimensional parameter of each second task node is as follows: for each second task node, obtaining a parameter value of each dimension parameter of the corresponding second task node, performing weighting processing based on a weight value and the parameter value corresponding to each dimension parameter to obtain a corresponding numerical value, sorting the plurality of second task nodes according to the descending of the numerical value corresponding to each second task node, selecting the second task node sorted at the first position from the sorting result, and taking the second task node sorted at the first position as a target task node.
Fig. 3 is a flow chart of a system integration testing method according to another embodiment of the present disclosure. It should be noted that an execution main body of the system integration test method provided in this embodiment is a system integration test device, and the system integration test device may be implemented in a software and/or hardware manner, and in this embodiment, the system integration test device may configure a first task node, and the first task node may be configured in an electronic device.
As shown in fig. 3, the system integration test method includes:
step 301, a system integration test task request is obtained.
And 302, acquiring a test task corresponding to the system integration test task request according to the system integration test task request.
In some embodiments, the system integration test task request includes a task identifier of a test task, and after the corresponding first task node acquires the system integration test task request, the test task corresponding to the system integration test task request may be acquired based on the task identifier.
In some embodiments, in a case that the task nodes adopt a centralized structure, the integrated test task request is obtained at the corresponding first task node, and the test task corresponding to the integrated test task request may be obtained from the central node based on the integrated test task request.
In other embodiments, when the task node adopts a distributed structure, a corresponding relationship between the task identifier and the test task exists in the task node, the integrated test task request is obtained at the corresponding first task node, and the test task corresponding to the task identifier can be obtained based on the task identifier in the integrated test task request and the corresponding relationship.
Step 303, determining whether the test task is executed, if yes, executing step 304, otherwise executing step 305.
In step 304, in response to the source file required by the test task having been stored on the second task node, the source file required by the test task is obtained from the second task node.
In other embodiments of the present disclosure, in a case that it is determined that the test task has not been executed and it is determined that the source file required by the test task is not stored on the second task node, the source file corresponding to the test task may be obtained from the server.
Step 305, obtaining a first source file used for executing the test task last time, and obtaining an increment source file corresponding to the first source file from the server.
Step 306, determining a source file required by the test task according to the incremental source file and the first source file.
Step 307, executing the test task according to the source file required by the test task.
In the system integration test method of the embodiment of the disclosure, after the first task node acquires the system integration test task request, obtaining the test task corresponding to the system integration test task request according to the system integration test task request, and judging whether the test task is executed, if yes, acquiring a first source file used for executing the test task last time, acquiring an increment source file corresponding to the first source file from the server, and if the test task is not executed, and under the condition that the source file required by the test task is determined to be stored on the second task node, the source file required by the test task is directly acquired from the second task node, and under the condition that the source file required by the test task is not stored on the second task node, obtaining the source file required by the test task from the server, and finally executing the test task according to the source file required by the test task. Under the condition that the number of the task nodes is large, some task nodes can obtain source files corresponding to the test tasks from other task nodes, source files corresponding to the test tasks do not need to be obtained from the server, and some task nodes which have executed the corresponding test tasks can download incremental source files corresponding to the source files from the server.
The embodiment of the disclosure also provides a system integration testing device.
Fig. 4 is a block diagram of a system integration test apparatus according to an embodiment of the present disclosure. It should be noted that the system integration test apparatus may be configured in the first task node.
As shown in fig. 4, the system integration test apparatus 400 includes: a first obtaining module 410, a second obtaining module 420, a third obtaining module 430, and a testing module 440, wherein:
a first obtaining module 410 configured to obtain a system integration test task request.
The second obtaining module 420 is configured to obtain a test task corresponding to the system integration test task request according to the system integration test task request.
A third obtaining module 430 configured to obtain the source file required by the test task from the second task node in response to the source file required by the test task having been stored on the second task node.
And the testing module 440 is configured to execute the testing task according to the source file required by the testing task.
In an embodiment of the disclosure, the second task node includes a plurality of nodes, and the third obtaining module 430 may include:
a determining unit configured to determine a target task node from the plurality of second task nodes;
and the acquisition unit is configured to acquire a source file required by the test task from the target task node.
In an embodiment of the disclosure, the determining unit is specifically configured to:
obtaining a multidimensional parameter of each second task node;
and selecting the task node from the plurality of second task nodes as a target task node according to the multi-dimensional parameters of each second task node.
In one embodiment of the present disclosure, the target task node is a task node whose multidimensional parameters satisfy a preset condition.
In an embodiment of the present disclosure, the preset condition is that a parameter value of each dimension parameter is greater than a threshold value of the corresponding dimension parameter, or a value obtained by weighting the parameter values of the multidimensional parameter is greater than a preset threshold value.
In one embodiment of the present disclosure, the apparatus may further include:
and the fourth acquisition module is configured to acquire the source file required by the test task from the server in response to the source file required by the test task not being stored on the second task node.
In one embodiment of the present disclosure, the apparatus further comprises:
a first determination module configured to determine that the test task has not been performed.
In one embodiment of the present disclosure, the apparatus further comprises:
the fifth obtaining module is configured to respond to the test task executed last time, obtain a first source file used for executing the test task last time, and obtain an increment source file corresponding to the first source file from the server;
and the second determination module is configured to determine a source file required by the test task according to the incremental source file and the first source file.
It should be noted that the above explanation of the embodiments of the system integration test method is also applicable to the system integration test apparatus of the present embodiment, and is not repeated herein.
According to the system integration test device in the embodiment of the disclosure, after the first task node acquires the system integration test task request, the test task corresponding to the system integration test task request is acquired according to the system integration test task request, and under the condition that it is determined that the source file required by the test task is stored on the second task node, the source file required by the test task is directly acquired from the second task node, and the test task is executed according to the source file required by the test task. Therefore, in the process of carrying out system integration test based on the task nodes, part of the task nodes can obtain the source files required by the test tasks from other task nodes, and all the task nodes are not required to obtain the source files required by the test tasks from the server, so that the time for obtaining the source files corresponding to the test tasks by the task nodes in the system integration test process can be reduced, the efficiency for obtaining the source files in the test process can be improved, and the test efficiency can be improved.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 5, the electronic apparatus 200 includes: a memory 210 and a processor 220, and a bus 230 connecting the various components, including the memory 210 and the processor 220.
Wherein, the memory 210 is used for storing the executable instructions of the processor 220; the processor 220 is configured to call and execute the executable instructions stored in the memory 210 to implement the system integration test method proposed by the above-mentioned embodiment of the present disclosure.
Bus 230 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 240 and/or cache memory 250. The electronic device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 by one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 280 having a set (at least one) of program modules 270, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, the memory 210. The program modules 270 generally perform the functions and/or methodologies of the embodiments described in this disclosure.
Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), with one or more devices that enable a user to interact with electronic device 200, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 292. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 293. As shown, the network adapter 293 communicates with the other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 220 executes various functional applications and data processing by executing programs stored in the memory 210.
It should be noted that, for the implementation process of the electronic device according to the embodiment of the present disclosure, reference is made to the foregoing explanation of the system integration testing method according to the embodiment of the present disclosure, and details are not described here again.
To achieve the above embodiments, the present disclosure also provides a non-transitory computer readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the foregoing system integration testing method.
In order to implement the above embodiments, the present disclosure also provides a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to execute the foregoing system integration testing method.
According to the technical scheme, after the first task node acquires the system integration test task request, the test task corresponding to the system integration test task request is acquired according to the system integration test task request, the source file required by the test task is directly acquired from the second task node under the condition that the source file required by the test task is stored on the second task node, and the test task is executed according to the source file required by the test task. Therefore, in the process of carrying out system integration test based on the task nodes, part of the task nodes can obtain the source files required by the test tasks from other task nodes, and all the task nodes are not required to obtain the source files required by the test tasks from the server, so that the time for obtaining the source files corresponding to the test tasks by the task nodes in the system integration test process can be reduced, the efficiency for obtaining the source files in the test process can be improved, and the test efficiency can be improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A system integration test method applied to a first task node, the method comprising:
acquiring a system integration test task request;
obtaining a test task corresponding to the system integration test task request according to the system integration test task request;
responding to the fact that the source file required by the testing task is stored on a second task node, and obtaining the source file required by the testing task from the second task node;
and executing the test task according to the source file required by the test task.
2. The method of claim 1, wherein the second task node comprises a plurality of nodes, and the obtaining of the source files required by the test task from the second task node comprises:
determining a target task node from the plurality of second task nodes;
and obtaining a source file required by the test task from the target task node.
3. The method of claim 2, wherein said determining a target task node from said plurality of second task nodes comprises:
acquiring a multidimensional parameter of each second task node;
and selecting a task node from the plurality of second task nodes as the target task node according to the multi-dimensional parameters of each second task node.
4. The method of claim 3, wherein the target task node is a task node for which the multi-dimensional parameter meets a preset condition.
5. The method according to claim 4, wherein the preset condition is that the parameter value of each dimension parameter is greater than the threshold value of the corresponding dimension parameter, or that the value obtained by weighting the parameter values of the multidimensional parameter is greater than a preset threshold value.
6. The method of claim 1, wherein the method further comprises:
and responding to the situation that the source file required by the test task is not stored on the second task node, and obtaining the source file required by the test task from the server.
7. A method as recited in claim 1, wherein, prior to the obtaining of the source files required for the test task from a second task node in response to the source files required for the test task having been stored on the second task node, the method further comprises:
determining that the test task has not been performed.
8. The method of claim 7, wherein the method further comprises:
responding to the test task executed, acquiring a first source file used for executing the test task at the last time, and acquiring an increment source file corresponding to the first source file from a server;
and determining a source file required by the test task according to the incremental source file and the first source file.
9. A system integration test apparatus, applied to a first task node, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire a system integration test task request;
the second acquisition module is configured to acquire a test task corresponding to the system integration test task request according to the system integration test task request;
a third obtaining module configured to obtain a source file required by the test task from a second task node in response to the source file required by the test task having been stored on the second task node;
the testing module is configured to execute the testing task according to the source file required by the testing task.
10. The apparatus of claim 9, wherein the second task node comprises a plurality of, the third obtaining module comprising:
a determining unit configured to determine a target task node from the plurality of second task nodes;
and the acquisition unit is configured to acquire a source file required by the test task from the target task node.
11. The apparatus as claimed in claim 10, wherein the determining unit is specifically configured to:
acquiring a multidimensional parameter of each second task node;
and selecting a task node from the plurality of second task nodes as the target task node according to the multi-dimensional parameters of each second task node.
12. The apparatus of claim 11, wherein the target task node is a task node for which the multi-dimensional parameter satisfies a preset condition.
13. The apparatus according to claim 12, wherein the preset condition is that a parameter value of each dimension parameter is greater than a threshold value of the corresponding dimension parameter, or a value obtained by weighting the parameter values of the multidimensional parameter is greater than a preset threshold value.
14. The apparatus of claim 9, wherein the apparatus further comprises:
and the fourth acquisition module is configured to respond to the fact that the source file required by the test task is not stored on the second task node, and acquire the source file required by the test task from the server.
15. The apparatus of claim 9, wherein the apparatus further comprises:
a first determination module configured to determine that the test task has not been performed.
16. The apparatus of claim 15, wherein the apparatus further comprises:
the fifth obtaining module is configured to respond to the test task being executed, obtain a first source file used for executing the test task last time, and obtain an incremental source file corresponding to the first source file from a server;
and the second determination module is configured to determine a source file required by the test task according to the incremental source file and the first source file.
17. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to invoke and execute the memory-stored executable instructions to implement the method of any one of claims 1-8.
18. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-8.
CN202110556880.0A 2021-05-21 2021-05-21 System integration test method and device, electronic equipment and storage medium Pending CN113032284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110556880.0A CN113032284A (en) 2021-05-21 2021-05-21 System integration test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110556880.0A CN113032284A (en) 2021-05-21 2021-05-21 System integration test method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113032284A true CN113032284A (en) 2021-06-25

Family

ID=76455756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110556880.0A Pending CN113032284A (en) 2021-05-21 2021-05-21 System integration test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113032284A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9274905B1 (en) * 2010-01-15 2016-03-01 Hewlett Packard Enterprise Development Lp Configuration tests for computer system
CN108173953A (en) * 2017-12-29 2018-06-15 北京奇虎科技有限公司 A kind of document distribution method and device based on content distributing network CDN
CN109151021A (en) * 2018-08-21 2019-01-04 郑州云海信息技术有限公司 A kind of distributed memory system file lock characteristic test method and device
CN110297766A (en) * 2019-06-03 2019-10-01 合肥移瑞通信技术有限公司 Method for testing software and software testing system based on distributed test node cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9274905B1 (en) * 2010-01-15 2016-03-01 Hewlett Packard Enterprise Development Lp Configuration tests for computer system
CN108173953A (en) * 2017-12-29 2018-06-15 北京奇虎科技有限公司 A kind of document distribution method and device based on content distributing network CDN
CN109151021A (en) * 2018-08-21 2019-01-04 郑州云海信息技术有限公司 A kind of distributed memory system file lock characteristic test method and device
CN110297766A (en) * 2019-06-03 2019-10-01 合肥移瑞通信技术有限公司 Method for testing software and software testing system based on distributed test node cluster

Similar Documents

Publication Publication Date Title
US10613970B1 (en) Method and system for managing deployment of software application components based on software performance data
US10819603B2 (en) Performance evaluation method, apparatus for performance evaluation, and non-transitory computer-readable storage medium for storing program
US8032582B2 (en) Methods and system for distributing data to technical computing workers
EP2095236B1 (en) Method, system and computer program for testing software applications based on multiple data sources
EP3961395A1 (en) Method and apparatus for scheduling memory access request, device and storage medium
CN112765023B (en) Test case generation method and device
CN108205469B (en) MapReduce-based resource allocation method and server
CN111338958B (en) Parameter generation method and device for test cases and terminal equipment
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN108647137B (en) Operation performance prediction method, device, medium, equipment and system
US20030131088A1 (en) Method and system for automatic selection of a test system in a network environment
US7086060B2 (en) Method for programmatic representation and enforcement of resource controls
US8707449B2 (en) Acquiring access to a token controlled system resource
CN115190010B (en) Distributed recommendation method and device based on software service dependency relationship
CN113032284A (en) System integration test method and device, electronic equipment and storage medium
US20060069949A1 (en) Method and apparatus for identifying type of peripheral, and computer product
US7506319B2 (en) Generating a model of software in execution
CN115712559A (en) Method and device for testing hardware management software and electronic equipment
US20090271841A1 (en) Methods, hardware products, and computer program products for implementing zero-trust policy in storage reports
CN113518974A (en) System and method for finding and identifying computing nodes in a network
CN111538491A (en) Data event processing method, device, equipment and storage medium
CN115292053B (en) CPU, GPU and NPU unified scheduling method of mobile terminal CNN
CN117234711B (en) Dynamic allocation method, system, equipment and medium for Flink system resources
CN112231156B (en) SPEC CPU2017 test result estimation method, system, device and medium
CN115904913A (en) Method, system, medium and equipment for improving pressure test performance

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