A graphical user interface automatic inspection method, system and interface inspection tool

By automatically adding and checking graphical user interface tags and issuing prompt messages according to preset standards, the problems of low manual inspection efficiency and low error coverage in the existing technology are solved, efficient graphical user interface inspection is achieved, and the user interface is improved. Logical and data completeness.

CN112115052BActive Publication Date: 2024-10-01SHENZHEN INSTITUTE OF INFORMATION TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010947820.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-10
Publication Date
2024-10-01
Estimated Expiration
2040-09-10

AI Technical Summary

Technical Problem

The existing manual-based graphical user interface walkthrough has low efficiency and poor error coverage, making the software development process time-consuming and labor-intensive and prone to errors and omissions.

Method used

Provide an automatic walkthrough method by obtaining a collection of graphical user interface pictures, adding labels and checking each label according to the preset inspection standards, and issuing prompt messages to ensure compliance, including the addition of interface picture labels, inspection standards and Prompt module.

Benefits of technology

Automatic inspection of the graphical user interface is realized, saving manpower and time costs, improving inspection efficiency and error coverage, and ensuring the logic and data completeness of the graphical user interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112115052B_ABST
    Figure CN112115052B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic walkthrough method, system and interface walkthrough tool for a graphical user interface. The present invention can add labels to all interface images in the graphical user interface to be walked through, and then check each obtained interface image label according to the interface image label inspection standard. When a certain interface image label does not meet the interface image label inspection standard, a corresponding prompt message is issued. It can be seen that the present invention can realize the automatic walkthrough of the graphical user interface, thereby saving manpower costs and time costs, and improving the efficiency of the graphical user interface walkthrough. Moreover, the automatic walkthrough of the graphical user interface is not prone to errors and omissions, thereby improving the effect of the graphical user interface walkthrough. In addition, the present invention walks through the graphical user interface based on the preset interface image label inspection standard, which can theoretically completely cover the errors that do not meet the interface image label inspection standard, thereby improving the error coverage rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and more specifically, relates to an automatic walkthrough method and system for a graphical user interface and an interface walkthrough tool. Background Art

[0002] The rise of mobile Internet and the implementation of "Internet +" have spawned a large number of new software and software updates. The user interface is a key link in the software design process. It is the medium for interaction and information exchange between the software system and the user. It realizes the conversion between the internal form of information and the form acceptable to humans. The logical completeness and data completeness of the user interface directly affect the user experience and may even lead to rework in the software development process, so it needs to be carefully checked.

[0003] For user interfaces displayed in graphical form, a user interface walkthrough is a method of checking the user interface. It can be used to determine whether the designed interface can interact normally and whether the data in the user interface is displayed and designed correctly.

[0004] Existing GUI walkthroughs are often performed manually, relying on the experience of the inspector and test cases. This inspection method is time-consuming, labor-intensive, inefficient, and has poor error coverage. Summary of the invention

[0005] The purpose of the present invention is to solve the problems of low efficiency and low error coverage of the existing manual-based graphical user interface walkthrough.

[0006] In order to achieve the above-mentioned object, the present invention provides an automatic walkthrough method, system and interface walkthrough tool for a graphical user interface.

[0007] According to a first aspect of the present invention, there is provided a method for automatically checking a graphical user interface, the method for automatically checking a graphical user interface being applied to an interface checking tool, comprising the following steps:

[0008] Obtain an interface image set, which includes all interface images in the graphical user interface to be checked;

[0009] Add a label to each interface image in the interface image set to obtain an interface image label set;

[0010] Checking each interface image label in the interface image label set according to a preset interface image label inspection standard;

[0011] When it is found that the interface image label does not meet the interface image label inspection standard, a prompt message is issued.

[0012] Preferably, the interface image tag is added by attaching the information contained in the tag to the corresponding interface image or interface image file.

[0013] Preferably, the information contained in the tag includes a tag name and tag attributes associated with the tag name.

[0014] Preferably, the tag name includes a page class tag name and a data class tag name, the tag attributes include an interactive class tag attribute and a data class tag attribute, the interactive class tag attributes include jump in and return, and the data class tag attributes include input data, output data, bidirectional data and endogenous data.

[0015] Preferably, the interface image label inspection standard is:

[0016] The page class tag name is associated with both jump in and return;

[0017] The tag attributes associated with the data class tag name are: bidirectional data and input data, bidirectional data and output data, and input data and output data.

