Information processing method and device, equipment and storage medium

By comparing the text control attribute information of different versions of the software to determine the update status and user interface, the problems of low testing efficiency and insufficient coverage are solved, and a more comprehensive testing effect is achieved.

CN118689757APending Publication Date: 2024-09-24SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310327632.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In software testing, testers need to manually compare text information for software in different language versions, which results in low efficiency and the possibility of missing text information, resulting in poor testing results and the inability to guarantee the quality of overseas versions.

Method used

Obtain the text control attribute information of the target application in the historical version and the target version, compare it, generate differential attribute information, determine the update status of the text control, and determine the user interface based on the corresponding relationship between the control identification and the interface identification to improve testing. coverage and efficiency.

Benefits of technology

It improves the testing efficiency and coverage, reduces the possibility of missed testing, ensures that all text controls with text changes in the software are fully tested, and improves the testing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689757A
    Figure CN118689757A
Patent Text Reader

Abstract

The embodiment of the invention provides an information processing method and device, equipment and a storage medium. The method comprises the steps that first attribute information of at least one text control of a target application under a historical version and second attribute information of at least one text control of the target application under a target version are obtained; the first attribute information and the second attribute information are compared to obtain difference attribute information, and the difference attribute information comprises a control identifier of the target text control; the difference attribute information is used for indicating that the text information of the target text control of the target application under the target version is updated relative to the text information of the target text control of the target application under the historical version; according to the corresponding relation between the control identifier and the interface identifier, a user interface corresponding to the target text control is determined, interface information is generated, and the interface information comprises the interface identifier of the user interface. By adopting the embodiment of the invention, the comprehensive to-be-tested text content can be extracted, so that the test effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, and in particular to an information processing method, an information processing apparatus, an information processing device, and a computer-readable storage medium. Background Art

[0002] With the development of Internet technology and the popularization of electronic devices, more and more users use electronic devices for life and entertainment. Since users of electronic devices are distributed in different regions, have different cultures and use different languages, software production companies can localize the software they develop for the languages ​​of different regions to obtain software in different language versions. Furthermore, software production companies also need to test software in different language versions.

[0003] At present, when testing software in different language versions, testers are mainly concerned about whether the translated text in the software interface has abnormal display such as out-of-frame or truncation in different language environments. Due to the complexity of the content of a software version, for tests involving changes in text information, testers usually need to manually compare each text information. This processing method is inefficient and may result in missing text information, resulting in incomplete translation texts, poor testing results, and failure to guarantee the quality of the overseas version delivered. Summary of the invention

[0004] The embodiments of the present application provide an information processing method, apparatus, terminal device and storage medium, which can extract comprehensive text content to be tested. On the one hand, it can improve the testing efficiency of testers, and on the other hand, it can also improve the coverage of the test text content, thereby helping to improve the test effect.

[0005] In a first aspect, an embodiment of the present application provides an information processing method, the method comprising:

[0006] Acquire first property information of at least one text control of a target application in a historical version, and second property information of at least one text control of the target application in a target version; wherein the target application of the target version is obtained by updating the target application of the historical version;

[0007] Comparing the first attribute information with the second attribute information to obtain difference attribute information, wherein the difference attribute information includes a control identifier of a target text control, and the difference attribute information is used to indicate that text information of the target text control of the target application in the target version is updated relative to text information of the target text control of the target application in a historical version;

[0008] According to the correspondence between the control identifier and the interface identifier, the user interface corresponding to the target text control is determined, and interface information is generated. The interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version.

[0009] In a possible implementation, determining the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier includes:

[0010] According to the correspondence between the control identifier and the dynamic information table, determine N dynamic information tables corresponding to the target text control under the target version, where N is an integer greater than or equal to 1;

[0011] Acquire dynamic information of a target text control under the target version from the N dynamic information tables, wherein the dynamic information includes an interface identifier;

[0012] The user interface corresponding to the interface identifier is determined as the user interface corresponding to the target text control in the target version.

[0013] In a possible implementation, the control identifier of the target text control is obtained by combining the identification information of the target text control and the interface identifier of the user interface where the target text control is located in the target version;

[0014] The step of determining the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier includes:

[0015] Acquire the interface identifier from the control identifier of the target text control;

[0016] The user interface corresponding to the obtained interface identifier is determined as the user interface corresponding to the target text control under the target version.

[0017] In a possible implementation manner, a manner of acquiring any one of the first attribute information or the second attribute information includes:

[0018] Obtaining a text configuration file and a translation configuration file, wherein the text configuration file and the translation configuration file both include a control identifier of each text control in at least one text control, and at least one configuration attribute of each text control; the text configuration file and the translation configuration file are configuration files of the target application under the historical version, or configuration files under the target version;

[0019] Obtaining at least one configuration attribute of each text control from the text configuration file and the translation configuration file according to a set attribute rule;

[0020] According to the control identifier of each text control and at least one configuration property of each text control, any property information of at least one text control is determined.

[0021] In a possible implementation, at least one configuration attribute in the first attribute information of each text control includes text information of the text control in the historical version; at least one configuration attribute in the second attribute information of each text control includes text information of the text control in the target version; and the first attribute information and the second attribute information are compared to obtain difference attribute information, including:

[0022] For any text control, compare the text information of the text control in the historical version with the text information of the text control in the target version;

[0023] The text control whose text information under the historical version is different from the text information under the target version is used as the target text control, and the difference attribute information is generated.

[0024] In a possible implementation manner, comparing the first attribute information and the second attribute information to obtain difference attribute information includes:

[0025] The at least one text control is traversed, and if only the first attribute information or the second attribute information of the currently traversed text control exists in the acquired first attribute information and second attribute information, the currently traversed text control is used as the target text control.

[0026] In a possible implementation, the difference attribute information further includes a comparison result of the first attribute information and the second attribute information of the target text control, and the comparison result is used to indicate any of the following: the text information of the target text control in the target version is inconsistent with the text information of the target text control in the historical version, only the first attribute information of the target text control exists, and only the second attribute information of the target text control exists; the method further includes:

[0027] The comparison result is outputted.

[0028] In a possible implementation, the method further includes:

[0029] Searching N dynamic information tables containing identification information of the target text control from a plurality of dynamic information tables, each of the N dynamic information tables including dynamic information of the target text control under the target version;

[0030] Performing a hash operation on the identification information of the target text control to obtain a control identification of the target text control;

[0031] A dynamic information mapping table is established according to the control identifier of the target text control and the N dynamic information table identifiers. The dynamic information mapping table includes a correspondence between the control identifier and the dynamic information table.

[0032] In a second aspect, an embodiment of the present application provides an information processing device, the device comprising:

[0033] An acquisition unit, used to acquire first property information of at least one text control of a target application in a historical version, and second property information of at least one text control of the target application in a target version; wherein the target application of the target version is obtained by updating the target application of the historical version;

[0034] a comparing unit, configured to compare the first attribute information with the second attribute information to obtain difference attribute information, wherein the difference attribute information includes a control identifier of a target text control, and the difference attribute information is used to indicate that text information of the target text control of the target application in the target version is updated relative to text information of the target text control of the target application in a historical version;

[0035] A determination unit is used to determine the user interface corresponding to the target text control according to the correspondence between the control identifier and the interface identifier, and generate interface information, wherein the interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version.

[0036] In a third aspect, an embodiment of the present application provides an information processing device, comprising a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are interconnected, wherein the memory stores an executable program code, and the processor is used to call the executable program code to execute the information processing method of the first aspect.

[0037] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the information processing method of the first aspect.

[0038] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the information processing device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the information processing device executes the information processing method of the first aspect.

[0039] In an embodiment of the present application, by comparing the attribute information of each text control of the application obtained under the historical version and the target version, the difference attribute information is obtained, and the difference attribute information may include the control identifier of the target text control, which may indicate that the text information of the target text control has been updated in the two versions, and then the user interface corresponding to the target text control can be determined, and the interface information is generated. Thus, according to the result of comparing the attribute information of the text controls of the two versions, the text controls in which all texts in the software have changed can be directly and effectively determined, which can improve the test coverage, make the test more comprehensive, and reduce the possibility of missed tests. And the corresponding scenario in the application can be determined according to the changed text control, that is, by determining the user interface, it can be convenient for testers to test and improve the efficiency of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 It is a schematic diagram of the architecture of an information processing system provided by an embodiment of the present application;

[0042] Figure 2 It is a flowchart of an information processing method provided by an embodiment of the present application;

[0043] Figure 3 It is a structural diagram of attribute information of a text control provided in an embodiment of the present application;

