CN117215953A - Verification method and device for equipment configuration information, storage medium and electronic equipment - Google Patents

Verification method and device for equipment configuration information, storage medium and electronic equipment Download PDF

Info

Publication number
CN117215953A
CN117215953A CN202311265514.5A CN202311265514A CN117215953A CN 117215953 A CN117215953 A CN 117215953A CN 202311265514 A CN202311265514 A CN 202311265514A CN 117215953 A CN117215953 A CN 117215953A
Authority
CN
China
Prior art keywords
configuration information
equipment
test
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311265514.5A
Other languages
Chinese (zh)
Inventor
张涵
李道童
艾山彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311265514.5A priority Critical patent/CN117215953A/en
Publication of CN117215953A publication Critical patent/CN117215953A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a method and a device for verifying equipment configuration information, a storage medium and electronic equipment, wherein the method comprises the following steps: under the condition that the equipment configuration information of the test equipment is determined to be in a state to be updated, an information acquisition request is sent to acquire the latest equipment configuration information; updating the equipment configuration information by using the latest equipment configuration information to obtain target equipment configuration information; testing the operation of the target application program by utilizing the configuration information of the target equipment to obtain a test result; and verifying the target device configuration information based on the test result. The application solves the problem that the accuracy of the test target application program cannot be ensured due to the lack of verification of the equipment configuration information when the equipment configuration information of the test equipment is updated manually in the related technology, thereby achieving the effects of effectively verifying the updated equipment configuration information of the test equipment and improving the accuracy of the test target application program.

Description