[0018] Preferably, the step of checking each interface image tag in the interface image tag set according to a preset interface image tag inspection standard is specifically as follows:

[0019] Read in all the interface image tags in the interface image tag set;

[0020] Establishing a general association table between tag names and tag attributes based on all the interface image tags;

[0021] Check whether each tag name and the associated tag attribute in the association master table meet the interface image tag inspection standard.

[0022] Preferably, the step of checking whether each tag name in the association table and the associated tag attribute meet the interface image tag inspection standard is specifically:

[0023] Dividing the tags in the association master table into page tags and data tags;

[0024] Each tag name of each type of tag is checked against the associated tag attributes.

[0025] Preferably, when it is found that the interface image label does not meet the interface image label inspection standard, the step of issuing a prompt message is specifically:

[0026] When the interface image label is a data class label name and the associated label attribute is endogenous data, a warning prompt message is issued;

[0027] When the interface image label is other than the above-mentioned situation and does not meet the interface image label inspection standard, an error prompt message is issued;

[0028] The warning prompt information and the error prompt information both include the label name and label attributes of the corresponding interface image label.

[0029] According to a second aspect of the present invention, there is provided an automatic walkthrough system for a graphical user interface, the automatic walkthrough system for a graphical user interface comprising:

[0030] An interface picture set acquisition module is used to acquire an interface picture set, which contains all interface pictures in the graphical user interface to be checked;

[0031] An interface image label set acquisition module adds a label to each interface image in the interface image set to obtain an interface image label set;

[0032] An interface image label checking module, used to check each interface image label in the interface image label set according to a preset interface image label inspection standard;

[0033] The prompt module is used to issue a prompt message when it is checked that the interface image label does not meet the interface image label inspection standard.

[0034] According to a third aspect of the present invention, an interface walkthrough tool is provided, the interface walkthrough tool comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the steps of any of the above-mentioned automatic walkthrough methods for a graphical user interface when executing the computer program.

[0037] The beneficial effects of the present invention are:

[0038] The present invention provides an automatic walkthrough method for a graphical user interface, which is applied to an interface walkthrough tool. The automatic walkthrough method for a graphical user interface of the present invention adds labels to all interface images in the graphical user interface to be walked through, and then checks each obtained interface image label according to the interface image label inspection standard. When a certain interface image label does not meet the interface image label inspection standard, a corresponding prompt message is issued. It can be seen that the automatic walkthrough method for a graphical user interface of the present invention can realize the automatic walkthrough of the graphical user interface, thereby saving manpower costs and time costs, and improving the efficiency of the graphical user interface walkthrough. Moreover, the automatic walkthrough of the graphical user interface is not prone to errors and omissions, thereby improving the effect of the graphical user interface walkthrough. In addition, the present invention walks through the graphical user interface based on the preset interface image label inspection standard, which can theoretically completely cover the errors that do not meet the interface image label inspection standard, thereby improving the error coverage rate.

[0039] The present invention also provides an automatic walkthrough system and an interface walkthrough tool for a graphical user interface, which have the same beneficial effects as the automatic walkthrough method for the graphical user interface described above.

[0040] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.

[0042] Figure 1 A flowchart of an automatic walk-through method for a graphical user interface according to an embodiment of the present invention is shown.

[0043] Figure 2 A structural block diagram of an automatic walk-through system of a graphical user interface according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0044] The preferred embodiments of the present invention will be described in more detail below. Although the preferred embodiments of the present invention are described below, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0045] Example: Figure 1 FIG. 1 shows a flowchart of an automatic walkthrough method for a graphical user interface according to an embodiment of the present invention. Figure 1The automatic walkthrough method of the graphical user interface of this embodiment includes:

[0046] Step S100: obtaining an interface picture set, where the interface picture set includes all interface pictures in the graphical user interface to be checked;

[0047] Step S200: adding a label to each interface image in the interface image set to obtain an interface image label set;

[0048] Step S300: Check each interface image tag in the interface image tag set according to a preset interface image tag inspection standard;

[0049] Step S400: When it is found that the interface image label does not meet the interface image label inspection standard, a prompt message is issued.

[0050] In step S200 of this embodiment, the interface image tag is added by attaching the information contained in the tag to the corresponding interface image or interface image file.

[0051] The information contained in the tag includes a tag name and tag attributes associated with the tag name.