[0044] Figure 4 is a result schematic diagram of a comparison result provided in an embodiment of the present application;

[0045] Figure 5 It is a structural diagram of a dynamic information table mapping provided in an embodiment of the present application;

[0046] Figure 6 It is a schematic diagram of mapping using a dynamic information mapping table provided in an embodiment of the present application;

[0047] Figure 7 It is a timing diagram of an information processing method provided by an embodiment of the present application;

[0048] Figure 8 is a structural diagram of an information processing device provided in an embodiment of the present application;

[0049] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0050] Specific implementation

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0053] 1. Unreal Engine (UE)

[0054] Unreal Engine is a 3D creation software, which can also be understood as a powerful game engine. UE can be used in the production of console games, PC games, mobile games, film and television production, architectural design, 3D simulation city construction, visualization and design performance, drone cruise and many other fields. In the 3D simulation expression and virtual environment simulation, the model built by UE can be used for scene construction and dynamic simulation. Among them, UE4 is the fourth version of UE, which is used in the field of game development and can provide game developers with a large number of core technologies, data generation tools and basic support.

[0055] In the embodiment of the present application, the target application may be an application of a game developed, and the game may be built by the version management tool in UE4 according to the code, resources, files, etc. of the application. If the target application needs to be translated for different regions, it can also be done through UE4, specifically through the localization tool in UE4.

[0056] 2. Localization

[0057] Localization is a tool in UE4, which is used to store, translate, and compile applications that need to adapt to users in different regions and cultures, such as games. Specifically, the tool can collect different types of text objects scattered in different locations in the target application, where the text objects collected by the tool can be included in the code, string table, and control.

[0058] In the embodiment of the present application, the target application can be provided to users in different regions and with different cultures. The target application can be localized through the Localization tool to obtain target applications in different languages ​​for use by users in different regions.

[0059] 3. Text configuration file (manifest)

[0060] The text configuration file, also called a text object manifest, can be a comprehensive list generated by collecting all text objects of the target application through the Localization tool, and can include information such as namespace, key value, source text, text source, etc.

[0061] Applied in the embodiment of the present application, the control identifiers and configuration properties of all text controls under a certain version can be obtained through the Localization tool. The configuration properties can be the above-mentioned source text, text source, etc.

[0062] 4. Translate the configuration file (archive)

[0063] The translation configuration file, which can also be called an archive file, can be a file that is localized for different localization targets, that is, for different cultures in different regions, through the Localization tool. It can be understood that the translation configuration file is relative to the text configuration file, which records the translation information, and the translation configuration file can include the source text and the translation text of each key.

[0064] In the embodiment of the present application, the control identifiers and configuration properties of all text controls under a certain version can be obtained through the Localization tool. The configuration properties collected for the translation configuration file include the source text, the translated text, etc.

[0065] 5. Unreal Motion Graphics User Interface Designer (UMG)

[0066] UMG is a user interface (UI) design tool in UE, which can be used to create UI elements, such as menus in games and other information that can interact with characters. UMG can provide a series of pre-written functions to build user interfaces, such as buttons, check boxes, progress bars, and sliders. Among them, the game interface can refer to one or more UMG components created by users. The strings in UE include text class objects FText. All user-oriented texts should use this class, that is, the text class object FText is used to display the text information to the player, and the text localization component is the FText class. The text class object FText can only be displayed to the player when the game is running if it exists in the corresponding UMG, and can represent a specific game scene in the game.

[0067] Applied in the embodiments of the present application, UMG can be understood as a user interface including text controls, the text information is stored in the corresponding UMG, and the UMG interface can also be called a UMG blueprint.

[0068] 6. StringTable

[0069] The string table is an application resource that includes a list of all string identifiers, values, and titles in the application. It can store text information that has been localized by the Localization tool. The localized text information can form a text set and can be stored in the string table according to the text identifier and text information. Entries can be referenced from the string table through code, controls, and other resources, and localized text information can be reused.

[0070] In the embodiment of the present application, all text information in the localized version can be stored in the string table, that is, the control identifier and text information of the text control can be stored in the string table.

[0071] 7. Dynamic Information Table

[0072] A dynamic information table can also be called a planning table. The dynamic information table includes text information in a variety of different application scenarios. In an application, different text information is displayed according to different user operations. Usually, different text information needs to be dynamically displayed according to the server response packet of the application. A table including all possible triggered text information can be called a dynamic table.

[0073] In the embodiment of the present application, for example, in the target application, the display of the target text control needs to display different text information according to the user's operation. The server providing the target application can query the target text control and trigger the operation in the dynamic information table after receiving the user's operation, so as to determine the returned text information and display it.

[0074] The embodiment of the present application proposes an information processing scheme, which can be applied to various systems with multiple different versions of target applications, or a system that includes testing multiple different versions of target applications. Among them, multiple different versions can be respectively applicable to versions of applications used by users in different regions and cultures. After the target application is localized for a certain region and a certain culture, the text information in the language corresponding to the culture of the region is displayed in the target application. When the version of the target application is updated, it is necessary to localize the updated version and test it. Specifically, the information processing device or system can obtain the attribute information of the text control used to display text information under the historical version and the target version, compare the attribute information of the same text control under the two versions, and obtain the difference attribute information, and then determine the user interface corresponding to the updated text control according to the difference attribute information, and generate interface information, which can indicate the user interface specifically used for testing by the tester, and the user interface can include the text control. It can be seen that by comparing the attribute information to obtain the difference information and interface information, the test efficiency can be improved, and all text controls are compared, the coverage of the test text content can be improved, so that the test results are more comprehensive and the test effect is improved.

[0075] The information processing solution proposed in the embodiment of the present application involves technologies such as database and cloud storage, among which:

[0076] In short, a database can be seen as an electronic filing cabinet - a place where electronic files are stored, and users can add, query, update, delete, and other operations on the data in the files. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application.

[0077] A database management system (DBMS) is a computer software system designed for managing databases. It generally has basic functions such as storage, retrieval, security, and backup. Database management systems can be classified according to the database model they support, such as relational, XML (Extensible Markup Language); or according to the type of computer they support, such as server clusters, mobile phones; or according to the query language used, such as SQL (Structured Query Language), XQuery; or according to performance focus, such as maximum scale, maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMS can cross categories, for example, supporting multiple query languages ​​at the same time.

[0078] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.

[0079] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.

[0080] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is pre-divided into stripes. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0081] Based on the above description, please refer to Figure 1 , Figure 1 It is an architectural diagram of an information processing system provided in an embodiment of the present application. The information processing system may include multiple electronic devices, for example, an application development device 101, an information processing device 102, and an application testing device 103. Among them, the information processing device 102 may be directly or indirectly connected to the application development device 101 by wire or wireless means, and one or more application testing devices 103 may also be directly or indirectly connected to the information processing device 102 by wire or wireless means. Optionally, the information processing device 102 and the application development device 101 and the application testing device 103 may be the same electronic device, or may be three different electronic devices (here, the application testing device 103 includes only one device as an example), and the present application does not limit this. It should be noted that, Figure 1 The number and form of the devices shown are for example purposes and do not constitute a limitation on the embodiments of the present application. In actual applications, the information processing system may include only two electronic devices, such as an information processing device and an application testing device, or in actual applications, the information processing system may include two or more development devices and two or more application testing devices. In actual applications, the information processing system may also include at least two information processing devices. The embodiments of the present application are drawn and explained using an application development device 101, an information processing device 102, and two test devices 103 as examples.

[0082] like Figure 1 As shown, the application development device 101 can be a device for developing the target application. The application development device 101 can be configured with a UE. The developer can develop the target application through the application development device 101. After the development is completed, if the function of the target application is to be updated, the version of the target application can also be further developed and updated through the application development device 101. In addition, the UE includes a localization processing tool, and the developer can also localize the target application according to different regions and cultures through the application development device 101. Before the updated target application is launched in the corresponding region, the tester tests the updated version of the target application through the application testing device 103, especially the part with differences in different languages. Before the tester tests through the application testing device 103, the information processing device 102 can obtain the attribute information of at least one text control in the target version and the historical version, and compare the attribute information of each text control to obtain the difference attribute information, and then the information processing device 102 can determine the user interface corresponding to the control identifier according to the control identifier included in the difference attribute information, and then generate the interface information.

