[go: up one dir, main page]

CN116248564A - File transfer protocol test method and device, computer equipment and storage medium - Google Patents

File transfer protocol test method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116248564A
CN116248564A CN202310138353.7A CN202310138353A CN116248564A CN 116248564 A CN116248564 A CN 116248564A CN 202310138353 A CN202310138353 A CN 202310138353A CN 116248564 A CN116248564 A CN 116248564A
Authority
CN
China
Prior art keywords
file
test
transfer protocol
result
controller
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
CN202310138353.7A
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.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development 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 Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202310138353.7A priority Critical patent/CN116248564A/en
Publication of CN116248564A publication Critical patent/CN116248564A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to the technical field of communication, and particularly discloses a method, a device, equipment and a storage medium for testing a file transfer protocol. The method comprises the following steps: configuring the first controller to configure the first controller as a test server side for file transfer protocol testing; the second controller is used as a test client for testing the file transfer protocol; and transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result based on the file transmission result. According to the method, the two controllers are configured to obtain the test server side and the test client side of the file transfer protocol, the server side and the client side are used for carrying out file transfer, the test sample of the file transfer protocol is tested, the test result is obtained, the test sample is written simply, the server construction process is simplified, the complex test tool installation and construction are avoided, and further the test efficiency of the file transfer protocol is improved.

Description

