CN117668564A - Configuration difference identification method, configuration data importing method and device - Google Patents

Configuration difference identification method, configuration data importing method and device Download PDF

Info

Publication number
CN117668564A
CN117668564A CN202210964954.9A CN202210964954A CN117668564A CN 117668564 A CN117668564 A CN 117668564A CN 202210964954 A CN202210964954 A CN 202210964954A CN 117668564 A CN117668564 A CN 117668564A
Authority
CN
China
Prior art keywords
configuration data
configuration
data
target carrier
reference configuration
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
CN202210964954.9A
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.)
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shizhen Information 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 Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202210964954.9A priority Critical patent/CN117668564A/en
Publication of CN117668564A publication Critical patent/CN117668564A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a configuration difference identification method, a configuration data importing method, a device, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: determining whether to connect with the target carrier in response to the configuration difference identification instruction; if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device; if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data. According to the technical scheme, the purpose of accurate test can be achieved by determining the configuration difference, and the problems of high labor cost, low efficiency and risk of missing test caused by full-function test are solved.

Description

Configuration difference identification method, configuration data importing method and device
Technical Field
The application belongs to the technical field of computers, and particularly relates to a configuration difference identification method, a configuration data importing method, a device, electronic equipment and a storage medium.
Background
With rapid development of technology level, the use demands of various intelligent terminals are gradually increasing. In order to meet the use requirements of users, the software version iteration speed of the intelligent terminal is also faster and faster.
Taking the intelligent large screen display device as an example, along with the gradual increase of the function requirements of the device in the use process of a user, the intelligent large screen display device needs to realize the addition or update of an application program through software upgrading. Meanwhile, the intelligent large screen display device can be customized for some specific users to install and manage application programs. In the current software updating process, a product design development process engineer submits modification to a development branch to carry out development test, and after the test is stable, the production branch test is cut.
The existing test method is to manually perform full-function test, so that the full-function test can generate large input of human resources, the test efficiency is low, and the problem of missing of the full-function test can be solved.
Disclosure of Invention
The embodiment of the application provides a configuration difference identification method, a configuration data importing device, electronic equipment and a storage medium, which can realize the purpose of accurate test by determining the configuration difference and solve the problems of high labor cost, low efficiency and risk of missing test caused by full-function test.
In a first aspect, an embodiment of the present application provides a method for identifying a configuration difference, where the method is performed by a test device, and the method includes:
determining whether to connect with the target carrier in response to the configuration difference identification instruction;
if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device;
if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data.
Further, obtaining the reference configuration data in the reference configuration file, obtaining the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data, including:
analyzing the reference configuration file to obtain reference configuration data;
and obtaining local configuration data, and comparing the reference configuration data with the local configuration data to obtain configuration differences.
Further, the parsing the reference configuration file to obtain reference configuration data includes:
and analyzing the reference configuration file into a text format by using a JSON format to obtain reference configuration data.
Further, the reference configuration file comprises an application data list of a reference version;
the local configuration data comprises a local application data list; wherein the local application data list comprises: an application data list of a system/app directory, an application data list of a system/priv-app directory, and macro definition data;
accordingly, identifying the configuration difference of the reference configuration data and the local configuration data comprises:
and comparing the application data list of the reference version with the local application data list to obtain an application list configuration difference.
In a second aspect, an embodiment of the present application provides a method for importing configuration data, where the method is performed by a reference device, and the method includes:
determining whether to connect with the target carrier in response to the configuration data import instruction;
if the target carrier is connected with the target carrier, creating a reference configuration file in the target carrier;
converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device.
Further, converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file, including:
reading local configuration data, and converting the local configuration data into a JSON format in a text format;
and writing the reference configuration data in the JSON format into the reference configuration file.
In a third aspect, an embodiment of the present application provides a configuration difference identifying device, where the configuration difference identifying device is disposed in a test device, and the configuration difference identifying device includes:
the configuration difference identification instruction response module is used for responding to the configuration difference identification instruction and determining whether the configuration difference identification instruction is connected with the target carrier or not;
the reference configuration file identification module is used for determining whether a reference configuration file exists in the target carrier if the reference configuration file is connected with the target carrier; wherein the reference profile is imported to the target carrier by a reference device;
and the configuration difference determining module is used for reading the reference configuration data in the reference configuration file if the reference configuration file exists, acquiring the local configuration data and identifying the configuration difference between the reference configuration data and the local configuration data.
Further, the configuration difference determining module includes:
the reference configuration data acquisition unit is used for analyzing the reference configuration file to obtain reference configuration data;
the configuration difference identification unit is used for acquiring local configuration data and comparing the reference configuration data with the local configuration data to obtain configuration differences.
Further, the reference configuration data acquisition unit is specifically configured to:
and analyzing the reference configuration file into a text format by using a JSON format to obtain reference configuration data.
Further, the reference configuration file comprises an application data list of a reference version;
the local configuration data comprises a local application data list; wherein the local application data list comprises: an application data list of a system/app directory, an application data list of a system/priv-app directory, and macro definition data;
correspondingly, the configuration difference determining module is specifically configured to:
and comparing the application data list of the reference version with the local application data list to obtain an application list configuration difference.
In a fourth aspect, an embodiment of the present application provides a device for importing configuration data, where the device for importing configuration data is disposed in a reference device, and the device for importing configuration data includes:
the configuration data import instruction response module is used for responding to the configuration data import instruction and determining whether the configuration data import instruction is connected with the target carrier or not;
the reference configuration file creation module is used for creating a reference configuration file in the target carrier if the reference configuration file is connected with the target carrier;
the writing module is used for converting the reference configuration data according to a preset storage format and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device.
Further, the writing module is specifically configured to:
reading local configuration data, and converting the local configuration data into a JSON format in a text format;
and writing the reference configuration data in the JSON format into the reference configuration file.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the method according to the first aspect or according to the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method as described in the first aspect or in the second aspect.
In a seventh aspect, embodiments of the present application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute a program or instructions to implement the steps of the method according to the first aspect or according to the second aspect.
In the embodiment of the application, in response to a configuration difference identification instruction, determining whether to connect with a target carrier; if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device; if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data. Through the identification method of the configuration difference, the purpose of accurate test can be achieved by determining the configuration difference, and the problems of high labor cost, low efficiency and risk of missing test caused by full-function test are solved.
Drawings
Fig. 1 is a flowchart of a method for identifying configuration differences according to an embodiment of the present application;
fig. 2 is a flow chart of a method for identifying configuration differences according to a second embodiment of the present application;
fig. 3 is a flow chart of a method for importing configuration data according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a configuration difference recognition device according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a configuration data importing apparatus according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method for identifying configuration differences, the method for importing configuration data, the device, the electronic apparatus and the storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Example 1
Fig. 1 is a flowchart of a method for identifying configuration differences according to an embodiment of the present application. As shown in fig. 1, the method specifically comprises the following steps:
s101, in response to the configuration difference identification instruction, determining whether to connect with the target carrier.
It can be appreciated that the use scenario of the present solution may be to test a software version of the large screen display device to be tested. The large screen display device can be an intelligent conference display screen and the like, and the software version can be an updated version of the large screen display device, for example, the version 6.1.03 is originally, and the version 6.1.10 is obtained after the update. The execution subject of the scheme can be a test device, namely a device subjected to software upgrade.
In the scheme, a user can perform the triggering operation of identifying the configuration difference in the large-screen display equipment through setting in a software system, for example, a button for receiving the configuration difference identification instruction is preset in a setting interface. It will be appreciated that the configuration difference identifying instruction may be manually triggered by a worker, or may be directly triggered under certain specific conditions, for example, triggered according to a preset period, triggered after identifying that a certain device is accessed, etc. After receiving the configuration difference identification instruction, the large screen display device can determine whether a target carrier is connected currently.
In this solution, the target carrier may be an external storage device for carrying the reference software version. For example, the target carrier may be a usb disk, a smart phone, or even other large screen display devices. As long as it has a data storage function and stores a reference software version, for example, a version before update, such as the 6.1.03 version in the above example, can be used as a target carrier.
The method for identifying whether the target carrier is connected is various, for example, whether a data transmission interface of the large-screen display device is connected with other devices or whether the device which is connected with the large-screen display device in a wireless mode has other devices with specific names, and the like.
S102, if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device.
Taking a USB flash disk as an example, if the connection with the USB flash disk is identified, the existence of the target carrier can be determined, and further identification can be performed.
In a further identification process, it may be determined whether a reference profile is present in the target carrier. For example, there may be a case where although a usb disk connection exists, a reference configuration file does not exist in the usb disk, and thus, the configuration difference cannot be identified. Or if the reference configuration file existing in the usb disk is not complete, it may be understood that the configuration difference identification operation cannot be performed.
The reference configuration file may be a configuration file of a reference software version. The configuration files herein may include configurations for application data lists, macro-defined configurations, and other user-defined information configurations. For example, current users need to display the LOGO of the user company in the desktop wallpaper of a large screen display device. The LOGO of the user company may also be stored in a configuration file referencing the software version.
In the scheme, whether the file named as the specific name exists in the U disk or not can be identified, if so, the existence of the reference configuration file is determined, and if not, the absence of the reference configuration file is determined. It will be appreciated that the identification by name is only an example, and that other means may be employed, such as identifying whether a file exists under a certain directory, and if so, determining that a reference profile exists.
In this solution, the reference profile is used as a comparison object, so the reference profile may be imported through a reference device, or manually imported through other means, etc. It will be appreciated that the software version contained in the reference profile may be the version prior to the upgrade. It may be stored in the target carrier in a direct storage or format conversion format.
S103, if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data.
In case of a presence reference profile, presence reference configuration data in the presence reference profile may be read. Specifically, the reading mode may be direct reading, or may be reading after analyzing the existence reference configuration file. The parsing here may be format conversion.
After reading the presence reference configuration data, a difference of the presence reference configuration data from the local configuration data may be identified. For example, it is identified whether the application name included in the reference configuration data and the application name included in the local configuration data agree. Whether the authority of each application program in the reference configuration data is consistent with the authority of the application program in the local configuration data, whether the versions of the application programs are consistent, and the like.
It will be appreciated that other configuration data may be compared in addition to the application data list data, and that differences between the updated version and the pre-updated version may be determined by comparison. And further provides a basis for accurate testing for subsequent update testing, that is, only the differential portion is tested. The arrangement can greatly improve the test efficiency, reduce the time cost of testers, and simultaneously, the problem of missing test and abnormal error reporting which are easy to occur in the global test can be effectively avoided in the accurate test.
According to the technical scheme provided by the embodiment, whether the target carrier is connected is determined in response to a configuration difference identification instruction; if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device; if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data. Through executing this scheme, can carry out automatic test on the equipment that awaits measuring, can realize the purpose of accurate test through confirming the configuration difference, solve the human cost height that full function test caused, inefficiency and have the problem of the risk of test omission.
Example two
Fig. 2 is a flow chart of a method for identifying configuration differences according to a second embodiment of the present application. The scheme makes better improvement on the embodiment, and the specific improvement is as follows: reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data, wherein the method comprises the following steps: analyzing the reference configuration file to obtain reference configuration data; and obtaining local configuration data, and comparing the reference configuration data with the local configuration data to obtain configuration differences.
As shown in fig. 2, the method specifically comprises the following steps:
s201, in response to the configuration difference identification instruction, determining whether to connect with the target carrier.
S202, if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device.
And S203, if the reference configuration file exists, analyzing the reference configuration file to obtain reference configuration data.
In this solution, the parsing of the reference configuration file may be converting the format of the reference configuration file. The format conversion may be determined according to a conversion algorithm that converts the reference configuration data into a reference configuration file, which is equivalent to the inverse operation of the conversion algorithm, the converted reference configuration data.
In this solution, it can be understood that the reference configuration data may be configuration information of a software version before upgrading. The configuration information may include application data lists, macro definitions, and other configuration information.
In this embodiment, optionally, the parsing the reference configuration file to obtain the reference configuration data includes:
and analyzing the reference configuration file into a text format by using a JSON format to obtain reference configuration data.
The JSON format is a lightweight data exchange format. There are two structures: name/value, ordered list of values. The text format is a file built by words, only word information and no other information.
In this solution, the reference configuration file may be a JSON format file. JSON (JavaScript Object Notation) is a lightweight data exchange format. JSON adopts a text format that is completely language independent, and these characteristics make JSON an ideal data exchange language. Is easy to read and write by people and easy to analyze and generate by machines.
According to the technical scheme, the reference configuration file is analyzed into the text format from the JSON format, or the reference configuration data is converted into the JSON format from the text format, so that the reading of the reference configuration data can be facilitated, and the storage and the use of the reference configuration file are facilitated.
S204, obtaining local configuration data, and comparing the reference configuration data with the local configuration data to obtain configuration differences.
It can be understood that the local test equipment can be large screen display equipment after the software version is updated. The local configuration data may be obtained by a program that executes a method for identifying configuration differences, and may be used, for example, to read a local application data list and read other configurations.
In particular, the configuration differences may include differences in applications in the application data list, differences in versions of the respective applications, and differences in macro definitions, among others.
By such a setting, the present embodiment can obtain the reference configuration data of the target carrier based on the format conversion and compare with the configuration data local to the test apparatus to determine the configuration difference. Therefore, the stability of the target carrier for transmitting the reference configuration data can be increased, and the accuracy of the configuration difference recognition result can be improved.
On the basis of the above embodiments, optionally, the reference configuration file includes a reference version application data list;
the local configuration data comprises a local application data list; wherein the local application data list comprises: an application data list of a system/app directory, an application data list of a system/priv-app directory, and macro definition data;
accordingly, identifying the configuration difference of the reference configuration data and the local configuration data comprises:
and comparing the application data list of the reference version with the local application data list to obtain an application list configuration difference.
The system/app directory is mainly an application built in the Android system, for example: cameras, browsers, bluetooth, etc. The system/priv-app catalog is mainly a system-level application for storing systems customized by mobile phone manufacturers, such as customized office software and the like.
The macro definition data refers to representing a character string with a macro name. The function of the macro definition is to replace all the "macro names" appearing in the program with strings in the macro definition at the time of compiling preprocessing, which is called "macro replacement" or "macro expansion".
The application Data list may include information such as a name and version of an application program, a plist (XML attribute list archive), a preference setting, nskeyderachiver archive (store custom objects), SQLite3 (database, relational database, incapable of directly storing objects, writing sentences of some databases, splitting objects for storage), core Data (database of objects, masking internal links), and the like.
According to the technical scheme, through the arrangement, an automatic comparison method can be used, the software difference before and after updating is distinguished through the color, the difference item test is tested through the full-function test, the test efficiency and the test accuracy are improved, and the product quality is guaranteed.
Example III
Fig. 3 is a flow chart of a method for importing configuration data according to a third embodiment of the present application. The implementation process of the configuration data importing method provided by the scheme may be before the configuration difference identifying method. The scheme can realize the importing of the configuration data from the reference device into the target carrier through the importing of the configuration data. It will be appreciated that the execution body may be a reference device, i.e. a device before the software version update.
As shown in fig. 3, the method specifically comprises the following steps:
s301, in response to the configuration data import instruction, determining whether to connect with the target carrier.
The configuration data import instruction may be issued manually or may be triggered automatically after the target carrier connection is identified.
S302, if the target carrier is connected, a reference configuration file is created in the target carrier.
In the case of a connection to a target carrier, a reference profile may be created in the target carrier, the name of the reference profile and the creation directory may be predetermined, the creation directory may be preferentially generated when the directory is not created, and the reference profile may be generated under the creation directory. It will be appreciated that the reference profile at this point may be an empty file for subsequent writing of the reference profile data.
S303, converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device.
In this solution, part or all of the configuration data of the reference device may be used as the reference configuration data. The preferred reference configuration data may include, among other things, a list of application data for the reference device, such as system/app, system/priv-app, and macro definitions, etc.
The preset storage format can be JSON format or other formats. After conversion, the resulting content may be written to a reference profile.
According to the technical scheme provided by the embodiment, whether the target carrier is connected or not is determined in response to a configuration data import instruction; if the target carrier is connected with the target carrier, creating a reference configuration file in the target carrier; converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device. By executing the scheme, the automatic importing of the configuration data on the reference equipment can be realized, and the efficiency of data importing is improved.
On the basis of the above embodiment, optionally, converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file, including:
reading local configuration data, and converting the local configuration data into a JSON format in a text format;
and writing the reference configuration data in the JSON format into the reference configuration file.
It can be appreciated that by the arrangement, the method can utilize the advantages of the JSON format in the data storage and data analysis processes, and improve the readability of the reference configuration data and the stability of the analysis process.
In a feasible preferred scheme, the method for automatically checking the Android product branches during switching can automatically compare system configuration differences to realize accurate testing. The method comprises an automatic export process and a data comparison process.
Automatic export flow:
acquiring application data lists (system/app, system/priv-app, macro definition) in the system;
analyzing the data and converting the data into json format;
judging whether the USB flash disk exists or not;
checking whether a target file exists in the U disk when the U disk is in the storage, and creating the target file when the target file does not exist in the U disk;
and writing the data into the U disk target file.
Data comparison flow:
judging whether the USB flash disk exists or not;
judging whether a target file in the U disk exists or not;
reading the target file if the target file exists;
analyzing the json format target file;
acquiring an application data list in a system;
the data is parsed and aligned (the same item is displayed in a green font, and a different, red font).
The System app is an android System application, the System/priv-app is a client pre-installed application, and the macro definition comprises a board card, a client corresponding configuration and the like.
By adopting the scheme, an automatic comparison method can be used, the software difference before and after updating is distinguished through the color, the difference item test is tested by the full-function test, the test efficiency and the test accuracy are improved, and the product quality is ensured.
Example IV
Fig. 4 is a schematic structural diagram of a configuration difference recognition device according to a fourth embodiment of the present application. The identification device of the configuration difference is arranged in the test equipment. As shown in fig. 4, the method specifically includes the following steps:
a configuration difference identification instruction response module 401, configured to determine whether to connect with the target carrier in response to the configuration difference identification instruction;
a reference profile identification module 402, configured to determine whether a reference profile exists in a target carrier if the reference profile is connected to the target carrier; wherein the reference profile is imported to the target carrier by a reference device;
the configuration difference determining module 403 is configured to, if a reference configuration file exists, read reference configuration data in the reference configuration file, obtain local configuration data, and identify a configuration difference between the reference configuration data and the local configuration data.
Further, the configuration difference determining module includes:
the reference configuration data acquisition unit is used for analyzing the reference configuration file to obtain reference configuration data;
the configuration difference identification unit is used for acquiring local configuration data and comparing the reference configuration data with the local configuration data to obtain configuration differences.
Further, the reference configuration data acquisition unit is specifically configured to:
and analyzing the reference configuration file into a text format by using a JSON format to obtain reference configuration data.
Further, the reference configuration file comprises an application data list of a reference version;
the local configuration data comprises a local application data list; wherein the local application data list comprises: an application data list of a system/app directory, an application data list of a system/priv-app directory, and macro definition data;
correspondingly, the configuration difference determining module is specifically configured to:
and comparing the application data list of the reference version with the local application data list to obtain an application list configuration difference.
According to the technical scheme provided by the embodiment, whether the target carrier is connected is determined in response to a configuration difference identification instruction; if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device; if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data. Through executing this scheme, can carry out automatic test on the equipment that awaits measuring, can realize the purpose of accurate test through confirming the configuration difference, solve the human cost height that full function test caused, inefficiency and have the problem of the risk of test omission.
The device for identifying the configuration difference in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The identification device of the configuration difference in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
Example five
Fig. 5 is a schematic structural diagram of a configuration data importing apparatus according to a fifth embodiment of the present application. The importing device of the configuration data is arranged in the reference equipment. As shown in fig. 5, the method specifically includes the following steps:
a configuration data import instruction response module 501 configured to determine whether to connect with the target carrier in response to the configuration data import instruction;
a reference profile creation module 502, configured to create a reference profile in a target carrier if connected to the target carrier;
a writing module 503, configured to convert the reference configuration data according to a preset storage format, and write the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device.
Further, the writing module is specifically configured to:
reading local configuration data, and converting the local configuration data into a JSON format in a text format;
and writing the reference configuration data in the JSON format into the reference configuration file.
According to the technical scheme provided by the embodiment, whether the target carrier is connected or not is determined in response to a configuration data import instruction; if the target carrier is connected with the target carrier, creating a reference configuration file in the target carrier; converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device. By executing the scheme, the automatic importing of the configuration data on the reference equipment can be realized, and the efficiency of data importing is improved.
The device for importing configuration data in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The device for importing configuration data in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The configuration data importing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 3, and in order to avoid repetition, a description is omitted here.
Example six
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application. As shown in fig. 6, the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction implements each process of the above embodiment of the method for identifying a configuration difference when executed by the processor 601, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Example seven
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing configuration difference identifying method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
Example eight
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is configured to run a program or an instruction, implement each process of the above configuration difference identification method embodiment, and achieve the same technical effect, so that repetition is avoided, and no further description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A method of identifying configuration differences, the method being performed by a test device, the method comprising:
determining whether to connect with the target carrier in response to the configuration difference identification instruction;
if the target carrier is connected with the target carrier, determining whether a reference configuration file exists in the target carrier; wherein the reference profile is imported to the target carrier by a reference device;
if the reference configuration file exists, reading the reference configuration data in the reference configuration file, acquiring the local configuration data, and identifying the configuration difference between the reference configuration data and the local configuration data.
2. The method of claim 1, wherein reading the reference configuration data in the reference configuration file and obtaining local configuration data and identifying configuration differences of the reference configuration data and the local configuration data comprises:
analyzing the reference configuration file to obtain reference configuration data;
and obtaining local configuration data, and comparing the reference configuration data with the local configuration data to obtain configuration differences.
3. The method of claim 2, wherein parsing the reference configuration file to obtain reference configuration data comprises:
and analyzing the reference configuration file into a text format by using a JSON format to obtain reference configuration data.
4. The method of claim 1, wherein the reference profile comprises a list of reference versions of application data;
the local configuration data comprises a local application data list; wherein the local application data list comprises: an application data list of a system/app directory, an application data list of a system/priv-app directory, and macro definition data;
accordingly, identifying the configuration difference of the reference configuration data and the local configuration data comprises:
and comparing the application data list of the reference version with the local application data list to obtain an application list configuration difference.
5. A method of importing configuration data, the method being performed by a reference device, the method comprising:
determining whether to connect with the target carrier in response to the configuration data import instruction;
if the target carrier is connected with the target carrier, creating a reference configuration file in the target carrier;
converting the reference configuration data according to a preset storage format, and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device.
6. The method of claim 5, wherein converting the reference configuration data according to a preset storage format and writing the reference configuration data into the reference configuration file comprises:
reading local configuration data, and converting the local configuration data into a JSON format in a text format;
and writing the reference configuration data in the JSON format into the reference configuration file.
7. A device for identifying a configuration difference, wherein the device for identifying a configuration difference is disposed in a test apparatus, and the device for identifying a configuration difference comprises:
the configuration difference identification instruction response module is used for responding to the configuration difference identification instruction and determining whether the configuration difference identification instruction is connected with the target carrier or not;
the reference configuration file identification module is used for determining whether a reference configuration file exists in the target carrier if the reference configuration file is connected with the target carrier; wherein the reference profile is imported to the target carrier by a reference device;
and the configuration difference determining module is used for reading the reference configuration data in the reference configuration file if the reference configuration file exists, acquiring the local configuration data and identifying the configuration difference between the reference configuration data and the local configuration data.
8. A device for importing configuration data, wherein the device for importing configuration data is disposed in a reference device, and the device for importing configuration data includes:
the configuration data import instruction response module is used for responding to the configuration data import instruction and determining whether the configuration data import instruction is connected with the target carrier or not;
the reference configuration file creation module is used for creating a reference configuration file in the target carrier if the reference configuration file is connected with the target carrier;
the writing module is used for converting the reference configuration data according to a preset storage format and writing the reference configuration data into the reference configuration file; wherein the reference configuration data is configuration data of a reference device.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the method of identifying a configuration difference as claimed in any one of claims 1 to 4 or the steps of the method of importing configuration data as claimed in any one of claims 5 to 6.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the method for identifying configuration differences according to any one of claims 1-4, or the steps of the method for importing configuration data according to any one of claims 5-6.
CN202210964954.9A 2022-08-11 2022-08-11 Configuration difference identification method, configuration data importing method and device Pending CN117668564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210964954.9A CN117668564A (en) 2022-08-11 2022-08-11 Configuration difference identification method, configuration data importing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210964954.9A CN117668564A (en) 2022-08-11 2022-08-11 Configuration difference identification method, configuration data importing method and device

