Data transmission method and device, computer equipment and storage medium
By automatically acquiring test environment configuration parameters and data, determining and using appropriate data transmission paths, the problem of low accuracy in electronic power equipment test data transmission is solved, and efficient and accurate data transmission is achieved.
Patent Information
- Application Number
- CN202310145598.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
When the test data obtained locally by electronic power equipment is transmitted to the remote device, errors such as missed transmission, mistransmission, and multiple transmissions are prone to occur, resulting in low transmission accuracy.
By automatically obtaining the test environment configuration parameters and test data, determining the data transmission path based on these parameters, and automatically transmitting the test data under this path, avoiding user manual intervention and ensuring the accuracy of data transmission.
It improves the transmission accuracy of test data, reduces the occurrence of missed transmissions, mistransmissions and multiple transmissions, and ensures the accuracy and efficiency of data transmission.
Smart Images

Figure CN118540266A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of science and technology, various types of electronic and electrical equipment are being used more and more widely, bringing great convenience to production and life. During the production and application of electronic and electrical equipment, testing of electronic and electrical equipment is an important means to ensure the reliable operation of electronic and electrical equipment.
[0003] After the power equipment obtains the test data locally, it needs to manually submit the test data to the remote device for analysis or storage. Transmission errors are prone to occur, and there is a disadvantage of low test data transmission accuracy. Summary of the invention
[0004] Based on this, it is necessary to provide a data transmission method, apparatus, computer equipment, storage medium and computer program product to alleviate the problem of low test data transmission accuracy.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, including: obtaining test environment configuration parameters and test data; determining a data transmission path according to the test environment configuration parameters; and transmitting the test data to a remote device according to the data transmission path.
[0006] The above data transmission method first obtains the test environment configuration parameters and test data, then determines the data transmission path according to the test environment configuration parameters, and finally transmits the test data to the remote device through the data transmission path. This solution automatically obtains the test data source and the test environment configuration parameters, and configures the data transmission path, and finally automatically transmits the test data to the remote device according to the data transmission path. The transmission of test data does not require manual parameters from the user, which can effectively alleviate the occurrence of transmission errors, thereby improving the transmission accuracy of test data.
[0007] In some embodiments, determining the data transmission path according to the test environment configuration parameters includes: determining a test state parameter according to the test environment configuration parameters; and determining the data transmission path according to the test state parameter.
[0008] The above scheme configures the corresponding data transmission path for the test data according to the test status parameters associated with the executed test task, so that the test data obtained by the current test task can be transmitted through the corresponding data transmission path, avoiding mistransmission and further improving the test data transmission accuracy.
[0009] In some embodiments, the test status parameter includes at least one of a product line parameter, a project name, a software version number, and a test level.
[0010] In the above scheme, the test status parameters include at least one of the product line parameters, project name, software version number and test level. The test equipment can configure the corresponding data transmission path for the test data according to at least one of the product line parameters, project name, software version number and test level to meet different data transmission requirements.
[0011] In some embodiments, determining the test status parameters according to the test environment configuration parameters includes: determining product line parameters according to the test environment configuration parameters; when the product line parameters are confirmed, determining the project name according to the test environment configuration parameters; when the project name is confirmed, determining the software version number according to the test environment configuration parameters; when the software version number is confirmed, determining the test level according to the test environment configuration parameters.
[0012] In the above scheme, the test status parameters also include product line parameters, project name, software version number and test level, so as to confirm the data transmission path for each test task. It can ensure that the test data obtained by different test tasks are transmitted through different data transmission paths, ensuring that the test data will not be missed or transmitted incorrectly, thereby improving the transmission accuracy of the test data.
[0013] In some embodiments, determining the product line parameters according to the test environment configuration parameters includes: determining the current product line parameters according to the test environment configuration parameters; when the current product line parameters match a preset product line database, using the current product line parameters as product line parameters; when the current product line parameters do not match the preset product line database, determining whether the product line corresponding to the current product line parameters is a new product line; when the product line corresponding to the current product line parameters is a new product line, updating the current product line parameters to the preset product line database and using the current product line parameters as product line parameters; when the product line corresponding to the current product line parameters is not a new product line, outputting an alarm prompt message.
[0014] The above scheme confirms the final product line parameters based on the current product line parameters confirmed from the test environment configuration parameters and the preset product line database, and updates the preset product line database when the product line corresponding to the current product line parameters is a new product line. It will issue an alarm if it is not a new product line, and can verify the current product line parameters obtained to ensure the accuracy of the finally confirmed product line parameters.
[0015] In some embodiments, determining the project name according to the test environment configuration parameters includes: determining the current project name according to the test environment configuration parameters; if the current project name matches a preset project database, using the current project name as the project name; if the current project name does not match the preset project database, determining whether the project corresponding to the current project name is a new project; if the project corresponding to the current project name is a new project, updating the current project name to the preset project database and using the current project name as the project name; if the project corresponding to the current project name is not a new project, outputting an alarm prompt message.
[0016] The above scheme confirms the final project name based on the current project name confirmed from the test environment configuration parameters and the preset project database, and updates the preset project database when the project corresponding to the current project name is a new project. If it is not a new project, an alarm prompt will be issued. The obtained current project name can be verified to ensure the accuracy of the finally confirmed project name.
[0017] In some embodiments, determining the software version number according to the test environment configuration parameters includes: determining the current software version number according to the test environment configuration parameters; if the current software version number matches a preset version database, using the current software version number as the software version number; if the current software version number does not match the preset version database, determining whether the software version corresponding to the current software version number is a new version; if the software version corresponding to the current software version number is a new version, updating the current software version number to the preset version database and using the current software version number as the software version number; if the software version corresponding to the current software version number is not a new version, outputting an alarm prompt message.
[0018] The above scheme confirms the final software version number based on the current software version number confirmed from the test environment configuration parameters and the preset version database, and updates the preset version database when the software version corresponding to the current software version number is a new version. If it is not a new version, an alarm prompt will be issued. The current software version number obtained can be verified to ensure the accuracy of the finally confirmed software version.
[0019] In some embodiments, determining the data transmission path according to the test status parameters includes: determining whether there is a product line folder corresponding to the product line parameters; if the product line folder exists, determining whether there is a project folder corresponding to the project name in the product line folder; if the project folder exists in the product line folder, determining whether there is a version folder corresponding to the software version number in the project folder; if the version folder exists in the project folder, determining the data transmission path according to the product line folder, the project folder, the version folder and the test level.
[0020] In the above scheme, when confirming the data transmission path, the product line folder, project folder and version folder are confirmed in sequence according to the product line parameters, project name and software version number, and finally the data transmission path is obtained in combination with the test level, ensuring that each test task has a uniquely confirmed data transmission path, further ensuring the transmission accuracy of the test data.
[0021] In some embodiments, after determining whether there is a product line folder corresponding to the product line parameters, it also includes: if the product line folder does not exist, after creating a product line folder according to the product line parameters, executing the step of determining whether there is a project folder corresponding to the project name in the product line folder.
[0022] In the above scheme, if there is no product line folder corresponding to the product line parameters, a corresponding product line folder is newly created to ensure that the current test data is transmitted under the corresponding product line folder, effectively avoiding test data leakage, wrong transmission and multiple transmission.
[0023] In some embodiments, after determining whether there is a project folder corresponding to the project name in the product line folder, it also includes: if the project folder does not exist in the product line folder, after creating a project folder according to the project name, executing the step of determining whether there is a version folder corresponding to the software version number in the project folder.
[0024] In the above scheme, if there is no project folder corresponding to the project name, a corresponding project folder is newly created to ensure that the current test data is transmitted under the corresponding project folder, effectively avoiding missed, wrong and multiple transmissions of test data.
[0025] In some embodiments, after determining whether there is a version folder corresponding to the software version number in the project folder, it also includes: if the version folder does not exist in the project folder, after creating a version folder according to the software version number, executing the step of determining the data transmission path according to the product line folder, the project folder, the version folder and the test level.
[0026] In the above scheme, when there is no version folder corresponding to the software version number, a corresponding version folder is newly created to ensure that the current test data is transmitted under the corresponding version folder, effectively avoiding missed, wrong and multiple transmissions of test data.
[0027] In some embodiments, transmitting the test data to a remote device according to the data transmission path includes: determining a test data folder according to the data transmission path and the test data; and transmitting the test data folder to the remote device if the test data folder is not empty.
[0028] In the above scheme, after confirming the test data folder according to the test data and the data transmission path, the test data folder needs to be verified. When the test data folder is not empty, data transmission is realized, which can avoid sending an empty test data folder to the remote device and avoid mistransmission.
[0029] In some embodiments, when the test data folder is not empty, transferring the test data folder to the remote device includes: when the test data folder is not empty, determining whether there is a folder consistent with the test data folder on the remote device; and when there is no folder consistent with the test data folder on the remote device, transferring the test data folder to the remote device.
[0030] In the above scheme, when transmitting the test data folder, it is necessary to verify whether the remote device already has the same test data folder as the current one, which can effectively avoid repeated uploading of test data.
[0031] In a second aspect, an embodiment of the present application also provides a data transmission device, including: a parameter acquisition module for acquiring test environment configuration parameters and test data; a path confirmation module for determining a data transmission path based on the test environment configuration parameters; and a transmission module for transmitting the test data to a remote device according to the data transmission path.
[0032] In a third aspect, an embodiment of the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned data transmission method when executing the computer program.
[0033] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned data transmission method are implemented.
[0034] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:
[0036] Figure 1 This is an application environment diagram of the data transmission method in some embodiments of the present application;
[0037] Figure 2 A flowchart of a data transmission method in some embodiments of the present application;
[0038] Figure 3 A flowchart of a data transmission method in some other embodiments of the present application;
[0039] Figure 4 This is a schematic diagram of the test status parameter confirmation process in some embodiments of the present application;
[0040] Figure 5 This is a schematic diagram of the product line parameter confirmation process in some embodiments of the present application;
[0041] Figure 6 This is a schematic diagram of the project name confirmation process in some embodiments of the present application;
[0042] Figure 7 This is a schematic diagram of the software version number confirmation process in some embodiments of the present application;
[0043] Figure 8 This is a schematic diagram of a data transmission path confirmation process in some embodiments of the present application;
[0044] Fig. 9 A flowchart of a data transmission method in some other embodiments of the present application;
[0045] Fig.10 A flowchart of a data transmission method in some further embodiments of the present application;
[0046] Fig.11This is a schematic diagram of the test status parameter confirmation process in some other embodiments of the present application;
[0047] Fig.12 This is a schematic diagram of a data transmission path confirmation process in some other embodiments of the present application;
[0048] Fig.13 This is a schematic diagram of the test data folder upload process in some other embodiments of the present application;
[0049] Fig.14 This is a schematic diagram of the structure of a data transmission device in some embodiments of the present application;
[0050] Fig.15 This is a diagram of the internal structure of a computer device in some embodiments of the present application. DETAILED DESCRIPTION
[0051] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0053] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] At present, from the perspective of market development, electronic power equipment is increasingly used in production and life. Operation monitoring and reliability verification of electronic power equipment are effective means to ensure the reliable operation of electronic power equipment. In the process of monitoring or reliability verification, it is generally necessary to obtain the test data of the electronic power equipment through local equipment, and then transmit the test data to the remote device for analysis and storage. However, when the electronic power equipment is tested locally, the amount of test data obtained is large. When the user manually uploads these test data to the remote device, it is easy to have transmission errors such as missing transmission, wrong transmission, and multiple transmission, resulting in low transmission accuracy of the test data.
[0056] In order to alleviate the problem of low transmission accuracy when transmitting test data to remote devices, research has found that a corresponding automatic transmission program can be configured for uploading test data. After the local test equipment tests the device under test and obtains the test data, it transmits the test data to the remote device through the automatic upload program to realize automatic data transmission.
[0057] Based on the above considerations, in the technical solution of the present application, the local test equipment obtains the test environment configuration parameters and test data during the test of the device to be tested (such as electronic power equipment), and then determines the data transmission path of the acquired test data according to the test environment configuration parameters, and finally transmits the acquired test data to the remote device under the data transmission path.
[0058] According to the test environment configuration parameters, there is no unique way to determine the data transmission path. Depending on the test environment configuration parameters, the method of determining the data transmission path will also be different. More specifically, in the scheme of some embodiments of the present application, the test environment configuration parameters carry at least one of the product line parameters, project name, software version number and test level. After the test equipment reads and finally confirms the data transmission path according to the test environment configuration parameters, it uploads the test data in batches to the remote device. It is ensured that all test data corresponding to the product line parameters, project names, software version numbers and test levels have corresponding data transmission paths, so that the test data is not missed, mis-transmitted or over-transmitted, thereby effectively improving the transmission accuracy of the test data.
[0059] The data transmission method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. During the test of the device to be tested, the test device 102 obtains the test environment configuration parameters and test data to confirm the data transmission path, and transmits the test data to the remote device 104 through the data transmission path. Among them, the test device 102 communicates with the remote device 104 through the network, which can be specifically wired or wireless communication. The test device 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, which can be selected in combination with the actual test scenario. The remote device 104 can be, but is not limited to, a server, which can be implemented with an independent server or a server cluster composed of multiple servers. For example, in a more detailed embodiment, the remote device 104 includes an FTP (File Transfer Protocol Server) server.
[0060] See also Figure 2 The present application provides a data transmission method, including step 202, step 204 and step 206.
[0061] Step 202: Acquire test environment configuration parameters and test data.
[0062] Specifically, the test environment configuration parameters are the state parameters that describe the software and hardware environment of the entire test system when the test equipment is testing the device under test. Test data is the data obtained by the test equipment when testing the device under test according to the preset test-related procedures. The test equipment communicates with the remote device through the network by wired or wireless means. When the test equipment performs the test task, in addition to obtaining the test parameters of the device under test, the test equipment can also obtain the corresponding test environment configuration parameters under the current test task, and realize the transmission control of the test data in combination with the test environment configuration parameters.
[0063] It should be noted that the specific types of test environment configuration parameters are not unique. In one embodiment, the test environment configuration parameters may include computer hardware, software, network equipment, and historical data necessary to complete the test work. Similarly, the specific types of test data are not unique. Depending on the test equipment and the device to be tested, the test data finally obtained will also be different. For example, it can be voltage, current data, etc., which are not specifically limited. As long as the test data obtained by the test equipment to test the device to be tested is required to be transmitted to the remote device, the data transmission method provided in each embodiment of the present application can be used to realize the automatic transmission operation of the test data.
[0064] Step 204: determine a data transmission path according to the test environment configuration parameters.
[0065] Specifically, the data transmission path is the writing path corresponding to the folder when the test data is written into the relevant folder for batch transmission. After obtaining the test environment configuration parameters, the test equipment can obtain the environment state corresponding to the test data under the current test state through the test environment configuration parameters, and the test equipment configures the corresponding data transmission path for the current test data according to the test environment configuration parameters.
[0066] The solution of the embodiment of the present application can configure a corresponding data transmission path for the current test task when executing each test task, according to different test environment configuration parameters, thereby ensuring that the test data transmitted each time is transmitted through its corresponding transmission path, which can effectively avoid the problem of mistransmission and improve data transmission accuracy.
[0067] It should be noted that the specific form of the data transmission path may vary depending on the type of remote device. For example, in one embodiment, the remote device is an FTP server, and accordingly, the data transmission path determined according to the test environment configuration parameters is an FTP path.
[0068] Step 206: Transmit the test data to the remote device according to the data transmission path.
[0069] Specifically, after the test device configures the corresponding data transmission path for the test data in combination with the current test environment configuration parameters, it only needs to write the test data into the file directory corresponding to the data transmission path to obtain a folder containing all the test data under the current test task. Finally, the test device transmits the folder to the remote device to complete the transmission of the test data. Through this transmission method, the test data obtained by each test task can be transferred to the remote device in batches, with high transmission efficiency.
[0070] The above data transmission method first obtains the test environment configuration parameters and test data, then determines the data transmission path according to the test environment configuration parameters, and finally transmits the test data to the remote device through the data transmission path. This solution automatically obtains the test data source and the test environment configuration parameters, and configures the data transmission path, and finally automatically transmits the test data to the remote device according to the data transmission path. The transmission of test data does not require manual parameters from the user, which can effectively alleviate the occurrence of transmission errors, thereby improving the transmission accuracy of test data.
[0071] See also Figure 3 In some embodiments, step 204 includes step 302 and step 304 .
[0072] Step 302: Determine test status parameters according to test environment configuration parameters.
[0073] Step 304: determine a data transmission path according to the test status parameters.
[0074] Specifically, the test status parameters are the status parameters related to the test task when the test device executes the test task. The test status parameters will be different depending on the test task being executed. Therefore, the scheme of this embodiment, when confirming the data transmission path in combination with the test environment configuration parameters, first determines the test status parameters according to the test environment configuration parameters, and then configures the corresponding data transmission path for the currently acquired test data according to the test status parameters.
[0075] The above scheme configures the corresponding data transmission path for the test data according to the test status parameters associated with the executed test task, so that the test data obtained by the current test task can be transmitted through the corresponding data transmission path, avoiding mistransmission and further improving the test data transmission accuracy.
[0076] It should be noted that the specific type of the test status parameter is not unique. In a more detailed embodiment, the test status parameter includes at least one of a product line parameter, a project name, a software version number, and a test level.
[0077] Specifically, the product line parameter is the name of the product line under the current test task. The product line name will vary depending on the test equipment and the device under test, and there is no specific limitation. The project name is the name of the project corresponding to the currently executed test task. The software version number is the version number of the test software when the test task is currently executed. The test level is the test level of the product under test when the test task is currently executed.
[0078] In the actual test data transmission process, at least one of the product line parameters, project name, software version number and test level can be selected to configure the data transmission path. In one embodiment, one of the test state parameters can be selected to configure the data transmission path. For example, the product line parameter is selected to configure the data transmission path. In this way, the test data corresponding to the same product line can be written into the same folder for transmission. In another embodiment, any two test state parameters can be selected to configure the data transmission path. For example, the product line parameter and the project name are selected to configure the data transmission path. In this way, the test data corresponding to the same project in the same product line can be written into the same folder for transmission.
[0079] In other embodiments, any three or four test status parameters may be selected for data transmission path configuration, without specific limitation. In order to facilitate understanding of the technical solution of the present application, the following embodiments are explained by taking the test status parameters including product line parameters, project name, software version number and test level as an example. Accordingly, after the data transmission path is finally determined, the test data can be classified from a large range to a small range, in turn according to product line parameters, project name, software version number and test level. In the same folder that is finally uploaded, the test data is the test data corresponding to the same product line parameters, the same project name, the same software version number and the same test level.
[0080] In the above scheme, the test status parameters include at least one of the product line parameters, project name, software version number and test level. The test equipment can configure the corresponding data transmission path for the test data according to at least one of the product line parameters, project name, software version number and test level to meet different data transmission requirements.
[0081] See also Figure 4 In some embodiments, step 302 includes step 402 , step 404 , step 406 , and step 408 .
[0082] Step 402, determining product line parameters according to the test environment configuration parameters.
[0083] Step 404: When the product line parameters are confirmed, the project name is determined according to the test environment configuration parameters.
[0084] Step 406: When the project name is confirmed, the software version number is determined according to the test environment configuration parameters.
[0085] Step 408: When the software version number is confirmed, the test level is determined according to the test environment configuration parameters.
[0086] Specifically, the test environment configuration parameters carry relevant information about product line parameters, project names, software version numbers, and test levels. After obtaining the test environment configuration parameters, the test equipment will read and analyze them, and finally confirm the product line parameters, project names, software version numbers, and test levels that are directly related to the current test task.
[0087] In the solution of this embodiment, the product line parameters, project name, software version number and test level are confirmed in sequence. When the product line parameters are confirmed, the project name is determined. When the project name is confirmed, the software version number is determined. When the software version number is confirmed, the test level is finally determined. It can be understood that in other embodiments, the product line parameters, project name, software version number and test level can also be confirmed in other orders, for example, the product line parameters, software version number, project name and test level are confirmed in sequence, or the test level, software version number, project name and product line parameters are confirmed in sequence, etc., without specific limitation.
[0088] In the above scheme, the test status parameters also include product line parameters, project name, software version number and test level, so as to confirm the data transmission path for each test task. It can ensure that the test data obtained by different test tasks are transmitted through different data transmission paths, ensuring that the test data will not be missed or transmitted incorrectly, thereby improving the transmission accuracy of the test data.
[0089] See also Figure 5 In some embodiments, step 402 includes step 501 , step 503 , step 505 , step 507 and step 509 .
[0090] Step 501, determining the current product line parameters according to the test environment configuration parameters.
[0091] Step 503: When the current product line parameters match the preset product line database, the current product line parameters are used as product line parameters.
[0092] Step 505: When the current product line parameters do not match the preset product line database, determine whether the product line corresponding to the current product line parameters is a new product line.
[0093] Step 507: When the product line corresponding to the current product line parameters is a new product line, the current product line parameters are updated to the preset product line database, and the current product line parameters are used as product line parameters.
[0094] Step 509: if the product line corresponding to the current product line parameters is not a new product line, output an alarm prompt message.
[0095] Specifically, the current product line parameter is the name of the product line corresponding to the test task when the test task is currently executed. The preset product line database stores the product line parameters corresponding to all product lines when the current test device executes the test task.
[0096] In the solution of this embodiment, after the test equipment obtains the test environment configuration parameters, it reads the name of the corresponding product line when executing the current test task from the test environment configuration parameters, that is, the current product line parameters, and then verifies the current product line parameters in combination with the preset product line database. If the current product line parameters match the preset product line database, that is, the product line parameters that are consistent with the current product line parameters can be found in the preset product line database, it indicates that the current product line parameters obtained at this time are accurate, and the current product line parameters can be used as the product line parameters in the test state parameters.
[0097] If the current product line parameters do not match the preset product line database, it is necessary to perform a secondary check on the current product line parameters, that is, to determine whether the product line corresponding to the current product line parameters is a new product line. If the product line corresponding to the current product line parameters is a new product line, it indicates that the current product line parameters obtained at this time are the product line parameters corresponding to the new product line, and they can also be used as product line parameters. At the same time, in order to ensure that such product line parameters can be quickly identified when they appear during subsequent testing, the current product line parameters need to be stored in the preset product line database, that is, the current product line parameters need to be updated to the preset product line database.
[0098] It should be noted that the way in which the test device verifies whether the product line corresponding to the current product line parameters is a new product line is not unique. In one embodiment, the test device may push the acquired product line parameters to the user terminal and inquire whether the product line corresponding to the current product line parameters is a new product line. When receiving confirmation information fed back by the user terminal, it is determined that the product line corresponding to the current product line parameters is a new product line; when receiving denial information sent by the user terminal, it is determined that the product line corresponding to the current product line parameters is not a new product line.
[0099] In another embodiment, the test device may send the current product line parameters to the remote device, which stores all product line parameters of different devices to be tested or different test devices, so as to verify whether the current product line parameters are new product line parameters. Alternatively, the test device reads all product line parameters from the remote device, compares the current product line parameters with the read product line parameters, and analyzes whether the corresponding product line is a new product line.
[0100] The above scheme confirms the final product line parameters based on the current product line parameters confirmed from the test environment configuration parameters and the preset product line database, and updates the preset product line database when the product line corresponding to the current product line parameters is a new product line. It will issue an alarm if it is not a new product line, and can verify the current product line parameters obtained to ensure the accuracy of the finally confirmed product line parameters.
[0101] See also Figure 6In some embodiments, determining the project name according to the test environment configuration parameters includes step 601, step 603, step 605, step 607 and step 609.
[0102] Step 601, determine the current project name according to the test environment configuration parameters.
[0103] Step 603: If the current project name matches the preset project database, the current project name is used as the project name.
[0104] Step 605: If the current project name does not match the preset project database, determine whether the project corresponding to the current project name is a new project.
[0105] Step 607: When the project corresponding to the current project name is a new project, the current project name is updated to the preset project database, and the current project name is used as the project name.
[0106] Step 609: if the project corresponding to the current project name is not a new project, output an alarm prompt message.
[0107] Specifically, the current project name is the name of the project corresponding to the current test task; the preset project database stores the project names corresponding to all projects when the current test device executes the test task.
[0108] Similar to the above-mentioned confirmation method of the current product line parameters, in the solution of this embodiment, after the test equipment obtains the test environment configuration parameters, it reads the corresponding project name when executing the current test task from the test environment configuration parameters, that is, the current product line parameters, and then verifies the current project name in combination with the preset project database. If the current project name matches the preset project database, that is, a project name that is consistent with the current project name can be found in the preset project database, it indicates that the current project name obtained at this time is accurate, and the current project name can be used as the project name in the test status parameter.
[0109] If the current project name does not match the preset project database, it is necessary to perform a secondary check on the current project name, that is, to determine whether the project corresponding to the current project name is a new project. If the project corresponding to the current project name is a new project, it indicates that the current project name obtained at this time is the project name corresponding to the new project, and it can also be used as the project name. At the same time, in order to ensure that this type of project name can be quickly identified when it appears during subsequent testing, the current project name needs to be stored in the preset project database, that is, the current project name needs to be updated to the preset project database.
[0110] It can be understood that the method of determining whether the project corresponding to the current project name is a new project is not unique. In one embodiment, the specific confirmation method is similar to the above-mentioned method of confirming whether the product line corresponding to the current product line parameters is a new product line, which will not be repeated here.
[0111] The above scheme confirms the final project name based on the current project name confirmed from the test environment configuration parameters and the preset project database, and updates the preset project database when the project corresponding to the current project name is a new project. If it is not a new project, an alarm will be prompted to ensure the accuracy of the final confirmed project name.
[0112] See also Figure 7 In some embodiments, determining the software version number according to the test environment configuration parameters includes steps 701 , 703 , 705 , 707 and 709 .
[0113] Step 701, determine the current software version number according to the test environment configuration parameters.
[0114] Step 703: When the current software version number matches the preset version database, the current software version number is used as the software version number.
[0115] Step 705: If the current software version number does not match the preset version database, determine whether the software version corresponding to the current software version number is a new version.
[0116] Step 707: If the software version corresponding to the current software version number is a new version, the current software version number is updated to the preset version database, and the current software version number is used as the software version number.
[0117] Step 709: if the software version corresponding to the current software version number is not a new version, output an alarm prompt message.
[0118] Specifically, the current software version number is the version number of the software program that executes the current test task. The preset version database stores the version numbers corresponding to all software versions when the current test device executes the test task.
[0119] Similar to the above-mentioned confirmation method of the current software version number, in the solution of this embodiment, after the test equipment obtains the test environment configuration parameters, it reads the version number of the software program when executing the current test task from the test environment configuration parameters, that is, the current software version number, and then verifies the current software version number in combination with the preset version database. If the current software version number matches the preset version database, that is, a version number consistent with the current software version number can be found in the preset version database, it indicates that the current software version number obtained at this time is accurate, and the current software version number is used as the software version number in the test status parameter.
[0120] If the current software version number does not match the preset version database, it is necessary to perform a secondary check on the current software version number, that is, to determine whether the software version corresponding to the current software version number is a new version. If the software version corresponding to the current software version number is a new version, it indicates that the current software version number obtained at this time is the version number corresponding to the new version, and it can also be used as the software version number. At the same time, in order to ensure that this type of software version number can be quickly identified when it appears during subsequent testing, the current software version number needs to be stored in the preset version database, that is, the current software version number needs to be updated to the preset version database.
[0121] It can be understood that the method of determining whether the project corresponding to the current project name is a new project is not unique. In one embodiment, the specific confirmation method can be similar to the above-mentioned method of confirming whether the product line corresponding to the current product line parameters is a new product line, which will not be repeated here.
[0122] The above scheme confirms the final software version number based on the current software version number confirmed from the test environment configuration parameters and the preset version database, and updates the preset version database when the software version corresponding to the current software version number is a new version. If it is not a new version, an alarm prompts to ensure the accuracy of the final confirmed software version.
[0123] See also Figure 8 In some embodiments, step 304 includes step 802 , step 804 , step 806 , and step 808 .
[0124] Step 802, determining whether there is a product line folder corresponding to the product line parameter.
[0125] Step 804: If a product line folder exists, determine whether there is a project folder corresponding to the project name in the product line folder.
[0126] Step 806: If there is a project folder in the product line folder, determine whether there is a version folder corresponding to the software version number in the project folder.
[0127] Step 808: When there is a version folder in the project folder, determine the data transmission path according to the product line folder, project folder, version folder and test level.
[0128] Specifically, the product line folder is a folder that represents the product line corresponding to the current test task. In the same product line folder, all the test data are obtained when the same product line is tested. In more detail, in some embodiments, the product line folder is named after the product line. The project folder is a folder that represents the project corresponding to the current test task. Similarly, in the same project folder, all the test data are obtained when the same project is tested. In more detail, in some embodiments, the project folder is named after the project. The version folder is a folder that represents the software version when executing the current test task. When the test task is executed with the same software version number, the obtained test data is written into the same version folder. In more detail, in some embodiments, the version folder is named after the software version number.
[0129] In the solution of this embodiment, after obtaining the test status parameters, the test equipment will configure the data transmission path with the obtained test status parameters. The configuration of the data transmission path is to create a corresponding data writing file directory for the test data of the current test task. The file directories are: product line file directory, project file directory, version number file directory and test level from the largest range level to the smallest range level.
[0130] When creating a file directory, in order to avoid duplication of the file directory, first analyze whether the corresponding product line folder, that is, the folder corresponding to the product line directory, already exists in the test equipment based on the obtained product line parameters. In the same product line folder, store the test data obtained when the same product line is tested. When the product line folder is confirmed, confirm whether the project folder corresponding to the project name already exists in the product line folder. After that, when the project folder is confirmed, further confirm whether the version folder corresponding to the software version already exists in the project folder. When transmitting test data, just write the test data to the corresponding version folder in the project folder under the product line folder, and finally transfer the test data obtained by testing the same product line, the same project and the same software version to the remote device in batches.
[0131] It should be noted that, in one embodiment, when there is a version folder in the project folder, the test device also needs to determine whether there is a level folder corresponding to the test level in the version folder. In this way, different folders are further established for different test levels in the version folder according to the test level, and finally the test data written through the data transmission path can be batch uploaded for the same product line, the same project, the same software version and the same test level.
[0132] In the above scheme, when confirming the data transmission path, the product line folder, project folder and version folder are confirmed in sequence according to the product line parameters, project name and software version number, and finally the data transmission path is obtained in combination with the test level, ensuring that each test task has a uniquely confirmed data transmission path, further ensuring the transmission accuracy of the test data.
[0133] In some embodiments, before determining whether there is a product line folder corresponding to the product line parameter, the test device also performs an operation of determining whether the remote device is successfully logged in.
[0134] Specifically, taking the remote device as an FTP server as an example, during the execution of the test task, the user can enter the login account and password of the remote device (FTP server) through the test device. When the account and password entered by the user are verified to be correct, the test device performs the operation of determining whether there is a product line folder corresponding to the product line parameters. When the account and password entered by the user are verified to be incorrect, the test device will output a re-entry prompt message to inform the user to re-login to the remote device. In this way, the confirmation operation of entering the data transmission path by logging in with the account and password can effectively improve the transmission security of the test data.
[0135] In some embodiments, after determining whether there is a product line folder corresponding to the product line parameters, it also includes: if there is no product line folder, after creating a product line folder according to the product line parameters, executing the step of determining whether there is a project folder corresponding to the project name in the product line folder.
[0136] Specifically, when the test device is checking whether a product line folder already exists, it may be that the product line corresponding to the current test task is being tested for the first time, or the product line is a new product line, resulting in no corresponding product line folder in the test device. Therefore, to ensure that the test data can be transmitted normally, the test device will create a corresponding product line folder for the current product line based on the product line parameters. After that, the test device will perform the corresponding operation in the above embodiment when a product line folder exists to ensure that the data transmission path can be completely created.
[0137] In the above scheme, if there is no product line folder corresponding to the product line parameters, a corresponding product line folder is newly created to ensure that the current test data is transmitted under the corresponding product line folder, effectively avoiding test data leakage, wrong transmission and multiple transmission.
[0138] In some embodiments, after determining whether there is a project folder corresponding to the project name in the product line folder, it also includes: if there is no project folder in the product line folder, after creating a project folder according to the project name, executing the step of determining whether there is a version folder corresponding to the software version number in the project folder.
[0139] Specifically, when the test device verifies whether there is a project folder corresponding to the project name in the product line folder, there may be a situation where there is no project folder corresponding to the project name in the product line folder due to the fact that the project is tested for the first time, the project is a new project, or the product line folder is newly created. At this time, in order to ensure that the test data can be transmitted normally, the test device will create a corresponding project folder for the current project in the product line folder according to the project name. After that, the test device will perform the corresponding operation in the case where a project folder exists in the above embodiment to ensure that the data transmission path can be completely created.
[0140] In the above scheme, if there is no project folder corresponding to the project name, a corresponding project folder is newly created to ensure that the current test data is transmitted under the corresponding project folder, effectively avoiding missed, wrong and multiple transmissions of test data.
[0141] In some embodiments, after determining whether there is a version folder corresponding to the software version number in the project folder, it also includes: if there is no version folder in the project folder, after creating a version folder according to the software version number, executing the step of determining the data transmission path according to the product line folder, project folder, version folder and test level.
[0142] Specifically, when the test device verifies whether there is a version folder corresponding to the software version number in the project folder, there may be a situation where there is no version folder corresponding to the software version number in the project folder due to the fact that the software version is tested for the first time, the software version is a new version, or the project folder is newly created. At this time, in order to ensure that the test data can be transmitted normally, the test device will create a corresponding version folder for the current software version in the project folder according to the software version number. After that, the test device will perform the corresponding operation in the case where a version folder exists in the above embodiment to ensure that the data transmission path can be completely created.
[0143] In the above scheme, when there is no version folder corresponding to the software version number, a corresponding version folder is newly created to ensure that the current test data is transmitted under the corresponding version folder, effectively avoiding missed, wrong and multiple transmissions of test data.
[0144] See also Fig. 9, in some embodiments, step 206 includes step 902 and step 904 .
[0145] Step 902: determine a test data folder according to the data transmission path and the test data.
[0146] Step 904: if the test data folder is not empty, transmit the test data folder to the remote device.
[0147] Specifically, the test data folder is the folder finally obtained when the test data is written according to the determined data transmission path. The test data folder is empty, which means that there is no test data stored in the test data folder. It can be understood that the test data folder is empty, which may be caused by the failure of the test data to write or the completion of the transmission of all test data. In the case that the test data folder is empty, there is no need to transfer the test data folder to the remote device, thereby avoiding the waste of data transmission resources. When the test data is written normally according to the data transmission path, after obtaining the test data folder after the test data is stored according to the corresponding file directory, it is transferred to the remote device, and the automatic transmission of the test data can be realized.
[0148] In the above scheme, after confirming the test data folder according to the test data and the data transmission path, the test data folder needs to be verified. When the test data folder is not empty, data transmission is realized, which can avoid sending an empty test data folder to the remote device and avoid mistransmission.
[0149] See also Fig.10 In some embodiments, step 904 includes step 101 and step 103 .
[0150] Step 101: When the test data folder is not empty, determine whether a folder consistent with the test data folder exists on the remote device.
[0151] Step 103 : if the remote device does not have a folder that is consistent with the test data folder, the test data folder is transmitted to the remote device.
[0152] Specifically, in the solution of this embodiment, when the test data folder stores the test data, it is not directly transmitted to the remote device. At this time, the test device needs to further analyze whether there is a folder on the remote device that is consistent with the test data folder. Only when there is no folder on the remote device that is consistent with the test data folder, the test data folder will be transmitted to the remote device. Otherwise, there is no need to upload the current test data folder.
[0153] It should be pointed out that the way in which the test device verifies whether there is a folder on the remote device that is consistent with the test data folder is not unique. In one embodiment, the test device may traverse the test data folder previously transferred to the remote device and analyze whether there is a folder that is consistent with the current test data folder. If so, it indicates that the remote device already has a folder that is consistent with the test data folder.
[0154] In the above scheme, when transmitting the test data folder, it is necessary to verify whether the remote device already has the same test data folder as the current one, which can effectively avoid repeated uploading of test data.
[0155] In order to facilitate understanding of the technical solution of the present application, the present application is explained below in conjunction with a more detailed embodiment. Fig.11 , Fig.12 and Fig.13 When the test equipment performs the test task, it first obtains the test data and the test environment configuration parameters, first reads the current product line parameters in the test environment configuration parameters, and then verifies whether the current product line parameters match the preset product line database. In the case of mismatch, analyze whether the product line corresponding to the current product line parameters is a new product line. If it is a new product line, the current product line parameters are used as product line parameters and updated to the preset product line database. If it is not a new product line, an alarm prompt message is output for the user to verify and modify the environment file, that is, to modify the test environment configuration parameters. In the case of match, the current product line parameters are used as product line parameters. Then the current project name is read according to the test environment configuration parameters.
[0156] Verify whether the current project name matches the preset project database. If not, analyze whether the project corresponding to the current project name is a new project. If it is a new project, use the current project name as the project name and update it to the preset project database. If it is not a new project, output an alarm prompt message for the user to verify and modify the environment file, that is, modify the test environment configuration parameters. If it matches, use the current project name as the project name. Then read the current software version number according to the test environment configuration parameters.
[0157] Verify whether the current software version number matches the preset version database. If it does not match, analyze whether the software version corresponding to the current software version number is a new version. If it is a new version, use the current software version number as the software version number and update it to the preset version database. If it is not a new version, output an alarm prompt message for the user to verify and modify the environment file, that is, modify the test environment configuration parameters. If it matches, use the current software version number as the software version number. Then read the test level according to the test environment configuration parameters.
[0158] After obtaining the product line parameters, project name, software version number and test level, the test equipment creates an FTP path. First, the test equipment displays the login interface of the FTP server, receives the account and password entered by the user, and logs into the FTP server when the account and password match. At this time, the test equipment first detects whether there is a product line folder corresponding to the product line parameters (which can be named after the product line parameters). If there is no product line folder, a corresponding product line folder is created according to the product line parameters; if there is a product line folder, it is further checked whether there is a project folder corresponding to the project name in the product line folder (which can also be named after the project name).
[0159] If the project folder does not exist, a corresponding project folder is created under the product line folder according to the project name; if the project folder exists, further verify whether there is a version folder corresponding to the software version number under the project folder (it can also be named with the software version number). If the version folder does not exist, create a corresponding version folder with the software version number; if the version folder exists, the verification ends. Finally, the test equipment creates a data transmission path of product line parameters-project name-software version number, and the test data is written into the product line folder-project folder-version folder, that is, the test data obtained from the same product line, the same project and the same software version is written into the same folder to obtain a test data folder.
[0160] Finally, the test device verifies whether the test data folder is empty. If the test data folder is empty, it returns to re-acquire the next test data folder. If the test data folder is not empty, it further analyzes whether the test data folder is consistent with the folder in the FTP server. If it is inconsistent, it is transferred to the remote device to avoid repeated upload of test data.
[0161] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0162] Based on the same inventive concept, the embodiment of the present application also provides a data transmission device for implementing the data transmission method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations on the data transmission method above, and will not be repeated here.
[0163] See also Fig.14 , a data transmission device includes a parameter acquisition module 142, a path confirmation module 144 and a transmission module 146.
[0164] The parameter acquisition module 142 is used to obtain the test environment configuration parameters and test data; the path confirmation module 144 is used to determine the data transmission path according to the test environment configuration parameters; the transmission module 146 is used to transmit the test data to the remote device according to the data transmission path.
[0165] In some embodiments, the path confirmation module 144 is further used to determine the test state parameters according to the test environment configuration parameters; and determine the data transmission path according to the test state parameters.
[0166] In some embodiments, the path confirmation module 144 is also used to determine the product line parameters according to the test environment configuration parameters; when the product line parameters are confirmed, the project name is determined according to the test environment configuration parameters; when the project name is confirmed, the software version number is determined according to the test environment configuration parameters; when the software version number is confirmed, the test level is determined according to the test environment configuration parameters.
[0167] In some embodiments, the path confirmation module 144 is also used to determine the current product line parameters based on the test environment configuration parameters; when the current product line parameters match the preset product line database, the current product line parameters are used as product line parameters; when the current product line parameters do not match the preset product line database, it is determined whether the product line corresponding to the current product line parameters is a new product line; when the product line corresponding to the current product line parameters is a new product line, the current product line parameters are updated to the preset product line database, and the current product line parameters are used as product line parameters; when the product line corresponding to the current product line parameters is not a new product line, an alarm prompt message is output.
[0168] In some embodiments, the path confirmation module 144 is also used to determine the current project name based on the test environment configuration parameters; when the current project name matches the preset project database, the current project name is used as the project name; when the current project name does not match the preset project database, it is determined whether the project corresponding to the current project name is a new project; when the project corresponding to the current project name is a new project, the current project name is updated to the preset project database, and the current project name is used as the project name; when the project corresponding to the current project name is not a new project, an alarm prompt message is output.
[0169] In some embodiments, the path confirmation module 144 is also used to determine the current software version number based on the test environment configuration parameters; when the current software version number matches the preset version database, the current software version number is used as the software version number; when the current software version number does not match the preset version database, it is determined whether the software version corresponding to the current software version number is a new version; when the software version corresponding to the current software version number is a new version, the current software version number is updated to the preset version database, and the current software version number is used as the software version number; when the software version corresponding to the current software version number is not a new version, an alarm prompt message is output.
[0170] In some embodiments, the path confirmation module 144 is also used to determine whether there is a product line folder corresponding to the product line parameters; if there is a product line folder, determine whether there is a project folder corresponding to the project name in the product line folder; if there is a project folder in the product line folder, determine whether there is a version folder corresponding to the software version number in the project folder; if there is a version folder in the project folder, determine the data transmission path based on the product line folder, project folder, version folder and test level.
[0171] In some embodiments, the transmission module 146 is further used to determine a test data folder according to the data transmission path and the test data; if the test data folder is not empty, the test data folder is transmitted to the remote device.
[0172] In some embodiments, the transmission module 146 is also used to determine whether there is a folder consistent with the test data folder on the remote device when the test data folder is not empty; if there is no folder consistent with the test data folder on the remote device, the test data folder is transmitted to the remote device.
[0173] Each module in the above data transmission device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0174] The above-mentioned data transmission device first obtains the test environment configuration parameters and test data, then determines the data transmission path according to the test environment configuration parameters, and finally transmits the test data to the remote device through the data transmission path. This solution automatically obtains the test data source and the test environment configuration parameters, and configures the data transmission path, and finally automatically transmits the test data to the remote device according to the data transmission path. The transmission of test data does not require manual parameters from the user, which can effectively alleviate the occurrence of transmission errors, thereby improving the transmission accuracy of test data.
[0175] In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data transmission method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0176] Those skilled in the art will understand that Fig.15 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0177] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0178] Acquire test environment configuration parameters and test data; determine the data transmission path according to the test environment configuration parameters; and transmit the test data to a remote device according to the data transmission path.
[0179] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0180] Acquire test environment configuration parameters and test data; determine the data transmission path according to the test environment configuration parameters; and transmit the test data to a remote device according to the data transmission path.
[0181] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0182] Acquire test environment configuration parameters and test data; determine the data transmission path according to the test environment configuration parameters; and transmit the test data to a remote device according to the data transmission path.
[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0184] The above-mentioned computer device, storage medium and computer program product first obtain the test environment configuration parameters and test data, then determine the data transmission path according to the test environment configuration parameters, and finally transmit the test data to the remote device through the data transmission path. This solution automatically obtains the test data source and the test environment configuration parameters, and configures the data transmission path, and finally automatically transmits the test data to the remote device according to the data transmission path. The transmission of test data does not require manual parameters from the user, which can effectively alleviate the occurrence of transmission errors, thereby improving the transmission accuracy of test data.
[0185] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. A data transmission method, characterized in that: include: Obtain test environment configuration parameters and test data; Determining a data transmission path according to the test environment configuration parameters; The test data is transmitted to a remote device according to the data transmission path.
2. The data transmission method according to claim 1, characterized in that: Determining the data transmission path according to the test environment configuration parameters includes: Determining test status parameters according to the test environment configuration parameters; A data transmission path is determined according to the test status parameters.
3. The data transmission method according to claim 2, characterized in that: The test status parameters include at least one of a product line parameter, a project name, a software version number, and a test level.
4. The data transmission method according to claim 2, characterized in that: Determining the test status parameters according to the test environment configuration parameters includes: Determine product line parameters according to the test environment configuration parameters; When the product line parameters are confirmed, the project name is determined according to the test environment configuration parameters; When the project name is confirmed, the software version number is determined according to the test environment configuration parameters; When the software version number is confirmed, the test level is determined according to the test environment configuration parameters.
5. The data transmission method according to claim 4, characterized in that: Determining product line parameters according to the test environment configuration parameters includes: Determine the current product line parameters according to the test environment configuration parameters; When the current product line parameters match the preset product line database, the current product line parameters are used as product line parameters; If the current product line parameters do not match the preset product line database, determining whether the product line corresponding to the current product line parameters is a new product line; When the product line corresponding to the current product line parameters is a new product line, the current product line parameters are updated to the preset product line database, and the current product line parameters are used as product line parameters; When the product line corresponding to the current product line parameters is not a new product line, an alarm prompt message is output.
6. The data transmission method according to claim 4, characterized in that: Determining the project name according to the test environment configuration parameters includes: Determine the current project name according to the test environment configuration parameters; If the current project name matches the preset project database, the current project name is used as the project name; If the current project name does not match the preset project database, determining whether the project corresponding to the current project name is a new project; If the project corresponding to the current project name is a new project, the current project name is updated to the preset project database, and the current project name is used as the project name; When the project corresponding to the current project name is not a new project, an alarm prompt message is output.
7. The data transmission method according to claim 4, characterized in that: Determining the software version number according to the test environment configuration parameters includes: Determine the current software version number according to the test environment configuration parameters; If the current software version number matches the preset version database, the current software version number is used as the software version number; If the current software version number does not match the preset version database, determining whether the software version corresponding to the current software version number is a new version; If the software version corresponding to the current software version number is a new version, the current software version number is updated to the preset version database, and the current software version number is used as the software version number; When the software version corresponding to the current software version number is not a new version, an alarm prompt message is output.
8. The data transmission method according to any one of claims 4 to 7, characterized in that: Determining the data transmission path according to the test state parameter includes: Determining whether there is a product line folder corresponding to the product line parameter; If the product line folder exists, determining whether there is a project folder corresponding to the project name in the product line folder; If the project folder exists in the product line folder, determining whether there is a version folder corresponding to the software version number in the project folder; When the version folder exists in the project folder, a data transmission path is determined according to the product line folder, the project folder, the version folder and the test level.
9. The data transmission method according to claim 8, characterized in that: After determining whether there is a product line folder corresponding to the product line parameter, the method further includes: When the product line folder does not exist, after creating the product line folder according to the product line parameters, the step of determining whether there is a project folder corresponding to the project name in the product line folder is performed.
10. The data transmission method according to claim 8, characterized in that: After determining whether there is a project folder corresponding to the project name in the product line folder, the method further includes: When the project folder does not exist in the product line folder, after creating the project folder according to the project name, the step of determining whether there is a version folder corresponding to the software version number in the project folder is performed.
11. The data transmission method according to claim 8, characterized in that: After determining whether there is a version folder corresponding to the software version number in the project folder, the method further includes: When the version folder does not exist in the project folder, after creating a version folder according to the software version number, the step of determining the data transmission path according to the product line folder, the project folder, the version folder and the test level is performed.
12. The data transmission method according to any one of claims 1 to 7, characterized in that: The transmitting the test data to a remote device according to the data transmission path includes: Determine a test data folder according to the data transmission path and the test data; If the test data folder is not empty, the test data folder is transmitted to a remote device.
13. The data transmission method according to claim 12, characterized in that: When the test data folder is not empty, transmitting the test data folder to a remote device includes: If the test data folder is not empty, determining whether a folder consistent with the test data folder exists on the remote device; In the case that the remote device does not have a folder that is consistent with the test data folder, the test data folder is transmitted to the remote device.
14. A data transmission device, characterized in that: include: Parameter acquisition module, used to obtain test environment configuration parameters and test data; A path confirmation module, used to determine a data transmission path according to the test environment configuration parameters; The transmission module is used to transmit the test data to a remote device according to the data transmission path.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the data transmission method according to any one of claims 1 to 13 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 13 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 13 are implemented.