File transfer protocol test method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and apparatus for testing a file transfer protocol, a computer device, and a storage medium.
Background
Testing is often an integral part of the development of software or operating systems. The testing of the communication protocol is often a bottom layer testing, no specific application can be realized at present, and the FTP (Fi l e Transfer Protoco l ) is also the same, and the existing testing method is to install a testing tool on an external build server, for example, an i nux operating system, so that the building process is complex, and the testing efficiency is reduced, so how to simplify the server building process, and further improve the efficiency of the FTP protocol testing becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a file transfer protocol test method, a device, computer equipment and a storage medium, so as to improve the efficiency of FTP protocol test.
In a first aspect, the present application provides a method for testing a file transfer protocol, where the method includes:
configuring a first controller based on a management test file and a device connector to configure the first controller as a test server side for file transfer protocol testing;
installing a test sample of a file transfer protocol on a second controller to use the second controller as a test client for testing the file transfer protocol;
and transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result.
Further, the configuring the first controller based on the management test file and the device connector to configure the first controller as a test server for file transfer protocol test includes:
receiving a transmission instruction of a user based on the device connector, and sending the management test file to a root directory of the first controller based on the transmission instruction;
receiving a permission modification instruction of a user, and setting the permission of the management test file under the root directory based on the permission modification instruction to open the use permission of the management test file, wherein the use permission comprises an executable permission;
and executing the management test file based on the execution instruction of the user and the executable authority so as to take the first controller as the test server side and start the test server side.
Further, the file to be transmitted includes a file to be uploaded, the file transmission result includes a file uploading result, and the transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result includes:
based on a transmission instruction of a user, the file to be uploaded is sent to a test file uploading catalog of the test client;
uploading the file to be uploaded from the test file uploading catalog to the test server based on a file uploading instruction;
and checking whether the file to be uploaded exists at the test server side based on the uploading interface of the test sample, and obtaining a file uploading result.
Further, the file to be transmitted includes a file to be downloaded, the file transmission result includes a file downloading result, and based on the test server side and the test client side, the file to be transmitted is transmitted to obtain a file transmission result, and the method further includes:
when the file to be downloaded exists at the test server side, downloading the file to be downloaded to the test client side based on a file downloading instruction;
and based on the download interface of the test sample, checking whether the test client side has the file to be downloaded or not, and obtaining a file download result.
Further, the obtaining a test result of the file transfer protocol test based on the file transfer result includes:
when the file uploading is successful and the file downloading is successful, outputting the file transmission result as the file transmission success, and taking the test success as the test result;
when the file uploading fails and/or the file downloading fails, outputting the file transmission result as the file transmission failure, and taking the test failure as the test result.
Further, before the installing the test sample of the file transfer protocol on the second controller to use the second controller as the test client of the file transfer protocol test, the method further includes:
and receiving and storing the test sample written by a user based on the file transfer protocol.
Further, the method further includes, after transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result, further includes:
and visualizing the test result based on visualization tool for the user to view.
In a second aspect, the present application further provides a file transfer protocol testing apparatus, the apparatus including:
the test server side configuration module is used for configuring the first controller based on the management test file and the equipment connector so as to configure the first controller as a test server side for the file transfer protocol test;
the test client configuration module is used for installing a test sample of a file transmission protocol on a second controller to take the second controller as a test client for testing the file transmission protocol;
the test module is used for transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result.
In a third aspect, the present application also provides a computer device comprising a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the file transfer protocol testing method as described above when the computer program is executed.
In a fourth aspect, the present application also provides a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to implement a file transfer protocol testing method as described above.
The application discloses a file transfer protocol test method, a device, computer equipment and a storage medium, wherein a first controller is configured based on management test files and equipment connectors so as to be configured as a test server side for file transfer protocol test; installing a test sample of a file transfer protocol on a second controller to use the second controller as a test client for testing the file transfer protocol; and transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result. According to the method, the two controllers are configured to obtain the test server side and the test client side of the file transfer protocol, the server side and the client side are used for carrying out file transfer, the test sample of the file transfer protocol is tested, the test result is obtained, the test sample is written simply, the server construction process is simplified, the complex test tool installation and construction are avoided, and further the test efficiency of the file transfer protocol is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart illustrating a first embodiment of a method for testing a file transfer protocol according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a second embodiment of a method for testing a file transfer protocol according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a third embodiment of a method for testing a file transfer protocol according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a fourth embodiment of a method for testing a file transfer protocol according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of a device for testing a file transfer protocol according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a file transfer protocol test method, a file transfer protocol test device, computer equipment and a storage medium. The file transmission protocol testing method can be applied to the server, and the complex installation and construction of testing tools are avoided by simplifying the server construction process, so that the testing efficiency of the file transmission protocol is improved. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a file transfer protocol testing method according to an embodiment of the present application. The file transmission protocol testing method can be applied to the server, and is used for simplifying the server construction process, avoiding the installation and construction of complex testing tools, and further improving the testing efficiency of the file transmission protocol.
As shown in fig. 1, the file transfer protocol testing method specifically includes steps S101 to S103.
S101, configuring a first controller based on management test files and equipment connectors to configure the first controller as a test server side for file transfer protocol testing.
In one embodiment, two controllers are used, one is selected as a server side for testing a file transfer protocol, the other is selected as a client side for testing the file transfer protocol, the first controller and the second controller are located in the same network segment, and the two controllers are respectively configured to obtain a testing server side and a testing client side.
In a specific embodiment, the read, write and execution rights of the net_stats_manager_l oca_test file are modified by pushing the net_stats_manager_l oca_test (i.e., network management test file) file to the system/bi n directory of the first controller, entering the HDC (Harmony Devi ce Connector, device connector) environment, entering the chmod 777 system/bi n/net_stats_manager_l oca_test, after the file authority modification is completed, continuously inputting net_stats_manager_l oca l_test, pressing an enter key, opening an executable file net_stats_manager_l oca l_test file, inputting 32, pressing the enter key to start a server end of the FTP test, starting executing the executable file net_stats_manager_l oca l_test file, continuously inputting 100, pressing the enter key, and exiting the executable file. At this time, the first controller may be used as a test server.
Among them, FTP (Fi l e Transfer Protoco l ) is a set of standard protocols for file transfer over a network, which allows users to communicate with another host in a file manipulation manner (e.g., adding, deleting, modifying, looking up, transferring, etc. files). However, the user does not truly log onto the computer that the user wants to access to become a complete user, and can access remote resources using FTP programs, enabling the user to transfer files, directory management, access emails, etc., even though the two computers may be equipped with different operating systems and file storage means.
In one embodiment, the "chmod 777" command is capable of modifying the rights of a file or file directory to be readable, writable, and executable.
S102, installing a test sample of the file transfer protocol on a second controller to use the second controller as a test client for testing the file transfer protocol.
Installing a test sample of a file transfer protocol on a second controller to use the second controller as a test client for the file transfer protocol test, further comprising: and receiving and storing the test sample written by a user based on the file transfer protocol.
In one embodiment, the test sample is written according to the FTP protocol, which mainly comprises two interfaces, namely uploading and downloading, and the written test sample of the file transfer protocol is installed on the second controller by a hdc she l l i nsta l l-r+demo instruction, and the second controller is used as a test client for testing the file transfer protocol.
S103, transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of a file transmission protocol test based on the file transmission result.
In one embodiment, file transmission is performed between the test server and the test client, including file uploading and file downloading, and the results of the file uploading and downloading are obtained to test whether the file transmission protocol can normally transmit the file.
Based on the file transmission result, obtaining a test result of the file transmission protocol test, including: when the file uploading is successful and the file downloading is successful, outputting the file transmission result as the file transmission success, and taking the test success as the test result; when the file uploading fails and/or the file downloading fails, outputting the file transmission result as the file transmission failure, and taking the test failure as the test result.
In one embodiment, if the file upload is successful and the file download is successful, the file transfer protocol test result is indicated to be successful, and if the file upload is failed or the file download is failed, the file transfer protocol test result is indicated to be failed.
Transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and after obtaining a test result of a file transmission protocol test based on the file transmission result, further comprising: and visualizing the test result based on visualization tool for the user to view.
In one embodiment, a Fi l eZi l a tool is downloaded, the F i l eZi l a tool is connected with a server, and a visual interface is arranged at the server side by using the Fi l eZi l a, so that a test result can be visualized, and a test user can conveniently check the result.
The embodiment provides a file transfer protocol test method, a device, computer equipment and a storage medium, wherein a first controller is configured based on management test files and equipment connectors so as to be configured as a test server side for file transfer protocol test; installing a test sample of a file transfer protocol on a second controller to use the second controller as a test client for testing the file transfer protocol; and transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result. According to the method, the two controllers are configured to obtain the test server side and the test client side of the file transfer protocol, the server side and the client side are used for carrying out file transfer, the test sample of the file transfer protocol is tested, the test result is obtained, the test sample is written simply, the server construction process is simplified, the complex test tool installation and construction are avoided, and further the test efficiency of the file transfer protocol is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a file transfer protocol testing method according to an embodiment of the present application. The file transmission protocol testing method can be applied to the server, and is used for simplifying the server construction process, avoiding the installation and construction of complex testing tools, and further improving the testing efficiency of the file transmission protocol.
As shown in fig. 2, the step S101 of the file transfer protocol testing method specifically includes steps S201 to S203.
S201, receiving a transmission instruction of a user based on the device connector, and sending the management test file to a root directory of the first controller based on the transmission instruction;
s202, receiving a permission modification instruction of a user, and setting the permission of the management test file under the root directory based on the permission modification instruction to open the use permission of the management test file, wherein the use permission comprises executable permission;
and S203, executing the management test file based on the execution instruction of the user and the executable authority so as to take the first controller as the test server side and start the test server side.
In one embodiment, the user pushes the net_stats_manager_l_oca_test (i.e., network management test file) file to the system/bi n directory of the first controller (i.e., server side) via a hdc f i l e send net _stats_manager_l oca_test system/bi n instruction.
In one embodiment, an HDC (Harmony Devi ce Connector, device connector) environment is entered, chmod 777 system/bi n/net_stats_manager_l oca l_test is entered to modify the read, write and execute permissions of the net_stats_manager_l oca l_test file, after the file permissions modification is completed, the net_stats_manager_l oca l_test is entered continuously to press the enter key to execute the net_stats_manager_l oca l_test file, the enter 32 is entered and the enter key is pressed to open the server side of the FTP test, the enter 100 is continued and the enter key is pressed, and execution of the executable file net_stats_manager_l oca l_test file is started.
Referring to fig. 3, fig. 3 is a schematic flowchart of a file transfer protocol testing method according to an embodiment of the present application. The file transmission protocol testing method can be applied to the server, and is used for simplifying the server construction process, avoiding the installation and construction of complex testing tools, and further improving the testing efficiency of the file transmission protocol.
As shown in fig. 3, the step S103 of the file transfer protocol testing method specifically includes steps S301 to S303.
S301, based on a transmission instruction of a user, the file to be uploaded is sent to a test file uploading catalog of the test client;
s302, uploading the file to be uploaded from the test file uploading catalog to the test server based on a file uploading instruction;
s303, based on the uploading interface of the test sample, checking whether the file to be uploaded exists at the test server side, and obtaining a file uploading result.
In one embodiment, a file of a test client is uploaded to a test server to obtain a file uploading result, and whether a file transfer protocol can successfully upload the file is obtained.
In a specific embodiment, the user inputs hdc f i l e send f i l e.txt/data/app/e l 2/100/base/up i oadTest/haps/entry/cache/instruction, and pushes the file f i e.txt to be uploaded to the first controller (i.e. the test client) under the/data/app/e l 2/100/base/up i oadTest/haps/entry/cache/path.
In one embodiment, the user uploads the f i l e.txt file to the test server side by inputting a param set pers i st. Sys. Defa l t _up l load address 'ftp:// root@server address/' instruction. Wherein, looking up the I P address of the first controller as the server address by the I fconf I g instruction, the I P address of the test server changes with the first controller I P address. Inputting a param set pers i st.sys.defa l t _up l oadUr i 'i ntera l:// cache/filename' instruction, and modifying the address of the uploading local file.
In one embodiment, a test sample is opened, an uploading interface is clicked, whether the file is uploaded to a server is verified, and a file uploading result is obtained. After the Fil eZi l a tool is connected with the server, the Fi l eZi l a tool can be used for directly visualizing the uploading result. The Fil eZi l a is a fast and reliable FTP client and server open source code program, and has various characteristics and direct interfaces.
Referring to fig. 4, fig. 4 is a schematic flowchart of a file transfer protocol testing method according to an embodiment of the present application. The file transmission protocol testing method can be applied to the server, and is used for simplifying the server construction process, avoiding the installation and construction of complex testing tools, and further improving the testing efficiency of the file transmission protocol.
As shown in fig. 4, the step S103 of the file transfer protocol testing method specifically further includes steps S401 to S402.
S401, downloading the file to be downloaded to the test client based on a file downloading instruction when the file to be downloaded exists at the test server;
s402, based on a downloading interface of the test sample, checking whether the test client side has the file to be downloaded or not, and obtaining a file downloading result.
In one embodiment, when a downloadable file exists at the server side, the file at the test server side is downloaded to the test client side, a file downloading result is obtained, and then a test result of whether the file transfer protocol can successfully download the file is obtained.
In a specific embodiment, the file is downloaded from the server side corresponding to the server address by a param set persi st.sys.defa l t _down l oad_address 'ftp:// skh @ server address. Txt' instruction, the server address changing according to the I P address of the selected controller.
In a specific embodiment, the downloaded file is transferred to the specified file directory of the client by a param set persist st.sys.defau l t _l ocal_l_i l e_path '/data/l ocal/tmp/test.txt' instruction. Where test is the file to be downloaded,/data/l oca/tmp/is the file directory of the client.
In one embodiment, after the file is downloaded, the downloading interface of the test sample is clicked, whether the downloaded file exists or not is checked under the entering/data/l oca l/tmp/path, if the downloaded file exists in the designated directory, the downloading is successful, and if the downloaded file does not exist, the file is not downloaded successfully.
Referring to fig. 5, fig. 5 is a schematic block diagram of a file transfer protocol testing apparatus according to an embodiment of the present application, where the file transfer protocol testing apparatus is configured to perform the foregoing file transfer protocol testing method. The file transfer protocol testing device can be configured on a server.
As shown in fig. 5, the file transfer protocol testing apparatus 500 includes:
a test server side configuration module 501, configured to configure a first controller based on managing a test file and a device connector, so as to configure the first controller as a test server side for file transfer protocol testing;
a test client configuration module 502, configured to install a test sample of a file transfer protocol on a second controller, so as to use the second controller as a test client for testing the file transfer protocol;
and the test module 503 is configured to transmit a file to be transmitted based on the test server side and the test client side, obtain a file transmission result, and obtain a test result of a file transmission protocol test based on the file transmission result.
In one embodiment, the test server side configuration module 501 includes:
a management test file sending unit, configured to receive a transmission instruction of a user based on the device connector, and send the management test file to a root directory of the first controller based on the transmission instruction;
the authority modification unit is used for receiving an authority modification instruction of a user, and setting the authority of the management test file under the root directory based on the authority modification instruction so as to open the use authority of the management test file, wherein the use authority comprises an executable authority;
and the management test file executing unit is used for executing the management test file based on the execution instruction of the user and the executable authority so as to take the first controller as the test server side and start the test server side.
In one embodiment, the test module 503 includes:
the file to be uploaded sending unit is used for sending the file to be uploaded to a test file uploading catalog of the test client based on a transmission instruction of a user;
the file to be uploaded uploading unit is used for uploading the file to be uploaded from the test file uploading catalog to the test server side based on a file uploading instruction;
and the file uploading result obtaining unit is used for checking whether the file to be uploaded exists at the test server side based on the uploading interface of the test sample, and obtaining a file uploading result.
In one embodiment, the test module 503 further includes:
the file downloading unit is used for downloading the file to be downloaded to the test client based on a file downloading instruction when the file to be downloaded exists at the test server;
and the file downloading result obtaining unit is used for checking whether the file to be downloaded exists at the test client based on the downloading interface of the test sample, and obtaining a file downloading result.
In one embodiment, the test module 503 further includes:
the test success result obtaining unit is used for outputting the file transmission result as the file transmission success when the file uploading is successful and the file downloading is successful, and taking the test success as the test result;
and the test failure result obtaining unit is used for outputting the file transmission result as the file transmission failure when the file uploading failure and/or the file downloading failure occur, and taking the test failure as the test result.
In one embodiment, the file transfer protocol testing apparatus 500 further includes a sample acquisition module, where the sample acquisition module includes:
and the test sample obtaining unit is used for receiving and storing the test sample written by a user based on the file transfer protocol.
In one embodiment, the file transfer protocol testing apparatus 500 further includes a test result visualization module, where the test result visualization module includes:
and the test result visualization unit is used for visualizing the test result based on the visualization tool for a user to view.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device may be a server.
With reference to FIG. 6, the computer device includes a processor, memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor to perform any one of a number of file transfer protocol testing methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by a processor, causes the processor to perform any of a number of file transfer protocol testing methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
configuring a first controller based on a management test file and a device connector to configure the first controller as a test server side for file transfer protocol testing;
installing a test sample of a file transfer protocol on a second controller to use the second controller as a test client for testing the file transfer protocol;
and transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result.
In one embodiment, the processor is configured to, when implementing a test server side based on managing a test file and a device connector, configure a first controller to configure the first controller as a file transfer protocol test, implement:
receiving a transmission instruction of a user based on the device connector, and sending the management test file to a root directory of the first controller based on the transmission instruction;
receiving a permission modification instruction of a user, and setting the permission of the management test file under the root directory based on the permission modification instruction to open the use permission of the management test file, wherein the use permission comprises an executable permission;
and executing the management test file based on the execution instruction of the user and the executable authority so as to take the first controller as the test server side and start the test server side.
In one embodiment, the processor is configured to, when implementing that the file to be transmitted includes a file to be uploaded, where the file transmission result includes a file uploading result, transmit the file to be transmitted based on the test server side and the test client side, and obtain the file transmission result, implement:
based on a transmission instruction of a user, the file to be uploaded is sent to a test file uploading catalog of the test client;
uploading the file to be uploaded from the test file uploading catalog to the test server based on a file uploading instruction;
and checking whether the file to be uploaded exists at the test server side based on the uploading interface of the test sample, and obtaining a file uploading result.
In one embodiment, when the processor realizes that the file to be transmitted includes a file to be downloaded, the file transmission result includes a file downloading result, and based on the test server side and the test client side, the processor is further configured to, when obtaining the file transmission result, realize:
when the file to be downloaded exists at the test server side, downloading the file to be downloaded to the test client side based on a file downloading instruction;
and based on the download interface of the test sample, checking whether the test client side has the file to be downloaded or not, and obtaining a file download result.
In one embodiment, the processor is configured to, when implementing obtaining a test result of the file transfer protocol test based on the file transfer result, implement:
when the file uploading is successful and the file downloading is successful, outputting the file transmission result as the file transmission success, and taking the test success as the test result;
when the file uploading fails and/or the file downloading fails, outputting the file transmission result as the file transmission failure, and taking the test failure as the test result.
In one embodiment, before implementing the installation of the test sample of the file transfer protocol on the second controller to use the second controller as a test client for the file transfer protocol test, the processor is further configured to implement:
and receiving and storing the test sample written by a user based on the file transfer protocol.
In one embodiment, the processor is further configured to, after implementing the transmission of the file to be transmitted based on the test server side and the test client side, obtain a file transmission result, and obtain a test result of the file transmission protocol test based on the file transmission result, implement:
and visualizing the test result based on visualization tool for the user to view.
An embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and the processor executes the program instructions to implement any one of the file transfer protocol testing methods provided in the embodiments of the present application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory Card (Smart Med i a Card, SMC), a Secure Digital (SD) Card, a flash memory Card (F1 ash Card) or the like, which are provided on the computer device.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for testing a file transfer protocol, comprising:
configuring a first controller based on a management test file and a device connector to configure the first controller as a test server side for file transfer protocol testing;
installing a test sample of a file transfer protocol on a second controller to use the second controller as a test client for testing the file transfer protocol;
and transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result.
2. The method for testing file transfer protocol according to claim 1, wherein the configuring the first controller based on the management test file and the device connector to configure the first controller as a test server side for the file transfer protocol test comprises:
receiving a transmission instruction of a user based on the device connector, and sending the management test file to a root directory of the first controller based on the transmission instruction;
receiving a permission modification instruction of a user, and setting the permission of the management test file under the root directory based on the permission modification instruction to open the use permission of the management test file, wherein the use permission comprises an executable permission;
and executing the management test file based on the execution instruction of the user and the executable authority so as to take the first controller as the test server side and start the test server side.
3. The method according to claim 1, wherein the file to be transmitted includes a file to be uploaded, the file transmission result includes a file uploading result, the transmitting the file to be transmitted based on the test server side and the test client side, and obtaining a file transmission result includes:
based on a transmission instruction of a user, the file to be uploaded is sent to a test file uploading catalog of the test client;
uploading the file to be uploaded from the test file uploading catalog to the test server based on a file uploading instruction;
and checking whether the file to be uploaded exists at the test server side based on the uploading interface of the test sample, and obtaining a file uploading result.
4. The method for testing a file transfer protocol according to claim 1, wherein the file to be transferred includes a file to be downloaded, the file transfer result includes a file download result, and the file to be transferred is transferred based on the test server side and the test client side to obtain a file transfer result, and further comprising:
when the file to be downloaded exists at the test server side, downloading the file to be downloaded to the test client side based on a file downloading instruction;
and based on the download interface of the test sample, checking whether the test client side has the file to be downloaded or not, and obtaining a file download result.
5. The method according to claim 1, wherein obtaining a test result of the file transfer protocol test based on the file transfer result comprises:
when the file uploading is successful and the file downloading is successful, outputting the file transmission result as the file transmission success, and taking the test success as the test result;
when the file uploading fails and/or the file downloading fails, outputting the file transmission result as the file transmission failure, and taking the test failure as the test result.
6. The method according to claim 1, wherein before installing the test sample of the file transfer protocol on the second controller to use the second controller as the test client of the file transfer protocol test, further comprising:
and receiving and storing the test sample written by a user based on the file transfer protocol.
7. The method for testing a file transfer protocol according to any one of claims 1 to 6, wherein after the step of transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result and obtaining a test result of the file transfer protocol test based on the file transmission result, the method further comprises:
and visualizing the test result based on visualization tool for the user to view.
8. A file transfer protocol testing apparatus, comprising:
the test server side configuration module is used for configuring the first controller based on the management test file and the equipment connector so as to configure the first controller as a test server side for the file transfer protocol test;
the test client configuration module is used for installing a test sample of a file transmission protocol on a second controller to take the second controller as a test client for testing the file transmission protocol;
the test module is used for transmitting the file to be transmitted based on the test server side and the test client side to obtain a file transmission result, and obtaining a test result of the file transmission protocol test based on the file transmission result.
9. A computer device, the computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor for executing the computer program and for implementing the file transfer protocol testing method according to any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the file transfer protocol test method according to any one of claims 1 to 7.
CN202310138353.7A 2023-02-09 2023-02-09 File transfer protocol test method and device, computer equipment and storage medium Pending CN116248564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310138353.7A CN116248564A (en) 2023-02-09 2023-02-09 File transfer protocol test method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310138353.7A CN116248564A (en) 2023-02-09 2023-02-09 File transfer protocol test method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116248564A true CN116248564A (en) 2023-06-09

