CN109814849B - Information synchronization method and device - Google Patents

Information synchronization method and device Download PDF

Info

Publication number
CN109814849B
CN109814849B CN201711156982.3A CN201711156982A CN109814849B CN 109814849 B CN109814849 B CN 109814849B CN 201711156982 A CN201711156982 A CN 201711156982A CN 109814849 B CN109814849 B CN 109814849B
Authority
CN
China
Prior art keywords
code
design
test
file
test code
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
CN201711156982.3A
Other languages
Chinese (zh)
Other versions
CN109814849A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201711156982.3A priority Critical patent/CN109814849B/en
Publication of CN109814849A publication Critical patent/CN109814849A/en
Application granted granted Critical
Publication of CN109814849B publication Critical patent/CN109814849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides an information synchronization method and device, relates to the technical field of software development, and can achieve automatic synchronization of configuration information from a design code to a test code and improve the efficiency and accuracy of configuration information synchronization. The method comprises the following steps: acquiring configuration information of a design code; acquiring a mapping relation between a test code and the design code, wherein the test code is obtained according to the design code; generating configuration information of the test code according to the mapping relation between the test code and the design code and the configuration information of the design code; and the configuration information of the test code corresponds to the configuration information of the design code.

Description

Information synchronization method and device
Technical Field
The present application relates to the field of software development technologies, and in particular, to an information synchronization method and apparatus.
Background
In the software development process, for convenience of management, software code (hereinafter, referred to simply as design code) that a designer is writing and software code for a periodic version test (hereinafter, referred to simply as test code) that is generated from the design code by a quality inspection means such as syntax checking are generally stored separately in different systems or servers. Meanwhile, it is also necessary to set access rights, such as access prohibition, read-only or read-write, for the design code and the test code, respectively, for different users (such as designers, testers and project managers).
At present, after a user right is manually set for a design code, when a test code is generated according to the design code, the user right corresponding to the user right of the design code needs to be manually configured for the test code, that is, the user right of the design code needs to be manually configured on the test code synchronously. In addition, when the user authority is changed, the user authority configured by the design code and the test code needs to be manually modified correspondingly. Therefore, in the process of realizing the synchronization of the user permission of the design code and the user permission of the test code, all the user permission needs to be completed manually, the efficiency is low, and errors are easy to occur.
Disclosure of Invention
The application provides an information synchronization method and device, which can realize automatic synchronization of configuration information from a design code to a test code, and improve the efficiency and accuracy of configuration information synchronization.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides an information synchronization method, including:
acquiring configuration information of a design code and a mapping relation between a test code and the design code; generating configuration information of the test codes according to the mapping relation between the test codes and the design codes and the configuration information of the design codes; the test code is obtained according to the design code, and the configuration information of the test code corresponds to the configuration information of the design code.
In a second aspect, the present application provides an information synchronization apparatus, comprising:
the processing module is used for acquiring configuration information of the design code and acquiring a mapping relation between the test code and the design code, wherein the test code is obtained according to the design code; the processing module is also used for generating the configuration information of the test codes according to the mapping relation between the test codes and the design codes and the configuration information of the design codes; wherein the configuration information of the test code corresponds to the configuration information of the design code.
In a third aspect, the present application provides an information synchronization apparatus, comprising: a processor and a memory. The memory is configured to store computer-executable instructions, and when the information synchronization apparatus runs, the processor executes the computer-executable instructions stored in the memory, so that the information synchronization apparatus executes the information synchronization method according to any one of the first aspect and various optional implementations thereof.
In a fourth aspect, the present application provides a computer-readable storage medium, in which one or more programs are stored, the one or more programs including computer-executable instructions, and when a processor of an information synchronization apparatus executes the computer-executable instructions, the information synchronization apparatus executes the information synchronization method according to the first aspect.
The information synchronization method and the device provided by the embodiment of the application can automatically acquire the configuration information of the design code, the mapping relation between the code tree of the test code and the code tree of the design code, and automatically generate the configuration information of the test code according to the mapping relation and the configuration information of the design code, so that the conditions of low efficiency and high possibility of errors in the process of manually synchronizing the configuration information from the design code to the test code are avoided, the automatic synchronization of the configuration information from the design code to the test code is realized, and the efficiency and the accuracy of the configuration information synchronization are improved.
Drawings
Fig. 1 is a schematic structural diagram of a software management system according to an embodiment of the present application;
fig. 2 is a first schematic diagram of an information synchronization method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating an information synchronization method according to an embodiment of the present application;
fig. 4 is a third schematic diagram of an information synchronization method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a fourth information synchronization method according to an embodiment of the present application;
fig. 6 is a first schematic structural diagram of an information synchronization apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an information synchronization apparatus according to an embodiment of the present application.
Detailed Description
The following describes in detail an information synchronization method and apparatus provided in the embodiments of the present application with reference to the accompanying drawings.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The information synchronization method provided by the embodiment of the application can be applied to the software management system 10 shown in fig. 1. As shown in fig. 1, the software management system 10 may include: one or more servers 11, and a plurality of clients 12 in wired and/or wireless connection with the servers 11, and users can log in to the servers 11 through the clients 12. The design code management tool 11a and the test code management tool 11b may be installed in the same server 11, or may be installed in 2 servers 11 that are connected to each other by wire and/or wireless. In addition, the software management system 10 may further include a memory 11c for storing design codes and configuration information thereof, and test codes and configuration information thereof. The memory 11c may be a storage device such as a magnetic disk inside the server 11, an independent storage device connected to the server 11 by wire and/or wireless, or a storage device group including both storage devices. It should be noted that fig. 1 is only an exemplary architecture diagram, and the software management system 10 may include other functional units besides the functional units shown in fig. 1, which is not limited in this embodiment of the present application.
An embodiment of the present application provides an information synchronization method, as shown in fig. 2, the method may include S201 to S203:
s201, obtaining configuration information of the design code.
The design code may be stored in the memory 11c shown in fig. 1 in the form of a design code file, and may be managed by the design code management tool 11a in fig. 1.
Alternatively, the configuration information of the design code may include a user access right of the design code, and the user access right of the design code may include an access right of the design code file.
Specifically, the access rights of different users may be different for the same design code file. For example, the user 1 is a designer who designs the code file a, and is responsible for encoding and modifying the code file a, so that the access right set for the user 1 is readable and writable. The user 2 is a tester for designing the code file a and is only responsible for the test work of the design code file a, so that the access right set for the user 2 is read-only. The user 3 has no relation to both the design work and the test work of the design code file a, and therefore the user 3 is prohibited from accessing the design code file a.
In particular, the permissions of different design code files that can be accessed by the same user may also be different. For example, the user 1 is a designer who designs the code file a, and is responsible for encoding and modifying the source design code file a, so the access right set for the user 1 is readable and writable. The design code file B is coded and modified by the user 2, information interaction exists between the design code file B and the design code file A, for example, a function calling relation exists, and the permission for accessing the design code file B can be configured to be read-only for the user 1.
In practical application, in order to avoid that the number of code lines in a design code file is too large and the readability and maintainability of codes are reduced, the same software is generally divided into modules, one or more directories for storing the design code file of each module are established for each module, and the code files and the directories thereof stored in the above manner form a tree structure, which is called a code tree of the design file in the embodiment of the present application. Thus, the access rights of the design code may also include the access rights of the directory for storing the design code file.
It is understood that the access right of the design code file has a corresponding relation with the file name and the storage position thereof, that is, the access right of the design code file has a mapping relation with the code tree thereof, and the above mapping relation of the code tree of the design code-the user access right can be stored in the memory 11c as shown in fig. 1 in the form of the user right configuration file. For example, when Subversion is adopted by the design code management tool 11a in fig. 1, the mapping relationship of "code tree of design code-user access right" may be stored in the user right configuration file perm.
Illustratively, a Python program is used to parse a user permission configuration file perm.conf of a design code management tool Subversion, the user permission configuration file conforms to a standard format supported by Subversion, and a data structure obtained by parsing is stored in a Python dictionary object% perm _ map, in the object, a code tree (a storage directory of the design code file and a file name thereof) of a design code is used as a key Kt of a dictionary, a user access permission of the design code file is used as a value V of the dictionary, wherein the user access permission V is also a dictionary object, a user name is used as a key Ku of the dictionary, and an access permission type is used as a value Vt of the dictionary.
It should be noted that, in practical applications, when a code tree of a design code is established, or when a code tree structure of the design code changes, for example, at least one of addition, deletion, and renaming of a directory storing the design code, and/or at least one of addition, deletion, and renaming of a design code file, a user right configuration file of the design code needs to be generated or modified according to a user input instruction.
S202, obtaining the mapping relation between the test code and the design code.
The test code is a code copy obtained according to the design code, and specifically, the design code is input to the test code tool 11b to execute a staged version test or a code copy generated in a code inspection process (generally, the test code has defect information of the code), and the test code may be stored separately by using a tree directory structure identical to that of the design code, or may be stored separately by using different tree directory structures. It is understood that the 2 tree directory structures described above have a mapping relationship of "code tree of test code-code tree of design code", and the mapping relationship may be stored in the memory 11c as shown in fig. 1 in the form of a code mapping relationship configuration file. For example, when the test code tool 11b in fig. 1 employs coverage, the mapping relationship of "code tree of test code-code tree of design code" may be stored in the code mapping relationship configuration file tree _ map.cfg in the form of a parsable data structure such as HASH table in the programming language.
It should be noted that, in practical applications, the code mapping relationship configuration file may be automatically created or modified according to the updated code tree of the design code when the code tree formed by the storage path of the test code file is created or when the code tree structure formed by the storage path of the design code file is changed, for example, at least one of addition, deletion and renaming of a file directory storing the design code and/or at least one of addition, deletion and renaming of the design code file.
Optionally, before executing S202 to obtain the mapping relationship between the test code and the design code, in conjunction with fig. 2, as shown in fig. 3, the method further includes S301:
s301, acquiring a preset code mapping relation configuration file.
The code mapping relation configuration file is used for storing the mapping relation between the test code and the design code.
Optionally, the mapping relationship between the test code and the design code includes a mapping relationship between a design code file storing the design code and a test code file storing the test code, and the mapping relationship is specifically a mapping relationship between a storage path of the design code file storing the design code and a storage path of the test code file storing the test code; as shown in fig. 3, the step S202 of obtaining the mapping relationship between the test code and the design code may include the step S302:
s302, obtaining the mapping relation between the design code file and the test code file.
Illustratively, the Python program may be used to analyze the code file mapping configuration file tree _ map.cfg stored in the memory 11c in fig. 1, and store the analyzed code file mapping in the Python dictionary object% tree _ map, where the object uses the code tree of the test code (the storage directory structure and file name of the test code file) as the key Kvt and uses the code tree of the corresponding design code as the value Vct (the storage directory structure and file name of the design code file).
S203, generating the configuration information of the test code according to the mapping relation between the test code and the design code and the configuration information of the design code.
The configuration information of the test code corresponds to the configuration information of the design code.
Optionally, the configuration information of the design code includes a user access right of the design code, and in combination with fig. 2 or fig. 3, taking fig. 2 as an example, an information synchronization method as shown in fig. 4 may also be obtained. As shown in fig. 4, the step S203 of generating the configuration information of the test code according to the mapping relationship between the test code and the design code and the configuration information of the design code may include step S401:
s401, generating user access authority of the test code according to the mapping relation between the test code and the design code and the user access authority of the design code.
Specifically, the user access right of the design code includes a user access right of the design code file, the user access right of the test code includes a user access right of the test code file, and the mapping relationship between the test code and the design code includes a mapping relationship between the test code file and the design code file, as shown in fig. 5, S401 generates the user access right of the test code according to the mapping relationship between the test code and the design code and the user access right of the design code, and may include S501 to S503:
s501, acquiring a design code file corresponding to the test code file according to the test code file and the mapping relation between the test code file and the design code file;
s502, obtaining user access authority of a design code file corresponding to the test code file;
s503, generating user access authority of the test code file, wherein the user access authority of the test code file corresponds to the user access authority of the design code file corresponding to the test code file.
Illustratively, by using a Python program, combining the dictionary object% perm _ map obtained in S201 with the dictionary object% tree _ map obtained in S202, a mapping relationship of "code tree of test code-code tree of design code-user access right" can be obtained and stored in Python dictionary object% sync _ map.
Wherein, the specific combination mode can be as follows: traversing the% perm _ map, comparing the Kt value in the% perm _ map with the Kvt value in the% tree _ map, and when the two values correspond to each other, adding the Kt value in the% perm _ map as the key of the% sync _ map, and storing the value as a list, wherein the first item of the list is the content Vct of the code tree of the test code, and the second item is the dictionary object { Ku: vt } corresponding to the Kt key. And then, calling a Web service provided by a test code management tool context by using a Python program Web service library interface, traversing% sync _ map, and adding a code tree of the test code and the user access right into the% sync _ map.
The information synchronization method provided by the embodiment of the application can automatically acquire the configuration information of the design codes and the mapping relation between the code tree of the test codes and the code tree of the design codes, and automatically generate the configuration information of the test codes according to the mapping relation and the configuration information of the design codes, so that the conditions of low efficiency and high possibility of errors in the process of manually synchronizing the configuration information from the design codes to the test codes are avoided, the automatic synchronization of the configuration information from the design codes to the test codes is realized, and the efficiency and the accuracy of the configuration information synchronization are improved.
Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, functional modules or functional units may be divided according to the method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the information synchronization apparatus provided in the embodiments of the present application, in a case where each functional module is divided according to each function, fig. 6 illustrates a schematic diagram of a possible structure of the information synchronization apparatus related in the above embodiments. Wherein the information synchronization means may be the server 11 as shown in fig. 1. As shown in fig. 6, the information synchronization apparatus includes a processing module 61, a storage module 62, and a communication module 63.
The processing module 61 is configured to obtain configuration information of the design code;
the processing module 61 is further configured to obtain a mapping relationship between the test code and the design code, where the test code is a code obtained according to the design code;
the processing module 61 is further configured to generate configuration information of the test code according to the mapping relationship between the test code and the design code and the configuration information of the design code; the configuration information of the test code corresponds to the configuration information of the design code;
a storage module 62, configured to store design codes and configuration information thereof, and test codes and configuration information thereof;
and a communication module 63 for communication between the information synchronization apparatus and other network entities in the software management system.
Optionally, the processing module 61 is further configured to obtain a preset code mapping relationship configuration file, where the code mapping relationship configuration file is used to store a mapping relationship between the test code and the design code.
Specifically, the mapping relationship between the test code and the design code includes a mapping relationship between a design code file storing the design code and a test code file storing the test code, and the processing module 61 is further configured to obtain the mapping relationship between the design code file and the test code file.
Optionally, the configuration information of the design code includes a user access right of the design code, and the processing module 61 is further configured to generate the user access right of the test code according to the mapping relationship between the test code and the design code and the user access right of the design code.
Specifically, the user access right of the design code comprises the user access right of the design code file, the user access right of the test code comprises the user access right of the test code file, the mapping relation between the test code and the design code comprises the mapping relation between the test code file and the design code file,
the processing module 61 is further configured to obtain a design code file corresponding to the test code file according to the test code file and the mapping relationship between the test code file and the design code file;
the processing module 61 is further configured to obtain a user access right of the design code file corresponding to the test code file;
the processing module 61 is further configured to generate a user access right of the test code file, where the user access right of the test code file corresponds to a user access right of a design code file corresponding to the test code file.
The information synchronization device provided by the embodiment of the application can automatically acquire the configuration information of the design code, the mapping relation between the code tree of the test code and the code tree of the design code, and automatically generate the configuration information of the test code according to the mapping relation and the configuration information of the design code, so that the conditions of low efficiency and high error probability in the process of manually synchronizing the configuration information from the design code to the test code are avoided, the automatic synchronization of the configuration information from the design code to the test code is realized, and the efficiency and the accuracy of the synchronization of the configuration information are improved.
Fig. 7 shows a schematic diagram of a possible structure of the information synchronization apparatus according to the above embodiment, in the case of using an integrated unit. The information synchronization device comprises a processing unit 71. The processing unit 71 is used for controlling and managing the actions of the information synchronization apparatus, for example, performing the steps performed by the processing module 61 described above, and/or other processes for performing the techniques described herein. The information synchronizing device may further include a storage unit 72, a communication unit 73, and a bus 74. The storage unit 72 is used for storing design codes and configuration information thereof, and test codes and configuration information thereof. A communication unit 73 for supporting communication of the information synchronization apparatus with other network entities. For example, characters, instructions, etc. input by the user through the client 12 as shown in fig. 1 are received. The bus 74 is used for communication between the processing unit 71, the storage unit 72, and the communication unit 73.
Where the information synchronization apparatus may be the server 11 shown in fig. 1, the processing unit 71 may be a processor or a controller in the information synchronization apparatus, and the processor or the controller may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the present disclosure. The processor or controller may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The communication unit 73 may be a transceiver, a transmitting and receiving circuit, a communication interface, or the like in the information synchronization apparatus.
The storage unit 72 may be a memory or the like in the information synchronization apparatus, or may be a separate storage device that is connected to the information synchronization apparatus by wire and/or wirelessly. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 74 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 74 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The present invention further provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, where the one or more programs include instructions, and when a processor of an information synchronization apparatus executes the instructions, the information synchronization apparatus executes the steps performed by the information synchronization apparatus in the method flow shown in the foregoing method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or in software instructions executed by a processor. The software instructions may consist of corresponding software modules that may be stored in RAM, flash memory, ROM, erasable Programmable Read Only Memory (EPROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, a hard disk, a removable hard disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. An information synchronization method, comprising:
acquiring configuration information of a design code; wherein the configuration information of the design code comprises user access rights of the design code;
acquiring a mapping relation between a test code and the design code, wherein the test code is a code obtained according to the design code;
generating configuration information of the test code according to the mapping relation between the test code and the design code and the configuration information of the design code; the configuration information of the test code corresponds to the configuration information of the design code, and the configuration information of the test code comprises the user access right of the test code.
2. The method of claim 1, wherein before the obtaining the mapping relationship between the test code and the design code, the method further comprises:
and acquiring a preset code mapping relationship configuration file, wherein the code mapping relationship configuration file is used for storing the mapping relationship between the test code and the design code.
3. The method of claim 2, wherein the mapping relationship between the test code and the design code comprises a mapping relationship between a design code file storing the design code and a test code file storing the test code, and wherein obtaining the mapping relationship between the test code and the design code comprises:
and acquiring the mapping relation between the design code file and the test code file.
4. The method according to any one of claims 1 to 3, wherein the user access right of the design code comprises a user access right of a design code file, the user access right of the test code comprises a user access right of a test code file, the mapping relationship between the test code and the design code comprises a mapping relationship between the test code file and the design code file, and the generating the configuration information of the test code according to the mapping relationship between the test code and the design code and the configuration information of the design code comprises:
acquiring a design code file corresponding to the test code file according to the test code file and the mapping relation between the test code file and the design code file;
acquiring user access authority of a design code file corresponding to the test code file;
and generating user access authority of the test code file, wherein the user access authority of the test code file corresponds to the user access authority of the design code file corresponding to the test code file.
5. An information synchronization apparatus, comprising:
the processing module is used for acquiring the configuration information of the design code; wherein the configuration information of the design code comprises user access rights of the design code;
the processing module is further configured to obtain a mapping relationship between a test code and the design code, where the test code is a code obtained according to the design code;
the processing module is further configured to generate configuration information of the test code according to the mapping relationship between the test code and the design code and the configuration information of the design code; the configuration information of the test code corresponds to the configuration information of the design code, and the configuration information of the test code comprises the user access right of the test code.
6. The apparatus according to claim 5, wherein the processing module is further configured to obtain a preset code mapping relationship configuration file, and the code mapping relationship configuration file is configured to store a mapping relationship between the test code and the design code.
7. The apparatus according to claim 6, wherein the mapping relationship between the test code and the design code includes a mapping relationship between a design code file storing the design code and a test code file storing the test code, and the processing module is further configured to obtain the mapping relationship between the design code file and the test code file.
8. The apparatus of any one of claims 5-7, wherein the user access rights of the design code comprise user access rights of the design code file, the user access rights of the test code comprise user access rights of the test code file, the mapping relationship between the test code and the design code comprises a mapping relationship between the test code file and the design code file,
the processing module is further used for acquiring a design code file corresponding to the test code file according to the test code file and the mapping relation between the test code file and the design code file;
the processing module is also used for acquiring the user access authority of the design code file corresponding to the test code file;
the processing module is further configured to generate a user access right of the test code file, where the user access right of the test code file corresponds to a user access right of a design code file corresponding to the test code file.
CN201711156982.3A 2017-11-20 2017-11-20 Information synchronization method and device Active CN109814849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711156982.3A CN109814849B (en) 2017-11-20 2017-11-20 Information synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711156982.3A CN109814849B (en) 2017-11-20 2017-11-20 Information synchronization method and device

Publications (2)

Publication Number Publication Date
CN109814849A CN109814849A (en) 2019-05-28
CN109814849B true CN109814849B (en) 2022-10-25

Family

ID=66599337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711156982.3A Active CN109814849B (en) 2017-11-20 2017-11-20 Information synchronization method and device

Country Status (1)

Country Link
CN (1) CN109814849B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996069A (en) * 2009-08-13 2011-03-30 上海杉达学院 Test code generating system for software test
CN106778345A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 The treating method and apparatus of the data based on operating right

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8381184B2 (en) * 2008-09-02 2013-02-19 International Business Machines Corporation Dynamic test coverage
US20110271252A1 (en) * 2010-04-28 2011-11-03 International Business Machines Corporation Determining functional design/requirements coverage of a computer code
CN101982815A (en) * 2010-11-03 2011-03-02 北京世纪高通科技有限公司 Software test system and method
US20130097584A1 (en) * 2011-10-18 2013-04-18 Michal Ayash Mapping software modules to source code
CN103220163B (en) * 2012-01-19 2017-03-01 阿里巴巴集团控股有限公司 The update method of configuration information and system
US8799853B2 (en) * 2012-02-17 2014-08-05 National Instruments Corporation Dynamic synchronization in a target system having multiple programmable hardware elements
CN103377125A (en) * 2012-04-25 2013-10-30 杭州勒卡斯广告策划有限公司 Code testing method, device and system
CN105302716B (en) * 2014-07-30 2019-05-24 腾讯科技(深圳)有限公司 Test method, device under the development mode of interflow
CN104462903B (en) * 2014-12-15 2019-01-08 北京国双科技有限公司 The treating method and apparatus of operation system permission
CN106844730B (en) * 2017-02-10 2020-05-05 网易(杭州)网络有限公司 Method and device for displaying file content

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996069A (en) * 2009-08-13 2011-03-30 上海杉达学院 Test code generating system for software test
CN106778345A (en) * 2016-12-19 2017-05-31 网易(杭州)网络有限公司 The treating method and apparatus of the data based on operating right

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
权限思路及代码实现;无语的HAHA;《https://blog.csdn.net/u013403892/article/details/51979481》;20160721;第1-3页 *

Also Published As

Publication number Publication date
CN109814849A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN110569035B (en) Code compiling method, device, equipment and storage medium of software development project
US11403094B2 (en) Software pipeline configuration
US10216510B2 (en) Silent upgrade of software with dependencies
US20160283357A1 (en) Call stack relationship acquiring method and apparatus
US9432369B2 (en) Secure data containers
CN111259412B (en) Authority control method, authority control device, computer equipment and storage medium
CN110941547B (en) Automatic test case library management method, device, medium and electronic equipment
CN107797996B (en) Entry translation method and device
US20150154413A1 (en) Managing Document Revisions
US9317420B2 (en) Computer program installation across multiple memories
US9430674B2 (en) Secure data access
US20180349102A1 (en) Apparatus and method for converting large-scale application
CN108228611B (en) Document information copying method and device
WO2018175643A1 (en) System and method for providing restricted access to production files in a code development environment
CN109814849B (en) Information synchronization method and device
CN112685077A (en) Data modification method, system, computer device and computer readable storage medium
WO2018175607A1 (en) System and method for providing secure access to production files in a code deployment environment
KR102229879B1 (en) Source code managing method using block chain, server performing the same, and source code developing method using the same
US9519759B2 (en) Secure access to programming data
KR101556831B1 (en) Input method of permission for application development and recording medium storing program for executing method of developing android application
CN116249980A (en) Software access through heterogeneous encryption
US20240095029A1 (en) Catalog for managing modular code
CN116933285A (en) Upgrading method, equipment, medium and computer program product for data encryption
CN107479899B (en) File processing method and device, storage medium and processor
CN114090841A (en) Mirror image tracing method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant