CN111914510A - Control character string checking method and device, computer equipment and storage medium - Google Patents
Control character string checking method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111914510A CN111914510A CN202010571568.4A CN202010571568A CN111914510A CN 111914510 A CN111914510 A CN 111914510A CN 202010571568 A CN202010571568 A CN 202010571568A CN 111914510 A CN111914510 A CN 111914510A
- Authority
- CN
- China
- Prior art keywords
- div element
- control
- string
- image
- div
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a control string checking method, a control string checking device, computer equipment and a storage medium. The method comprises the following steps: acquiring data of a UI control corresponding to the string to be detected; generating a first DIV element and a second DIV element according to the data of the UI control, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the text filled in the interior; filling a string to be detected into a second DIV element, analyzing the first DIV element and the second DIV element, and presenting a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, wherein the first image is displayed on the second image and has the same display coordinate with the second image, and if the length of the string to be detected exceeds the limit of the UI control, part of the area of the second image is displayed outside the display area of the first image. By adopting the method, the character overrun condition can be displayed, and the efficiency is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a control string checking method and apparatus, a computer device, and a storage medium.
Background
A control is any element on a User Interface (UI), such as a window title, Label (Label), text box, list box, drop-down list box, combo drop-down list box, check box, radio box, button, and the like. During software development, the size of the controls of a portion of a user interface is typically limited by the area and layout of the user interface. For example, the text content in the control is too long, which may cause the problem of text truncation or mutual hiding caused by the text exceeding the text display range of the control. Reference is made to the normal user interface shown in the circle in fig. 1a and the overrun user interface shown in the circle in fig. 1 b.
In the conventional technology, a quality assurance process for detecting the problems is usually arranged in software development. However, when the developed software is made locally, for example, the original english version of the software is made into the corresponding chinese version, the software is usually not developed from the beginning, but the original version of the string is translated. Due to the nature of the language, translated text may be longer than the original text. Therefore, when the translation is imported into the control of the software interface, the problem of text truncation or mutual hiding is also caused. For this problem, the problem is usually detected in a testing stage of the localized manufacturing, and if the testing determines that an overrun condition exists, the problem is returned to the translator for modification and adjustment. For example, an interpreter may avoid such problems by reducing the number of characters in the text content, etc.
However, since the interpreter cannot acquire the user interface of the actual software containing the text content, and the display formats or display effects of different languages may be different, the interpreter cannot accurately estimate the actual space occupied by the text content, which usually requires multiple detection-modification rounds to solve the problem, thereby reducing the efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a control string check method, apparatus, computer device and storage medium capable of improving efficiency.
A control string checking method, comprising:
acquiring data of a UI control corresponding to the string to be detected;
generating a first DIV element and a second DIV element according to the data of the UI control, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the internally filled text;
filling the second DIV element with the string to be detected, analyzing the first DIV element and the second DIV element, and presenting a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, wherein the first image is displayed on the second image and has the same display coordinate with the second image, and if the length of the string to be detected exceeds the limit of the UI control, a partial area of the second image is displayed outside the display area of the first image.
In one embodiment, the obtaining data of the UI control corresponding to the string to be checked includes:
acquiring a string mark of the string to be detected;
and acquiring the data of the UI control from a control data record table according to the string identification, wherein the control data record table records the preset corresponding relation between the string identification and the data of the control. In one embodiment, the display color attribute of the first DIV element is different from that of the second DIV element, and the display color attribute of the second DIV element is a preset warning color.
In one embodiment, parsing and displaying the first and second DIV elements includes:
configuring the same display coordinates for the upper left corner or the upper right corner of the first DIV element and the second DIV element;
resolving display coordinates of the first DIV element and the second DIV element to coincide upper, left, and right edges of the first image and the second image.
In one embodiment, the method further comprises:
generating a third DIV element having the same size as the first DIV element;
filling the string to be checked into the third DIV element;
and analyzing the third DIV element to present a third image corresponding to the third DIV element, wherein the third image is displayed on the first image and has the same display coordinate with the first image. In one embodiment, if the height attribute of the UI control is determined by a specified number of lines, the height attribute of the first DIV element is set to be adaptive to the number of lines of text filled inside, and an empty line of the specified number of lines is filled inside, so that the height attribute of the first DIV element is the same as the height attribute of the UI control.
In one embodiment, if the width attribute of the UI control is determined by a specified number of characters, the width attribute of the first DIV element is set to be adaptive to the number of characters filled inside, and a placeholder character of the specified number of characters is filled inside, so that the width attribute of the first DIV element is the same as the width attribute of the UI control.
An apparatus for control string check, the apparatus comprising:
the acquisition module is used for acquiring data of a UI control corresponding to the string to be detected; a generating module, configured to generate a first DIV element and a second DIV element based on the UI control data, where a width attribute and a height attribute of the first DIV element are the same as those of the UI control, and the second DIV element and the first DIV element have the same width attribute and a height attribute that is adaptive to a number of text lines to be filled inside;
the analysis display module is used for filling the string to be detected into the second DIV element, and analyzing the first DIV element and the second DIV element so as to present a first image corresponding to the first DIV element and a second image corresponding to the second DIV element; and if the length of the character string to be detected exceeds the limit of the UI control, a partial area of the second image is displayed outside the display area of the first image.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of any of the control string check methods.
According to the control string inspection method, the control string inspection device, the computer equipment and the storage medium, after the data of the UI control corresponding to the string to be inspected is obtained, the first DIV element and the second element are generated based on the data of the UI control, and then the string to be inspected is placed into the second DIV element, and then the first DIV element and the second DIV element are analyzed to display images. The method utilizes a control in a DIV element simulation interface to display the string to be detected, not only considers the actual situation of the control, but also enables the width and height attributes of a first DIV element to be the same as those of a UI control, enables a second DIV element to be the same as those of the first DIV element in width attributes, enables the height attributes to be self-adaptive to the number of text lines filled inside, enables a first image of the first DIV element to be displayed on a second image of the second DIV element, can directly determine the overrun situation of the string to be detected through a display result, further facilitates a translator to directly modify according to the actual display effect and the overrun situation, brings the task of detecting whether overrun is originally in the testing stage to the translation stage of the translator in advance, does not need to pass through a plurality of detection-modification rounds, reduces rework and improves efficiency.
Drawings
FIG. 1a is a schematic view of a normally displayed interface of a control;
FIG. 1b is a schematic diagram of an interface for an overrun display control;
FIG. 2 is a diagram illustrating an exemplary implementation of a control string check method;
FIG. 3 is a flowchart illustrating a control string check method according to an embodiment;
FIG. 4 is a flowchart illustrating the steps of obtaining data of a UI control corresponding to a string to be examined in one embodiment;
FIG. 5 is a block diagram of an apparatus for a control string check method in accordance with one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The control string check method provided by the application can be applied to the application environment shown in fig. 2. The application environment involves a terminal 102 and a server 104, wherein the terminal 102 communicates with the server 104 over a network. After the terminal 102 obtains the string to be checked, the terminal 102 may implement the control string checking method separately according to the string to be checked. The terminal 102 may also send the string to be checked to the server 104 for communication, and the server 104 may implement the control string checking method according to the string to be checked.
Specifically, taking the terminal 102 as an example, when the terminal 102 receives the string to be detected uploaded by the interpreter and displayed on the control, the terminal 102 obtains data of the UI control corresponding to the string to be detected; the terminal 102 generates a first DIV element and a second DIV element according to the data of the UI control, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the text filled in the terminal. The terminal 102 fills the string to be detected into a second DIV element, analyzes the first DIV element and the second DIV element, and presents a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, where the first image is displayed on the second image and has the same display coordinates as the second image, and if the length of the string to be detected exceeds the limit of the UI control, a partial region of the second image is displayed outside the display region of the first image. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 3, a control string checking method is provided, which is described by taking the method as an example applied to the terminal in fig. 2, and includes the following steps:
step S302, data of the UI control corresponding to the string to be detected is obtained.
The word string to be checked refers to text content which is to be presented by the UI control and needs to be checked whether the text content exceeds the display range of the control currently. For example, if the text content in the control is "XXX", then "XXX" is the word string to be checked. The data of the UI control comprises a width attribute and a height attribute of the UI control, wherein the width attribute comprises a display unit of a width value and a display unit of a width value, and the height attribute comprises a display unit of a height value and a display unit of a height value. The display unit of the UI control width value and the height value includes pixels, line numbers, and characters.
Specifically, when the interpreter inputs the string to be checked into a UI control in a user interface of the terminal through an input device of the terminal, such as a keyboard, a mouse, a touch screen, and the like, a control string check task is triggered. And the terminal acquires the string to be detected input by the interpreter in the UI control and the data of the UI control. For example, when the software is localized, after a translator submits translation text of each string in the original version through the operation of an input device, a control string checking task is triggered. The translation text input by the translator acquired by the terminal is the word string to be detected.
Step S304, according to the data of the UI control, generating a first DIV element and a second DIV element, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the internally filled text. Among them, the DIV element is a positioning technique in the cascading style sheet, and is called divsion (DIVision) in its entirety, and may be called a layer. DIV elements are elements used to provide structure and context for the content of large blocks within an HTML (Hypertext Markup Language) document.
Specifically, after the terminal acquires the data of the UI control corresponding to the string to be detected, two DIV elements are created, namely a first DIV element and a second DIV element. Then, the terminal sets the width attribute and the height attribute of the first DIV element and the second DIV element according to the data (the width attribute and the height attribute of the control) of the control corresponding to the string to be detected. The width attribute and the height attribute of the first DIV element are the same as those of the UI control, that is, the width value and the corresponding display unit of the first DIV element are set to be the same as those of the UI control, and the height value and the corresponding display unit of the first DIV element are simultaneously set to be the same as those of the UI control. For example, when the display units of the width and height of the UI control are both pixels, then the display units of the width and height of the first DIV element are also pixel values. It will be appreciated that the first DIV element is a display box that is identical to the UI control width property and height property, and may be referred to as a fixed placeholder. The width attribute of the second DIV element is set to be the same as the width attribute of the first DIV element, and the height attribute is set to be adaptive text, that is, the number of lines of text filled into the second DIV element is adaptive. Since the text filled in the second DIV element is the to-be-checked string, the second DIV element can be referred to as the actual data layer.
Step S306, filling the string to be checked into a second DIV element, and analyzing the first DIV element and the second DIV element to present a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, where the first image is displayed on the second image and has the same display coordinates as the second image, and if the length of the string to be checked exceeds the limit of the UI control, a partial region of the second image is displayed outside the display region of the first image.
Specifically, after the terminal generates the first DIV element and the second DIV element, the string to be checked is placed into the second DIV element. And then, the first DIV element and the second DIV element are analyzed to obtain a first image corresponding to the first DIV element and a second image corresponding to the second DIV element. The first image and the second image are displayed at the same display coordinate, and the first image is displayed on the second image. It is to be understood that the second image and the second image overlap, the first image being displayed overlaid on the second image. The width attribute and the height attribute of the first DIV element are set according to the width attribute and the height attribute of the corresponding UI control of the string to be detected. The first DIV element corresponds to a text display region that is the same as and fixed from the UI control. The second DIV element is only the same as the first DIV element in width attribute and is self-adaptive text in height, so that the height of the second DIV element can be changed according to the filled string to be checked. Therefore, when the terminal puts the string to be checked into the second DIV element, then the first DIV element and the second DIV element are analyzed, and the first image and the second image are displayed in an overlapped mode according to the same display coordinate, if the length of the string to be checked exceeds the limit of the UI control, a partial area of the second image can be displayed outside the display area of the first image. Therefore, the terminal can determine that the string to be checked exceeds the display range limited by the width and the height of the UI control, and the exceeded part of characters is the characters included in the second image displayed outside the display area of the first image. On the contrary, if the length of the string to be checked does not exceed the limit of the UI control, the second image is completely displayed by the first image in a shielding manner, and the string to be checked in the second image cannot be seen outside the display area of the first image. Therefore, the terminal can determine that the string to be checked does not exceed the display range limited by the width and the height of the UI control.
In one embodiment, the display color attribute of the first DIV element is different from that of the second DIV element, and the display color attribute of the second element is a predetermined warning color.
The different display color attributes of the first DIV element and the second DIV element may be understood as the difference between the background color or the foreground color of the text of the first DIV element and the text of the second DIV element. The preset warning color may be any color, and the embodiment preferably has a red color. Specifically, by setting the display color attributes of the first DIV element and the second DIV element to be different, even if the first DIV element is filled with content, whether the string to be detected filled in the second DIV element exceeds the UI control limit value can be visually distinguished through the displayed display color.
In one embodiment, parsing and displaying the first and second DIV elements includes: configuring the same display coordinates for the upper left corner or the upper right corner of the first DIV element and the second DIV element; the display coordinates of the first and second DIV elements are resolved so that upper, left, and right edges of the first and second images coincide.
Specifically, since the height attribute of the second DIV element adapts to the text, the coordinates of the lower left and lower right corners may fluctuate. Therefore, in order to ensure that the first and second DIV elements are resolved such that the first and second images can be displayed on the uniform display coordinates in an overlapping manner, the upper left corners or the upper right corners of the first and second DIV elements may be set to the same display coordinates. When the first DIV element and the second DIV element are presented by the first image and the second image, the first DIV element and the second DIV element can be displayed in an overlapped mode by taking the upper left corner or the upper right corner as the same display coordinate, the second image beyond the display area of the first image can be conveniently displayed visually, and therefore whether the string to be detected exceeds the limit range of the UI control or not is determined.
According to the control string inspection method, after the data of the UI control corresponding to the string to be inspected is obtained, the first DIV element and the second element are generated based on the data of the UI control, and then the string to be inspected is placed in the second DIV element, and the first DIV element and the second DIV element are analyzed to display images. The method utilizes a control in a DIV element simulation interface to display the string to be detected, not only considers the actual situation of the control, but also sets the width and height attributes of a first DIV element to be the same as those of a UI control, a second DIV element to be the same as those of the first DIV element, and the height attributes of the second DIV element are adaptive to the number of text lines filled inside, and displays a first image of the first DIV element on a second image of the second DIV element.
In one embodiment, as shown in fig. 4, step S304 includes:
in step S402, the string ID of the string to be checked is obtained.
The string identifier is an identifier for uniquely representing a string to be detected, and may be a character string without limiting the number of bits, which is composed of any one or more of a number, a common character and a special character. The string identifier may be a string identifier already carried by the terminal before the string to be detected is uploaded to the terminal, or may be configured by the terminal when the string to be detected is acquired by the terminal.
Step S404, acquiring data of the UI control from a control data record table according to the string identification, wherein the control data record table records a corresponding relation between a preset string identification and the data of the UI control.
Specifically, before triggering a control string check task, a control data record table is generated in advance according to a string identification of a string to be detected and data of a UI control corresponding to the string to be detected. Because the string to be detected corresponds to the UI control and the string to be detected is associated with the string identification, the corresponding relation between the string identification corresponding to the same string to be detected and the data of the UI control can be pre-configured and recorded through the control data recording table. It can also be understood that the control data record table includes a string identifier and UI control data corresponding to the string identifier. When a control character string checking task is triggered and data of a UI control corresponding to the character string to be detected is acquired, acquiring a character string identification preset for the character string to be detected. And then, inquiring the data of the UI control corresponding to the string identification from the generated control data record table according to the string identification to obtain the data of the UI control corresponding to the string to be detected. For example, the UI control corresponding to the string to be checked is control 1, and then the data of the UI control corresponding to the string identifier of the string to be checked is the data of UI control 1.
In this embodiment, the data of the UI control corresponding to the to-be-detected word string is obtained through the word string identifier, so that the accuracy of obtaining the data of the UI control is ensured.
In an embodiment, after step S206, another method for checking a control string is provided, which further includes: generating a third DIV element having the same size as the first DIV element; filling the string to be detected into a third DIV element; and analyzing the third DIV element to present a third image corresponding to the third DIV element, wherein the third image is displayed on the first image and has the same display coordinate with the first image.
Specifically, the filling content of the third DIV element is the to-be-detected string, which is used to ensure that the to-be-detected string displays consecutive DIV layer elements, and the third DIV element may be referred to as a friendly display layer. The width attribute and the height attribute of the friendly display layer are the same as those of the fixed placeholder (the first DIV element), namely the width attribute and the height attribute of the UI control corresponding to the string to be checked are the same. The filling text is the same as the filling text of the actual data layer (second DIV element), i.e. the filling text is filled into the string to be checked as the actual data layer. And the display coordinates of the friendly display layer are the same as those of the fixed placeholder layer, so that the friendly display layer is displayed on the fixed placeholder layer in an overlapping manner, the final overlapping relationship is that the actual data layer is positioned at the bottommost layer, the friendly display layer is positioned at the uppermost layer, and the fixed placeholder layer is positioned at the middle layer. It will be appreciated that all of the attributes of the friendly display layer may be the same, except that the fill content is not the same as the fixed placeholder.
It should be understood that the actual data layer is located below the fixed placeholder layer and the friendly display layer, and the fixed placeholder layer is located below the friendly display layer. Therefore, under the condition that the string to be detected is not normally out of limit, the actual data layer can be shielded by the fixed occupying layer and the friendly display layer, the string to be detected in the actual data layer can not be displayed, and an interpreter can check the complete string to be detected through the friendly display layer on the uppermost layer. And under the condition of overrun, the text part exceeding the actual data layer is exposed out of the friendly display layer and the fixed placeholder layer, so that the text part is displayed. And because the background color of the text of the actual data layer is different from that of the other two layers, the translator can visually see the overrun part through the display result. And the text part which is not exceeded in the actual data layer is consistent with the text content of the friendly display layer, so that the continuity of the display content is ensured. It will be appreciated that since the friendly display layer is the uppermost layer, the text display scope is the same as the text display scope of the UI control, as well as the fixed placeholder layer. Therefore, when the filling content of the friendly display layer is the string to be checked, the friendly display layer can only display the number of characters of the string to be checked in the text display range, namely can only display the content which is not over-limited. While the width in the actual data layer text display range is consistent with the UI control, the height setting is adaptive text. Therefore, all the strings to be checked put into the actual data layer are displayed. However, since the width of the actual data layer is consistent with that of the friendly display layer and the fixed placeholder layer, the content which does not exceed the display range can be shielded by the friendly display layer and the fixed placeholder layer, and only the content which exceeds the display range is displayed outside the friendly display layer and the fixed placeholder layer. Therefore, the content which is not beyond the display range is displayed by the friendly display layer in the display result, the part which is beyond the limit is displayed by the actual data layer, and the whole string to be checked is formed by combining the content and the part.
In this embodiment, the overrun is determined while the overrun is visually determined by the three-layer laminate DIV including the friendly display layer. If the word string to be detected is required to be over-limited only by determining, and the over-limited characters are not required to be determined, the friendly display layer can be removed by laminating DIV elements, and only the fixed placeholder layer and the actual data layer are included.
In one embodiment, in order to prevent the detected word string displayed in the final display result from having two different colors to affect the visual effect, the friendly display layer and the actual data layer only select different text background colors rather than different text foreground colors.
In this embodiment, even fill wait to examine word string in the actual data layer and sheltered from by fixed placeholder, also can through friendly display layer audio-visual demonstration by waiting to examine the word string that shelters from, guaranteed the demonstration continuity of waiting to examine the word string through friendly display layer, improve visual effect.
In one embodiment, if the height attribute of the UI control is determined by the specified number of lines, the height attribute of the first DIV element is set to be adaptive to the number of lines of text filled inside, and an empty line of the specified number of lines is filled inside, so that the height attribute of the first DIV element is the same as the height attribute of the UI control.
The height attribute of the UI control is determined by the specified line number, namely the display unit of the height value of the UI control is the line number, and the height value is the same as the line number in number. For example, if the specified number of rows is 3, the height value is 3.
Specifically, unless a display unit to be described is specified, the display unit is generally a pixel. Therefore, if the height attribute of the UI control is determined by the specified number of rows, the display unit of the width and height of the UI control can be determined as pixel x number of rows. Therefore, the terminal needs to determine the height attribute of the first DIV element from the placeholder text for the specified number of lines. The terminal fills the space occupying text with the specified line number into the first DIV element, and the height value of the first DIV element is determined by the size of the filled space occupying text with the specified line number. In this embodiment, the placeholder text with the specified line number is an empty line with the specified line number, which is configured in advance according to the height of the control. For example, when the height of the UI control is 5 lines, then the configured placeholder text is 5 empty lines. After the placeholder text of the specified line number is filled into the first DIV element, the first DIV element obtains the height attribute which is the same as the height attribute of the UI control.
In another embodiment, if the width attribute of the UI control is determined by the specified number of characters, the width attribute of the first DIV element is set to be adaptive to the number of characters filled inside, and a placeholder character with the specified number of characters is filled inside, so that the width attribute of the first DIV element is the same as that of the UI control.
The width attribute of the UI control is determined by the specified characters, that is, the display unit of the height value of the UI control is characters, and the height value is the same as the number of the specified characters.
Specifically, similarly, unless a display unit is specified, the display unit is generally a pixel. Therefore, if the width attribute of the UI control is determined by the specified character, the display unit of the width and height of the UI control can be determined as character × pixel. Therefore, the terminal changes the width of the first DIV element according to the size of the filled placeholder text by filling the placeholder text into the first DIV element. In this embodiment, the placeholder text is a placeholder character with a designated number of characters configured in advance according to the width of the control. For example, when the width of the control is 5 characters, then the placeholder text configured in this check mode is a line of text that includes 5 characters. After the placeholder characters of the specified number of characters are filled in the first DIV element, the first DIV element obtains the width attribute which is the same as the width attribute of the UI control.
In another embodiment, if the width property and the height property of the UI control are determined by the specified number of characters and the height property is determined by the specified number of rows, the display unit of the width and the height of the UI control is the number of characters x rows. Then, the first DIV element can be filled directly with text lines specifying the number of lines and specifying the number of line characters. For example, when the width of the UI control is 5 characters and the height is 5 lines, then the filled-in placeholder text is a text line that includes 5 lines of 5 characters, and the first DIV element gets the same width and height attributes as the UI control.
In one embodiment, the data of the UI control further includes format information including font, font size, line height/line spacing. Specifically, when any of the above embodiments generates a DIV element including a width attribute, a height attribute, and a display color attribute of any one or more of the first DIV element, the second DIV element, and the third DIV element according to the data of the UI control, format information in the data of the UI control is acquired at the same time. The formats of the font, the font size, the line height/line spacing, etc. of the DIV elements are set according to the format information. In this embodiment, the format information ensures that the font format of the content displayed in the DIV layer element is the same as the font format of the content actually displayed in the UI control, thereby ensuring the accuracy of overrun.
In one embodiment, four different inspection modes are pre-configured in different display units of the width and the height of the UI control, and each of the inspection modes includes a first inspection mode (pixel-by-pixel inspection mode) in which the display units of the width and the height are both pixel values, a second inspection mode (pixel-by-row inspection mode) in which the display unit of the width is a pixel value and the display unit of the height is a row number, a third inspection mode (character-by-pixel inspection mode) in which the display unit of the width is a character and the display unit of the height is a pixel, and a fourth inspection mode (character-by-row inspection mode) in which the display unit of the width is a character and the display unit of the height is a row number greater than 1. Taking the four inspection modes as an example, taking the example that the control string inspection method is applied to the production of localized software as an example, the detailed description of the control string inspection method includes the following steps:
step 1, preparing data. And the terminal acquires the translation text of the word string corresponding to each control on the software interface of the original version, which is input by the translator, so as to obtain the word string to be detected (translation text). For example, if the string of a control on the software interface of the original version is "hello", the string to be checked input by the interpreter is "hello" when the local software corresponding to the chinese version is manufactured. And then, the terminal acquires the width attribute, the height attribute, the display color attribute and the format information of the UI control corresponding to the to-be-detected string 'hello', and data of the UI control is obtained. And storing the string identification of the string to be detected and the data of the UI control into a control data record table in an associated manner. The format information includes font, font size, line height/line spacing. The display unit of width and height includes a pixel value, a line number, and a character number. Generally, the display unit of width is usually a pixel value or a number of characters, and the display unit of height is usually a pixel value and a line number.
And step 2, triggering the check. And when the translator finishes translating and clicks on a software interface to submit the translated text, triggering a control string checking task.
And step 3, determining the checking mode. And the terminal acquires the width attribute, the height attribute, the display color attribute and the format information corresponding to the string identification from the control data record table according to the string identification of the string to be detected. And determining the inspection mode corresponding to the string to be inspected according to the display units in the width attribute and the height attribute.
Specifically, when the display units of the width attribute, and the height attribute are all pixel values, the inspection mode of the string to be inspected is determined as a first inspection mode (pixel-by-pixel inspection mode).
And when the display unit of the width in the width attribute and the display unit of the width in the height attribute is a pixel value and the display unit of the height is a row numerical value, determining that the inspection mode of the string to be inspected is a second inspection mode (pixel-row inspection mode).
And when the display unit of the width in the width attribute and the display unit of the height attribute is the character number and the display unit pixel value of the height, determining that the check mode of the string to be checked is a third check mode (character number pixel check mode).
And when the display unit of the width in the width attribute and the display unit of the height in the height attribute is the number of characters and the display unit of the height is a line number value larger than 1, determining that the check mode of the string to be checked is a fourth check mode (character number-line number check mode).
And 4, starting the inspection according to the inspection mode.
Taking three layers of DIV elements as an example, the display positions of the three layers of DIV elements are, from bottom to top, an a actual data layer (second DIV element), a B fixed placeholder layer (first DIV element), and a C friendly display layer (third DIV element), respectively.
First, the three-layer DIV elements are formatted (including font, font size, line height/line spacing) according to the acquired format information. Then, the width attribute, height attribute, display color vertical, and fill text of these three layers are set according to the inspection mode.
First inspection mode (pixels):
a actual data layer: the width attribute is the same as B, and is the width pixel value of the UI control, and the height is an adaptive sample (adaptive to the to-be-detected string filled into the actual data layer). The display color is preferably red, and may be different from the background color of the B, C layer. And filling the text into a word string to be checked.
B, fixing a placeholder layer: the width is the width pixel value of the UI control, and the height is the height pixel value of the UI control. The background color is preferably a default color, and may be different from the layer a. The filled place-occupying text is empty and has no filling.
C-friendly display layer: the width and height of the text background color can be the same as those of B, a default color is preferred, and the text background color is different from that of the layer A. And filling the text into a word string to be checked.
Second inspection mode (pixel x number of rows).
A actual data layer: the width attribute is the same as B, and is the width pixel value of the UI control, and the height is an adaptive sample (adaptive to the to-be-detected string filled into the actual data layer). The background color of the text may be set to be red, which is different from the background color of the B, C layer. And filling the text into a word string to be checked.
B, fixing a placeholder layer: width is the width pixel value of the UI control, and height is the adaptive sample (adaptive to placeholder text filled into a fixed placeholder). The background color of the text may be the background color preferred to the default color, as opposed to the a-layer. The placeholder text is an empty line of the specified line number.
C-friendly display layer: the width and height of the text background color can be the same as those of B, a default color is preferred, and the text background color is different from that of the layer A. And filling the text into a word string to be checked.
Third checking mode (character number pixel)
A actual data layer: the width attribute is the same as B, and the height is adaptive to the sample (adaptive to the candidate string filled into the actual data layer). The background color of the text may be a background color, preferably red, different from the background color of the B, C layer. And filling the text into a word string to be checked.
B, fixing a placeholder layer: width is an adaptive sample (adaptive to placeholder text filled into a fixed placeholder) and height is the height pixel value of the UI control. The background color of the text may be the background color preferred to the default color, as opposed to the a-layer. The placeholder text is a preset character A with a specified number of characters.
C-friendly display layer: the width and height of the text background color can be the same as those of B, a default color is preferred, and the text background color is different from that of the layer A. And filling the text into a word string to be checked.
Fourth checking mode (number of characters and number of lines)
A actual data layer: the width attribute is the same as B, and the height is adaptive to the sample (adaptive to the candidate string filled into the actual data layer). The background color is preferably red, and may be different from the background color of the B, C layer. And filling the text into a word string to be checked.
B, fixing a placeholder layer: the width is an adaptive sample (placeholder text adapted and filled to the fixed placeholder) and the height is an adaptive sample (placeholder text adapted and filled to the fixed placeholder). The background color of the text may be the background color preferred to the default color, as opposed to the a-layer. The placeholder text is a text line with a specified line number, and each line is filled with a preset character A with a specified character number.
C-friendly display layer: the width and height of the text background color can be the same as those of B, a default color is preferred, and the text background color is different from that of the layer A. And filling the text into a word string to be checked.
Then, three DIV elements are analyzed to be displayed by the first image, the second image and the third image, and in a normal condition, because the position of A is positioned at the lower layers of B and C, A in a display result can be blocked and the red background of A cannot be displayed. Moreover, since the contents of C and a match, the display result shows the contents of the C layer, and therefore the translator can see the translated text through the uppermost C layer. If the display range is exceeded, the part of the A is displayed outside the B and C layers. On the display result, since A is different from B and C in background color (the background color is different, A is red, and BC is default), the number of characters of the to-be-detected word string beyond the range can be visually determined. And the characters of the character string to be detected which are not exceeded are consistent with the content C, and the consistency of the character string to be detected is ensured on the display result.
It should be understood that although the various steps in the flow charts of fig. 3-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 5, there is provided a control string check apparatus, including: an obtaining module 502, a generating module 504 and an analyzing and displaying module 506, wherein:
the obtaining module 502 is configured to obtain data of a UI control corresponding to the string to be checked.
The generating module 504 is configured to generate a first DIV element and a second DIV element according to the data of the UI control, where a width attribute and a height attribute of the first DIV element are the same as those of the UI control, and the second DIV element and the first DIV element have the same width attribute and are adaptive to the number of lines of the text filled inside.
And an analysis display module 506, configured to fill the string to be detected into a second DIV element, and analyze the first DIV element and the second DIV element to present a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, where the first image is displayed on the second image and has the same display coordinates as the second image, and if the length of the string to be detected exceeds the limit of the UI control, a partial region of the second image is displayed outside the display region of the first image.
In one embodiment, the obtaining module 502 is further configured to obtain a string identifier of the string to be checked; and acquiring data of the UI control from a control data record table according to the string identification, wherein the control data record table records the corresponding relation between the preset string identification and the data of the control.
In one embodiment, the generating module 504 is further configured to determine that the display color attribute of the first DIV element is different from that of the second DIV element, and the display color attribute of the second DIV element is a preset warning color.
In one embodiment, the generating module 504 is further configured to configure the same display coordinates for the top left corner or the top right corner of the first DIV element and the second DIV element; the display coordinates of the first and second DIV elements are resolved so that upper, left, and right edges of the first and second images coincide.
In one embodiment, the generation module 504 is further configured to generate a third DIV element that is the same size as the first DIV element; filling the string to be detected into a third DIV element; the parsing and displaying module 506 is further configured to parse the third DIV element to present a third image corresponding to the third DIV element, where the third image is displayed on the first image and has the same display coordinates as the first image.
In one embodiment, the generating module 504 is further configured to set the height attribute of the first DIV element to be adaptive to the number of lines of the text filled in the interior if the height attribute of the UI control is determined by the specified number of lines, and fill an empty line of the specified number of lines in the interior, so that the height attribute of the first DIV element is the same as the height attribute of the UI control.
In one embodiment, the generating module 504 is further configured to set the width attribute of the first DIV element to be adaptive to the number of characters filled inside if the width attribute of the UI control is determined by the specified number of characters, and fill a placeholder character with the specified number of characters inside, so that the width attribute of the first DIV element is the same as the width attribute of the UI control.
For the specific limitations of the control string check apparatus, reference may be made to the above limitations of the control string check method, which will not be described herein again. All or part of the modules in the control string check device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a control string check method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring data of a UI control corresponding to the string to be detected;
generating a first DIV element and a second DIV element according to the data of the UI control, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the text filled in the interior;
filling a string to be detected into a second DIV element, analyzing the first DIV element and the second DIV element, and presenting a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, wherein the first image is displayed on the second image and has the same display coordinate with the second image, and if the length of the string to be detected exceeds the limit of the UI control, part of the area of the second image is displayed outside the display area of the first image.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a string mark of a string to be detected;
and acquiring data of the UI control from a control data record table according to the string identification, wherein the control data record table records the corresponding relation between the preset string identification and the data of the control.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the display color attributes of the first DIV element and the second DIV element are different, and the display color attribute of the second DIV element is a preset warning color.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
configuring the same display coordinates for the upper left corner or the upper right corner of the first DIV element and the second DIV element;
the display coordinates of the first and second DIV elements are resolved so that upper, left, and right edges of the first and second images coincide.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
generating a third DIV element having the same size as the first DIV element;
filling the string to be detected into the third DIV element;
and analyzing the third DIV element to present a third image corresponding to the third DIV element, wherein the third image is displayed on the first image and has the same display coordinate with the first image.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the height attribute of the UI control is determined by the specified line number, setting the height attribute of the first DIV element as a text line number adaptive to the internal filling, and filling an empty line of the specified line number in the text line number so as to enable the height attribute of the first DIV element to be the same as the height attribute of the UI control.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the width attribute of the UI control is determined by the specified number of characters, setting the width attribute of the first DIV element to be adaptive to the number of characters filled in the interior, and filling the space occupying characters with the specified number of characters in the interior, so that the width attribute of the first DIV element is the same as that of the UI control.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring data of a UI control corresponding to the string to be detected;
generating a first DIV element and a second DIV element according to the data of the UI control, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the text filled in the interior;
filling a string to be detected into a second DIV element, analyzing the first DIV element and the second DIV element, and presenting a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, wherein the first image is displayed on the second image and has the same display coordinate with the second image, and if the length of the string to be detected exceeds the limit of the UI control, part of the area of the second image is displayed outside the display area of the first image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a string mark of a string to be detected;
and acquiring data of the UI control from a control data record table according to the string identification, wherein the control data record table records the corresponding relation between the preset string identification and the data of the control.
In one embodiment, the computer program when executed by the processor further performs the steps of: the display color attributes of the first DIV element and the second DIV element are different, and the display color attribute of the second DIV element is a preset warning color.
In one embodiment, the computer program when executed by the processor further performs the steps of:
configuring the same display coordinates for the upper left corner or the upper right corner of the first DIV element and the second DIV element;
the display coordinates of the first and second DIV elements are resolved so that upper, left, and right edges of the first and second images coincide.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a third DIV element having the same size as the first DIV element;
filling the string to be detected into the third DIV element;
and analyzing the third DIV element to present a third image corresponding to the third DIV element, wherein the third image is displayed on the first image and has the same display coordinate with the first image.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the height attribute of the UI control is determined by the specified line number, setting the height attribute of the first DIV element as a text line number adaptive to the internal filling, and filling an empty line of the specified line number in the text line number so as to enable the height attribute of the first DIV element to be the same as the height attribute of the UI control.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the width attribute of the UI control is determined by the specified number of characters, setting the width attribute of the first DIV element to be adaptive to the number of characters filled in the interior, and filling the space occupying characters with the specified number of characters in the interior, so that the width attribute of the first DIV element is the same as that of the UI control.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A control string checking method, comprising:
acquiring data of a UI control corresponding to the string to be detected;
generating a first DIV element and a second DIV element according to the data of the UI control, wherein the width attribute and the height attribute of the first DIV element are the same as those of the UI control, the width attribute and the height attribute of the second DIV element are the same as those of the first DIV element, and the height attribute is adaptive to the number of lines of the internally filled text;
filling the second DIV element with the string to be detected, analyzing the first DIV element and the second DIV element, and presenting a first image corresponding to the first DIV element and a second image corresponding to the second DIV element, wherein the first image is displayed on the second image and has the same display coordinate with the second image, and if the length of the string to be detected exceeds the limit of the UI control, a partial area of the second image is displayed outside the display area of the first image.
2. The method according to claim 1, wherein the obtaining data of the corresponding UI control of the string to be checked comprises:
acquiring a string mark of the string to be detected;
and acquiring the data of the UI control from a control data record table according to the string identification, wherein the control data record table records the preset corresponding relation between the string identification and the data of the control.
3. The method of claim 1, wherein the first DIV element and the second DIV element have different display color attributes, and the display color attribute of the second DIV element is a preset warning color.
4. The method of claim 1, wherein parsing and displaying the first and second DIV elements comprises:
configuring the same display coordinates for the upper left corner or the upper right corner of the first DIV element and the second DIV element;
resolving display coordinates of the first DIV element and the second DIV element to coincide upper, left, and right edges of the first image and the second image.
5. The method of claim 4, further comprising:
generating a third DIV element having the same size as the first DIV element;
filling the string to be checked into the third DIV element;
and analyzing the third DIV element to present a third image corresponding to the third DIV element, wherein the third image is displayed on the first image and has the same display coordinate with the first image.
6. The method of claim 1, wherein if the height attribute of the UI control is determined by a specified number of lines, setting the height attribute of the first DIV element to be adaptive to the number of lines of text filled in and filling the empty lines of the specified number of lines in the height attribute of the first DIV element so that the height attribute of the first DIV element is the same as the UI control.
7. The method of claim 1, wherein if the width property of the UI control is determined by a specified number of characters, setting the width property of the first DIV element to be adaptive to the number of characters filled in and filling the placeholder characters of the specified number of characters in the width property of the first DIV element so that the width property of the first DIV element is the same as the UI control.
8. An apparatus for controlling string checking, the apparatus comprising:
the acquisition module is used for acquiring data of a UI control corresponding to the string to be detected;
a generating module, configured to generate a first DIV element and a second DIV element based on the UI control data, where a width attribute and a height attribute of the first DIV element are the same as those of the UI control, and the second DIV element and the first DIV element have the same width attribute and a height attribute that is adaptive to a number of text lines to be filled inside;
the analysis display module is used for filling the string to be detected into the second DIV element, and analyzing the first DIV element and the second DIV element so as to present a first image corresponding to the first DIV element and a second image corresponding to the second DIV element; and if the length of the character string to be detected exceeds the limit of the UI control, a partial area of the second image is displayed outside the display area of the first image.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010571568.4A CN111914510A (en) | 2020-06-22 | 2020-06-22 | Control character string checking method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010571568.4A CN111914510A (en) | 2020-06-22 | 2020-06-22 | Control character string checking method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111914510A true CN111914510A (en) | 2020-11-10 |
Family
ID=73226096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010571568.4A Pending CN111914510A (en) | 2020-06-22 | 2020-06-22 | Control character string checking method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111914510A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113177389A (en) * | 2021-04-23 | 2021-07-27 | 网易(杭州)网络有限公司 | Text processing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894168A (en) * | 2010-06-30 | 2010-11-24 | 优视科技有限公司 | Method and system for layout display of web page of mobile terminal |
US20180129586A1 (en) * | 2016-11-10 | 2018-05-10 | Testplant Europe Ltd | Method of, and apparatus for, handling reference images for an automated test of software with a graphical user interface |
CN111142988A (en) * | 2019-12-03 | 2020-05-12 | 东软集团股份有限公司 | Page testing method and device, storage medium and electronic equipment |
-
2020
- 2020-06-22 CN CN202010571568.4A patent/CN111914510A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894168A (en) * | 2010-06-30 | 2010-11-24 | 优视科技有限公司 | Method and system for layout display of web page of mobile terminal |
US20180129586A1 (en) * | 2016-11-10 | 2018-05-10 | Testplant Europe Ltd | Method of, and apparatus for, handling reference images for an automated test of software with a graphical user interface |
CN111142988A (en) * | 2019-12-03 | 2020-05-12 | 东软集团股份有限公司 | Page testing method and device, storage medium and electronic equipment |
Non-Patent Citations (2)
Title |
---|
QUQUSKY: "转了 转了什么叫div!什么叫css哈哈 知道了?", 《CSDN》 * |
许瀚青: "基于Watir的Web应用软件自动化测试的研究与实现", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113177389A (en) * | 2021-04-23 | 2021-07-27 | 网易(杭州)网络有限公司 | Text processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109801347B (en) | Method, device, equipment and medium for generating editable image template | |
CN111061526B (en) | Automatic test method, device, computer equipment and storage medium | |
CN105653254B (en) | Primary interface adaptation method, device and the electronic equipment using it | |
WO2020118485A1 (en) | Method of Detecting User Interface Layout Issues for Web Applications | |
CN111291533B (en) | Sentence segment to be displayed display method and device, computer equipment and storage medium | |
US11551392B2 (en) | Graphic drawing method and apparatus, device, and storage medium | |
CN105740364B (en) | Page processing method and related device | |
CN109375972B (en) | Method, apparatus, computer device and storage medium for multi-element layout | |
US20140215306A1 (en) | In-Context Editing of Output Presentations via Automatic Pattern Detection | |
CN112416777B (en) | Text display test method and device, computer equipment and storage medium | |
CN109656652B (en) | Webpage chart drawing method, device, computer equipment and storage medium | |
IL226027A (en) | Bidirectional text checker and method | |
JP2016048471A (en) | Application development support device, data processing method and program therefor | |
CN106610829A (en) | Webpage screenshot method and device | |
CN111914510A (en) | Control character string checking method and device, computer equipment and storage medium | |
CN113744843A (en) | Medical image data processing method and device, computer equipment and storage medium | |
CN112596803A (en) | Control string truncation checking method and device, computer equipment and storage medium | |
CN112800373A (en) | Webpage resource data generation method and device, computer equipment and storage medium | |
CN110598142A (en) | Webpage calibration method and device, computer equipment and storage medium | |
CN111597151A (en) | File generation method and device, computer equipment and storage medium | |
CN110727481A (en) | Picture editing method and device, computer equipment and storage medium | |
CN115562665A (en) | Page access method and device, computer equipment and readable storage medium | |
WO2019144259A1 (en) | Transformation of resource files using mapped keys for tracking content location | |
CN114296852A (en) | Method and device for displaying target page, electronic equipment and storage medium | |
CN103870484B (en) | Webpage coordinate acquiring method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201110 |