CN111538666A - Method and device for collecting test results in batches, computer equipment and storage medium - Google Patents

Method and device for collecting test results in batches, computer equipment and storage medium Download PDF

Info

Publication number
CN111538666A
CN111538666A CN202010345894.3A CN202010345894A CN111538666A CN 111538666 A CN111538666 A CN 111538666A CN 202010345894 A CN202010345894 A CN 202010345894A CN 111538666 A CN111538666 A CN 111538666A
Authority
CN
China
Prior art keywords
test results
collection
test
path
storage
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.)
Granted
Application number
CN202010345894.3A
Other languages
Chinese (zh)
Other versions
CN111538666B (en
Inventor
霍开源
石骁
蒋菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System 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 Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202010345894.3A priority Critical patent/CN111538666B/en
Publication of CN111538666A publication Critical patent/CN111538666A/en
Application granted granted Critical
Publication of CN111538666B publication Critical patent/CN111538666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to a method and a device for collecting test results in batches, computer equipment and a storage medium, wherein the method comprises the following steps: after the test of the tester is finished, the control machine acquires a target IP address of the tester of which the test result is to be collected and acquires a storage path of the test result on the tester; the control machine establishes SHH remote connection with the testing machine, acquires platform information of the testing machine with all testing results to be collected according to the target IP address, and generates one-to-one corresponding collection folders according to different platform information; and the control machine collects the test results of all the test machines according to the storage paths and stores the test results in corresponding collection folders according to the associated platform information. The invention can complete the uniform and complete collection of the test result data of all the test machines, avoid incomplete collection of the test results caused by different technical means adopted by different technicians, and ensure the integrity and accuracy of the test results.

Description

Method and device for collecting test results in batches, computer equipment and storage medium
Technical Field
The present invention relates to the field of testing machines, and in particular, to a method, an apparatus, a computer device, and a storage medium for collecting test results in batch.
Background
In system testing under windows, for hundreds of test machine platforms, after testing is finished, test results (including texts, pictures, folders and the like) need to be collected from different test machines, when different technicians perform the operation, command rules and operation methods are different, so that the problem of test result loss easily exists, and the test results are inaccurate.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method, a device, a computer device and a storage medium for collecting test results in batches.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for collecting test results in batch, comprising the following steps:
after the test of the tester is finished, the control machine acquires a target IP address of the tester of which the test result is to be collected and acquires a storage path of the test result on the tester;
the control machine establishes SHH remote connection with the testing machine, acquires platform information of the testing machine for collecting the test results according to the target IP address, and generates one-to-one corresponding collection folders according to different platform information;
and the control machine collects the test results of all the test machines according to the storage paths and stores the test results in corresponding collection folders according to the associated platform information.
In a second aspect, the present invention provides an apparatus for collecting test results in batches, including:
the acquisition unit is used for acquiring the target IP address of the tester of the test result to be collected and acquiring the storage path of the test result on the tester by the control machine after the test of the tester is finished;
the generating unit is used for establishing SHH remote connection between the control machine and the testing machine, acquiring platform information of the testing machine for all testing results to be collected according to the target IP address, and generating one-to-one corresponding collection folders according to different platform information;
and the collecting unit is used for collecting the test results of all the testers according to the storage paths through the control machine and storing the test results in corresponding collecting folders according to the associated platform information.
In a third aspect, the present invention provides a computer device, which includes a memory and a processor, where the memory stores a computer program thereon, and the processor implements the method for collecting test results in batches as described above when executing the computer program.
In a fourth aspect, the present invention provides a storage medium storing a computer program which, when executed by a processor, implements the method of batch collecting test results as described above.
Compared with the prior art, the invention has the beneficial effects that: the SHH remote connection is established between the control machine and the testing machine, the platform information of the testing machine is acquired, the one-to-one corresponding collection folders are generated according to different platform information, the test results of all the testing machines are collected according to the storage path and stored in the corresponding collection folders, the uniform and complete collection of the test result data of all the testing machines is completed, the incomplete collection of the test results caused by different technical means adopted by different technicians is avoided, and the integrity and the accuracy of the test results are ensured.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a method for collecting test results in batch according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for batch collection of test results according to an embodiment of the present invention;
FIG. 3 is a sub-flowchart of a method for batch collection of test results according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for batch collecting test results according to another embodiment of the present invention;
FIG. 5 is a schematic block diagram of an apparatus for batch collection of test results according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a collection unit of an apparatus for batch collection of test results provided by an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a method for batch collection of test results according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a method for batch collection of test results according to an embodiment of the present invention. The method for collecting the test results in batches is applied to the control machine 100, the control machine 100 and the test machine 200 perform data interaction, the test machine 200 executes the test, the control machine 100 establishes an SHH remote connection with the test machine 200 to acquire platform information of the test machine 200, one-to-one corresponding collection folders are generated according to different platform information, then the test results of all the test machines 200 are collected according to a storage path and stored in the corresponding collection folders, and the unified and complete collection of the test result data of all the test machines 200 is completed.
Fig. 2 is a flowchart illustrating a method for batch collection of test results according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S130.
S110, after the test of the tester is finished, the control machine acquires the target IP address of the tester of the test result to be collected and acquires the storage path of the test result on the tester.
In this embodiment, the control machine obtains an IP address of a tester to be tested as a target IP address, subsequently locates a corresponding tester based on the target IP address, and obtains a storage path of a test result of the located tester, where the storage path may be a file path or a folder path. The storage paths of the testers which execute the same batch test are consistent in different testers by default, and correspondingly, the test node path types of the testers which execute the same batch test are also consistent.
Meanwhile, platform information of the tester for collecting all test results can be acquired based on the target IP address, wherein the platform information comprises the model of the tester, the model of a CPU of the tester, the progressive working time of the tester and the like.
Specifically, the control machine may obtain the target IP address and the storage path by human input, or may read a pre-configured configuration file, and obtain corresponding data of the target IP address and the storage path from the configuration file.
S120, the controller establishes SHH remote connection with the tester, obtains platform information of the tester of all test results to be collected according to the target IP address, and generates one-to-one corresponding collection folders according to different platform information.
In this embodiment, SSH (secure shell) remote connection is a general, powerful, software-based network security solution, also referred to as SSH connection; SSH remote connection is performed in a background, and the influence of tasks on a window of a tester is avoided.
After the SHH remote connection is established between the controller and the tester, platform information of each tester is first acquired according to the target IP address, where the platform information includes a tester model, a tester CPU model, a tester progressive operating time, and the like, as described above. After the platform information of different testing machines is obtained, a corresponding folder is newly built in the control machine based on the platform information, namely, the corresponding folder is named by using the platform information, a one-to-one corresponding collection folder is established for each testing machine, and after the test results of the testing machines are collected, the test results are stored in a collection file named by using the testing machines, so that the test results are distinguished and classified, and the test results of all the testing machines are better and uniformly managed.
And S130, the control machine collects the test results of all the test machines according to the storage paths and stores the test results in corresponding collection folders according to the associated platform information.
In this embodiment, the storage path includes a storage location of the test result on the testing machine, and the corresponding test result data can be directly found in the testing machine system through the storage path, and the test results of all the testing machines are simultaneously collected and stored in the corresponding collection folders in a one-to-one correspondence manner, so that the unified and complete collection of the test result data of all the testing machines is completed, the incomplete collection of the test result caused by different technical means adopted by different technicians is avoided, the integrity and accuracy of the test result are ensured, and meanwhile, the effective classification management of the test result is realized.
Referring to FIG. 3, step S130 includes steps S131-S135 in another embodiment.
S131, identifying the type of the storage path.
In this embodiment, the storage path includes two types, a file path and a folder path, the test result collection processes corresponding to different types of storage paths are different, and the specific type of the storage path is identified to better collect the test result.
And S132, if the type of the storage path is a file path, directly transmitting the test result to a corresponding collection folder for storage through the SFTP.
In this embodiment, the type of the storage path is a File path, that is, the corresponding test result can be directly located according to the storage path, and the test result under the storage path is directly obtained through sftp (ssh File Transfer protocol), which is simple and direct.
S133, if the type of the storage path is the folder path, acquiring a sub-folder path under the storage path.
S134, generating sub-collection folders with the same level in the corresponding collection folders according to the sub-folder paths, and acquiring absolute paths of files under all the sub-folders.
And S135, transmitting the test result to the corresponding collection folder and the corresponding sub-collection folder for storage through SFTP according to the absolute path.
In this embodiment, the storage path is a folder path, that is, the storage path further includes multiple subfolder paths of lower levels, the paths of subfolders of all levels below the storage path need to be acquired according to the storage path, a sub-collection folder of the same level is generated in the corresponding collection folder according to the subfolder paths, and an absolute path of the subfolders below all the subfolders is acquired, the absolute path also includes specific paths of all test result files (text, picture, etc.) in the storage path, all the test results in the storage path can be completely acquired according to the absolute path and transmitted to the corresponding collection folder and sub-collection folder through SFTP for storage, so that it is ensured that no omission occurs in the test results, and better collection and management are performed on the test results of all the test machines.
The invention acquires the platform information of the testing machine by establishing the SHH remote connection between the control machine and the testing machine, generates the one-to-one corresponding collection folders according to different platform information, collects the test results of all the testing machines according to the storage path and stores the test results in the corresponding collection folders, completes the uniform and complete collection of the test result data of all the testing machines, avoids incomplete collection of the test results caused by different technical means adopted by different technicians, and ensures the integrity and accuracy of the test results.
Fig. 4 is a flowchart illustrating a method for collecting test results in batch according to another embodiment of the present invention. As shown in FIG. 4, the method for batch collection of test results of the present embodiment includes steps S210-S250. Steps S220 to S240 are similar to steps S110 to S130 in the above embodiments, and are not described herein again. The steps S210 and S250 added in the present embodiment are explained in detail below.
S210, configuring one-to-one corresponding SHH account numbers for the testing machine.
In this embodiment, one-to-one SHH account numbers are configured for the tester, so as to establish SSH remote connection between the tester and the controller, and perform remote collection of test results.
And S250, after all the test results are obtained, the control machine uploads the indexes of all the test results to the database.
In this embodiment, after all the test results are obtained, the indexes of all the test results are uploaded to the database for further result presentation, so as to better understand the test performance of the product and to make corresponding improvement feedback.
Fig. 5 is a schematic block diagram of an apparatus for collecting test results in batches according to an embodiment of the present invention. As shown in fig. 5, the present invention also provides a device for collecting test results in batches, corresponding to the above method for collecting test results in batches. The device for collecting test results in batches comprises a unit for executing the method for collecting test results in batches, and can be configured in a desktop computer, a tablet computer, a portable computer and other terminals. Specifically, referring to fig. 5, the apparatus for collecting test results in batches includes a configuration unit 10, an obtaining unit 20, a generating unit 30, a collecting unit 40, and an uploading unit 50.
The configuration unit 10 is configured to configure one-to-one SHH account numbers for the testing machine.
In this embodiment, one-to-one SHH account numbers are configured for the tester, so as to establish SSH remote connection between the tester and the controller, and perform remote collection of test results.
And the obtaining unit 20 is configured to, after the test of the tester is finished, obtain, by the controller, a target IP address of the tester for which the test result is to be collected, and obtain a storage path of the test result on the tester.
In this embodiment, the control machine obtains an IP address of a tester to be tested as a target IP address, subsequently locates a corresponding tester based on the target IP address, and obtains a storage path of a test result of the located tester, where the storage path may be a file path or a folder path. The storage paths of the testers which execute the same batch test are consistent in different testers by default, and correspondingly, the test node path types of the testers which execute the same batch test are also consistent.
Meanwhile, platform information of the tester for collecting all test results can be acquired based on the target IP address, wherein the platform information comprises the model of the tester, the model of a CPU of the tester, the progressive working time of the tester and the like.
Specifically, the control machine may obtain the target IP address and the storage path by human input, or may read a pre-configured configuration file, and obtain corresponding data of the target IP address and the storage path from the configuration file.
And the generating unit 30 is configured to establish an SHH remote connection between the controller and the tester, obtain platform information of the tester for all test results to be collected according to the target IP address, and generate one-to-one corresponding collection folders according to different platform information.
In this embodiment, SSH (secure shell) remote connection is a general, powerful, software-based network security solution, also referred to as SSH connection; SSH remote connection is performed in a background, and the influence of tasks on a window of a tester is avoided.
After the SHH remote connection is established between the controller and the tester, platform information of each tester is first acquired according to the target IP address, where the platform information includes a tester model, a tester CPU model, a tester progressive operating time, and the like, as described above. After the platform information of different testing machines is obtained, a corresponding folder is newly built in the control machine based on the platform information, namely, the corresponding folder is named by using the platform information, a one-to-one corresponding collection folder is established for each testing machine, and after the test results of the testing machines are collected, the test results are stored in a collection file named by using the testing machines, so that the test results are distinguished and classified, and the test results of all the testing machines are better and uniformly managed.
And the collecting unit 40 is used for collecting the test results of all the testers according to the storage paths through the control machine and storing the test results in corresponding collecting folders according to the associated platform information.
In this embodiment, the storage path includes a storage location of the test result on the testing machine, and the corresponding test result data can be directly found in the testing machine system through the storage path, and the test results of all the testing machines are simultaneously collected and stored in the corresponding collection folders in a one-to-one correspondence manner, so that the unified and complete collection of the test result data of all the testing machines is completed, the incomplete collection of the test result caused by different technical means adopted by different technicians is avoided, the integrity and accuracy of the test result are ensured, and meanwhile, the effective classification management of the test result is realized.
In one embodiment, as shown in fig. 6, the collection unit 40 includes an identification module 41, a first collection module 42, and a second acquisition module 43.
An identifying module 41, configured to identify a type of the storage path.
In this embodiment, the storage path includes two types, a file path and a folder path, the test result collection processes corresponding to different types of storage paths are different, and the specific type of the storage path is identified to better collect the test result.
And the first collection module 42 is configured to, when the type of the storage path is a file path, directly transmit the test result to the corresponding collection folder through SFTP for storage.
In this embodiment, the type of the storage path is a File path, that is, the corresponding test result can be directly located according to the storage path, and the test result under the storage path is directly obtained through sftp (ssh File Transfer protocol), which is simple and direct.
The second obtaining module 43 is configured to, when the type of the storage path is a folder path, obtain a sub-folder path under the storage path, generate sub-collection folders of the same hierarchy in the corresponding collection folder according to the sub-folder path, obtain absolute paths of files under all sub-folders, and transmit the test result to the corresponding collection folder and sub-collection folder through SFTP for storage according to the absolute paths.
In this embodiment, the storage path is a folder path, that is, the storage path further includes multiple subfolder paths of lower levels, the paths of subfolders of all levels below the storage path need to be acquired according to the storage path, a sub-collection folder of the same level is generated in the corresponding collection folder according to the subfolder paths, and an absolute path of the subfolders below all the subfolders is acquired, the absolute path also includes specific paths of all test result files (text, picture, etc.) in the storage path, all the test results in the storage path can be completely acquired according to the absolute path and transmitted to the corresponding collection folder and sub-collection folder through SFTP for storage, so that it is ensured that no omission occurs in the test results, and better collection and management are performed on the test results of all the test machines.
And the uploading unit 50 is used for uploading the indexes of all the test results to the database by the control machine after all the test results are obtained.
In this embodiment, after all the test results are obtained, the indexes of all the test results are uploaded to the database for further result presentation, so as to better understand the test performance of the product and to make corresponding improvement feedback.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the apparatus for collecting test results in batches and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The invention acquires the platform information of the testing machine by establishing the SHH remote connection between the control machine and the testing machine, generates the one-to-one corresponding collection folders according to different platform information, collects the test results of all the testing machines according to the storage path and stores the test results in the corresponding collection folders, completes the uniform and complete collection of the test result data of all the testing machines, avoids incomplete collection of the test results caused by different technical means adopted by different technicians, and ensures the integrity and accuracy of the test results.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart collection, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 7, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 comprise program instructions that, when executed, cause the processor 502 to perform a method of batch collection of test results.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be caused to perform a method for collecting test results in batches.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is adapted to run a computer program 5032 stored in the memory.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of collecting test results in batches, comprising the steps of:
after the test of the tester is finished, the control machine acquires a target IP address of the tester of which the test result is to be collected and acquires a storage path of the test result on the tester;
the control machine establishes SHH remote connection with the testing machine, acquires platform information of the testing machine for collecting the test results according to the target IP address, and generates one-to-one corresponding collection folders according to different platform information;
and the control machine collects the test results of all the test machines according to the storage paths and stores the test results in corresponding collection folders according to the associated platform information.
2. The method for batch collection of test results according to claim 1, wherein the step of the controller collecting the test results of all the testers according to the storage path and storing the test results in the corresponding collection folder according to the associated platform information further comprises;
and after all the test results are obtained, the control machine uploads the indexes of all the test results to the database.
3. The method of batch collecting test results according to claim 2, wherein the step of establishing the SHH remote connection between the controller and the tester is preceded by further comprising,
and configuring one-to-one corresponding SHH account numbers for the testing machine.
4. The method of claim 1, wherein the step of the controller collecting the test results of all the testers according to the storage path and storing the test results in the corresponding collection folder according to the associated platform information comprises,
identifying a type of the storage path;
if the type of the storage path is a file path, directly transmitting the test result to a corresponding collection folder for storage through SFTP;
if the type of the storage path is a folder path, acquiring a subfolder path under the storage path;
generating sub-collection folders with the same level in the corresponding collection folders according to the sub-folder paths, and acquiring absolute paths of files under all the sub-folders;
and transmitting the test result to the corresponding collection folder and the sub-collection folder for storage through SFTP according to the absolute path.
5. An apparatus for collecting test results in batches, comprising:
the acquisition unit is used for acquiring the target IP address of the tester of the test result to be collected and acquiring the storage path of the test result on the tester by the control machine after the test of the tester is finished;
the generating unit is used for establishing SHH remote connection between the control machine and the testing machine, acquiring platform information of the testing machine for all testing results to be collected according to the target IP address, and generating one-to-one corresponding collection folders according to different platform information;
and the collecting unit is used for collecting the test results of all the testers according to the storage paths through the control machine and storing the test results in corresponding collecting folders according to the associated platform information.
6. The apparatus of claim 5, further comprising an upload unit for uploading the index of all the test results to the database by the control machine after all the test results are obtained.
7. The apparatus of claim 5, further comprising a configuration unit configured to configure one-to-one SHH account numbers for the testing machine.
8. The apparatus for batch collection of test results according to claim 5, wherein the collection unit comprises an identification module, a first collection module and a second acquisition module;
the identification module is used for identifying the type of the storage path;
the first collection module is used for directly transmitting the test result to the corresponding collection folder for storage through SFTP when the type of the storage path is a file path;
the second obtaining module is configured to, when the type of the storage path is a folder path, obtain a sub-folder path under the storage path, generate sub-collection folders of the same hierarchy in the corresponding collection folder according to the sub-folder path, obtain absolute paths of files under all sub-folders, and transmit the test result to the corresponding collection folder and sub-collection folder through SFTP for storage according to the absolute paths.
9. A computer device, characterized in that the computer device comprises a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, implements the method of batch collection of test results according to any one of claims 1 to 4.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of batch collection of test results according to any one of claims 1 to 4.
CN202010345894.3A 2020-04-27 2020-04-27 Method, device, computer equipment and storage medium for collecting test results in batches Active CN111538666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010345894.3A CN111538666B (en) 2020-04-27 2020-04-27 Method, device, computer equipment and storage medium for collecting test results in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010345894.3A CN111538666B (en) 2020-04-27 2020-04-27 Method, device, computer equipment and storage medium for collecting test results in batches

Publications (2)

Publication Number Publication Date
CN111538666A true CN111538666A (en) 2020-08-14
CN111538666B CN111538666B (en) 2024-04-02

Family

ID=71975772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010345894.3A Active CN111538666B (en) 2020-04-27 2020-04-27 Method, device, computer equipment and storage medium for collecting test results in batches

Country Status (1)

Country Link
CN (1) CN111538666B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114036074A (en) * 2022-01-07 2022-02-11 荣耀终端有限公司 Test method and test device for terminal equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092754A (en) * 2013-01-07 2013-05-08 上海斐讯数据通信技术有限公司 Automatic test method of long distance multi-device condition
US9282169B1 (en) * 2013-07-12 2016-03-08 Oxygen Cloud, Inc. Real-time user interaction-based alterations to the scope of data synchronization between client and remote devices
CN105471675A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Method and system of testing nodes in batches
CN105512026A (en) * 2015-11-25 2016-04-20 普华基础软件股份有限公司 Automatic batch testing method
CN107943636A (en) * 2017-12-07 2018-04-20 郑州云海信息技术有限公司 It is a kind of that the method tested is performed based on more machine batches under Linux
CN109040252A (en) * 2018-08-07 2018-12-18 平安科技(深圳)有限公司 Document transmission method, system, computer equipment and storage medium
CN109739704A (en) * 2018-12-28 2019-05-10 北京奇虎科技有限公司 A kind of interface test method, server-side and computer readable storage medium
CN109922142A (en) * 2019-02-21 2019-06-21 阿里巴巴集团控股有限公司 A kind of document down loading method, apparatus and system
CN110457311A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Automatically generate method, server and the storage medium of reconciliation file
CN110781090A (en) * 2019-10-31 2020-02-11 北京东软望海科技有限公司 Control method and device for data processing test, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092754A (en) * 2013-01-07 2013-05-08 上海斐讯数据通信技术有限公司 Automatic test method of long distance multi-device condition
US9282169B1 (en) * 2013-07-12 2016-03-08 Oxygen Cloud, Inc. Real-time user interaction-based alterations to the scope of data synchronization between client and remote devices
CN105471675A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Method and system of testing nodes in batches
CN105512026A (en) * 2015-11-25 2016-04-20 普华基础软件股份有限公司 Automatic batch testing method
CN107943636A (en) * 2017-12-07 2018-04-20 郑州云海信息技术有限公司 It is a kind of that the method tested is performed based on more machine batches under Linux
CN109040252A (en) * 2018-08-07 2018-12-18 平安科技(深圳)有限公司 Document transmission method, system, computer equipment and storage medium
CN109739704A (en) * 2018-12-28 2019-05-10 北京奇虎科技有限公司 A kind of interface test method, server-side and computer readable storage medium
CN109922142A (en) * 2019-02-21 2019-06-21 阿里巴巴集团控股有限公司 A kind of document down loading method, apparatus and system
CN110457311A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Automatically generate method, server and the storage medium of reconciliation file
CN110781090A (en) * 2019-10-31 2020-02-11 北京东软望海科技有限公司 Control method and device for data processing test, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄经国 等: "基于SFTP的GNSS数据采集软件的设计与实现", 震灾防御技术, no. 02, 15 June 2017 (2017-06-15), pages 175 - 180 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114036074A (en) * 2022-01-07 2022-02-11 荣耀终端有限公司 Test method and test device for terminal equipment

Also Published As

Publication number Publication date
CN111538666B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US10769228B2 (en) Systems and methods for web analytics testing and web development
US10932106B2 (en) System, a method and a computer program product for automated remote control
CN110932918B (en) Log data acquisition method and device and storage medium
CN111737137B (en) Interface test data generation method and device, host and storage medium
US9706005B2 (en) Providing automatable units for infrastructure support
CN112464065A (en) Big data acquisition method and system based on mobile internet
CN111538666B (en) Method, device, computer equipment and storage medium for collecting test results in batches
CN111651482A (en) Data acquisition method and device
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN112799955B (en) Method and device for detecting model change, storage medium and electronic equipment
CN113222554A (en) Intelligent office cooperation method and system based on big data
CN115774707B (en) Object attribute-based data processing method and device, electronic equipment and storage medium
CN112100844B (en) Internet of vehicles information configuration simulation method and system
CN113238901B (en) Multi-device automatic testing method and device, storage medium and computer device
CN114138762A (en) Data processing method, device, storage medium and terminal
CN113282312A (en) Software package updating method and system
CN111858279A (en) Method and device for tracking user behaviors of browser
CN112380094A (en) RPA service flow processing method and device
CN110727537A (en) Method and device for uniformly processing response message, computer equipment and storage medium
CN112231218B (en) Method, system, terminal and storage medium for automatically updating test diagnosis script
CN113076273B (en) Component access method, device, electronic equipment, storage medium and program product
CN113764074B (en) Image processing method and device, computer equipment and storage medium
CN111460273B (en) Information pushing method and device
CN113867730A (en) Method, device and equipment for determining target source code mapping file and storage medium
CN116483869A (en) Big data-based user data analysis method, device, equipment and storage medium

Legal Events

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