Automatic configuration setting system for a detection system and method thereof

By using Python and JSON configuration files on virtual hosts and the device under test, the server and testing environment are automatically configured, solving the problem of low testing efficiency caused by frequent updates to the testing environment and tools, and achieving convenient maintenance and improved efficiency.

CN117312118BActive Publication Date: 2026-07-21INVENTEC PUDONG TECH CORPOARTION +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INVENTEC PUDONG TECH CORPOARTION
Filing Date
2022-06-16
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In existing technologies, the testing environment and testing tools need to be modified and updated according to different servers and devices under test, resulting in poor testing efficiency.

Method used

The configuration files, using Python and JSON programming languages, are used to establish and configure the server and testing environment on the virtual host and the device under test. The relevant information is transmitted to the server via a file transfer protocol to achieve automatic configuration settings.

Benefits of technology

It enables convenient maintenance of the testing environment and testing tools, and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117312118B_ABST
    Figure CN117312118B_ABST
Patent Text Reader

Abstract

An automatic configuration setting system and method suitable for a detection system, a virtual host stores a Python language host side configuration file and a JSON program language host side configuration file to establish and configure a server, a device under test stores a Python language device side configuration file and a JSON program language device side configuration file to establish and configure a detection environment, the server receives a host side detection service program corresponding to function information from a file transfer protocol server to provide a detection service, the device under test receives at least one test tool program corresponding to project information from the file transfer protocol server, the server converts basic information into a URL through the host side detection service program, and the device under test starts a browser to connect to a detection webpage corresponding to the URL, thereby achieving the technical effect of providing an automatic configuration setting server and the device under test to conveniently maintain a test environment and a test tool to improve detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] An automatic configuration setting system and method thereof, particularly an automatic configuration setting system and method thereof that uses Python configuration files and JSON configuration files to automatically configure the server and the device under test. Background Technology

[0002] The process of testing the device under test through the server needs to take into account different servers and different devices under test, which means that the test environment and test tools need to be different as the requirements change. This leads to the need for corresponding modifications and updates to the test environment and test tools. How to conveniently maintain the test environment and test tools is the technical problem that this invention needs to solve.

[0003] In summary, it is evident that existing technologies have long suffered from the problem of poor testing efficiency due to the need for modifications and updates to testing environments and tools based on different servers and devices under test. Therefore, it is necessary to propose improved technical methods to address this issue. Summary of the Invention

[0004] In view of the problem that existing technologies require modification and updates to the testing environment and tools based on different servers and different devices under test, resulting in poor testing efficiency, this invention discloses an automatic configuration setting system and method suitable for testing systems, wherein:

[0005] The automatic configuration and setting system for testing systems disclosed in this invention includes: a File Transfer Protocol (FTP) server, a Virtual Machine (VM), and a Unit Under Test (UUT). The virtual machine further includes: a storage module and a server configuration module; the UUT further includes: a device storage module, a testing environment configuration module, a device transmission module, and a device execution module.

[0006] The file transfer protocol server stores multiple host-side testing service programs, each corresponding to functional information, and multiple testing tool programs, each corresponding to project information.

[0007] The virtual host's storage module stores Python host configuration files and JSON (JavaScript Object Notation) host configuration files; and the virtual host's server configuration module creates and configures the server in the virtual host based on the Python and JSON host configuration files when the virtual host triggers a creation command.

[0008] The server provides functional information to the file transfer protocol server to receive the host detection service program corresponding to the functional information from the file transfer protocol server; the server executes the host detection service program to provide detection services; the server receives basic information, converts the basic information into a Uniform Resource Locator (URL) through the host detection service program, and transmits the URL.

[0009] The device storage module of the device under test stores a Python language device-side configuration file and a JSON programming language device-side configuration file; the device testing environment configuration module of the device under test establishes and configures the testing environment in the device under test based on the Python language device-side configuration file and the JSON programming language device-side configuration file when the device under test triggers the establishment command; the device transmission module of the device under test provides project information to the file transfer protocol server and receives at least one test tool program corresponding to the project information from the file transfer protocol server; and the device execution module of the device under test executes the test tool program, establishes a connection with the server, provides basic information to the server, receives the URL from the server, and launches a browser to connect to the test webpage corresponding to the URL.