[0083] Furthermore, the information processing device 102 can send the generated interface information to the application testing device 103, and the tester can directly test the text controls in the user interface based on the user interface where each text control with a difference in the received interface information is located through the application testing device 103. Thus, the tester can test each content in the target application where text information has changed, and the user interface where the text control where the text information has changed is located. Among them, the information processing device 102 can generate interface information with the control identifier and the corresponding interface identifier of each text control where text information has been updated, so that the tester can test all contents with text information updates through the application testing device 103.

[0084] Among them, any of the above-mentioned multiple electronic devices (such as multiple application development devices 101, information processing devices 102, one or more application testing devices 103) can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but not limited to this. Any of the above-mentioned multiple electronic devices (such as multiple application development devices 101, information processing devices 102, one or more application testing devices 103) can also be a server, for example, it can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0085] Through the above-mentioned information processing system, the acquired attribute information of each text control in the historical version and the target version of the application is compared to obtain difference attribute information, which may include the control identifier of the target text control, which may indicate that the text information of the target text control has been updated in the two versions, and then the user interface corresponding to the target text control can be determined, and the interface information is generated. Thus, according to the comparison result of the attribute information of the text controls of the two versions, the text controls in which all texts in the software have changed can be directly and effectively determined, which can improve the test coverage, make the test more comprehensive, and reduce the possibility of missed tests. And the corresponding scenario in the application can be determined according to the changed text control, that is, by determining the user interface, it can be convenient for testers to test and improve the efficiency of the test.

[0086] In one implementation, the first attribute information of at least one text control under the historical version of the target application, the second attribute information of at least one text control under the target version of the target application, the difference attribute information, the control identification of each text control, and the interface identification of each user interface can all be stored in the blockchain, which can prevent the first attribute information, the second attribute information, the control identification, and the interface identification from being tampered with. Blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. It is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block.

[0087] It can be understood that the information processing system described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0088] Based on the above information processing scheme and information processing system, the embodiment of the present application provides an information processing method. The above information processing method in the embodiment of the present application can be executed by an electronic device, which can be Figure 1 The information processing device 102 in the information processing system shown in FIG. If the information processing device is a server, it can be a dedicated server or some Internet application server. The Internet application server can not only execute the relevant steps of the embodiment of the present application, but also provide other services. Figure 2 , Figure 2 1 is a flow chart of an information processing method provided in an embodiment of the present application, and the information processing method includes the following steps S201 to S203:

[0089] S201. Obtain first attribute information of at least one text control of a target application in a historical version, and second attribute information of at least one text control of the target application in a target version.

[0090] In an embodiment of the present application, the target application is a developed application that can be used by users in different regions. The users in different regions have different languages ​​and cultures, so the target application can be localized for different regions. It should be noted that when the target application is localized according to a certain language region, the same source text may involve multiple translated texts. This is because the languages ​​in different regions are the same, but the translated texts in different cultures are also different. For example, when the target application is localized according to the Chinese region, there may be translated texts in simplified Chinese and traditional Chinese. Among them, the developer can iteratively update the functions in the target application. The version before the update can be called the historical version, and the version after the update can be called the target version, that is, it can be understood that the target application of the target version is updated from the target application of the historical version.

[0091] Among them, the text control is a control for displaying text information, which can exist in any user interface of the target application. The text information displayed in the text control is localized to display text information in another language. For example, the title, button, etc. displayed in the user interface. At least one text control is included in the historical version and the target version of the target application. Each text control corresponds to a control identifier, and each text control carries attribute information. Under the historical version, each text control corresponds to the first attribute information, and under the target version, each text control corresponds to the second attribute information. The first attribute information and the second attribute information of a text control include at least one configuration attribute of the text control, for example, specifically including: source text, translated text, source language, translated language and other attributes.

[0092] At present, after the target application is updated and localized, the tester can test the target application of the target version. The tester is mainly concerned about whether there is a display abnormality involving the translated text, and whether the text information translated in each language is accurate. In the case where the target version of the target application has a functional update relative to the historical version, the tester needs to test a large amount of text. The tester can only know that the target application has added a certain function, or a certain module has been updated, and cannot know the changes of each text information in the target application, such as the tester cannot know that the text information of a certain text control in a specific user interface has been updated, and what kind of update has occurred. It is understandable that the tester cannot obtain the transfer test requirement information including the requirements transferred to the test place, and the transfer test requirement information can specifically include the changes in each translated text of the target application of the target version, or the transfer test requirement information obtained by the tester is not comprehensive, and the tester can manually distinguish the differences and manually find the source (such as the user interface) for testing. Therefore, on the one hand, when testing a large amount of text information, the processing efficiency is low and the test time is long. On the other hand, testers face great challenges in ensuring comprehensive test coverage. At the multi-language level, testers are more likely to miss tests and cannot guarantee the quality of the overseas versions of the target applications delivered.

[0093] In a possible implementation, when a developer develops a target application, when a new version is generated, the version can be called a build version, and when the build version is used for testing, the version can be called a transfer test version, and the transfer test version can carry transfer test requirement information. Among them, the build version and the transfer test version can be the same version of the target application. At present, when generating a build version of the target application, the R&D personnel can call the configuration files such as code and assets (Assets) through the version management tool in the UE to generate a build version. It should be noted that the build version and the transfer test version are used to indicate the status of the version of the target application, which is different from the historical version and the target version. The historical version and the target version are used to indicate whether the content / function included in the target application has been updated. Among them, when the developer generates the build version, the configuration file of the version is included, and the configuration file includes a text configuration file manifest and a translation configuration file arc hive. The text configuration file can include the overall list generated after all the text objects of the target application collected by the Localization tool in the build version, and the translation configuration file can include the multilingual translation text of all text objects in the region.

[0094] Wherein, the information processing device can obtain the first attribute information and the second attribute information. Specifically, the information processing device can obtain the text configuration file and the translation configuration file under two versions. Wherein, the text configuration file and the translation configuration file both include the control identifier of each text control in at least one text control, and at least one configuration attribute of each text control. Thus, the information processing device can obtain at least one configuration attribute of each text control from the text configuration file and the translation configuration file according to the set attribute rules, and then determine the first attribute information or the second attribute information of at least one text control according to the control identifier of each text control and at least one configuration attribute of each text control. Wherein, the text configuration file and the translation configuration file are configuration files of the target application under the historical version, then the information processing device can determine the first attribute information, and the text configuration file and the translation configuration file are configuration files of the target application under the target version, then the information processing device can determine the second attribute information.

[0095] Among them, there can be only one text configuration file, which can be a list of all text objects in multiple languages ​​in the region. The file is used to store all texts obtained from the source code and various assets (Assets) when developing the target application after localization processing, that is, the text information of each text control in multiple languages ​​is collected in the text configuration file, and the localization tool in the UE can get a new text configuration file each time the collection step is run. The text configuration file may include but is not limited to a namespace (namespace), a key (key), a source text attribute (source), a text source attribute, and other attributes (path). Among them, the namespace can be a classification category for a text control, and the key can be a control identifier of a text control. In the target application, the namespace (namespace) and the key (key) can be bound to the text control in the UMG of different user interfaces of the target application. The source text attribute can be the text information of the source text of the text control, for example, it can include the source language and the source text, and for example, it can only include the source text. Among them, the text source attribute can indicate the source of the text control, for example, from a certain user interface. The translated text attribute may be text information of a translated text in a certain language corresponding to the text information of the source text of the text information, for example, it may include the translated language and the translated text, or it may only include the translated text. Other attributes may include but are not limited to scene information and other remarks information.

[0096] Among them, there can be one or more translation configuration files. Each translation configuration file can target the translated text of each culture in a region, or can be the translated text including multiple cultures in that region. The translation configuration file can include, but is not limited to, namespace, source text attribute, translation text attribute, and key. Similarly, the namespace can be the classification category for text controls, the key can be the control identifier of the text control, and the source text attribute can be the text information of the source text of the text control. The translation text attribute can include the text information after localization processing of the text control, such as it can include the translation language and the translation text, or for example, it can only include the translation text.

[0097] Specifically, the information processing device can obtain at least one configuration attribute of each text control from a certain version of the text configuration file and the translation configuration file according to the set attribute rules. For example, if it is desired to compare whether the text information of each text control has changed, the information processing device can use the namespace and key in the text configuration file and the translation configuration file as the primary keys to obtain the source text attribute, translation text attribute, and other attributes of the text control. Furthermore, based on the namespace and key of each text control obtained as the primary keys, and at least one configuration attribute of each text control, a new structured list is formed. Each item in the structured list can represent the text information of the source text and the text information of the translated text of a text control. Exemplarily, for the English region (which can be represented by en), each item in the list can be described as: <Namespace (namespace), Key (key), Source (source text attribute), Translation (translation text attribute), Path (other attributes)>.