Family

ID=86632609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310138353.7A Pending CN116248564A (en) 2023-02-09 2023-02-09 File transfer protocol test method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116248564A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119697178A (en) * 2025-01-24 2025-03-25 广州市迪士普音响科技有限公司 FTP file download method, device and storage medium based on Hongmeng system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812410A (en) * 2005-01-25 2006-08-02 台湾积体电路制造股份有限公司 File transfer management system and method
WO2007025425A1 (en) * 2005-08-31 2007-03-08 Huawei Technologies Co., Ltd. A method for testing the service performance of the file transfer protocol
US9292397B1 (en) * 2012-05-14 2016-03-22 Netload, Inc. Light-weight method and apparatus for testing network devices and infrastructure
CN110545329A (en) * 2019-09-27 2019-12-06 杭州海潮信息科技有限公司 Method for improving FTP file transmission speed

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812410A (en) * 2005-01-25 2006-08-02 台湾积体电路制造股份有限公司 File transfer management system and method
WO2007025425A1 (en) * 2005-08-31 2007-03-08 Huawei Technologies Co., Ltd. A method for testing the service performance of the file transfer protocol
US20080172457A1 (en) * 2005-08-31 2008-07-17 Huawei Technologies Co., Ltd. Method for testing the service performance of the file transfer protocol
US9292397B1 (en) * 2012-05-14 2016-03-22 Netload, Inc. Light-weight method and apparatus for testing network devices and infrastructure
CN110545329A (en) * 2019-09-27 2019-12-06 杭州海潮信息科技有限公司 Method for improving FTP file transmission speed

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119697178A (en) * 2025-01-24 2025-03-25 广州市迪士普音响科技有限公司 FTP file download method, device and storage medium based on Hongmeng system