Verification method and device for equipment configuration information, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of computers, in particular to a verification method and device for equipment configuration information, a storage medium and electronic equipment.
Background
In the software testing process, the device configuration information of the testing device has an important influence on the testing result. However, the number of test devices is large, and the machine information is complex, and the management and maintenance costs of the device configuration information are high due to variations of technicians and the like. The traditional method is to manually input equipment configuration information, and periodically update the equipment configuration information. For large-scale test systems or frequent configuration updates, manual operations are not efficient enough and are prone to human error. Second, the device configuration information of the test device may be scattered across multiple configuration files or records, and the manual update process may miss or misplace certain information, resulting in test failure or inaccuracy. The problem that the accuracy of the test target application program cannot be ensured is caused by the fact that the verification of the device configuration information of the test device is lacking in the manual updating of the device configuration information of the test device.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the application provides a method and a device for verifying equipment configuration information, a storage medium and electronic equipment, which at least solve the problem that the accuracy of a test target application program cannot be ensured due to the lack of verification of the equipment configuration information when the equipment configuration information of test equipment is updated manually in the related technology.
According to an embodiment of the present application, there is provided a verification method of device configuration information, applied to a test device, including: transmitting an information acquisition request to acquire latest equipment configuration information under the condition that the equipment configuration information of the test equipment is in a state to be updated, wherein the test equipment is used for testing the running of a target application program; updating the device configuration information by using the latest device configuration information to obtain target device configuration information; testing the operation of the target application program by using the configuration information of the target equipment to obtain a test result; and verifying the target equipment configuration information based on the test result.
In an exemplary embodiment, in a case where it is determined that the device configuration information of the test device is in a state to be updated, sending an information acquisition request to acquire the latest device configuration information includes: collecting a plurality of configuration information of the test equipment through an information collecting tool, wherein the tool type of the information collecting tool is matched with an operating system applied by the test equipment; performing a cleaning operation on the plurality of configuration information to obtain the equipment configuration information, wherein the cleaning operation comprises removing repeated information, abnormal information and missing information in the plurality of configuration information; storing the equipment configuration information into a text file by using a preset script file, wherein the preset script file is matched with the operating system; running the preset script file according to a timing task to obtain the equipment configuration information from the text file, and comparing the equipment configuration information with historical equipment configuration information to obtain a first comparison result, wherein the time period in the timing task is matched with the operating system; transmitting the information acquisition request to a configuration information source under the condition that the equipment configuration information is determined to be in a state to be updated based on the first comparison result; and receiving the latest equipment configuration information sent by the configuration information source in response to the information acquisition request.
In an exemplary embodiment, after performing a cleaning operation on a plurality of the configuration information to obtain the device configuration information, the method further includes: converting the data format of the equipment configuration information to obtain code data supporting a machine learning algorithm; and inputting the code data into a target model to obtain information in a state to be updated in the equipment configuration information output by the target model, wherein the model type of the target model is matched with the information type of the equipment configuration information.
In an exemplary embodiment, updating the device configuration information with the latest device configuration information to obtain target device configuration information includes: the latest equipment configuration information is imported into a test system to update the equipment configuration information in the test system to obtain target equipment configuration information, wherein the test system for importing the latest equipment configuration information into the test equipment comprises at least one of the following components: and importing newly added information in the latest equipment configuration information into the test system, importing information which is different from the equipment configuration information in the latest equipment configuration information into the test system, replacing the equipment configuration information with the latest equipment configuration information, and performing information interaction with the test equipment by the test system.
In an exemplary embodiment, the testing the operation of the target application program by using the configuration information of the target device to obtain a test result includes: testing the operation of the target application program through the testing system to obtain a testing result, wherein the testing system comprises the configuration information of the target equipment, and the testing system comprises the following steps: the test system uses the target device configuration information to execute tasks in the target application program.
In one exemplary embodiment, verifying the target device configuration information based on the test result includes: comparing the test result with the historical test result to obtain a second comparison result; under the condition that the matching degree of the test result and the history test result is larger than a preset threshold value, the second comparison result shows that the configuration information of the target equipment is in a normal state; and under the condition that the second comparison result shows that the matching degree of the test result and the historical test result is smaller than a preset threshold value, determining that the target equipment configuration information is in an abnormal state, and updating the equipment configuration information again.
In an exemplary embodiment, after verifying the target device configuration information based on the test result, the method further includes: storing the test data and the test environment corresponding to the test result into a database in the test equipment; and circularly detecting whether the configuration information of the target equipment is in a state to be updated.
According to another embodiment of the present application, there is provided an apparatus for verifying device configuration information, including: a first obtaining module, configured to send an information obtaining request to obtain latest equipment configuration information when it is determined that the equipment configuration information of the test equipment is in a state to be updated, where the test equipment is used to test operation of a target application program; the first updating module is used for updating the device configuration information by utilizing the latest device configuration information to obtain target device configuration information; the first testing module is used for testing the operation of the target application program by utilizing the configuration information of the target equipment to obtain a testing result; and the first verification module is used for verifying the target equipment configuration information based on the test result.
In an exemplary embodiment, the first obtaining module includes a first collecting unit, configured to collect, by using an information collecting tool, a plurality of configuration information of the test device, where a tool type of the information collecting tool is matched with an operating system to which the test device is applied; a first cleaning unit, configured to perform a cleaning operation on the plurality of configuration information to obtain the device configuration information, where the cleaning operation includes removing duplicate information, abnormal information, and missing information in the plurality of configuration information; the first storage unit is used for storing the equipment configuration information into a text file by using a preset script file, wherein the preset script file is matched with the operating system; the first comparison unit is used for running the preset script file according to a timing task to obtain the equipment configuration information from the text file, and comparing the equipment configuration information with the historical equipment configuration information to obtain a first comparison result, wherein the time period in the timing task is matched with the operating system; a first sending unit, configured to send the information acquisition request to a configuration information source when it is determined that the device configuration information is in a state to be updated based on the first comparison result; and the first receiving unit is used for receiving the latest equipment configuration information sent by the configuration information source in response to the information acquisition request.
In an exemplary embodiment, the first obtaining unit further includes a first converting unit, configured to perform data format conversion on the device configuration information to obtain code data supporting a machine learning algorithm; and the first input unit is used for inputting the code data into a target model to obtain information in a state to be updated in the equipment configuration information output by the target model, wherein the model type of the target model is matched with the information type of the equipment configuration information.
In an exemplary embodiment, the first updating module includes a first updating unit, configured to import the latest device configuration information into a test system to update the device configuration information in the test system to obtain target device configuration information, where the test system configured to import the latest device configuration information into the test device includes at least one of the following: and importing newly added information in the latest equipment configuration information into the test system, importing information which is different from the equipment configuration information in the latest equipment configuration information into the test system, replacing the equipment configuration information with the latest equipment configuration information, and performing information interaction with the test equipment by the test system.
In an exemplary embodiment, the first test module includes a first test unit, configured to test, by using the test system, the operation of the target application program to obtain a test result, where the test system includes the target device configuration information, and the test system tests the operation of the target application program includes: the test system uses the target device configuration information to execute tasks in the target application program.
In an exemplary embodiment, the first verification module includes a second comparison unit, configured to compare the test result with a historical test result to obtain a second comparison result; the first determining unit is used for determining that the configuration information of the target equipment is in a normal state under the condition that the matching degree of the test result and the history test result displayed by the second comparison result is larger than a preset threshold value; and the second determining unit is used for determining that the target equipment configuration information is in an abnormal state and updating the equipment configuration information again under the condition that the matching degree of the test result and the historical test result is smaller than a preset threshold value as shown by the second comparison result.
In an exemplary embodiment, the first verification module further includes a second storage unit, configured to store test data and a test environment corresponding to the test result in a database in the test device; and the first detection unit is used for circularly detecting whether the configuration information of the target equipment is in a state to be updated.
According to a further embodiment of the application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, under the condition that the equipment configuration information of the test equipment is determined to be in the state to be updated, the equipment configuration information is updated in time, the operation of the target application program is tested by utilizing the updated target equipment configuration information, and whether the target equipment configuration information is correct or not is verified based on the test result. The configuration information does not need to be updated manually, and the target configuration information can be verified. Therefore, the problem that the accuracy of the test target application program cannot be guaranteed due to the fact that verification of the equipment configuration information of the test equipment is lacking when the equipment configuration information of the test equipment is updated manually in the related technology can be solved, and the effect of effectively verifying the updated equipment configuration information of the test equipment and improving the accuracy of the test target application program is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a verification method of device configuration information according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of verifying device configuration information in accordance with an embodiment of the present application;
FIG. 3 is a flow chart of updating device configuration information in accordance with an embodiment of the present application;
FIG. 4 is a timing diagram for updating device configuration information in accordance with an embodiment of the present application;
fig. 5 is a block diagram of a device configuration information verification apparatus according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for verifying device configuration information in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for verifying device configuration information is provided, and fig. 2 is a flowchart of a method for verifying device configuration information according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S202, under the condition that the equipment configuration information of the test equipment is in a state to be updated, an information acquisition request is sent to acquire the latest equipment configuration information, wherein the test equipment is used for testing the running of a target application program;
step S204, updating the equipment configuration information by using the latest equipment configuration information to obtain target equipment configuration information;
step S206, testing the operation of the target application program by utilizing the configuration information of the target equipment to obtain a test result;
step S208, verifying the target device configuration information based on the test result.
The main body of execution of the above steps may be a specific processor set in a terminal, a server, a terminal or a server, or a processor or a processing device set relatively independently from the terminal or the server, but is not limited thereto.
The test equipment in this embodiment includes, but is not limited to, an oscilloscope, a logic analyzer, a vector network analyzer, a loop analyzer, and a battery simulator.
The device configuration information in this embodiment includes, but is not limited to, hardware information and software information of the test device, for example, version information of an operating system corresponding to the test device, a driver, a software package, a library function, a hard disk use case, and the like.
Optionally, the information collecting tool needs to transmit the latest device configuration information to the test device through a network and a data transmission protocol after obtaining the latest device configuration information, and the information collecting tool transmits the latest device configuration information including, but not limited to, the following protocols: text transfer protocol, secure copy protocol, hypertext transfer protocol. Thereby ensuring the integrity and accuracy of the transmission of the latest device configuration information.
Optionally, the test of the target application program in this embodiment includes, but is not limited to, detection of running performance of a processor corresponding to the target application program, detection of remaining space of a memory, detection of an environment upgrade of an operating system, detection of degradation refresh of the operating system, detection of transmission capability of a transmission device, and the like.
By the steps, under the condition that the equipment configuration information of the test equipment is determined to be in a state to be updated, the equipment configuration information is updated in time, the operation of the target application program is tested by utilizing the updated target equipment configuration information, and whether the target equipment configuration information is correct or not is verified based on a test result. The configuration information does not need to be updated manually, and the target configuration information can be verified. Therefore, the problem that the accuracy of the test target application program cannot be guaranteed due to the fact that verification of the equipment configuration information of the test equipment is lacking when the equipment configuration information of the test equipment is updated manually in the related technology can be solved, and the effect of effectively verifying the updated equipment configuration information of the test equipment and improving the accuracy of the test target application program is achieved.
In an exemplary embodiment, in a case where it is determined that the device configuration information of the test device is in a state to be updated, sending an information acquisition request to acquire the latest device configuration information includes: collecting a plurality of configuration information of the test equipment through an information collecting tool, wherein the tool type of the information collecting tool is matched with an operating system applied by the test equipment; performing a cleaning operation on the plurality of configuration information to obtain the equipment configuration information, wherein the cleaning operation comprises removing repeated information, abnormal information and missing information in the plurality of configuration information; storing the equipment configuration information into a text file by using a preset script file, wherein the preset script file is matched with the operating system; running the preset script file according to a timing task to obtain the equipment configuration information from the text file, and comparing the equipment configuration information with historical equipment configuration information to obtain a first comparison result, wherein the time period in the timing task is matched with the operating system; transmitting the information acquisition request to a configuration information source under the condition that the equipment configuration information is determined to be in a state to be updated based on the first comparison result; and receiving the latest equipment configuration information sent by the configuration information source in response to the information acquisition request.
Alternatively, in the present embodiment, different information collecting tools are used to obtain device configuration information of the test device according to different operating systems in the test device, where the information collecting tools include, but are not limited to, command lines in the operating system, third party libraries, and the like. For example, when the operating system used by the test device is a Windows system, the device configuration information of the test device may be obtained using a command line in a management tool in the Windows system; the operating system used in the test equipment is a Linux system, and the hardware list command line in the Linux system can be used for acquiring the equipment configuration information of the test equipment.
Optionally, the setting of the timing task corresponds to a type of operating system. For example, for a Windows system, a Windows task scheduler may be used to set the timed task; for Linux systems, the timed tasks may be set using cron's scheduled tasks.
Optionally, the operation of the preset script file may collect all device configuration information of a test device into a text file, and the operation of the preset script file may also compare the device configuration information with historical device configuration information to obtain a first comparison result.
Alternatively, in the present embodiment, the configuration information source includes, but is not limited to, a hardware information base of the test device, and an information management system of the test device.
According to the embodiment, the equipment configuration information is acquired at fixed time through the preset script file, and the equipment configuration information scattered in a plurality of configuration files or records is concentrated in one text file for comparison, so that the purpose of actively and automatically collecting the equipment configuration information from the test equipment for integrated analysis is achieved, and the efficiency and the accuracy of updating the equipment configuration information are improved.
In an exemplary embodiment, after performing a cleaning operation on a plurality of the configuration information to obtain the device configuration information, the method further includes: converting the data format of the equipment configuration information to obtain code data supporting a machine learning algorithm; and inputting the code data into a target model to obtain information in a state to be updated in the equipment configuration information output by the target model, wherein the model type of the target model is matched with the information type of the equipment configuration information.
Optionally, in the present embodiment, the data initial format of the device configuration information includes, but is not limited to, numerals, letters, characters. For example, processor model: i9-1200KS, memory support type: DDR5-4800, in order to make the machine learning algorithm process the data of the equipment configuration information, it can be converted into data types such as structural body, array, etc.
Alternatively, in this embodiment, the machine learning algorithm may be selected according to the information type of the device configuration information, the device type of the test device, and the test purpose of the target application program, including but not limited to a linear regression algorithm, a decision tree algorithm, a random forest algorithm, a support vector machine algorithm, a neural network algorithm, a time series analysis algorithm, and the like. For example, when the purpose of testing the target application program is to predict the failure time of the hardware corresponding to the target application program, a time sequence analysis algorithm may be selected to detect the device configuration information; when the purpose of testing the target application program is to evaluate the performance of the hardware corresponding to the target application program, the device configuration information can be detected by using a linear regression machine learning algorithm.
In the embodiment, the device configuration information is input into the target model for detection after format conversion, so that the purpose of monitoring the configuration information and ensuring the test quality is realized.
In an exemplary embodiment, updating the device configuration information with the latest device configuration information to obtain target device configuration information includes: the latest equipment configuration information is imported into a test system to update the equipment configuration information in the test system to obtain target equipment configuration information, wherein the test system for importing the latest equipment configuration information into the test equipment comprises at least one of the following components: and importing newly added information in the latest equipment configuration information into the test system, importing information which is different from the equipment configuration information in the latest equipment configuration information into the test system, replacing the equipment configuration information with the latest equipment configuration information, and performing information interaction with the test equipment by the test system.
Alternatively, in this embodiment, the test system may be connected to the test device through a command line as an external device, or may be an internal system of the test device. One test system can be connected with a plurality of test devices, or one test device corresponds to one test system.
Optionally, in the present embodiment, the updating includes, but is not limited to, supplementing new device configuration information, updating existing device configuration information, and the like. For example, updating the hard disk configuration of the test equipment from the traditional mechanical hard disk configuration to the solid state hard disk configuration; the processing performance of a processor of the test equipment is improved; increasing the configuration of the heat sink of the processor, etc.
According to the embodiment, the latest equipment configuration information is synchronized to the test system in real time, so that the purpose that the test system can use the target equipment configuration information to test is achieved, and the accuracy of a test result is improved.
In an exemplary embodiment, the testing the operation of the target application program by using the configuration information of the target device to obtain a test result includes: testing the operation of the target application program through the testing system to obtain a testing result, wherein the testing system comprises the configuration information of the target equipment, and the testing system comprises the following steps: the test system uses the target device configuration information to execute tasks in the target application program.
Optionally, in this embodiment, the operation of the target application program is tested, including, but not limited to, detection of the running performance of the processor corresponding to the target application program, detection of the remaining space of the memory, detection of the environment upgrade of the operating system, detection of the degradation refresh of the operating system, detection of the transmission capability of the transmission device, and so on. For example, the memory of the test device only remains 3GB, and the running of the target application program is not tested enough, so that the test result prompts the user to update the memory of the test device. According to the embodiment, the test equipment is updated in time through the test result, so that errors of the test equipment are avoided, and the purpose of reducing the test cost is achieved.
In one exemplary embodiment, verifying the target device configuration information based on the test result includes: comparing the test result with the historical test result to obtain a second comparison result; under the condition that the matching degree of the test result and the history test result is larger than a preset threshold value, the second comparison result shows that the configuration information of the target equipment is in a normal state; and under the condition that the second comparison result shows that the matching degree of the test result and the historical test result is smaller than a preset threshold value, determining that the target equipment configuration information is in an abnormal state, and updating the equipment configuration information again.
Optionally, in this embodiment, the preset threshold is related to the type of test equipment. For example, the higher the processor version of the test equipment, the greater the memory, and the greater the preset threshold. By comparing the device configuration information with the historical test result and updating the device configuration information in real time based on a preset threshold value, the aim of monitoring whether the target configuration information is compliant or not and improving the test accuracy is fulfilled.
In an exemplary embodiment, after verifying the target device configuration information based on the test result, the method further includes: storing the test data and the test environment corresponding to the test result into a database in the test equipment; and circularly detecting whether the configuration information of the target equipment is in a state to be updated. According to the embodiment, the test data and the test environment are stored in the database, the update state of the configuration information is continuously monitored, and the purpose of efficiently updating the configuration information of the equipment is achieved.
The application is illustrated below with reference to specific examples:
FIG. 3 is a flowchart of updating device configuration information according to an embodiment of the present application, as shown in FIG. 3, including the steps of:
s302, a database in the test equipment comprises equipment configuration information, wherein the equipment configuration information comprises, but is not limited to, hardware information such as a processor version, a memory size and the like;
S304, the information acquisition tool acquires equipment configuration information from the test equipment, wherein specific acquisition modes include, but are not limited to, serial ports, network ports, wireless networks, u-discs and the like;
s306, the equipment configuration information possibly comprises noise, abnormal values and missing values, so that repeated information, abnormal information and supplementary missing information in the equipment configuration information need to be removed, and the denoised equipment configuration information is stored in a text file by using a preset script file;
s308, converting the data format of the equipment configuration information to obtain code data supporting a machine learning algorithm; inputting code data into a target model, monitoring the updating state of equipment configuration information by the target model, and testing by a testing system according to the target equipment configuration information;
and S310, updating the configuration information of the target device to the test device.
Fig. 4 is a timing diagram of updating device configuration information according to an embodiment of the present application, as shown in fig. 4:
the information acquisition tool sends an information acquisition request to the test equipment to acquire the latest equipment configuration information, removes noise such as repeated information, abnormal information and supplementary missing information in the latest equipment configuration information, stores all the equipment configuration information of one test equipment in one text file by utilizing a preset script file, and updates the equipment configuration information by performing data format conversion on the equipment configuration information by a target model to obtain code data supporting a machine learning algorithm and then updating the information of the equipment configuration information to be updated, wherein the information is detected and output by the target model.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiment also provides a device configuration information verification apparatus, which is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a device configuration information verification apparatus according to an embodiment of the present application, as shown in fig. 5, including:
a first obtaining module 52, configured to send an information obtaining request to obtain the latest device configuration information when it is determined that the device configuration information of the test device is in a to-be-updated state, where the test device is used to test the operation of the target application program;
a first updating module 54, configured to update the device configuration information with the latest device configuration information to obtain target device configuration information;
a first testing module 56, configured to test the operation of the target application program by using the target device configuration information, so as to obtain a test result;
a first verification module 58 is configured to verify the target device configuration information based on the test result.
In an exemplary embodiment, the first obtaining module includes a first collecting unit, configured to collect, by using an information collecting tool, a plurality of configuration information of the test device, where a tool type of the information collecting tool is matched with an operating system to which the test device is applied; a first cleaning unit, configured to perform a cleaning operation on the plurality of configuration information to obtain the device configuration information, where the cleaning operation includes removing duplicate information, abnormal information, and missing information in the plurality of configuration information; the first storage unit is used for storing the equipment configuration information into a text file by using a preset script file, wherein the preset script file is matched with the operating system; the first comparison unit is used for running the preset script file according to a timing task to obtain the equipment configuration information from the text file, and comparing the equipment configuration information with the historical equipment configuration information to obtain a first comparison result, wherein the time period in the timing task is matched with the operating system; a first sending unit, configured to send the information acquisition request to a configuration information source when it is determined that the device configuration information is in a state to be updated based on the first comparison result; and the first receiving unit is used for receiving the latest equipment configuration information sent by the configuration information source in response to the information acquisition request.
In an exemplary embodiment, the first obtaining unit further includes a first converting unit, configured to perform data format conversion on the device configuration information to obtain code data supporting a machine learning algorithm; and the first input unit is used for inputting the code data into a target model to obtain information in a state to be updated in the equipment configuration information output by the target model, wherein the model type of the target model is matched with the information type of the equipment configuration information.
In an exemplary embodiment, the first updating module includes a first updating unit, configured to import the latest device configuration information into a test system to update the device configuration information in the test system to obtain target device configuration information, where the test system configured to import the latest device configuration information into the test device includes at least one of the following: and importing newly added information in the latest equipment configuration information into the test system, importing information which is different from the equipment configuration information in the latest equipment configuration information into the test system, replacing the equipment configuration information with the latest equipment configuration information, and performing information interaction with the test equipment by the test system.
In an exemplary embodiment, the first test module includes a first test unit, configured to test, by using the test system, the operation of the target application program to obtain a test result, where the test system includes the target device configuration information, and the test system tests the operation of the target application program includes: the test system uses the target device configuration information to execute tasks in the target application program.
In an exemplary embodiment, the first verification module includes a second comparison unit, configured to compare the test result with a historical test result to obtain a second comparison result; the first determining unit is used for determining that the configuration information of the target equipment is in a normal state under the condition that the matching degree of the test result and the history test result displayed by the second comparison result is larger than a preset threshold value; and the second determining unit is used for determining that the target equipment configuration information is in an abnormal state and updating the equipment configuration information again under the condition that the matching degree of the test result and the historical test result is smaller than a preset threshold value as shown by the second comparison result.
In an exemplary embodiment, the first verification module further includes a second storage unit, configured to store test data and a test environment corresponding to the test result in a database in the test device; and the first detection unit is used for circularly detecting whether the configuration information of the target equipment is in a state to be updated.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for verifying device configuration information, applied to a test device, comprising:
transmitting an information acquisition request to acquire latest equipment configuration information under the condition that the equipment configuration information of the test equipment is in a state to be updated, wherein the test equipment is used for testing the running of a target application program;
updating the device configuration information by utilizing the latest device configuration information to obtain target device configuration information;
testing the operation of the target application program by utilizing the configuration information of the target equipment to obtain a test result;
and verifying the target equipment configuration information based on the test result.
2. The method of claim 1, in a case where it is determined that the device configuration information of the test device is in a state to be updated, sending an information acquisition request to acquire the latest device configuration information, comprising:
Collecting a plurality of configuration information of the test equipment through an information collecting tool, wherein the tool type of the information collecting tool is matched with an operating system applied by the test equipment;
performing a cleaning operation on the configuration information to obtain the equipment configuration information, wherein the cleaning operation comprises removing repeated information, abnormal information and missing information in the configuration information;
storing the equipment configuration information into a text file by using a preset script file, wherein the preset script file is matched with the operating system;
running the preset script file according to a timing task to acquire the equipment configuration information from the text file, and comparing the equipment configuration information with historical equipment configuration information to obtain a first comparison result, wherein the time period in the timing task is matched with the operating system;
transmitting the information acquisition request to a configuration information source under the condition that the equipment configuration information is determined to be in a state to be updated based on the first comparison result;
and receiving the latest equipment configuration information sent by the configuration information source in response to the information acquisition request.
3. The method of claim 2, after performing a cleaning operation on a plurality of the configuration information to obtain the device configuration information, the method further comprising:
converting the data format of the equipment configuration information to obtain code data supporting a machine learning algorithm;
and inputting the code data into a target model to obtain information in a state to be updated in the equipment configuration information output by the target model, wherein the model type of the target model is matched with the information type of the equipment configuration information.
4. The method of claim 1, updating the device configuration information with the latest device configuration information to obtain target device configuration information, comprising:
importing the latest equipment configuration information into a test system to update the equipment configuration information in the test system to obtain the target equipment configuration information, wherein the test system for importing the latest equipment configuration information into the test equipment comprises at least one of the following components: the newly added information in the latest equipment configuration information is imported into the test system, the information which is different from the equipment configuration information in the latest equipment configuration information is imported into the test system, the equipment configuration information is replaced by the latest equipment configuration information, and the test system is used for carrying out information interaction with the test equipment.
5. The method of claim 1, testing the operation of the target application program with the target device configuration information to obtain a test result, comprising:
testing the operation of the target application program through a testing system to obtain a testing result, wherein the testing system comprises the configuration information of the target equipment, and the testing system testing the operation of the target application program comprises the following steps: the test system uses the target device configuration information to perform tasks in the target application.
6. The method of claim 1, validating the target device configuration information based on the test results, comprising:
comparing the test result with the historical test result to obtain a second comparison result;
determining that the target equipment configuration information is in a normal state under the condition that the second comparison result shows that the matching degree of the test result and the historical test result is larger than a preset threshold value;
and under the condition that the second comparison result shows that the matching degree of the test result and the historical test result is smaller than a preset threshold value, determining that the target equipment configuration information is in an abnormal state, and updating the equipment configuration information again.
7. The method of claim 1, after verifying the target device configuration information based on the test results, the method further comprising:
storing test data and test environments corresponding to the test results into a database in the test equipment;
and circularly detecting whether the configuration information of the target equipment is in a state to be updated.
8. A device configuration information verification apparatus, comprising:
the first acquisition module is used for sending an information acquisition request to acquire the latest equipment configuration information under the condition that the equipment configuration information of the test equipment is in a state to be updated, wherein the test equipment is used for testing the running of a target application program;
the first updating module is used for updating the equipment configuration information by utilizing the latest equipment configuration information to obtain target equipment configuration information;
the first testing module is used for testing the operation of the target application program by utilizing the configuration information of the target equipment to obtain a testing result;
and the first verification module is used for verifying the target equipment configuration information based on the test result.
9. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
CN202311265514.5A 2023-09-27 2023-09-27 Verification method and device for equipment configuration information, storage medium and electronic equipment Pending CN117215953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311265514.5A CN117215953A (en) 2023-09-27 2023-09-27 Verification method and device for equipment configuration information, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311265514.5A CN117215953A (en) 2023-09-27 2023-09-27 Verification method and device for equipment configuration information, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117215953A true CN117215953A (en) 2023-12-12