[0098] Specifically, the process of obtaining at least one configuration attribute of each text control in the text configuration file can be called manifest parsing, and the process of obtaining at least one configuration attribute of each text control in the translation configuration file can be called archive parsing. Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of the attribute information of a text control provided by an embodiment of the present application. As Figure 3 shown, Figure 3 on the left side in [Figure Name] is the text configuration file (manifest), and on the right side is the translation configuration file (archive). Figure 3Taking the example that a text configuration file only includes a namespace (namespace), a key (key), a source text attribute (source) and other attributes (path), and taking the example that a translation configuration file includes a namespace (namespace), a key (key), a source text attribute (source) and a translation text attribute (translation) for explanation, the text configuration file and the translation configuration file can include but are not limited to the above configuration attributes.

[0099] The identifier of the text control may be a key value, for example, the key value in the text configuration file and the translation configuration file is 1-1 (key1-1) and the key value is 1-2 (key1-2). The namespace and the key may be uniquely bound to a text control in a user interface of the target application. In the text configuration file, for a namespace (namespace), when the source text attribute is source text 1 (source1), the key value is key 1-1 (key1-1), and other attributes are other information 1-1 (path1-1). Since the text configuration file includes text information of all cultures of a region, when the source text attribute is source text 1 (source1), the text configuration file also includes a key value of key 1-2 (key1-2), and other attributes are other information 1-2 (path1-2). Similarly, in this namespace, when the source text attribute is source text 2 (source2), the key value is key 2-1 (key2-1), and other attributes are other information 2-1 (path2-1); for source text 1 (source1), the key value is key 2-2 (key2-2), and other attributes are other information 2-2 (path2-2).

[0100] Among them, in the translation configuration file, for a namespace (namespace), the source text attribute is source text 1 (source1), the translation text attribute is translation text 1 (translation1), and the key value is key 1-1 (key1-1). Under this namespace, the source text attribute is source text 1 (source1), the translation text attribute is translation text 2 (translation2), and the key value is key 1-2 (key1-2). Similarly, the source text attribute is source text 2 (source2), the translation text attribute is translation text 3 (translation3), and the key value is key 2-1 (key2-1). The source text attribute is source text 2 (source2), the translation text attribute is translation text 4 (translation4), and the key value is key 2-2 (key2-2).

[0101] Specifically, the information processing device can parse the text configuration file (manifest) and the translation configuration file (archive) according to the set attribute rules, with the namespace (namespace) and the key (key) as the primary key, and generate a structured list of multiple languages ​​corresponding to all text controls for each culture of a certain region according to the control identifier of the text control and at least one configuration attribute of each text control. In the structured list, for each text control, that is, each item can include <namespace, key, source text attribute, translation text attribute, other information>, for example Figure 3 As shown: <namespace, key 1-1, source text 1, translation text 1, other information 1>. It should be noted that the namespace also has an identifier. Figure 3 Let's take a namespace as an example. Here, the namespace refers to a certain namespace.

[0102] Among them, each item in the structured list can be called a structured quadruple (key, source text attribute, translated text attribute and other information), that is, the first attribute information or the second attribute information of a text control, which can be integrated from the text configuration file and the translation configuration file. It can be understood that one version corresponds to an integrated structured list. The historical version and the target version can correspond to a structured list respectively. For the first attribute information of a text control, it can include the control identifier and the configuration attributes in the structured list of the historical version. For the second attribute information of a text control, it can include the control identifier and the configuration attributes in the structured list of the target version.

[0103] Therefore, after obtaining the first attribute information and the second attribute information, the information processing device can compare the first attribute information and the second attribute information to determine the changes in the source text attributes and the translated text attributes in multiple languages. This can effectively perceive the changes in text information in multiple languages, which is beneficial for testers to test the changes in text information.

[0104] S202: Compare the first attribute information and the second attribute information to obtain difference attribute information.

[0105] In an embodiment of the present application, the difference attribute information includes a comparison result between the first attribute information and the second attribute information, and the difference attribute information includes a control identifier of a text control with a difference, and the text control with a difference can be referred to as a target text control, and the difference attribute information can include a control identifier of the target text control. It can be understood that the difference attribute information is used to indicate that the text information of the target text control of the target application under the target version is updated relative to the text information of the target text control of the target application under the historical version. Among them, at least one configuration attribute in the first attribute information of each text control includes the text information of each text control under the historical version, and at least one configuration attribute in the second attribute information of each text control includes the text information of each text control under the target version. The text information of the target text control can be, for example, the text information of the above-mentioned source text attribute, and can also be, for example, the text information of the above-mentioned translation text attribute, and can also include both the text information of the above-mentioned source text attribute and the text information of the translation text attribute.

[0106] In a possible implementation, the first attribute information and the second attribute information are compared, specifically, the information processing device compares the text information of any text control in the historical version with the text information of the text control in the target version, and takes the text control whose text information in the historical version is different from the text information in the target version as the target text control, and generates the difference attribute information. Wherein, for any text control in the historical version and the target version, the text information included in the first attribute information of the text control, such as the text information in the source text attribute and / or the text information in the translated text attribute, is cross-compared with the text information included in the first attribute information of the text control, and the text information in the corresponding source text attribute and / or the text information in the translated text attribute is cross-compared, and the text control with different text information is taken as the text control with difference in comparison, that is, the target text control, and then the difference attribute information is generated according to the target text control and the compared difference text information.

[0107] Specifically, the information processing device determines the first attribute information of at least one text control in the historical version and the second attribute information of at least one text control in the target version. For example, the information processing device determines two structured lists, in which each item represents a text control, and each item may include <namespace, key, source text attribute, translated text attribute, other information>. It can be understood that in the historical version and the target version, the values of the namespace and key of the same text control are the same. Therefore, the text information in the source text attribute and the translated text attribute in the two versions can be compared according to the namespace and key. This process can be called cross-comparison of multilingual translation. Exemplarily, in the first attribute information, the quadruple of a certain text control in the historical version may include <key1, source1, translation1, path1>, and the quadruple of a certain text control in the target version may also include <key1, source2, translation2, path2>.

[0108] Furthermore, the information processing device can extract the differences in the quadruples of the same text control in the structured lists of the two versions. Different extracted difference items correspond to different changes. For example, it may be that the source text has been updated (source text change item / source text modification item), or it may be that the translated text has been updated (translated text modification item / translated text change item, which can also be called the target language translated text change item). Specifically, when <namespace, key> is the same (i.e., for the same text control), the text information of source1 can be compared with the text information of source2, and the text information of translation1 can be compared with the text information of translation2 to obtain the comparison result.

[0109] Exemplarily, if the text information of source1 is different from the text information of source2, the comparison result may be that the source text has been updated. If the text information of translation1 is different from the text information of translation2, the comparison result may be that the translated text has been updated. Exemplarily, for the same text control, the structured quadruple in the historical version includes <key1, small resource box, small box, path1>; the structured quadruple in the target version includes <key1, small resource box, small resource box, path1>. At this time, it is compared that this text control has been updated, and this text control is the target text control, and the translated text attribute has been updated.

[0110] In a possible implementation, the information processing device can also perform difference extraction on the structured lists determined under the two versions, and specifically traverse at least one text control. If only the first attribute information or the second attribute information of the currently traversed text control exists in the acquired first attribute information and the second attribute information, the currently traversed text control is used as the target text control. Among them, the information processing device can determine whether the text control is included in only one version, for example, the text control does not exist in the historical version, but exists in the target version. The comparison result can be the appearance of a new text control (newly added key-value item, also called a newly added translation item), as well as the source text attributes, translated text attributes and other attributes corresponding to the text control. For another example, the text control exists in the historical version, but does not exist in the target version. The comparison result can be the text control deleted in the target version (deleted key-value item / deleted translation item).

[0111] Among them, the difference attribute information obtained by the information processing device can also be represented by a four-tuple in a structured list, in which each item can include <key, source text attribute, translation text attribute, other information>, each item represents a target text control, in the four-tuple, the key can be the control identifier of the target text control, and the combination of namespace and key can uniquely bind text controls in different user interfaces. The source text attribute and the translation text attribute and other information can be configuration attributes in the first attribute information, or they can be configuration attributes in the second attribute information. Furthermore, the information processing device can label the difference categories differently. Exemplarily, for source text attribute updates, the label can be "source new", for translation text attribute updates, the label can be "translation new", for newly added text controls, the label can be "key new", and for deleted text controls, the label can be "key delete". It should be noted that the information processing device can label different update categories. The above is only an example of a label, and it can also be information of other labels, such as translation text attribute updates, the label can be "translationchange". This application does not limit it, and it can be set by the tester.