[0010] The automatic configuration setting method for a detection system disclosed in this invention includes the following steps:

[0011] First, the file transfer protocol server stores multiple host-side detection service programs, each corresponding to functional information, and multiple test tool programs, each corresponding to project information. Next, the virtual host stores Python and JSON host-side configuration files. Then, when the virtual host triggers a creation command, it creates and configures the server based on the Python and JSON host-side configuration files. Next, the server provides functional information to the file transfer protocol server to receive the corresponding host-side detection service program. Then, the server executes the host-side detection service program to provide detection services. Finally, the device under test stores... The system contains both Python and JSON language device-side configuration files. When the device under test (DUT) triggers a setup command, the system establishes and configures the testing environment on the DUT based on these configuration files. Next, the DUT provides project information to a file transfer protocol server to receive at least one test tool program corresponding to the project information. The DUT then executes the test tool program and establishes a connection with the server. The DUT provides basic information to the server. The server then converts the basic information into a URL using a host-side testing service program. The server then transmits the URL to the DUT. Finally, the DUT launches a browser and connects to the testing webpage corresponding to the URL.

[0012] The system and method disclosed in this invention are as described above. The difference from the prior art is that the virtual host stores a Python language host-side configuration file and a JSON programming language host-side configuration file to establish and configure the server. The device under test stores a Python language device-side configuration file and a JSON programming language device-side configuration file to establish and configure the testing environment. The server receives a host-side testing service program corresponding to the functional information from a file transfer protocol server to provide testing services. The device under test receives at least one testing tool program corresponding to the project information from a file transfer protocol server. The server converts the basic information into a URL through the host-side testing service program. The device under test launches a browser and connects to the testing webpage corresponding to the URL.

[0013] Through the above-mentioned technical means, the present invention can achieve the technical effect of providing an automatic configuration setting server and convenient maintenance of the test environment and test tools by the device under test, thereby improving the testing efficiency. Attached Figure Description

[0014] Figure 1 The diagram illustrates an automatic configuration setting system applicable to a detection system according to the present invention.

[0015] Figure 2A as well as Figure 2B The diagram illustrates a method flowchart for the automatic configuration setting method applicable to a detection system according to the present invention.

[0016] The annotations in the attached figures are explained as follows:

[0017] 10 File Transfer Protocol Server

[0018] 20 Virtual Hosts

[0019] 21 Storage Module

[0020] 22 Server Configuration Module

[0021] 30 Test Devices

[0022] 31 Device storage module

[0023] 32. Detection Environment Configuration Module

[0024] 33 Device Transmission Module

[0025] 34 Device Execution Module

[0026] Step 101: The file transfer protocol server stores multiple host-side detection service programs, each corresponding to functional information, and multiple test tool programs, each corresponding to project information.

[0027] Step 102: The virtual host stores Python language host-side configuration files and JSON programming language host-side configuration files.

[0028] Step 103: When the virtual host triggers the creation command, the server is created and configured in the virtual host according to the Python host configuration file and the JSON host configuration file.

[0029] Step 104: The server provides functional information to the file transfer protocol server in order to receive the host-side detection service program corresponding to the functional information from the file transfer protocol server.

[0030] Step 105: The server executes the host-side detection service program to provide detection services.

[0031] Step 106: The device under test stores a Python language device-side configuration file and a JSON programming language device-side configuration file.

[0032] Step 107: When the device under test triggers the setup command, the testing environment is established and configured in the device under test according to the Python language device-side configuration file and the JSON programming language device-side configuration file.

[0033] Step 108: The device under test provides project information to the file transfer protocol server in order to receive at least one test tool program corresponding to the project information from the file transfer protocol server.

[0034] Step 109: The device under test executes the test tool program and establishes a connection with the server.

[0035] Step 110: The device under test provides basic information to the server.

[0036] Step 111: The server converts basic information into a URL through the host-side detection service program.

[0037] Step 112: The server sends the URL to the device under test.

[0038] Step 113: The device under test starts its browser and connects to the test webpage corresponding to the URL. Detailed Implementation