[0052] The tag names include page class tag names and data class tag names, the tag attributes include interaction class tag attributes and data class tag attributes, the interaction class tag attributes include jump in and return, and the data class tag attributes include input data, output data, bidirectional data and endogenous data.

[0053] The endogenous data is data displayed in the graphical user interface that is completely generated by the software system during execution.

[0054] In step S300 of this embodiment, the interface image label inspection standard is:

[0055] The page class tag name is associated with both jump in and return;

[0056] The tag attributes associated with the data class tag name are: bidirectional data and input data, bidirectional data and output data, and input data and output data.

[0057] The definitions of jump in and return are: referring to the user's operation line, the direction away from the initial point of the operation line is "jump in", and the direction close to the initial point of the operation line is "return".

[0058] Step S300 of this embodiment is specifically as follows:

[0059] Read in all the interface image tags in the interface image tag set;

[0060] Establishing a general association table between tag names and tag attributes based on all the interface image tags;

[0061] Check whether each tag name and the associated tag attribute in the association master table meet the interface image tag inspection standard.

[0062] The step of checking whether each tag name in the association table and the associated tag attribute meet the interface image tag inspection standard is specifically as follows:

[0063] Dividing the tags in the association master table into page tags and data tags;

[0064] Each tag name of each type of tag is checked against the associated tag attributes.

[0065] The format template of the association table between tag names and tag attributes is shown in Table 1:

[0066] Tag Name Tag attributes ExampleTag-a Input Data Bidirectional data Output Data ExampleTag-b Output Data ExampleTag-p1 return Jump in ExampleTag-p2 return

[0067] Table 1. Association between tag names and tag attributes

[0068] In Table 1, ExampleTag-a and ExampleTag-b are both data-type tag names, and ExampleTag-p1 and ExampleTag-p2 are both page-type tag names.

[0069] Among them, the specific steps for checking data labels are:

[0070] Construct a data tag hash table, use the tag name of the data tag as the keyword, and the page name of the page to which the data tag belongs as the hash value;

[0071] Get each keyword and the hash value corresponding to the keyword in the data tag hash table and store them in an array;

[0072] Each data label in the array is checked according to the interface image label checking standard.

[0073] The specific steps to check the page tags are:

[0074] Build a page tag hash table, use the tag name of the page tag as the keyword, and use the jump tag contained in the page tag as the secondary keyword;

[0075] Get each keyword and the secondary keyword corresponding to the page tag hash table and store them in an array;

[0076] Each page tag in the array is checked according to the interface image tag checking standard.

[0077] Step S400 of this embodiment is specifically as follows:

[0078] When the interface image label is a data class label name and the associated label attribute is endogenous data, a warning prompt message is issued;

[0079] When the interface image label is other than the above-mentioned situation and does not meet the interface image label inspection standard, an error prompt message is issued;

[0080] The warning prompt information and the error prompt information both include the label name and label attributes of the corresponding interface image label.

[0081] Figure 2 FIG. 1 is a structural block diagram of an automatic walkthrough system of a graphical user interface according to an embodiment of the present invention. Figure 2 The automatic walkthrough system of the graphical user interface of this embodiment includes:

[0082] An interface picture set acquisition module is used to acquire an interface picture set, which contains all interface pictures in the graphical user interface to be checked;

[0083] An interface image label set acquisition module adds a label to each interface image in the interface image set to obtain an interface image label set;

[0084] An interface image label checking module, used to check each interface image label in the interface image label set according to a preset interface image label inspection standard;

[0085] The prompt module is used to issue a prompt message when it is checked that the interface image label does not meet the interface image label inspection standard.

[0086] Before the interface image label set acquisition module adds labels to each interface image in the interface image set, the interface image set needs to be imported into the interface image label set acquisition module. The import of the image set supports opening a single or multiple images at the same time. When opening multiple images, they are displayed separately in a paged manner, and the processing method of each page is the same as opening a single image.

[0087] The interface image tag set acquisition module of this embodiment also supports reading third-party design data. The data files output by the third-party software contain image sets stored in a compressed format, and multiple images can be directly read from these single data files through the docking API.

[0088] This embodiment also provides an interface inspection tool, which includes:

[0089] Memory for storing computer programs;

[0090] A processor is used to implement the steps of any of the above-mentioned automatic walkthrough methods for a graphical user interface when executing the computer program.