[0112] In a possible implementation, the difference attribute information also includes a comparison result of the first attribute information and the second attribute information of the target text control, and the comparison result can be used to indicate any of the following: the text information of the target text control under the target version is inconsistent with the text information of the target text control under the historical version; only the first attribute information of the target text control exists, which means that only the text control of the historical version exists; only the second attribute information of the target text control exists, which means that only the text control of the historical version exists. Further, the information processing device can output the comparison result. It can be understood that when the source text attribute (source) and the translated text attribute (translation) of a text control change, the text information displayed by different user interfaces will also change accordingly. Thus, the information processing device can send the comparison result to the application test device, and then the tester can test the target text controls that have differences between the two versions one by one through the application test device.

[0113] Please also read Figure 4 , Figure 4 Schematic diagram of a comparison result provided in the embodiment of the present application. Figure 4 As shown, Figure 4 Three types of changes are drawn as examples. The first is the category of newly added key-value items. The historical version includes <key, source text, translated text, other information>, and the target version includes <namespace, newly added key, newly added source text, newly added translated text, newly added other information>, which can represent a newly added text control. The second is the category of translated text change items. The historical version includes <key, source text, translated text, other information> of a certain text control, and the target version includes <key, source text, updated translated text, other information> of the text control. The third is the category of source text change items. The historical version includes <key, source text, translated text, other information> of a certain text control, and the target version includes <key, updated source text, translated text, other information> of the text control. Furthermore, the information processing device can label each text control differently according to different categories to facilitate the output of comparison results.

[0114] Exemplarily, the comparison result output by the information processing device can be referred to as follows:

[0115]

[0116]

[0117]

[0118] As mentioned above, the information processing device can output difference attribute information, which includes the category of change, such as the above-mentioned "Translation change", that is, the category of translation text change item, and includes the namespace (namespace e), key (key), source text attribute (source) and translation text attribute (translation) of the historical version (previous) and the target version (current) in the difference attribute information.

[0119] Furthermore, the information processing device can determine the specific user interface based on the information of each target text control, thereby tracing back to the application scenario, and can comprehensively extract updated multilingual content through comparison. The text control has a high coverage of text information, which avoids the omission of multiple languages ​​and reduces the risk of omission. In addition, after the information processing device compares the content, it is more convenient for the tester to conduct testing, thereby improving the efficiency of the test.

[0120] S203: Determine the user interface corresponding to the target text control according to the correspondence between the control identifier and the interface identifier, and generate interface information.

[0121] In an embodiment of the present application, a control identifier can be used to identify a certain text control, an interface identifier can be used to identify a certain user interface, the control identifier and the interface identifier can have a one-to-one correspondence, or one control identifier can correspond to multiple interface identifiers, which is not limited in the present application. Among them, the interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version. It can be understood that the information processing device information can be reversely traced through the target text control in the difference attribute information, that is, determine the precise scenario in the target application, and then the tester can accurately find the corresponding user interface and verify it.

[0122] Among them, the text information of the text control in the target application is divided into two types, one is static information and the other is dynamic information. The so-called static information refers to the text information that will not change during the interaction between the target application and the user, such as the title information and name in the target application. If the target application is a game application, the static text may include the entrance name, exit name, scene name, etc. in the game scene. The so-called dynamic information refers to the text information that responds to the operation triggered by the user or the operation during the operation process during the interaction between the target application and the user. The text information may be different texts that respond to the backend server packet of the target text. For example, if the target application is a game application, the dynamic text may be different text information that is triggered by the game character achieving a certain achievement, completing different tasks, etc. For these two different text information, the information processing device determines the user interface corresponding to the target text control in different ways, and needs to be determined for these two situations respectively.

[0123] Among them, in the above two different situations, the information processing device can first determine whether the text information of the target text control in the difference attribute information belongs to the static information category or the dynamic information category. Then, different methods can be used to determine the corresponding user interface. When developing the target application, the static information category or the dynamic information category can be distinguished on the control identifier of the text control, so that the information processing device can determine whether the text information of the target text control belongs to the static information category or the dynamic information category according to the control identifier of the target text control.

[0124] In a possible implementation, the control identification of the target text control is obtained by combining the identification information of the target text control and the interface identification of the user interface where the target text control is located under the target version. This combination can be a combination of control identifications of static information categories set by R&D personnel. If the category of the text information of the target text control belongs to the static information category, the control identification of the target text control may include the interface identification of the user interface where the target text control is located under the target version, and the identification information of the target text control, and these two parts of information are combined and matched according to a preset combination rule, such as interface identification-connector-identification information to form the control identification of the target text control. When the information processing device determines that the text information of the target text information belongs to the static information category according to the field included in the control identification of the target text control, the information processing device can determine the user interface corresponding to the target text information. Exemplarily, the control identification of the target text control is SystemPage_TextTips, the SystemPage is the interface identification, and TextTips is the identification information of the target text control. The identification information of the target text control can be used to indicate the control in the interface corresponding to the interface identification indicated by the SystemPage.

[0125] Specifically, the information processing device can obtain the interface identifier from the control identifier of the target text control, and then determine the user interface corresponding to the obtained interface identifier as the user interface corresponding to the target text control in the target version. Exemplarily, the comparison result of the target text control included in the difference attribute information of the above example is: "Key": "HeroSki1lInfo_TextSkillEffect02", key is the control identifier of the text control, and the control identifier is connected by the identification information of the target text control, the interface identifier of the user interface where the target text control is located in the target version, and the connector "_", wherein "HeroSki1l Info" is the interface identifier of the user interface where the target text control is located in the target version, for example, when the target application is a game application, the interface identifier can indicate that the user interface is the user interface of "Hero Skill Information", and the identification information of the target text control can be "TextSkillEffect02", for example, the text control "Text Skill Effect 02" in the user interface of "Hero Skill Information".

[0126] It should be noted that the above-mentioned control identification of the target text control is explained by the identification information of the target text control, the interface identification of the user interface where the target text control is located in the target version, and the connector "_". The present application does not limit the combination of the identification information of the target text control and the interface identification of the user interface where the target text control is located in the target version. In one implementation, the control identification of the target control can also be obtained by respectively calculating the identification information and the interface identification of the target text control according to a certain operation rule, obtaining two operation results, and combining the two operation results. Among them, the operation rule can be an encryption algorithm, such as a symmetric encryption algorithm, and the information processing device can decrypt the operation result, thereby determining that the text information of the target text control belongs to the static information category, and then determining the user interface corresponding to the interface identification, and determining the user interface as the user interface corresponding to the target text control in the target version. Then, the information processing device outputs the traced usage scenario, that is, the user interface where the target text control is located. Specifically, the information processing device can send the interface identification to the application test device, and can also send the user interface screenshot corresponding to the interface identification to the application test device.

[0127] In another possible implementation, the control identifier of the target text control does not include identification information of the target text control, nor does it include the interface identifier of the user interface where the target text control is located in the target version, and it is not obtained by combining the identification information and the interface identifier. Thus, the information processing device determines that the text information of the current target text control belongs to the dynamic information category, and then the information processing device can determine the N dynamic information tables corresponding to the target text control in the target version based on the correspondence between the control identifier and the dynamic information table, where N is an integer greater than or equal to 1. Furthermore, the information processing device obtains the dynamic information of the target text control in the target version from the N dynamic information tables, and the dynamic information includes the interface identifier, so that the information processing device can determine the user interface corresponding to the interface identifier as the user interface corresponding to the target text control in the target version.

[0128] Among them, the dynamic information table can also be called a planning table. The dynamic information table is a table that stores dynamic information of at least one text control. The dynamic information table specifies different text information for different application scenarios in the target application. Taking the target application as a game application as an example, illustratively, the dynamic information of the text control may include the conditions for triggering the display of the text information A displayed by the text control, the interface identifier of the user interface displayed by the text information A, the text information included in the text information A, and the identification information of the target text control. It should be noted that the identification information of the target text control stored in the dynamic information table can be used to indicate the control identifier of the target text control. Specifically, the dynamic information stored in the dynamic information table can be specifically as shown in Table 1:

[0129] Table 1

[0130] Identification information of the text control Trigger conditions Text information Interface Logo Identification information 1 Enter scene A Entrance InformationA Interface logo 1 Identification information 2 Reach character level 30 Title information 30 Interface logo 2 Identification information 3 Exit scene A Export InformationA Interface logo 3 Identification information 4 Pick up item B Item Information B Interface logo 4 Identification information 5 Buy C Skin Skin Information C Interface logo 5