[0039] The following will describe in detail the implementation of the present invention with reference to the accompanying drawings and embodiments, so that the process of how the present invention uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0040] The following section will first describe the automatic configuration and setting system for detection systems disclosed in this invention, and please refer to [reference needed]. Figure 1 As shown, Figure 1 The diagram illustrates an automatic configuration setting system applicable to a detection system according to the present invention.

[0041] The automatic configuration setting system for testing systems disclosed in this invention includes: a File Transfer Protocol (FTP) server 10, a Virtual Machine (VM) 20, and a Unit Under Test (UUT) 30. The Virtual Machine 20 further includes: a storage module 21 and a server configuration module 22. The Unit Under Test 30 further includes: a device storage module 31, a testing environment configuration module 32, a device transmission module 33, and a device execution module 34.

[0042] The file transfer protocol server 10 stores multiple host-side detection service programs, each corresponding to functional information, such as a version number. This is merely an example and does not limit the scope of application of the present invention. The file transfer protocol server 10 also stores multiple testing tool programs, each corresponding to project information, such as a product project name. This is merely an example and does not limit the scope of application of the present invention.

[0043] It is worth noting that there is a one-to-one correspondence between the host-side detection service program and the functional information, meaning that one piece of functional information will only correspond to one host-side detection service program. However, there can be a one-to-one or many-to-one correspondence between the test tool program and the project information. That is, one test tool program can correspond to only one piece of project information, or multiple test tool programs can correspond to one piece of project information.

[0044] The storage module 21 of the virtual host 20 stores the Python language host-side configuration file (i.e., a file with the extension .py) and the JSON (JavaScript Object Notation) programming language host-side configuration file (i.e., a file with the extension .json).

[0045] The server configuration module 22 of virtual host 20 is used to create and configure the server in the virtual host when the tester executes Python to trigger the creation command of virtual host 20. The server configuration module 22 of virtual host 20 can create and configure the server in the virtual host according to the host configuration file of Python language and host configuration file of JSON programming language.

[0046] Next, the server can obtain the function information based on the Python host configuration file and the JSON host configuration file and provide the function information to the file transfer protocol server 10. The server can then receive the host detection service program corresponding to the function information from the file transfer protocol server 10. After receiving the host detection service program from the file transfer protocol server 10, the server executes the host detection service program to provide detection services.

[0047] The device storage module 31 of the device under test 30 stores the device-side configuration file of Python language (i.e., a file with the extension .py) and the device-side configuration file of JSON programming language (i.e., a file with the extension .json).

[0048] The detection environment configuration module 32 of the device under test 30 can establish and configure the detection environment in the device under test 30 according to the Python language device-side configuration file and the JSON program language device-side configuration file when the tester executes Python to trigger the establishment command.

[0049] Next, the device transmission module 33 of the device under test 30 can obtain project information and provide the project information to the file transfer protocol server 10 based on the Python language device-side configuration file and the JSON programming language device-side configuration file. The device under test 30 can receive at least one test tool program corresponding to the project information from the file transfer protocol server 10.

[0050] After the device transmission module 33 of the device under test 30 receives at least one test tool program from the file transfer protocol server 10, the device execution module 34 of the device under test 30 executes the test tool program and establishes a connection with the server. The device under test 30 can establish a connection with the server through wired transmission or wireless transmission. The aforementioned wired transmission methods are, for example, cable networks, fiber optic networks, etc., and the aforementioned wireless transmission methods are, for example, Wi-Fi, mobile communication networks, etc. These are merely examples and are not intended to limit the scope of application of the present invention.

[0051] The device under test 30 sends an HTTP request to provide basic information to the server. The basic information is, for example, fixture ID, station ID, etc. This is only an example and does not limit the scope of application of the present invention. After receiving the basic information, the server converts the basic information into a Uniform Resource Locator (URL) through the host-side detection service program and sends the URL back to the device under test 30.

[0052] After the device execution module 34 of the device under test 30 receives the URL from the server, the device under test 30 can start a browser to connect to the detection webpage corresponding to the URL, and the testing personnel can then perform subsequent testing operations, such as scanning barcodes, etc. This is only an example and is not intended to limit the scope of application of the present invention.

[0053] If the server and the device under test 30 encounter a connection problem with the file transfer protocol server 10, such as an incorrect username or password configuration, the server and the device under test 30 will directly report the error message and terminate the connection.

