Search

CN-122019375-A - Multi-language version software testing method and device, electronic equipment and storage medium

CN122019375ACN 122019375 ACN122019375 ACN 122019375ACN-122019375-A

Abstract

The invention discloses a multi-language version software testing method, a multi-language version software testing device, electronic equipment and a storage medium. The method comprises the steps of determining a text control set, determining that the text control set is a set of first text controls to be tested in a first language version of a target game, determining each second text control contained in each first display interface corresponding to the first language version of the target game, traversing each second text control, testing the second text control currently traversed when the second text control currently traversed is determined to exist in the text control set, storing first interface screenshots of the first display interface corresponding to the second text control currently traversed in the first screenshot set, determining test coverage based on the first screenshot set and the text control set, determining the first screenshot set when the test coverage reaches a preset value as the second screenshot set, and testing the text control on the second language version of the target game based on the second screenshot set. The invention ensures the integrity of test coverage and improves the efficiency and accuracy of multi-language test.

Inventors

  • CHEN HOUWEN
  • LUO GUOHENG

Assignees

  • 上海网之易璀璨网络科技有限公司

Dates

Publication Date
20260512
Application Date
20260123

Claims (11)

  1. 1. A method for testing multi-language version software, the method comprising: determining a text control set, wherein the text control set is a set of first text controls to be tested in a first language version of a target game; Determining each second text control contained in each first display interface corresponding to the first language version of the target game, traversing each second text control, testing the currently traversed second text control when determining that the currently traversed second text control exists in the text control set, and storing first interface screenshots of the first display interface corresponding to the currently traversed second text control in a first screenshot set; determining a test coverage rate based on the first cut-off chart set and the text control set, and determining the first cut-off chart set when the test coverage rate reaches a preset value as a second cut-off chart set; and testing a text control on the second language version of the target game based on the second graph set.
  2. 2. The method of claim 1, wherein testing the second language version of the target game for text controls based on the second set of shots comprises: Calling a second display interface corresponding to the second language version based on the interface information of the first interface screenshot, and screenshot the second display interface to obtain a second interface screenshot; And determining whether a third text control exists in the second interface screenshot based on the first interface screenshot and the second interface screenshot, wherein the third text control is a text control with the same semantic meaning and position as those of a fourth text control corresponding to the first interface screenshot, and the fourth text control is the second text control corresponding to the first text control in the text control set.
  3. 3. The method of claim 2, wherein determining whether a third text control is present in the second interface screenshot based on the first interface screenshot and the second interface screenshot comprises: And processing the first interface screenshot and the second interface screenshot based on a large language model, and determining whether a third text control exists in the second interface screenshot.
  4. 4. The method of claim 3, wherein processing the first interface screenshot and the second interface screenshot based on a large language model, determining whether a third text control is present in the second interface screenshot, comprises: Determining first text content and text position information of the fourth text control based on the first interface screenshot; Determining a text prompt word based on the first text content and the text position information; And processing the first interface screenshot and the second interface screenshot based on the text prompt word and the large language model, and determining whether a third text control exists in the second interface screenshot.
  5. 5. The method of claim 2, wherein saving a first screenshot of the first display interface corresponding to the second text control currently traversed in a first screenshot set, further comprises: and storing the text level information corresponding to the fourth text control and the first interface screenshot in a first screenshot set.
  6. 6. The method of claim 5, wherein invoking a second display interface corresponding to a second language version of the target game based on the first interface screenshot comprises: And acquiring reference text level information of a fourth text control corresponding to the first interface screenshot, and calling a second display interface corresponding to a second language version of the target game based on the reference text level information.
  7. 7. The method of claim 1, wherein determining each second text control included in each first display interface corresponding to a first game version of the first language comprises: And determining a UI control tree of each first display interface corresponding to the first language version of the target game, traversing the UI control tree, and obtaining the second text control.
  8. 8. The method of claim 1, wherein determining a set of text controls comprises: if the first language version of the target game is the first development version, determining all text controls in the first language version of the target game as first text controls; If the first language version of the target game is not the first development version, determining a text control with differentiation between the first language version of the target game and the historical game version as a first text control; And all the first text control sets are used as the text control sets.
  9. 9. A multi-language text testing device, the device comprising: the control set determining module is used for determining a text control set, wherein the text control set is a set of first text controls to be tested in a first language version of a target game; The first test module is used for determining each second text control contained in each first display interface corresponding to the first language version of the target game, traversing each second text control, testing the currently traversed second text control when determining that the currently traversed second text control exists in the text control set, and storing a first screenshot of the first display interface corresponding to the currently traversed second text control in a first screenshot set; The coverage rate determining module is used for determining a test coverage rate based on the first cut-off chart set and the text control set, and determining the first cut-off chart set when the test coverage rate reaches a preset value as a second cut-off chart set; And the second testing module is used for testing the text control on the second language version of the target game based on the second cut-off chart set.
  10. 10. An electronic device, the electronic device comprising: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multi-language version software testing method of any one of claims 1-8.
  11. 11. A computer readable storage medium storing computer instructions for causing a processor to implement the multi-language version software testing method of any one of claims 1-8 when executed.