[0131] Among them, the above Table 1 is an example of a dynamic information table, and the target application is a game application as an example for explanation. The dynamic information table may include but is not limited to the identification information, trigger conditions, text information and interface identification of the above text controls, and may also include other information. For example, the trigger conditions of the game character also include secondary conditions, text information including the initial displayed text information and the secondary displayed text information, display effects, etc., which can be specifically planned and set according to the interaction between the target application and the user.

[0132] It should be noted that a text control in the dynamic information table does not correspond to only one item, but may include multiple items. There is not only one dynamic information table, but there may be multiple ones, which store dynamic information of different application scenarios and different types respectively. Therefore, the information processing device can determine the N dynamic information tables corresponding to the control identifier based on the correspondence between the control identifier and the dynamic information table. Each of the N dynamic information tables includes the control identifier and the interface identifier, and then the multiple user interfaces corresponding to the target text control under the target version can be determined. Optionally, the information processing device can output each dynamic information table identifier in the N dynamic information tables, or it can output all information related to the text control obtained from the N dynamic information tables to output the traced usage scenario. The output method is not limited in this application.

[0133] Specifically, the dynamic information table may include the control identification of each text control, such as the value of the key mentioned above. The information processing device may search for items including the value of the key from multiple dynamic information tables, thereby determining N dynamic information tables, and finding dynamic information related to the text control. Among them, the dynamic information table may include identification information of the text information, and the identification information is different from the control identification, but the identification information and the control identification have a one-to-one correspondence. For example, the control identification of a text control can be obtained by calculating the identification information of the text control, and a hash operation is performed on the identification information of a certain text control to obtain the control identification of the text control. The information processing device can then perform a hash operation on each identification information in each dynamic information table, and compare the control identification of the target text control with each hash operation result, thereby determining the N dynamic information tables corresponding to the target text control.

[0134] Exemplarily, as in the above comparison result, the key value of the target text control is 468530957 (such as Key: 468530957 in the above comparison result), thus, the information processing device can determine that the text information of the target text control belongs to the dynamic text category. Then, the N dynamic information tables corresponding to the target text control can be determined according to the hash operation results corresponding to the identification information of each text control in each dynamic information table. Furthermore, the information processing device can send each dynamic information table identifier in the N dynamic information tables to the application testing device for testers to conduct testing, such as dynamic information table identifier A, dynamic information table identifier B, and dynamic information table identifier C, etc. Optionally, the information processing device can also obtain the dynamic information of the target text control in each of the N dynamic information tables, and output the dynamic information to the application testing device, so that the information processing device outputs accurate scenes for testers to conduct testing.

[0135] Further, in order to improve the efficiency of obtaining the dynamic information of the target text control, the information processing device can reversely map the target text control. Specifically, the information processing device can traverse all dynamic information tables, hash the identification information of each text control, obtain the control identification (key) of each text control, and further map it according to the control identification (key) of the target text control, so as to reversely map it to the namespace, source text attributes, translation text attributes and other attributes of the target text control. The reverse mapping process can be dynamic information table->identification information->hashing result of identification information->key value (key)->source text attributes, translation text attributes. Thus, the hash value of the identification information of the text control (i.e., the control identification) is used to reversely map the corresponding localized enumerated dynamic information table.

[0136] Please also read Figure 5 , Figure 5 Schematic diagram of a dynamic information table mapping provided by an embodiment of the present application. Figure 5 As shown, the left side is a dynamic information table. Figure 5In the example, two columns included in the dynamic information table are taken, one column can be the identifier in the dynamic information table, the dynamic information table can be Loc_table, and the dynamic information table can include the identifiers of various text controls in the dynamic information table, such as "LOC_ENUM1" and "LOC_ENUM2". Among them, the identification information of the text control identified as LOC_ENUM1 can be "small resource box", and the identification information of the text control identified as LOC_ENUM2 can be "ordinary resource box". In the difference attribute information, the value of the key of the target text control is the control identifier of the target text control, for example, it can be the result of the hash operation on "small resource box". The source text attribute is "small resource box", the translated text attribute is "small box", and the other information is "xxx". By traversing each dynamic information table, the target text control can be found in N dynamic information tables by reverse mapping, that is, the information processing device can determine the N dynamic information table identifiers, and can also obtain the dynamic information of the target text control from each dynamic information table.

[0137] In a possible implementation, in order to improve the efficiency of obtaining the dynamic information of the target text control, the information processing device can establish a dynamic information mapping table, which is used for the correspondence between the control identifier and the dynamic information table. Specifically, the dynamic information table may include the control identifier of each text control, the identification information, and the corresponding dynamic information table identifiers in multiple dynamic information tables. Thus, the information processing device can query N dynamic information tables in the dynamic information mapping table according to the control identifier of the target text control. Prior to this, the information processing device can establish the dynamic information mapping table. Specifically, the information processing device can search for N dynamic information tables containing the identification information of the target text control from multiple dynamic information tables, which is equivalent to traversing all dynamic information tables (scanning all dynamic information tables). Each dynamic information table in the N dynamic information tables found includes the dynamic information of the target text control under the target version, and then the identification information of the target text control is hashed to obtain the control identifier of the target text control, and then the dynamic information mapping table can be established according to the control identifier of the target text control and the N dynamic information table identifiers. The dynamic information mapping table may involve text controls in multiple languages, and a dynamic information mapping table that maps text controls to a planning table, that is, the dynamic information mapping table includes <control identifier, dynamic information table identifier>. After the dynamic information mapping table is established, the information processing device can quickly query the dynamic information mapping table after comparing the difference attribute information each time.

[0138] Please also read Figure 6 , Figure 6 is a schematic diagram of a mapping using a dynamic information mapping table provided in an embodiment of the present application, such as Figure 6As shown, there are M dynamic information tables on the left, such as dynamic information table 1, dynamic information table 2, ... dynamic information table M, where M is an integer greater than N. Among the M dynamic information tables, N dynamic information tables include dynamic information of a text control, and the identification information of the text control is "small resource box". The dynamic information mapping table may include the control identification (key value) of the text control, which may be the hash operation result of the identification information, such as Figure 6 In the structured four-tuple in the difference attribute information, the information processing device can map the control identifier in the dynamic information mapping table to determine each dynamic information table identifier in the N dynamic information tables corresponding to the control identifier.

[0139] Optionally, the information processing device can process the historical version and target version of the target application by calling the plug-in. Figure 7 , Figure 7 is a timing diagram of an information processing method provided by an embodiment of the present application, such as Figure 7 As shown, the execution order of the plug-in can be as follows Figure 7 In the order from top to bottom. Specifically, the information processing device can obtain a historical version and a target version for a region, such as the English region (en), and the target application of the target version is obtained by updating the historical version. Then, the text configuration files and translation configuration files in the two versions can be obtained, and the obtained ones are displayed in the localization panel. Then, the plug-in includes a parser, and the parser can determine the first attribute information and the second attribute information according to the text configuration file and the translation configuration file, and display the quadruple included in the first attribute information and the second attribute information in the localization panel. The plug-in also includes a difference comparison module, which can compare whether there are newly added text controls, text information updates of source text attributes, text information updates of translated text attributes, and deleted text controls according to the first attribute information and the second attribute information, and obtain difference attribute information, which can include <namespace, key, source text attribute, translated text attribute, other attributes> of each text control with differences. Then, the user interface can be determined according to the control identifier of the text control and output.

[0140] The information processing method provided in the embodiment of the present application can be applied to the test scenario of the game application developed based on the UE engine in the vertical field of multi-language difference testing, and can be specifically applied to the scenario of mining the change point of text information involving multiple languages. For the target application that needs to launch the game in the region that is not in the source language, by obtaining the attribute information of the text control under the historical version and the target version of the target application, the attribute information under the text control of the two versions can be compared, so that the difference between the text information of the game application after the update can be known, and then the user interface where the text control is located can be determined. Thus, for the game that needs to go overseas, it can involve multi-language automatic difference detection, can identify and compare the difference of text information between different versions (such as build versions), and can trace back to the specific user interface, that is, can determine the change content and corresponding scene between the two versions. On the one hand, it can automatically generate the configuration differences and usage scenarios between the versions involving various languages, improve the efficiency of the test, greatly improve the comprehensiveness of the test, that is, improve the coverage of text information, reduce the situation of missing test, non-transfer test, etc., and accurately specify the game scene, that is, specify the user interface, so that the quality of the overseas version of the game that goes overseas can be effectively improved.