Similar Documents

Publication Publication Date Title
US9386079B2 (en) Method and system of virtual desktop infrastructure deployment studio
EP3488337B1 (en) Shared software libraries for computing devices
US9354987B2 (en) Systems and methods for out-of-band backup and restore of hardware profile information
KR101343148B1 (en) Automated Device Driver Management
US9122531B2 (en) Resource configuration for a network data processing system
CN111782232A (en) Cluster deployment method, device, terminal device and storage medium
US10936295B2 (en) Software update system
CN111897520A (en) Construction method, device, computer equipment and storage medium of front-end project framework
US11650888B2 (en) Workflow error handling for device driven management
CN107835181B (en) Rights management method, device, medium and electronic device for server cluster
CN105302563A (en) Plug-in method and system for mobile application service
US20150180950A1 (en) Test management using distributed computing
US10303388B1 (en) Storage filtering using container images
CN113138776A (en) Template-based cluster automatic deployment method, device, equipment and medium
CN117337429A (en) Deploying a machine learning model
CN104036194A (en) Vulnerability detection method and device for revealing private data in application program
CN116248564A (en) File transfer protocol test method and device, computer equipment and storage medium
CN116700626A (en) Resource binding method and device and electronic equipment
CN118916312B (en) A data transmission method, device, system, computer equipment and storage medium
CN106528226B (en) Installation method and device of operating system
US11907731B1 (en) Configurable cloud development environments
CN113377487B (en) Method, apparatus and computer program product for managing upgrades to virtual machines
CN118612205A (en) A data recovery method and device for cloud services
Duca et al. Ota secure update system for iot fleets
WO2022086555A1 (en) Firmware upgrade using multi-unit charging stations

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