Publications (1)

Publication Number Publication Date
CN117668564A true CN117668564A (en) 2024-03-08

Family

ID=90070005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210964954.9A Pending CN117668564A (en) 2022-08-11 2022-08-11 Configuration difference identification method, configuration data importing method and device

Country Status (1)

Country Link
CN (1) CN117668564A (en)

Similar Documents

Publication Publication Date Title
US9189377B1 (en) Automation testing using descriptive maps
US8473916B2 (en) Method and system for providing a testing framework
US9424115B2 (en) Analysis engine for automatically analyzing and linking error logs
CN107644286B (en) Workflow processing method and device
US20220350857A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN110990274A (en) Data processing method, device and system for generating test case
CN113448562B (en) Automatic logic code generation method and device and electronic equipment
CN109474822B (en) Android television multi-language automatic testing method and device
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
CN109117173B (en) Configuration file management method based on project version development
CN111142871A (en) Front-end page development system, method, equipment and medium
CN117668564A (en) Configuration difference identification method, configuration data importing method and device
CN113448869B (en) Method and device for generating test case, electronic equipment and computer readable medium
CN111221610B (en) Page element acquisition method and device
CN115309706A (en) Method, device, equipment, medium and product for updating multi-language configuration file
CN114064601B (en) Storage process conversion method, device, equipment and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN108629012B (en) Intelligent verification method and system for forensic data analysis accuracy
CN116755684B (en) OAS Schema generation method, device, equipment and medium
CN113835893B (en) Data processing method, device, equipment, storage medium and program product
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN112860784B (en) Blood margin analysis method, apparatus, electronic device, and computer-readable storage medium
CN117896373A (en) File uploading method, device, equipment and medium
CN115629965A (en) Document testing method, device, equipment, medium and program product
CN115981657A (en) Code generation method and device, electronic equipment and readable 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