[0141] In an embodiment of the present application, by comparing the attribute information of each text control of the application obtained under the historical version and the target version, the difference attribute information is obtained, and the difference attribute information may include the control identifier of the target text control, which may indicate that the text information of the target text control has been updated in the two versions, and then the user interface corresponding to the target text control can be determined, and the interface information is generated. Thus, according to the result of comparing the attribute information of the text controls of the two versions, the text controls in which all texts in the software have changed can be directly and effectively determined, which can improve the test coverage, make the test more comprehensive, and reduce the possibility of missed tests. And the corresponding scenario in the application can be determined according to the changed text control, that is, by determining the user interface, it can be convenient for testers to test and improve the efficiency of the test.

[0142] See also Figure 8 , Figure 8 is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application. The information processing device 80 in the embodiment of the present application can be set on an electronic device, and the electronic device can be the above-mentioned Figure 1 The information processing device 102 in the above information processing device 80 includes the following units:

[0143] The acquisition unit 801 is used to acquire first property information of at least one text control of a target application in a historical version, and second property information of at least one text control of the target application in a target version; wherein the target application of the target version is obtained by updating the target application of the historical version;

[0144] A comparing unit 802 is used to compare the first attribute information with the second attribute information to obtain difference attribute information, where the difference attribute information includes a control identifier of a target text control, and the difference attribute information is used to indicate that text information of the target text control of the target application in the target version is updated relative to text information of the target text control of the target application in a historical version;

[0145] Determination unit 803 is used to determine the user interface corresponding to the target text control according to the correspondence between the control identifier and the interface identifier, and generate interface information, wherein the interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version.

[0146] In one implementation, the determining unit 803 is used to determine the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier, specifically to:

[0147] According to the correspondence between the control identifier and the dynamic information table, determine N dynamic information tables corresponding to the target text control under the target version, where N is an integer greater than or equal to 1;

[0148] Acquire dynamic information of a target text control under the target version from the N dynamic information tables, wherein the dynamic information includes an interface identifier;

[0149] The user interface corresponding to the interface identifier is determined as the user interface corresponding to the target text control in the target version.

[0150] In one implementation, the control identifier of the target text control is obtained by combining the identification information of the target text control and the interface identifier of the user interface where the target text control is located in the target version;

[0151] The determination unit 803 is used to determine the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier, and is specifically used to: obtain the interface identifier from the control identifier of the target text control;

[0152] The user interface corresponding to the obtained interface identifier is determined as the user interface corresponding to the target text control under the target version.

[0153] In one implementation, the acquiring unit 801 is used to acquire a method for acquiring any one of the first attribute information or the second attribute information, specifically for:

[0154] Acquire a text configuration file and a translation configuration file, wherein each of the text configuration file and the translation configuration file includes a control identifier of each text control in at least one text control and at least one configuration attribute of each text control;

[0155] The text configuration file and the translation configuration file are configuration files of the target application in the historical version, or configuration files in the target version;

[0156] Obtaining at least one configuration attribute of each text control from the text configuration file and the translation configuration file according to a set attribute rule;

[0157] According to the control identifier of each text control and at least one configuration property of each text control, any property information of at least one text control is determined.

[0158] In one implementation, at least one configuration attribute in the first attribute information of each text control includes text information of the text control in the historical version; at least one configuration attribute in the second attribute information of each text control includes text information of the text control in the target version;

[0159] The comparing unit 802 is used to compare the first attribute information and the second attribute information to obtain difference attribute information, specifically for:

[0160] For any text control, the text information of any text control in the historical version is compared with the text information of any text control in the target version; the text control whose text information in the historical version is different from that in the target version is taken as the target text control, and the difference attribute information is generated.

[0161] In one implementation, the comparing unit 802 is used to compare the first attribute information and the second attribute information to obtain difference attribute information, specifically to:

[0162] The at least one text control is traversed, and if only the first attribute information or the second attribute information of the currently traversed text control exists in the acquired first attribute information and second attribute information, the currently traversed text control is used as the target text control.

[0163] In one implementation, the difference attribute information also includes a comparison result of the first attribute information and the second attribute information of the target text control, and the comparison result is used to indicate any of the following: the text information of the target text control in the target version is inconsistent with the text information of the target text control in the historical version, only the first attribute information of the target text control exists, and only the second attribute information of the target text control exists;

[0164] The information processing device 80 further includes: an output unit 804, configured to output the comparison result.

[0165] In one implementation, the information processing device 80 further includes a search unit 805, configured to search N dynamic information tables containing identification information of the target text control from a plurality of dynamic information tables, each of the N dynamic information tables including dynamic information of the target text control under the target version;

[0166] A computing unit 806 is configured to perform a hash operation on the identification information of the target text control to obtain a control identification of the target text control;

[0167] The establishing unit 807 is used to establish a dynamic information mapping table according to the control identifier of the target text control and the N dynamic information table identifiers, wherein the dynamic information mapping table includes a correspondence between the control identifier and the dynamic information table.

[0168] According to one embodiment of the present application, Figure 2 Each step involved in the method shown can be performed by Figure 8 The information processing device shown in FIG. 1 is executed by each unit. For example, Figure 2 Step S201 shown is composed of Figure 8 The acquisition unit 801 shown in FIG. 8 is executed, and step S302 is performed by Figure 8 The comparison unit 802 shown in FIG. 1 is executed, and step S303 is performed by Figure 8 The determination unit 803 shown in FIG. 8 is used for execution.

[0169] According to another embodiment of the present application, Figure 8The various units in the information processing device shown can be separately or all combined into one or several other units to constitute, or one (some) of the units can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of a unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the information processing device. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0170] In an embodiment of the present application, by comparing the attribute information of each text control of the application obtained under the historical version and the target version, the difference attribute information is obtained, and the difference attribute information may include the control identifier of the target text control, which may indicate that the text information of the target text control has been updated in the two versions, and then the user interface corresponding to the target text control can be determined, and the interface information is generated. Thus, according to the result of comparing the attribute information of the text controls of the two versions, the text controls in which all texts in the software have changed can be directly and effectively determined, which can improve the test coverage, make the test more comprehensive, and reduce the possibility of missed tests. And the corresponding scenario in the application can be determined according to the changed text control, that is, by determining the user interface, it can be convenient for testers to test and improve the efficiency of the test.

[0171] Based on the description of the above information processing method embodiment, the present application embodiment also discloses an electronic device, see Fig. 9 , the electronic device may at least include a processor 901, a communication interface 902, and a computer storage medium 903. The processor 901, the communication interface 902, and the computer storage medium 903 in the electronic device may be connected via a bus or other means.

[0172] The above-mentioned computer storage medium 903 is a memory device in an electronic device for storing programs and data. It is understandable that the computer storage medium 903 here can include both the built-in storage medium of the electronic device and the extended storage medium supported by the electronic device. The computer storage medium 903 provides a storage space, which stores the operating system of the electronic device. In addition, one or more instructions suitable for being loaded and executed by the processor 901 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory; optionally, it can also be at least one computer storage medium away from the aforementioned processor. The above-mentioned processor can be called a central processing unit (CPU), which is the core and control center of the electronic device, suitable for implementing one or more instructions, specifically loading and executing one or more instructions to realize the corresponding method flow or function.

[0173] In one implementation, the processor 901 may load and execute one or more first instructions stored in a computer storage medium to implement the corresponding steps of the method in the above-mentioned information processing method embodiment; in a specific implementation, the processor 901 loads one or more first instructions in the computer storage medium and performs the following operations:

[0174] Acquire first property information of at least one text control of a target application in a historical version, and second property information of at least one text control of the target application in a target version; wherein the target application of the target version is obtained by updating the target application of the historical version;

[0175] Comparing the first attribute information with the second attribute information to obtain difference attribute information, wherein the difference attribute information includes a control identifier of a target text control, and the difference attribute information is used to indicate that text information of the target text control of the target application in the target version is updated relative to text information of the target text control of the target application in a historical version;

[0176] According to the correspondence between the control identifier and the interface identifier, the user interface corresponding to the target text control is determined, and interface information is generated. The interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version.

[0177] In one implementation, the processor 901 loads and executes one or more first instructions stored in a computer storage medium to determine the user interface corresponding to the target text control under the target version according to the correspondence between the control identifier and the interface identifier, specifically to perform the following operations:

[0178] According to the correspondence between the control identifier and the dynamic information table, determine N dynamic information tables corresponding to the target text control under the target version, where N is an integer greater than or equal to 1;