[0054] When the server fails to download a file from the file transfer protocol server 10, it will temporarily assume that the failure is due to connection fluctuations. The server will record the error information to the log file and repeat the operation N times after the download is completed, where N is a positive integer less than or equal to 3. If the server still fails to download the file after repeating the download N times, it will report the corresponding error information and terminate the process.

[0055] When the device under test 30 fails to download one or more test tool programs from the file transfer protocol server 10, the device under test 30 will record the error information to the log file, without affecting the remaining downloads, subsequent HTTP requests, and browser launches. When the HTTP request fails to be sent, the device under test 30 will repeat the operation N times, where N is a positive integer less than or equal to 3. If the device under test 30 still fails to download one or more test tool programs after repeating the download N times, it will report the corresponding error information and terminate the process.

[0056] Next, the operation method of the present invention will be described below, and please refer to the following: Figure 2A as well as Figure 2B As shown, Figure 2A as well as Figure 2B The diagram illustrates a method flowchart for the automatic configuration setting method applicable to a detection system according to the present invention.

[0057] The automatic configuration setting method for a detection system disclosed in this invention includes the following steps:

[0058] First, the file transfer protocol server stores multiple host-side detection service programs, each corresponding to functional information, and multiple test tool programs, each corresponding to project information (step 101); next, the virtual host stores Python language host-side configuration files and JSON language host-side configuration files (step 102); next, when the virtual host triggers a creation command, it creates and configures the server in the virtual host according to the Python language host-side configuration files and JSON language host-side configuration files (step 103); next, the server provides functional information to the file transfer protocol server to receive the host-side detection service program corresponding to the functional information from the file transfer protocol server (step 104); next, the server executes the host-side detection service program to provide detection services (step 105); next, the device under test stores Python language configuration files... The device under test (DUT) first generates a configuration file for the device and a JSON programming language configuration file for the device (step 106); then, when the DUT triggers the setup command, it establishes and configures the testing environment in the DUT according to the Python language device configuration file and the JSON programming language device configuration file (step 107); then, the DUT provides project information to the file transfer protocol server to receive at least one test tool program corresponding to the project information from the file transfer protocol server (step 108); then, the DUT executes the test tool program and establishes a connection with the server (step 109); then, the DUT provides basic information to the server (step 110); then, the server converts the basic information into a URL through the host-side testing service program (step 111); then, the server sends the URL to the DUT (step 112); finally, the DUT launches a browser and connects to the testing webpage corresponding to the URL (step 113).

[0059] In summary, the difference between this invention and the prior art lies in that the virtual host stores a Python host-side configuration file and a JSON programming language host-side configuration file to establish and configure the server, the device under test stores a Python device-side configuration file and a JSON programming language device-side configuration file to establish and configure the testing environment, the server receives a host-side testing service program corresponding to the functional information from the file transfer protocol server to provide testing services, the device under test receives at least one testing tool program corresponding to the project information from the file transfer protocol server, the server converts the basic information into a URL through the host-side testing service program, and the device under test launches a browser to connect to the testing webpage corresponding to the URL.

[0060] This technology can solve the problem of poor testing efficiency caused by the need for corresponding modifications and updates to the testing environment and testing tools based on different servers and different devices under test in existing technologies. It can then provide the technical effect of automatically configuring and setting the server and device under test to facilitate the maintenance of the testing environment and testing tools, thereby improving testing efficiency.

[0061] While the embodiments disclosed in this invention are as described above, the content is not intended to directly limit the scope of patent protection of this invention. Any person skilled in the art may make minor modifications to the form and details of the implementation without departing from the spirit and scope of this invention. The scope of patent protection of this invention shall still be determined by the scope defined in the appended claims.

Claims