Description

Multi-language version software testing method and device, electronic equipment and storage medium Technical Field The present invention relates to the field of text testing, and in particular, to a method and apparatus for testing multi-language version software, an electronic device, and a storage medium. Background In the quality assurance of the software testing industry, the testing of the UI interface accounts for a very high proportion of functional testing, and the testing of the text control accounts for a very high proportion of UI testing, for the software or games coming out of sea, the characters displayed on the text control are required to be tested on the interface through post-translation display, so that a lot of text translations are required to be tested on the interface. For testers, only text controls on interfaces can be tested by a black box method, but due to unclear documents required by a UI, insufficient coverage of use cases can cause frequent missed test of texts of some interfaces, and no efficient tool or method is available for detecting whether the test of the text controls is completely covered. The test process is totally based on artificial experience, blindness is compared, and the conditions of incorrect translation display, missing turning and the like frequently occur in external clothing, so that the player is confused, and the game is enabled to be downgraded in public praise and lost economically. Disclosure of Invention The invention provides a multi-language version software testing method, a multi-language version software testing device, electronic equipment and a storage medium, so that the integrity of test coverage is ensured, and the efficiency and the accuracy of multi-language testing are improved. According to an aspect of the present invention, there is provided a multi-language version software testing method, the method comprising: determining a text control set, wherein the text control set is a set of first text controls to be tested in a first language version of a target game; Determining each second text control contained in each first display interface corresponding to the first language version of the target game, traversing each second text control, testing the currently traversed second text control when determining that the currently traversed second text control exists in the text control set, and storing first interface screenshots of the first display interface corresponding to the currently traversed second text control in a first screenshot set; determining a test coverage rate based on the first cut-off chart set and the text control set, and determining the first cut-off chart set when the test coverage rate reaches a preset value as a second cut-off chart set; and testing a text control on the second language version of the target game based on the second graph set. According to another aspect of the present invention, there is provided a multi-language text testing apparatus, the apparatus comprising: the control set determining module is used for determining a text control set, wherein the text control set is a set of first text controls to be tested in a first language version of a target game; The first test module is used for determining each second text control contained in each first display interface corresponding to the first language version of the target game, traversing each second text control, testing the currently traversed second text control when determining that the currently traversed second text control exists in the text control set, and storing a first screenshot of the first display interface corresponding to the currently traversed second text control in a first screenshot set; The coverage rate determining module is used for determining a test coverage rate based on the first cut-off chart set and the text control set, and determining the first cut-off chart set when the test coverage rate reaches a preset value as a second cut-off chart set; And the second testing module is used for testing the text control on the second language version of the target game based on the second cut-off chart set. According to another aspect of the present invention, there is provided an electronic apparatus including: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multi-language version software testing method of any one of the embodiments of the present invention. According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method for testing multi-language version software according to any one of the embodiments of the present invention. According to the technical scheme, the set of the first text control to be tested in the first l