Family

ID=89036934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311265514.5A Pending CN117215953A (en) 2023-09-27 2023-09-27 Verification method and device for equipment configuration information, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117215953A (en)

Similar Documents

Publication Publication Date Title
CN107688530B (en) Software testing method and device
CN108959059B (en) Test method and test platform
CN109165170B (en) Method and system for automatic request test
US20150100296A1 (en) Method and system for automated test and result comparison
CN107957940B (en) Test log processing method, system and terminal
CN111835582A (en) Configuration method and device of Internet of things inspection equipment and computer equipment
CN111782635B (en) Data processing method and device, storage medium and electronic device
CN110851324B (en) Log-based routing inspection processing method and device, electronic equipment and storage medium
US20060048102A1 (en) Method and apparatus for improving a software product
CN110851471A (en) Distributed log data processing method, device and system
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN114756328A (en) Container cloud platform inspection method and device
CN109783284A (en) Information acquisition method, system and server, computer readable storage medium
CN113313280A (en) Cloud platform inspection method, electronic equipment and nonvolatile storage medium
US11263072B2 (en) Recovery of application from error
CN111245653A (en) Method and system for quickly establishing topological relation between devices
CN110011845B (en) Log collection method and system
CN117215953A (en) Verification method and device for equipment configuration information, storage medium and electronic equipment
CN114416596A (en) Application testing method and device, computer equipment and storage medium
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN114691782A (en) Database table increment synchronization method and device and storage medium
CN113672514A (en) Test method, test device, server and storage medium
CN112416896A (en) Data abnormity warning method and device, storage medium and electronic device
CN111459795A (en) Cluster pressure testing method and device, computer equipment and storage medium
CN112463480A (en) ARM architecture-based pressure test method, system, terminal and storage medium

Legal Events

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