[0179] Acquire dynamic information of a target text control under the target version from the N dynamic information tables, wherein the dynamic information includes an interface identifier;

[0180] The user interface corresponding to the interface identifier is determined as the user interface corresponding to the target text control in the target version.

[0181] In one implementation, the control identifier of the target text control is obtained by combining the identification information of the target text control and the interface identifier of the user interface where the target text control is located in the target version; the processor 901 loads and executes one or more first instructions stored in the computer storage medium for determining the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier, specifically for performing the following operations:

[0182] Acquire the interface identifier from the control identifier of the target text control;

[0183] The user interface corresponding to the obtained interface identifier is determined as the user interface corresponding to the target text control under the target version.

[0184] In one implementation, the processor 901 loads and executes one or more first instructions stored in a computer storage medium to obtain a method for obtaining the first attribute information or any one of the second attribute information, specifically to perform the following operations:

[0185] Obtaining a text configuration file and a translation configuration file, wherein the text configuration file and the translation configuration file both include a control identifier of each text control in at least one text control, and at least one configuration attribute of each text control; the text configuration file and the translation configuration file are configuration files of the target application under the historical version, or configuration files under the target version;

[0186] Obtaining at least one configuration attribute of each text control from the text configuration file and the translation configuration file according to a set attribute rule;

[0187] According to the control identifier of each text control and at least one configuration property of each text control, any property information of at least one text control is determined.

[0188] In one implementation, at least one configuration attribute in the first attribute information of each text control includes text information of the text control in the historical version; at least one configuration attribute in the second attribute information of each text control includes text information of the text control in the target version; the processor 901 loads and executes one or more first instructions stored in a computer storage medium for comparing the first attribute information with the second attribute information to obtain difference attribute information, which is specifically used to perform the following operations:

[0189] For any text control, compare the text information of the text control in the historical version with the text information of the text control in the target version;

[0190] The text control whose text information under the historical version is different from the text information under the target version is used as the target text control, and the difference attribute information is generated.

[0191] In one implementation, the processor 901 loads and executes one or more first instructions stored in a computer storage medium to compare the first attribute information with the second attribute information to obtain difference attribute information, specifically to perform the following operations:

[0192] The at least one text control is traversed, and if only the first attribute information or the second attribute information of the currently traversed text control exists in the acquired first attribute information and second attribute information, the currently traversed text control is used as the target text control.

[0193] In one implementation, the difference attribute information also includes a comparison result of the first attribute information and the second attribute information of the target text control, and the comparison result is used to indicate any of the following: the text information of the target text control in the target version is inconsistent with the text information of the target text control in the historical version, only the first attribute information of the target text control exists, and only the second attribute information of the target text control exists; the processor 901 loads and executes one or more first instructions stored in the computer storage medium and is also used to perform the following operations:

[0194] The comparison result is outputted.

[0195] In one implementation, the processor 901 loads and executes one or more first instructions stored in a computer storage medium and is further used to perform the following operations:

[0196] Searching N dynamic information tables containing identification information of the target text control from a plurality of dynamic information tables, each of the N dynamic information tables including dynamic information of the target text control under the target version;

[0197] Performing a hash operation on the identification information of the target text control to obtain a control identification of the target text control;

[0198] A dynamic information mapping table is established according to the control identifier of the target text control and the N dynamic information table identifiers. The dynamic information mapping table includes a correspondence between the control identifier and the dynamic information table.

[0199] In one implementation, the specific implementation of each step executed by the processor 901 in the embodiment of the present application may refer to the description of the relevant content in the aforementioned embodiment, and the same technical effect can be achieved, which will not be repeated here.

[0200] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. A processor runs the computer program so that the electronic device executes the method provided in the aforementioned embodiment.

[0201] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the method provided in the above embodiment.

[0202] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0203] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0204] What is disclosed above is only a preferred embodiment of the present application, and it certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present application are still within the scope of the invention.

Claims

1. An information processing method, characterized in that: include: Acquire first property information of at least one text control of a target application in a historical version, and second property information of at least one text control of the target application in a target version; wherein the target application of the target version is obtained by updating the target application of the historical version; Comparing the first attribute information with the second attribute information to obtain difference attribute information, wherein the difference attribute information includes a control identifier of a target text control, and the difference attribute information is used to indicate that text information of the target text control of the target application in the target version is updated relative to text information of the target text control of the target application in a historical version; According to the correspondence between the control identifier and the interface identifier, the user interface corresponding to the target text control is determined, and interface information is generated. The interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version.

2. The method according to claim 1, characterized in that The step of determining the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier includes: According to the correspondence between the control identifier and the dynamic information table, determine N dynamic information tables corresponding to the target text control under the target version, where N is an integer greater than or equal to 1; Acquire dynamic information of a target text control under the target version from the N dynamic information tables, wherein the dynamic information includes an interface identifier; The user interface corresponding to the interface identifier is determined as the user interface corresponding to the target text control in the target version.

3. The method according to claim 1, characterized in that The control identifier of the target text control is obtained by combining the identification information of the target text control and the interface identifier of the user interface where the target text control is located in the target version; The step of determining the user interface corresponding to the target text control in the target version according to the correspondence between the control identifier and the interface identifier includes: Acquire the interface identifier from the control identifier of the target text control; The user interface corresponding to the obtained interface identifier is determined as the user interface corresponding to the target text control under the target version.

4. The method according to claim 1, characterized in that: The method for acquiring any one of the first attribute information or the second attribute information includes: Obtaining a text configuration file and a translation configuration file, wherein the text configuration file and the translation configuration file both include a control identifier of each text control in at least one text control, and at least one configuration attribute of each text control; the text configuration file and the translation configuration file are configuration files of the target application under the historical version, or configuration files under the target version; Obtaining at least one configuration attribute of each text control from the text configuration file and the translation configuration file according to a set attribute rule; According to the control identifier of each text control and at least one configuration property of each text control, any property information of at least one text control is determined.

5. The method according to claim 4, characterized in that At least one configuration attribute in the first attribute information of each text control includes text information of each text control in the historical version; at least one configuration attribute in the second attribute information of each text control includes text information of each text control in the target version; comparing the first attribute information and the second attribute information to obtain difference attribute information includes: For any text control, compare the text information of the text control in the historical version with the text information of the text control in the target version; The text control whose text information under the historical version is different from the text information under the target version is used as the target text control, and the difference attribute information is generated.

6. The method according to claim 1, characterized in that The comparing the first attribute information and the second attribute information to obtain difference attribute information includes: The at least one text control is traversed, and if only the first attribute information or the second attribute information of the currently traversed text control exists in the acquired first attribute information and second attribute information, the currently traversed text control is used as the target text control.

7. The method according to claim 1, characterized in that The difference attribute information also includes a comparison result of the first attribute information and the second attribute information of the target text control, and the comparison result is used to indicate any of the following: the text information of the target text control in the target version is inconsistent with the text information of the target text control in the historical version, only the first attribute information of the target text control exists, and only the second attribute information of the target text control exists; the method also includes: The comparison result is outputted.

8. The method according to claim 2, characterized in that: The method further comprises: Searching N dynamic information tables containing identification information of the target text control from a plurality of dynamic information tables, each of the N dynamic information tables including dynamic information of the target text control under the target version; Performing a hash operation on the identification information of the target text control to obtain a control identification of the target text control; A dynamic information mapping table is established according to the control identifier of the target text control and the N dynamic information table identifiers. The dynamic information mapping table includes a correspondence between the control identifier and the dynamic information table.

9. An information processing device, characterized in that: The device comprises: An acquisition unit, used to acquire first property information of at least one text control of a target application in a historical version, and second property information of at least one text control of the target application in a target version; wherein the target application of the target version is obtained by updating the target application of the historical version; a comparing unit, configured to compare the first attribute information with the second attribute information to obtain difference attribute information, wherein the difference attribute information includes a control identifier of a target text control, and the difference attribute information is used to indicate that text information of the target text control of the target application in the target version is updated relative to text information of the target text control of the target application in a historical version; A determination unit is used to determine the user interface corresponding to the target text control according to the correspondence between the control identifier and the interface identifier, and generate interface information, wherein the interface information includes the interface identifier of the user interface, and the interface information is used to indicate the user interface where the target text control under the target version is located under the target version.

10. An information processing device, characterized in that: It comprises a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are connected to each other, wherein the memory stores an executable program code, and the processor is used to call the executable program code to execute the method as claimed in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is performed.

Citation Information

Cited By

  • Universal localization method in WPF

    CN119987742A