CN112905464B - Application running environment data processing method and device - Google Patents

Application running environment data processing method and device Download PDF

Info

Publication number
CN112905464B
CN112905464B CN202110177894.1A CN202110177894A CN112905464B CN 112905464 B CN112905464 B CN 112905464B CN 202110177894 A CN202110177894 A CN 202110177894A CN 112905464 B CN112905464 B CN 112905464B
Authority
CN
China
Prior art keywords
file
application
type name
ciphertext
application file
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.)
Active
Application number
CN202110177894.1A
Other languages
Chinese (zh)
Other versions
CN112905464A (en
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110177894.1A priority Critical patent/CN112905464B/en
Publication of CN112905464A publication Critical patent/CN112905464A/en
Application granted granted Critical
Publication of CN112905464B publication Critical patent/CN112905464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method and a device for processing application running environment data, which can be used in the financial field, wherein the method comprises the following steps: acquiring a test environment application file and a production environment application file under a current application version; determining a file type name in the application file according to a preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext; consistency comparison is carried out on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext, and a consistency comparison result of the test environment and the production environment under the current application version is obtained; the method and the device can effectively improve the accuracy and efficiency of consistency comparison operation applied to the test environment and the production environment.

Description

Application running environment data processing method and device
Technical Field
The application relates to the field of software operation and maintenance and also can be used in the field of finance, in particular to a method and a device for processing application operation environment data.
Background
The consistency of the application in the test environment and the production environment is ensured by the basic premise that the application adaptability and acceptance test can be correctly unfolded, the software test is only in line with the original purpose of the software test if two environment parameters and programs are consistent, and the production problems of a large number of technical projects are caused by the difference of the production and the test environment, so that missing problems or the missing problems can not be effectively exposed in the test process, and further the production problems occur after the production.
However, because of the numerous parameters of a single application, including an operating system, a network environment, an application program, a database, etc., manual verification is time-consuming, laborious and easy to miss, and no effective solution has been available at present for the above problems.
Disclosure of Invention
Aiming at the problems in the prior art, the application running environment data processing method and device can effectively improve the accuracy and efficiency of consistency comparison operation of the application in a test environment and a production environment.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides an application execution environment data processing method, including:
acquiring a test environment application file and a production environment application file under a current application version;
determining a file type name in the application file according to a preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext;
and carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext to obtain a consistency comparison result of the test environment and the production environment under the current application version.
Further, the determining the file type name in the application file according to the preset identifier, and performing hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext, including:
extracting a file type name from a code remark part in the parsed application file according to a preset identifier corresponding to the application file, and performing hash function encryption to obtain a type name ciphertext;
and encrypting the hash function of the file contents except the file type name in the application file to obtain a file content ciphertext.
Further, the consistency comparison of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext includes:
judging whether the file type name in the application file belongs to a preset environment consistency necessary list or not;
if yes, determining the file content ciphertext of the production environment application file which is the same as the type name ciphertext of the test environment application file, and carrying out consistency comparison, otherwise, not carrying out consistency comparison on the application file.
Further, after the consistency comparison result of the test environment and the production environment under the current application version is obtained, the method further comprises:
judging whether the consistency comparison result passes or not;
if yes, installing the application file of the new application version on the current testing environment and the production environment.
Further, the determining the file type name in the application file according to the preset identifier includes:
analyzing the application file and determining the type of the application file;
and extracting the file type name of the application file from the parsed application file according to the preset identifier and the extraction rule corresponding to the application file type.
Further, the extracting the file type name of the application file from the parsed application file according to the preset identifier and the extraction rule corresponding to the application file type includes:
determining the extraction position of the file type name in the parsed application file according to the preset identifier;
and extracting the file type name of the application file according to the extraction position and the extraction rule corresponding to the application file type.
In a second aspect, the present application provides an application execution environment data processing apparatus, including:
the file acquisition module is used for acquiring a test environment application file and a production environment application file under the current application version;
the independent encryption module is used for determining the file type name in the application file according to the preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext;
and the corresponding comparison module is used for carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext, so as to obtain a consistency comparison result of the test environment and the production environment under the current application version.
Further, the individual encryption module includes:
the type name encryption unit is used for extracting the file type name from the code remark part in the parsed application file according to the preset identifier corresponding to the application file and carrying out hash function encryption to obtain a type name ciphertext;
and the file content encryption unit is used for encrypting other file contents except the file type name in the application file by a hash function to obtain a file content ciphertext.
Further, the corresponding comparison module includes:
the comparison type judging unit is used for judging whether the file type name in the application file belongs to a preset environment consistency necessary list or not;
and the consistency comparison unit is used for determining the file content ciphertext of the production environment application file which is the same as the type name ciphertext of the test environment application file if the file type name in the application file belongs to a preset environment consistency necessary list, and carrying out consistency comparison, otherwise, not carrying out consistency comparison on the application file.
Further, the method further comprises the following steps:
the comparison passing unit is used for judging whether the consistency comparison result passes or not;
and the new version installation unit is used for installing the application file of the new application version on the current test environment and the production environment if the consistency comparison result is passed.
In a third aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the application execution environment data processing method when executing the program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the application execution environment data processing method.
According to the technical scheme, the application running environment data processing method and device are provided, the identifier is preset in the application file, the file type name of the application file is further determined through the preset identifier, the file type name and the file content of the application file are encrypted through the hash function, then the production environment application file corresponding to the test environment application file is determined through the encrypted type name ciphertext, and consistency comparison is carried out on the file content ciphertext of the application environment application file and the production environment ciphertext, so that accuracy and efficiency of consistency comparison operation of the application in the test environment and the production environment are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an application running environment data processing method in an embodiment of the present application;
FIG. 2 is a second flowchart of a method for processing data in an application runtime environment according to an embodiment of the present application;
FIG. 3 is a third flowchart of a method for processing application runtime environment data according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for processing application runtime environment data according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for processing application runtime environment data according to an embodiment of the present application;
FIG. 6 is a flowchart of a method for processing application runtime environment data according to an embodiment of the present application;
FIG. 7 is one of the block diagrams of an application runtime environment data processing apparatus in an embodiment of the present application;
FIG. 8 is a second block diagram of an application runtime environment data processing device in an embodiment of the present application;
FIG. 9 is a third block diagram of an application runtime environment data processing device in an embodiment of the present application;
FIG. 10 is a fourth block diagram of an application runtime environment data processing device in an embodiment of the present application;
FIG. 11 is a fifth block diagram of an application runtime environment data processing device in an embodiment of the present application;
FIG. 12 is a sixth block diagram of an application runtime environment data processing device in an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely 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, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In consideration of the problems that in the prior art, because parameters of a single application are numerous, including an operating system, a network environment, an application program, a database and the like, manual check is time-consuming and labor-consuming and easy to miss, the application running environment data processing method and device are provided.
In order to effectively improve accuracy and efficiency of consistency comparison operation of an application in a test environment and a production environment, the application provides an embodiment of an application running environment data processing method, referring to fig. 1, wherein the application running environment data processing method specifically comprises the following contents:
step S101: and acquiring the test environment application file and the production environment application file under the current application version.
It is understood that the file types of the application files include, but are not limited to: access class files, boot and login/logout files, system management files, system command files, networking files, process files, user program files, system configuration files, user configuration files.
Step S102: and determining the file type name in the application file according to the preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext.
Alternatively, the application may explicitly label the file type of each type of application file, for example, label the file type name of each type of application file in a code remark part of the application file, and set the form of an identifier before and after the file type name to facilitate extraction of the file type name.
Optionally, after determining the file type name in the application file according to the preset identifier, the application encrypts the file type name by using a hash function to obtain a type name ciphertext, and simultaneously, the application also encrypts other file contents except the file type name in the application file by using a hash function to obtain a file content ciphertext.
Step S103: and carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext to obtain a consistency comparison result of the test environment and the production environment under the current application version.
It can be understood that the type name ciphertext is used for determining the corresponding relation between the test environment application file and the production environment application file, and the substantial content in the application file is compared with the file content ciphertext of the test environment application file and the production environment application file.
Optionally, the hash function encryption of this application can adopt current MD5 encryption, MD5 encryption divides into the information of the unset length in the file into 32 bit group after generating a 128 bit irrecoverable hash value, utilize the file after the MD5 encryption to generate a transmission group in this application, can compare two files the same fast, this application utilizes the mode synergism of MD5 encryption file and categorised judgement to reduce contrast work load, compare MD5 ciphertext after accurate judgement production and test environment need keep the file unanimous, effectively prevent consuming more resources and time because of the software program file volume is great, promote efficiency.
As can be seen from the above description, according to the application running environment data processing method provided by the embodiment of the application running environment data processing method, the identifier is preset in the application file, and then the file type name of the application file is determined through the preset identifier, so that the file type name and the file content of the application file are respectively encrypted by a hash function, then the production environment application file corresponding to the test environment application file is determined through the encrypted type name ciphertext, and the consistency comparison of the file content ciphertext of the application file and the file content ciphertext of the test environment application file is performed, so that the accuracy and the efficiency of the consistency comparison operation of the application in the test environment and the production environment are improved.
In order to flexibly perform environment comparison on each application file, in an embodiment of the application running environment data processing method of the present application, referring to fig. 2, the step S102 may further specifically include the following:
step S201: and extracting the file type name from the code remark part in the parsed application file according to the preset identifier corresponding to the application file, and performing hash function encryption to obtain a type name ciphertext.
Step S202: and encrypting the hash function of the file contents except the file type name in the application file to obtain a file content ciphertext.
Optionally, after determining the file type name in the application file according to the preset identifier, the application encrypts the file type name by using a hash function to obtain a type name ciphertext, and simultaneously, the application also encrypts other file contents except the file type name in the application file by using a hash function to obtain a file content ciphertext.
It can be understood that the type name ciphertext is used for determining the corresponding relation between the test environment application file and the production environment application file, and the substantial content in the application file is compared with the file content ciphertext of the test environment application file and the production environment application file.
In order to determine an application file that needs to be subjected to a consistency comparison operation from among the application files, in an embodiment of the application execution environment data processing method of the present application, referring to fig. 3, the step S103 may further specifically include the following:
step S301: and judging whether the file type name in the application file belongs to a preset environment consistency necessary list.
Step S302: if yes, determining the file content ciphertext of the production environment application file which is the same as the type name ciphertext of the test environment application file, and carrying out consistency comparison, otherwise, not carrying out consistency comparison on the application file.
Optionally, an environment consistency necessary list may be preset in the present application, where the file types of the application files whose parameters must be kept consistent in the comparison operation between the test environment and the production environment are recorded, for example, several file types including "boot and login/logout files, system management files, system command files, process files, and user program files" are recorded in the environment consistency necessary list in advance, and it is determined whether the file type names in the application files belong to the preset environment consistency necessary list, if yes, encryption operation and subsequent consistency comparison operation may be performed, otherwise, subsequent processing is not required.
In order to enable the subsequent operations to be performed after the environment alignment is passed, in an embodiment of the application execution environment data processing method of the present application, referring to fig. 4, the following may be specifically included after step S103, which is described above:
step S401: and judging whether the consistency comparison result passes or not.
Step S402: if yes, installing the application file of the new application version on the current testing environment and the production environment.
Optionally, when the consistency comparison result of the test environment and the production environment under the current application version is that the comparison result is passed, the fixed parameters of the two environments are kept consistent, and at the moment, application files of a new application version can be installed on the current test environment and the production environment so as to perform new application test work.
In another embodiment of the present application, the present application may further perform a consistency comparison operation after the application file of the new application version has been installed in the current testing environment and the production environment, where the operation is that, in the actual installation process of the application, the application generally adopts a mode of installing files one by one in the testing environment, and generally adopts a mode of installing files all at once in the production environment, so that environmental differences may occur between the two after the installation is completed.
In order to accurately extract the file type name from the application file, in an embodiment of the application execution environment data processing method of the present application, referring to fig. 5, in the above step S102, the following may be specifically included:
step S501: and analyzing the application file and determining the type of the application file.
Step S502: and extracting the file type name of the application file from the parsed application file according to the preset identifier and the extraction rule corresponding to the application file type.
Optionally, the application file type can be determined after the application file is parsed, that is, the application file type is written in a code of which computer language is adopted, for example C, C ++, c#, java or HTML, and different extraction rules are correspondingly set for different types of application files.
For example, the present application may use a special unique symbol to make remarks (i.e., code notes) during the writing phase of an application file, without affecting the rationality and usability of the program code, and add remark lines at the beginning of the file, such as:
(1)C/C++/C#
line annotation: where// is the annotation
Block annotation: here is annotation;
(2)Java
line annotation: where// is the annotation
Block annotation: here is annotation;
(3)HTML
block annotation: < -! -here is a comment-;
(4)Python
line annotation: # here is the annotation
Block annotation: "' is here the comment";
(5)MySQL
line annotation: -here is an annotation
Line annotation: # is here an annotation.
In order to accurately extract the file type name from the application file, in an embodiment of the application execution environment data processing method of the present application, referring to fig. 6, in the above step S502, the following may be further specifically included:
step S601: and determining the extraction position of the file type name in the parsed application file according to the preset identifier.
Step S602: and extracting the file type name of the application file according to the extraction position and the extraction rule corresponding to the application file type.
Alternatively, the extraction location of the file type name may be determined by setting a combination of the first and last symbols, i.e., a preset identifier (for example, the start symbol is #, and the end symbol is #). After the symbol combination is identified, independently performing encryption conversion on codes in the middle of the two symbols, and ensuring that MD5 encryption codes generated by each classification label are independent and consistent. For example, in the C language environment, # is set to the start character, ++! To end the character, in the remark of the C language, the/# file type name-! * And/, the file type name can be extracted and the subsequent encryption operation can be performed, and meanwhile, the file content can be distinguished and the encryption operation can be performed independently.
In order to effectively improve accuracy and efficiency of consistency comparison operation of an application in a test environment and a production environment, the application provides an embodiment of an application running environment data processing device for implementing all or part of contents of the application running environment data processing method, referring to fig. 7, the application running environment data processing device specifically includes the following contents:
the file acquisition module 10 is configured to acquire a test environment application file and a production environment application file under a current application version.
The separate encryption module 20 is configured to determine a file type name in the application file according to a preset identifier, and perform hash function encryption on the file type name and the file content of the application file, so as to obtain a type name ciphertext and a file content ciphertext.
And the corresponding comparison module 30 is used for carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext, so as to obtain a consistency comparison result of the test environment and the production environment under the current application version.
As can be seen from the above description, the application running environment data processing device provided in the embodiment of the present application is capable of determining the file type name of the application file by presetting an identifier in the application file, and further determining the file type name and the file content of the application file by presetting the identifier, so as to encrypt the file type name and the file content of the application file by a hash function respectively, then determining the production environment application file corresponding to the test environment application file by using the encrypted type name ciphertext, and comparing the file content ciphertext of the test environment application file and the file content ciphertext of the test environment application file with each other in a consistency manner, so as to improve the accuracy and efficiency of the consistency comparison operation of the application in the test environment and the production environment.
In order to flexibly perform environment comparison on each application file, in an embodiment of the application running environment data processing apparatus of the present application, referring to fig. 8, the separate encryption module 20 includes:
and a type name encryption unit 21, configured to extract a file type name from the parsed code remark part in the application file according to the preset identifier corresponding to the application file, and perform hash function encryption to obtain a type name ciphertext.
And the file content encryption unit 22 is configured to encrypt other file contents except the file type name in the application file by using a hash function, so as to obtain a file content ciphertext.
In order to determine an application file that needs to be subjected to a consistency comparison operation from the application files, in an embodiment of the application running environment data processing apparatus of the present application, referring to fig. 9, the corresponding comparison module 30 includes:
and the comparison type judging unit 31 is configured to judge whether the file type name in the application file belongs to a preset environment consistency necessary list.
And the consistency comparison unit 32 is configured to determine a file content ciphertext of the production environment application file that is the same as a type name ciphertext of the test environment application file if the file type name in the application file belongs to a preset environment consistency necessary list, and perform consistency comparison, otherwise, not perform consistency comparison on the application file.
In order to perform the subsequent operations after the environment alignment is passed, in an embodiment of the application execution environment data processing apparatus of the present application, referring to fig. 10, the following is specifically included:
the comparison passing unit 41 is configured to determine whether the consistency comparison result passes.
And the new version installation unit 42 is configured to install the application file of the new application version on the current testing environment and the production environment if the consistency comparison result passes.
In order to accurately extract the file type name from the application file, in an embodiment of the application running environment data processing apparatus of the present application, referring to fig. 11, the separate encryption module 20 further specifically includes the following:
an application file parsing unit 23, configured to parse the application file and determine the application file type.
A file type name extracting unit 24, configured to extract a file type name of the application file from the parsed application file according to a preset identifier and an extraction rule corresponding to the application file type.
In order to accurately extract the file type name from the application file, in an embodiment of the application execution environment data processing apparatus of the present application, referring to fig. 12, the file type name extracting unit 24 further specifically includes the following:
the extraction position determining subunit 241 is configured to determine, according to the preset identifier, an extraction position of a file type name in the parsed application file.
A name extracting subunit 242, configured to extract a file type name of the application file according to the extraction location and an extraction rule corresponding to the application file type.
In order to effectively improve accuracy and efficiency of consistency comparison operation of an application in a test environment and a production environment from a hardware level, the application provides an embodiment of an electronic device for implementing all or part of contents in a data processing method of an application running environment, wherein the electronic device specifically comprises the following contents:
a processor (processor), a memory (memory), a communication interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete communication with each other through the bus; the communication interface is used for realizing information transmission between the application running environment data processing device and related equipment such as a core service system, a user terminal, a related database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, etc., and the embodiment is not limited thereto. In this embodiment, the logic controller may refer to an embodiment of the application running environment data processing method and an embodiment of the application running environment data processing apparatus in the embodiments, and the contents thereof are incorporated herein, and are not repeated here.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Wherein, intelligent wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the application running environment data processing method may be executed on the electronic device side as described above, or all operations may be completed in the client device. Specifically, the selection may be made according to the processing capability of the client device, and restrictions of the use scenario of the user. The present application is not limited in this regard. If all operations are performed in the client device, the client device may further include a processor.
The client device may have a communication module (i.e. a communication unit) and may be connected to a remote server in a communication manner, so as to implement data transmission with the server. The server may include a server on the side of the task scheduling center, and in other implementations may include a server of an intermediate platform, such as a server of a third party server platform having a communication link with the task scheduling center server. The server may include a single computer device, a server cluster formed by a plurality of servers, or a server structure of a distributed device.
Fig. 13 is a schematic block diagram of a system configuration of an electronic device 9600 of an embodiment of the present application. As shown in fig. 13, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 13 is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In one embodiment, the application runtime environment data processing method functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to perform the following control:
step S101: and acquiring the test environment application file and the production environment application file under the current application version.
Step S102: and determining the file type name in the application file according to the preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext.
Step S103: and carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext to obtain a consistency comparison result of the test environment and the production environment under the current application version.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, the identifier is preset in the application file, and then the file type name of the application file is determined through the preset identifier, so that the hash function encryption is performed on the file type name and the file content of the application file, then the production environment application file corresponding to the test environment application file is determined through the type name ciphertext obtained through encryption, and the consistency comparison is performed on the file content ciphertext of the production environment application file and the production environment application file, so that the accuracy and the efficiency of the consistency comparison operation of the application in the test environment and the production environment are improved.
In another embodiment, the application runtime data processing apparatus may be configured separately from the central processor 9100, for example, the application runtime data processing apparatus may be configured as a chip connected to the central processor 9100, and the application runtime data processing method functions are implemented by control of the central processor.
As shown in fig. 13, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 need not include all of the components shown in fig. 13; in addition, the electronic device 9600 may further include components not shown in fig. 13, and reference may be made to the related art.
As shown in fig. 13, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
The embodiments of the present application further provide a computer readable storage medium capable of implementing all the steps in the application execution environment data processing method in which the execution subject in the above embodiment is a server or a client, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the application execution environment data processing method in which the execution subject in the above embodiment is a server or a client, for example, the processor implements the following steps when executing the computer program:
step S101: and acquiring the test environment application file and the production environment application file under the current application version.
Step S102: and determining the file type name in the application file according to the preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext.
Step S103: and carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext to obtain a consistency comparison result of the test environment and the production environment under the current application version.
As can be seen from the above description, the computer readable storage medium provided in the embodiments of the present application determines the file type name of the application file by presetting an identifier in the application file, and further determines the file type name and the file content of the application file by presetting the identifier, so as to encrypt the file type name and the file content of the application file by a hash function respectively, then determines the production environment application file corresponding to the test environment application file by using the encrypted type name ciphertext, and performs consistency comparison on the file content ciphertext of the application file and the production environment application file, thereby improving the accuracy and efficiency of the consistency comparison operation of the application in the test environment and the production environment.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. An application execution environment data processing method, the method comprising:
acquiring a test environment application file and a production environment application file under a current application version;
determining a file type name in the application file according to a preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext;
and carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext to obtain a consistency comparison result of the test environment and the production environment under the current application version.
2. The method for processing application running environment data according to claim 1, wherein determining a file type name in the application file according to a preset identifier, and performing hash function encryption on the file type name and file content of the application file to obtain a type name ciphertext and a file content ciphertext, respectively, includes:
extracting a file type name from a code remark part in the parsed application file according to a preset identifier corresponding to the application file, and performing hash function encryption to obtain a type name ciphertext;
and encrypting the hash function of the file contents except the file type name in the application file to obtain a file content ciphertext.
3. The application execution environment data processing method according to claim 1, wherein the consistency comparison of the file content ciphertext of the test environment application file and the production environment application file having the same type name ciphertext includes:
judging whether the file type name in the application file belongs to a preset environment consistency necessary list or not;
if yes, determining the file content ciphertext of the production environment application file which is the same as the type name ciphertext of the test environment application file, and carrying out consistency comparison, otherwise, not carrying out consistency comparison on the application file.
4. The application execution environment data processing method according to claim 1, further comprising, after said obtaining a consistency comparison result of the test environment and the production environment under the current application version:
judging whether the consistency comparison result passes or not;
if yes, installing the application file of the new application version on the current testing environment and the production environment.
5. The application execution environment data processing method according to claim 1, wherein the determining the file type name in the application file according to the preset identifier includes:
analyzing the application file and determining the type of the application file;
and extracting the file type name of the application file from the parsed application file according to the preset identifier and the extraction rule corresponding to the application file type.
6. The method for processing application execution environment data according to claim 5, wherein extracting the file type name of the application file from the parsed application file according to the preset identifier and the extraction rule corresponding to the application file type, comprises:
determining the extraction position of the file type name in the parsed application file according to the preset identifier;
and extracting the file type name of the application file according to the extraction position and the extraction rule corresponding to the application file type.
7. An application execution environment data processing apparatus, comprising:
the file acquisition module is used for acquiring a test environment application file and a production environment application file under the current application version;
the independent encryption module is used for determining the file type name in the application file according to the preset identifier, and respectively carrying out hash function encryption on the file type name and the file content of the application file to obtain a type name ciphertext and a file content ciphertext;
and the corresponding comparison module is used for carrying out consistency comparison on the file content ciphertext of the test environment application file and the file content ciphertext of the production environment application file with the same type name ciphertext, so as to obtain a consistency comparison result of the test environment and the production environment under the current application version.
8. The application execution environment data processing device of claim 7, wherein the separate encryption module comprises:
the type name encryption unit is used for extracting the file type name from the code remark part in the parsed application file according to the preset identifier corresponding to the application file and carrying out hash function encryption to obtain a type name ciphertext;
and the file content encryption unit is used for encrypting other file contents except the file type name in the application file by a hash function to obtain a file content ciphertext.
9. 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 application execution environment data processing method of any one of claims 1 to 6 when the program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the application execution environment data processing method of any one of claims 1 to 6.
CN202110177894.1A 2021-02-09 2021-02-09 Application running environment data processing method and device Active CN112905464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110177894.1A CN112905464B (en) 2021-02-09 2021-02-09 Application running environment data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110177894.1A CN112905464B (en) 2021-02-09 2021-02-09 Application running environment data processing method and device

Publications (2)

Publication Number Publication Date
CN112905464A CN112905464A (en) 2021-06-04
CN112905464B true CN112905464B (en) 2024-02-02

Family

ID=76123083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110177894.1A Active CN112905464B (en) 2021-02-09 2021-02-09 Application running environment data processing method and device

Country Status (1)

Country Link
CN (1) CN112905464B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114236276B (en) * 2021-12-07 2022-10-04 安徽中家智锐科技有限公司 Method and system for remotely testing electric appliance

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506341A (en) * 2020-04-21 2020-08-07 北京同邦卓益科技有限公司 Software configuration information detection method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3021404A1 (en) * 2017-10-19 2019-04-19 3D Bridge Solutions Inc. Systems, devices and methods for protecting and exchanging electronic computer files

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506341A (en) * 2020-04-21 2020-08-07 北京同邦卓益科技有限公司 Software configuration information detection method, device and system

Also Published As

Publication number Publication date
CN112905464A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN106375465B (en) A kind of data migration method and server
CN112463634B (en) Software testing method and device under micro-service architecture
CN111782470B (en) Distributed container log data processing method and device
CN114138372B (en) Front-end component loading method and device
CN111078930A (en) Audio file data processing method and device
CN112784112B (en) Message verification method and device
CN112905464B (en) Application running environment data processing method and device
CN111429282A (en) Transaction anti-money laundering method and device based on anti-money laundering model migration
CN113110829B (en) Multi-UI component library data processing method and device
CN113485952A (en) Data batch transmission method and device
CN111930624A (en) Test link message data processing method and device
CN114285657B (en) Firewall security policy change verification method and device
CN113791984B (en) Automatic interface testing method and device
CN113515447B (en) Automatic testing method and device for system
CN114637531A (en) Method and device for dynamically generating application program interface
CN114416212A (en) Mobile terminal application program data resource processing method and device
CN111324586B (en) Picture display method and device based on cache, electronic equipment and medium
CN112102058A (en) Management system parameter configuration method and device
CN113873450A (en) Short message configuration method and device, computer equipment and storage medium
CN102053917A (en) Smart card capable of reducing memory footprint and instruction processing method thereof
CN112101810A (en) Risk event control method, device and system
CN112905491B (en) Software test effectiveness analysis method and device
CN113760683B (en) Log acquisition method and device
CN113342501B (en) System fault processing method and device
CN113157277A (en) Host file processing method and device

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
GR01 Patent grant
GR01 Patent grant