1. An automatic configuration setting system suitable for a detection system, comprising: The File Transfer Protocol (FTP) server stores multiple host-side testing service programs, each corresponding to functional information, and multiple testing tool programs, each corresponding to project information. Virtual Machine (VM), the virtual machine further comprising: The storage module stores the host-side configuration files for the Python language and the host-side configuration files for the JSON (JavaScript Object Notation) programming language. and The server configuration module, when the virtual host triggers the creation command, creates and configures the server in the virtual host according to the Python language host-side configuration file and the JSON programming language host-side configuration file; The server provides the functional information to the file transfer protocol server to receive the host detection service program corresponding to the functional information from the file transfer protocol server; the server executes the host detection service program to provide detection service; the server receives basic information, converts the basic information into a Uniform Resource Locator (URL) through the host detection service program, and transmits the URL. The device under test (UUT) further comprises: The device storage module stores device-side configuration files in Python and JSON programming languages. The detection environment configuration module, when the device under test triggers the establishment command, establishes and configures the detection environment in the device under test according to the Python language device-side configuration file and the JSON programming language device-side configuration file; The device transmission module provides the project information to the file transfer protocol server to receive at least one test tool program corresponding to the project information from the file transfer protocol server; and The device execution module executes the test tool program and establishes a connection with the server, provides basic information to the server, receives the URL from the server, and launches a browser to connect to the test webpage corresponding to the URL.

2. The automatic configuration setting system for a detection system as described in claim 1, wherein the basic information includes fixture ID and station ID.

3. The automatic configuration setting system for a detection system as described in claim 1, wherein if a connection failure occurs between the device under test and the server and the file transfer protocol server, the device under test and the server directly report error information and terminate the process.

4. The automatic configuration setting system for a detection system as described in claim 1, wherein when the server fails to download a file from the file transfer protocol server, it records the error information to a log file (log) and repeats the operation N times after the download is completed, where N is a positive integer less than or equal to 3. If the server still fails to download the file after repeating the download N times, it reports the corresponding error information and terminates the process.

5. The automatic configuration setting system for a testing system as described in claim 1, wherein when the device under test fails to download one or more test tool programs from the file transfer protocol server, the device under test records error information to a log file; when the HTTP request fails to send, the device under test repeats the operation N times, where N is a positive integer less than or equal to 3; if the device under test still fails to download one or more test tool programs after repeating the download N times, it reports the corresponding error information and terminates the process.

6. An automatic configuration setting method suitable for a detection system, comprising the following steps: The file transfer protocol server stores multiple host-side detection service programs, each corresponding to functional information, and multiple test tool programs, each corresponding to project information. The virtual host stores Python language host-side configuration files and JSON programming language host-side configuration files; When the virtual host triggers the creation command, the server is created and configured in the virtual host according to the Python language host configuration file and the JSON programming language host configuration file. The server provides the functional information to the file transfer protocol server in order to receive the host-side detection service program corresponding to the functional information from the file transfer protocol server. The server executes the host-side detection service program to provide detection services; The device under test stores a Python language device-side configuration file and a JSON programming language device-side configuration file; When the device under test triggers the establishment command, a detection environment is established and configured in the device under test according to the Python language device-side configuration file and the JSON programming language device-side configuration file. The device under test provides the project information to the file transfer protocol server in order to receive at least one test tool program corresponding to the project information from the file transfer protocol server; The device under test executes the test tool program and establishes a connection with the server; The device under test provides basic information to the server. The server converts the basic information into a URL through the host-side detection service program; The server transmits the URL to the device under test; and The device under test launches a browser and connects to the detection webpage corresponding to the URL.

7. The automatic configuration setting method for a detection system as described in claim 6, wherein the basic information includes fixture ID and station ID.

8. The automatic configuration setting method for a detection system as described in claim 6, wherein if a connection failure occurs between the device under test and the server and the file transfer protocol server, the device under test and the server directly report error information and terminate the process.

9. The automatic configuration setting method for a detection system as described in claim 6, wherein when the server fails to download a file from the file transfer protocol server, it records the error information to a log file (log) and repeats the operation N times after the download is completed, where N is a positive integer less than or equal to 3. If the server still fails to download the file after repeating the download N times, it reports the corresponding error information and terminates the process.

10. The automatic configuration setting method for a detection system as described in claim 6, wherein when the device under test fails to download one or more test tool programs from the file transfer protocol server, the device under test records error information to a log file; when the HTTP request fails to send, the device under test repeats the operation N times, where N is a positive integer less than or equal to 3; if the device under test still fails to download one or more test tool programs after repeating the download N times, it reports the corresponding error information and terminates the process.