[0091] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. An automatic walkthrough method for a graphical user interface, characterized in that: Applied to the interface walkthrough tool, the automatic walkthrough method comprises the following steps: Obtain an interface image set, which includes all interface images in the graphical user interface to be checked; Add a label to each interface image in the interface image set to obtain an interface image label set; wherein the interface image label is added by attaching the information contained in the label to the corresponding interface image or interface image file; the information contained in the label includes a label name and label attributes associated with the label name; the label name includes a page class label name and a data class label name, and the label attributes include an interactive class label attribute and a data class label attribute; Each interface image tag in the interface image tag set is checked according to a preset interface image tag inspection standard, specifically including: reading in all interface image tags in the interface image tag set, establishing a general table of associations between tag names and tag attributes based on all interface image tags, dividing the tags in the general table into page class tags and data class tags, and checking each tag name of each class of tags and the associated tag attributes, wherein the specific steps of checking the data tag are: constructing a data tag hash table, taking the tag name of the data tag as a keyword, taking the page name of the page to which the data tag belongs as a hash value, obtaining each keyword of the data tag hash table and the hash value corresponding to the keyword, and storing them in an array, and checking each data tag in the array according to the interface image tag inspection standard; the specific steps of checking the page tag are: constructing a page tag hash table, taking the tag name of the page tag as a keyword, and taking the jump tag contained in the page tag as a secondary keyword; obtaining each keyword of the page tag hash table and the secondary keyword corresponding to the keyword, and storing them in an array; checking each page tag in the array according to the interface image tag inspection standard; When it is found that the interface image label does not meet the interface image label inspection standard, a prompt message is issued.

2. The automatic walkthrough method of a graphical user interface according to claim 1, characterized in that: The interaction tag attributes include jump in and return, and the data tag attributes include input data, output data, bidirectional data and endogenous data.

3. The automatic walkthrough method of a graphical user interface according to claim 2, characterized in that: The interface image label inspection standards are: The page class tag name is associated with both jump in and return; The tag attributes associated with the data class tag name are: bidirectional data and input data, bidirectional data and output data, and input data and output data.

4. The automatic walkthrough method of a graphical user interface according to claim 1, characterized in that: When the interface image label is found not to meet the interface image label inspection standard, the step of issuing a prompt message is specifically as follows: When the interface image label is a data class label name and the associated label attribute is endogenous data, a warning prompt message is issued; When the interface image label is other than the above-mentioned situation and does not meet the interface image label inspection standard, an error prompt message is issued; The warning prompt information and the error prompt information both include the label name and label attributes of the corresponding interface image label.

5. An automatic walkthrough system with a graphical user interface, characterized in that: include: An interface picture set acquisition module is used to acquire an interface picture set, which contains all interface pictures in the graphical user interface to be checked; The interface image tag set acquisition module adds a tag to each interface image in the interface image set to obtain the interface image tag set; wherein the interface image tag is added by attaching the information contained in the tag to the corresponding interface image or interface image file; the information contained in the tag includes a tag name and a tag attribute associated with the tag name; the tag name includes a page class tag name and a data class tag name; The interface image tag checking module is used to check each interface image tag in the interface image tag set according to the preset interface image tag checking standard, specifically including: reading in all interface image tags in the interface image tag set, establishing a general table of associations between tag names and tag attributes based on all interface image tags, dividing the tags in the general table into page class tags and data class tags, and checking each tag name of each class of tags and the associated tag attributes, wherein the specific steps of checking the data tag are: constructing a data tag hash table, taking the tag name of the data tag as a keyword, taking the page name of the page to which the data tag belongs as a hash value, obtaining each keyword of the data tag hash table and the hash value corresponding to the keyword, and storing them in an array, and checking each data tag in the array according to the interface image tag checking standard; the specific steps of checking the page tag are: constructing a page tag hash table, taking the tag name of the page tag as a keyword, and taking the jump tag contained in the page tag as a secondary keyword; obtaining each keyword of the page tag hash table and the secondary keyword corresponding to the keyword, and storing them in an array; checking each page tag in the array according to the interface image tag checking standard; The prompt module is used to issue a prompt message when it is checked that the interface image label does not meet the interface image label inspection standard.

6. An interface walkthrough tool, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the automatic walkthrough method of a graphical user interface as described in any one of claims 1 to 4 when executing the computer program.