CN114911688A - Interface design automation test method and device, terminal equipment and storage medium - Google Patents

Interface design automation test method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114911688A
CN114911688A CN202110174463.XA CN202110174463A CN114911688A CN 114911688 A CN114911688 A CN 114911688A CN 202110174463 A CN202110174463 A CN 202110174463A CN 114911688 A CN114911688 A CN 114911688A
Authority
CN
China
Prior art keywords
icon
test
information
icons
software
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
Application number
CN202110174463.XA
Other languages
Chinese (zh)
Inventor
黄岳樊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110174463.XA priority Critical patent/CN114911688A/en
Publication of CN114911688A publication Critical patent/CN114911688A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses an interface design automatic testing method, an interface design automatic testing device, terminal equipment and a storage medium. The method comprises the following steps: receiving a test instruction, and confirming an operation to be tested according to the test instruction; acquiring the associated icon of the operation to be detected from an icon library according to the operation to be detected, wherein the icon in the icon library is the same as the design icon of the software to be detected, icon information is recorded in the icon respectively, and the icon information comprises operation information, an operation sequence and a display position; and confirming the final icon of the operation to be tested from the associated icons, sequentially confirming the preorder icon of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons. According to the scheme, the quick generation of the related reference interface of the software interface design test can be completed in the software development process, the software test efficiency is improved, and the time from the basic completion of software development to software release is shortened.

Description

Interface design automation test method and device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of software testing, in particular to an automatic interface design testing method, an automatic interface design testing device, terminal equipment and a storage medium.
Background
Software testing is the process of running or testing a software system using manual or automated means with the purpose of checking whether it meets specified requirements or to figure out differences between expected and actual results. Particularly, in order to improve the testing efficiency, the utilization rate of the automated testing is higher and higher, wherein an important testing content is whether the interface is normal or not after the software runs in the testing process by a control recognition method or a graph recognition method.
The inventor discovers that a reference interface for judging whether the interface is normal or not needs to be basically developed and completed by software to be tested when software testing is carried out based on the existing automatic testing method, and can be generated only after the function is stable.
Disclosure of Invention
The invention provides an automatic testing method and device for interface design, terminal equipment and a storage medium, which aim to solve the technical problem that in the prior art, a reference interface starts to be generated after software development is basically completed, so that the time from the basic completion of the software development to the release of the software is longer.
In a first aspect, an embodiment of the present invention provides an automated interface design testing method, including:
receiving a test instruction, and confirming an operation to be tested according to the test instruction;
acquiring the associated icons of the operations to be detected from an icon library according to the operations to be detected, wherein the icons in the icon library are the same as the design icons of the software to be detected, icon information is recorded in each icon, and the icon information comprises operation information, an operation sequence and a display position;
and confirming the final icon of the operation to be tested from the associated icons, sequentially confirming the preorder icon of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons.
In a second aspect, an embodiment of the present invention further provides an interface design automation test apparatus, including:
the instruction receiving unit is used for receiving a test instruction and confirming the operation to be tested according to the test instruction;
the icon acquisition unit is used for acquiring the associated icons of the operations to be detected from an icon library according to the operations to be detected, the icons in the icon library are the same as the design icons of the software to be detected, icon information is recorded in the icons respectively, and the icon information comprises operation information, an operation sequence and a display position;
and the icon display unit is used for confirming the final icon of the operation to be detected from the associated icons, sequentially confirming the preorder icons of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons.
In a third aspect, an embodiment of the present invention further provides a terminal device, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for automated testing of interface design according to any of the first aspects.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the automated interface design testing method according to any one of the first aspect.
The interface design automatic test method, the device, the terminal equipment and the storage medium receive the test instruction and confirm the operation to be tested according to the test instruction; acquiring the associated icon of the operation to be detected from an icon library according to the operation to be detected, wherein the icon in the icon library is the same as the design icon of the software to be detected, icon information is recorded in the icon respectively, and the icon information comprises operation information, an operation sequence and a display position; and confirming the final icon of the operation to be detected from the associated icons, sequentially confirming the preorders of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons. By uniformly recording the icon information of the relevant icons of the software to be tested, the icon display response related to the operation to be tested is quickly completed based on the icon information, and the quick generation of the relevant reference interface of the software interface design test can be completed in the software development process, so that the software test efficiency is improved, and the time from the basic completion of the software development to the software release is shortened.
Drawings
Fig. 1 is a flowchart of an interface design automation test method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an interactive tablet according to an embodiment of the present invention;
fig. 3 is a schematic diagram of icon information of an icon provided in an embodiment of the present invention;
fig. 4-6 are schematic diagrams illustrating interface changes of an operation to be tested according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an interface design automation test device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that, for the sake of brevity, this description does not exhaust all alternative embodiments, and it should be understood by those skilled in the art after reading this description that any combination of features may constitute an alternative embodiment as long as the features are not mutually inconsistent.
For example, in one implementation of the embodiments, one technical feature is recited: the reference interface and the comparison interface are compared by optical character recognition or image recognition, and in another implementation of the embodiment, another technical feature is described: and responding to an icon replacing instruction, replacing an old icon with a new icon in the icon library, and correspondingly recording the icon information of the old icon to the new icon. Since the two technical features are not mutually contradictory, it should be understood by those skilled in the art after reading the present application that, when performing a test based on the replaced icon, the screen capture may also be performed on the basis of the replaced icon display, and then the comparison may be performed through optical character recognition or image recognition.
The following examples are described in detail.
Fig. 1 is a flowchart of an interface design automation test method according to an embodiment of the present invention. The interface design automation test method provided in the embodiment may be executed by an operation device for testing, where the operation device may be implemented by software and/or hardware, and the operation device may be formed by two or more physical entities or may be formed by one physical entity. For example, the operation device of the interactive tablet may be a microprocessor, an embedded processor, or a CPU, etc.
The interface design test aimed at in the scheme can be a test for software with different operating systems, different development languages and different terminal forms as long as the software has the requirement of interface design test.
In the description of the embodiment, for convenience of understanding, the interactive flat plate is specifically used as an actual carrier, and the whiteboard software is used as an example of an object to be tested to describe the detailed process of each testing link in the implementation of the interface design automation testing method. The interactive panel may be an integrated device that controls content displayed on a display screen and implements human-computer interaction operations through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a screen, a sound, a television, a video conference terminal, and the like.
In general, as shown in fig. 2, the interactive tablet 1 includes at least one display screen. For example, the interactive tablet 1 is configured with a display screen having a touch function, and the display screen may be a capacitive screen, a resistive screen, or an electromagnetic screen. In this embodiment, an interactive tablet is provided, and further, a user may implement a touch operation by touching a display screen with a finger or a stylus, and accordingly, the interactive tablet detects a touch position and responds according to the touch position to implement a touch function. Typically, the interactive tablet is installed with at least one operating system, wherein the operating system includes, but is not limited to, an android system, a Linux system, and a Windows system. Further, the interactive tablet may install at least one application having writing functionality. The application program may be an application program carried by an operating system, and an application program downloaded from a third-party device or a server is also installed. Optionally, the application program has other editing functions besides the writing function, such as inserting tables, inserting pictures, inserting graphics, drawing tables, drawing graphics, and the like. And the drawn table or graph is a standard element drawn by the computer. A computer drawn standard element may be understood as a print standard element drawn by an interactive flat plate, which is distinguished from an element written by a user.
The touch screen configured on the interactive flat panel is provided with a writing area for displaying input contents in response to writing operations of a user, when writing is performed in the writing area, for example, a touch pen or a finger contacts the touch screen, the touch screen can sense changes of current, voltage or magnetic flux (corresponding to specific setting types of a capacitive touch screen, a resistive touch screen or an electromagnetic touch screen), obtain a touch signal containing coordinates of a touch position and trigger time of the touch signal, obtain trajectory data of a writing trajectory input during the process of writing to be lifted and stopped by the touch pen or the finger of the user each time according to the coordinates of the touch position and the trigger time of the touch signal, and display the writing trajectory input by the user in real time in the writing area of the touch screen according to the trajectory data. Of course, the writing process is not limited to writing, and any entry process for displaying an operation track implemented on the touch screen of the interactive tablet may be regarded as the writing process. In addition, the touch operation may be performed in response to a click, a drag, or the like of the user, depending on the display element at the occurrence position of the touch operation. The way in which these different responses are processed at the bottom level is the same. In this embodiment, based on an exemplary description of whiteboard software testing in an interactive tablet, for example, a toolbar 21 is provided in an interactive interface of the whiteboard software shown in fig. 2, and tools in the toolbar 21 generate corresponding interactive responses after detecting a trigger. In this embodiment, a detailed description is not given to the testing process of each interactive operation in the whiteboard software, but the overall testing principle is the same, and the testing process of the interactive operation described with reference to the example is only required.
Specifically, referring to fig. 1, the method for automatically testing interface design specifically includes:
step S101: and receiving a test instruction, and confirming the operation to be tested according to the test instruction.
In the existing automatic test process, the generation of an automatic test script needs to confirm the associated preorder operation of each operation to be tested in sequence, and the process is usually performed after the software development is basically completed, which is equivalent to that the automatic test script needs to be generated within a time period from the completion of the main work of the software development to the start of the formal test, and the process action of the operation to be tested needs to be input in the generation process. In the prior art, the response to the test instruction is actually to run the written automatic test script, and the test script executes the relevant actions of the operation to be tested one by one corresponding to the automatic test script.
In the scheme, the process of writing the associated preorder operation of the operation to be tested one by one is not needed, and the test of the operation to be tested can be rapidly completed directly on the basis of the edited icon information in advance. Compared with the test process in the prior art, the test instruction in the scheme can come from two test links, wherein the first link is a link for actually testing the software to be tested, and the second link is a link for testing the display process of the associated icon. The first test target is the final target of the software test and is used for judging whether the interface design of the software to be tested is normally realized according to the set target; the second test objective is to observe whether the automatic test script realized based on the scheme can obtain the interface design effect of the set objective.
Step S102: and acquiring the associated icon of the operation to be detected from an icon library according to the operation to be detected, wherein the icon in the icon library is the same as the design icon of the software to be detected, icon information is recorded in the icon respectively, and the icon information comprises operation information, an operation sequence and a display position.
In the scheme, the automatic test script is directly and quickly generated based on the icon. In the software development process, all related design icons of the same software are stored in the same icon library in a centralized manner, only the icons stored in the icon library are used in the software development process, the automatic test script is generated based on the icon library, and in the process, the software development and the automatic test script are generated without interference and are realized independently.
In order to realize the automatic test script generation based on the icons, the icon information related to all the icons and the test is recorded in a standardized mode. The first recording mode of the icon information is to establish a database, the icons are used as a column in the database, various different icon information is stored as a column respectively, and the database is accessed to acquire corresponding data when an automatic test script is generated. The second recording method of the icon information is to record the icon information exclusively by a table or other document file, and the icon information recorded in the table or other document file is associated with the icon by a file name. The third recording method of the icon information is to record corresponding icon information by using attribute detailed information of the picture file, which is abbreviated as EXIF (Exchangeable image file format) information, as shown in fig. 3, that is, an example of recording one icon and its corresponding Exchangeable image file format information. Of course, the above three are merely exemplary illustrations of icon information, and in a specific implementation process, any scheme that can implement recording of an icon and icon information corresponding to the icon is within the scope of an associated recording frame based on icon-icon information in the scheme.
In the icon information, the operation information is used to mainly record what operation to be tested the icon applies to (e.g., the icon in fig. 3 is used for starting), the operation sequence is used to record what the operation sequence of the icon in the operation to be tested is (e.g., the icon in fig. 3 corresponds to step-3 row display), and the display position is used to record what the display position of the icon is when displayed (e.g., the icon in fig. 3 is displayed in the middle when displayed, and the corresponding coordinate is (630,500)).
Based on the icon information, the file name of the picture can be ignored when the automatic test script is generated, and the corresponding icon is called only according to the icon information. In the actual processing process, there are multiple operations to be tested in the test of one software to be tested, and the same icon may be a preorder icon of more than two operations to be tested. In order to accurately generate the automatic test script corresponding to each operation to be tested, the same icon can be copied for multiple times and stored in an icon library by using different file names, and corresponding icon information is edited for each related operation to be tested; the same icon can be stored only once, but the operation information, the operation sequence and the display position are recorded in the icon information according to the operation to be detected. For the former mode, each icon only needs to correspondingly edit a group of icon information and the icon information of one icon is obtained in a whole manner, so that the editing process and the information processing process during reading the icon information can be simplified; for the latter approach, duplicate saving of icons can be reduced, and correspondingly, complex file naming that may result from the same saving is also reduced.
And for the icons in the icon library, determining the icons corresponding to the same operation to be tested as associated icons, and determining the association relationship through the operation information in the icon information. For example, if the operation to be tested confirmed by the current test instruction is an operation a, the operation information of the icon in the icon library is traversed, and the icon corresponding to the operation information and the operation a is confirmed as the associated icon. After the associated icon is confirmed, the operation sequence and the position information in the icon information of the associated icon are directly read, and the subsequent icon display can be executed based on the operation sequence and the position information. In this embodiment, the operation sequence is not the sequence in which the user operates the operation sequence, but the display sequence.
Step S103: and confirming the final icon of the operation to be detected from the associated icons, sequentially confirming the preorders of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons.
When the icon is displayed in the automatic test process, the related icon is directly obtained according to the name of the operation to be tested, for example, the operation of 'viewing' about 'page', the response icon about can be directly confirmed as the final icon, the preorder icons are sequentially confirmed forwards on the basis of the final icon according to the operation sequence until the first icon is confirmed, the whole icon chain about the related operation is completed, and the display and the subsequent response are correspondingly carried out according to the actual test target.
The icon information further includes title information that is displayed corresponding to the associated icon.
In the specific implementation process, considering that some icons cannot be confirmed only from the icons themselves to the operation corresponding to the icons, in this case, a title may be added to the icons, and the title information corresponding to the title is also used as one of the icon information, and is displayed in the display area of the associated icon when displayed, for example, displayed immediately below the icon. In the subsequent specific test process, the icon can also provide efficient judgment reference for the abnormity of the test interface through optical character recognition.
The automatic test method for interface design can also have more specific test response steps corresponding to the test processes of different stages, and also comprises the steps S140-S160 of judging the actual operation result of the interface design for the test instruction for testing the software to be tested.
Step S140: and sequentially capturing the pictures in the display process of the associated icons to obtain a reference interface.
Step S150: and sequentially capturing the pictures in the running process of the software to be tested to obtain a comparison interface.
Step S160: and correspondingly comparing the reference interface with the comparison interface, and confirming the interface design operation test result of the software to be tested according to the comparison result.
In the specific test judgment process, the steps S140 to S160 are optional comparison methods, that is, the execution process and the execution result of the operation to be tested of the software to be tested are compared with the reference interface confirmed in advance, if the two interfaces are the same, the test result is confirmed to be normal, otherwise, the test result is confirmed to be abnormal, and the program needs to be further debugged. The specific comparison of the two interfaces can be realized through optical character recognition or image recognition.
In addition, an automatic test may also be directly performed, and in the execution process, according to the page to be executed, an area corresponding to each icon is intercepted, and whether the area corresponds to the display position recorded in the icon information of the icon is determined, specifically, optical character recognition confirmation may be performed on the header information corresponding to the area, or picture comparison confirmation may be performed.
The step S170 of observing the running result of the test script is further included for the test instruction for testing the display process of the associated icon.
Step S170: and when the confirmation of the preorder icon is interrupted, displaying test exception.
In a normal processing process, a to-be-tested operation confirmed by a to-be-tested instruction can sequentially obtain a plurality of continuous icons from a final icon to a starting icon, when the obtaining process cannot be completed sequentially, the icon information of a certain icon is shown, particularly, the operation information and the operation sequence are wrong, at the moment, a test is displayed abnormally, and a user is reminded to confirm and adjust the icon information of the related icon. In addition, it may also happen that the operation information and the operation sequence of the icon are normal, but the icon content or the display position of the icon is not correct when the reference interface is generated, and the abnormality itself cannot be detected by a machine, and it is necessary to manually judge the abnormality and manually perform a terminal test, and after the relevant icon or display position is adjusted, the test is performed until the reference interface is consistent with the designed interface. The reference interface based on the icon information is quickly generated, debugging of automatic testing can be synchronously completed in software development, a page to be executed is obtained according to a testing function, relevant icons are displayed at corresponding positions successively according to a relevant operation sequence, real operation is simulated, debugging in an automatic testing process is facilitated, the reference interface confirmed by debugging is a preset designed page, and efficiency of an automatic testing preparation period is effectively improved.
In the whole software development and corresponding test process, the icons may be adjusted in the middle, and based on the adjustment of the corresponding icon changes, the automatic test method for interface design further comprises the following steps:
step S180: and responding to an icon replacing instruction, replacing an old icon with a new icon in the icon library, and correspondingly recording the icon information of the old icon to the new icon.
When the icon is adjusted, the new icon is directly replaced by the old icon, the icon information of the old icon is directly read and correspondingly recorded to the new icon, and when the automatic test is carried out after the icon is replaced, the reference interface can be directly generated by the new icon.
Please refer to fig. 4-6, which are schematic diagrams illustrating interface changes of an automated test for performing a test operation based on the present solution with whiteboard software as the software to be tested. The operation to be tested is to realize 'view' about 'page', and based on the prior art, the automatic test script needs to gradually explain all actions of 'view' about 'page', namely 'click' setting ',' click 'about' are required to be explained in the automatic test script. In the scheme, the automatic test script only needs to explain that the 'page' is clicked, the background can automatically acquire the preorder icon of the 'about' icon according to the icon information and correspondingly complete the related operation, and then the page obtained after the 'about' clicking is completed is identified and compared with the established picture to determine whether the operation to be tested is normal or not.
Figure BDA0002940185360000081
Figure BDA0002940185360000091
The interface change schematic diagram of the automated test for checking the 'about' operation by taking the whiteboard software as the software to be tested based on the scheme is shown above. Fig. 6 is an interface of the whiteboard software viewing "about" normal operation, and when editing the icon information of the associated icon, at least includes a "set" icon, a "writing background" icon, a "code scanning network" icon, an "about" icon, and a "whiteboard writing" icon, where the operation sequence of the "set" icon is 1; the operation sequence of the "write setup" icon, the "write background" icon, the "sweep code network" icon, and the "about" icon is 2; the operation sequence of writing the "whiteboard" icon is 3, the display position of each icon corresponds to that shown in fig. 6, the coordinate representation of the specific display position is not described in detail here, the coordinate representations of different software and different devices may be different, and the embodiment is not limited in a specific way. In the process of generating the reference interface, a response icon for viewing "about" and a corresponding preamble operation are automatically acquired, the initial page can be sequentially confirmed as shown in fig. 4, 4 icons with an operation sequence of 2 are further displayed at corresponding positions after the "setting" is clicked and viewed as shown in fig. 5, and an icon with an operation sequence of 3 is further displayed at corresponding positions after the "about" is clicked and viewed as shown in fig. 6. When the automatic test script is compiled based on the scheme, test and display information is edited on the basis of corresponding icons in advance, and only the operation of writing a target is needed, the preorder action can be automatically associated, the action of writing in one by one is avoided, and the generation efficiency of the automatic test script is improved. And because the icon is directly generated according to the design icon in the software development process, the error rate in the process of writing the automatic test script can be effectively reduced as long as the icon is obtained basically.
Receiving a test instruction, and confirming the operation to be tested according to the test instruction; acquiring the associated icons of the operations to be detected from an icon library according to the operations to be detected, wherein the icons in the icon library are the same as the design icons of the software to be detected, icon information is recorded in each icon, and the icon information comprises operation information, an operation sequence and a display position; and confirming the final icon of the operation to be tested from the associated icons, sequentially confirming the preorder icon of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons. By uniformly recording the icon information of the relevant icons of the software to be tested, the icon display response related to the operation to be tested is quickly completed based on the icon information, and the quick generation of the relevant reference interface of the software interface design test can be completed in the software development process, so that the software test efficiency is improved, and the time from the basic completion of the software development to the software release is shortened.
Fig. 7 is a schematic structural diagram of an interface design automation test apparatus according to an embodiment of the present invention. Referring to fig. 7, the interface design automation test apparatus includes: an instruction receiving unit 210, an icon acquiring unit 220, and an icon displaying unit 230.
The instruction receiving unit 210 is configured to receive a test instruction, and determine an operation to be tested according to the test instruction; an icon obtaining unit 220, configured to obtain an associated icon of the operation to be detected from an icon library according to the operation to be detected, where icons in the icon library are the same as design icons of software to be detected, and icon information is recorded in each icon, where the icon information includes operation information, an operation sequence, and a display position; an icon display unit 230, configured to confirm the final icon of the operation to be tested from the associated icons, sequentially confirm the preamble icons of the final icon according to the operation sequence, and sequentially display the associated icons at the display position corresponding to the associated icons.
On the basis of the embodiment, the test instruction is used for testing the software to be tested;
the automatic testing arrangement of interface design still includes:
the first screenshot unit is used for sequentially screenshot in the associated icon display process to obtain a reference interface;
the second screenshot unit is used for sequentially screenshot in the running process of the software to be tested to obtain a comparison interface;
and the interface comparison unit is used for correspondingly comparing the reference interface and the comparison interface and confirming the interface design operation test result of the software to be tested according to the comparison result.
On the basis of the above embodiment, the reference interface and the comparison interface are compared by optical character recognition or image recognition.
On the basis of the embodiment, the test instruction is used for testing the display process of the associated icon;
the automatic testing arrangement of interface design still includes:
and the exception display unit is used for displaying test exception when the confirmation of the preorder icon is interrupted.
On the basis of the above embodiment, the interface design automation test device further includes:
and the icon replacing unit is used for responding to an icon replacing instruction, replacing the old icon with the new icon in the icon library and correspondingly recording the icon information of the old icon to the new icon.
On the basis of the above-described embodiment, the icon information is recorded in the exchangeable image file format information of the icon.
On the basis of the above embodiment, the icon information further includes title information, and the title information is displayed corresponding to the associated icon.
The interface design automatic testing device provided by the embodiment of the invention is contained in the terminal equipment, can be used for executing any interface design automatic testing method provided by the embodiment, and has corresponding functions and beneficial effects.
It should be noted that, in the embodiment of the interface design automation test apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, as shown in fig. 8, the terminal device includes a processor 310, a memory 320, an input device 330, an output device 340, and a communication device 350; the number of the processors 310 in the terminal device may be one or more, and one processor 310 is taken as an example in fig. 8; the processor 310, the memory 320, the input device 330, the output device 340 and the communication device 350 in the terminal equipment may be connected by a bus or other means, and fig. 8 illustrates the connection by the bus as an example.
The memory 320 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the interface design automation test method in the embodiment of the present invention (for example, the instruction receiving unit 210, the icon obtaining unit 220, and the icon displaying unit 230 in the interface design automation test apparatus). The processor 310 executes various functional applications and data processing of the terminal device by running software programs, instructions and modules stored in the memory 320, so as to implement the above-mentioned interface design automation test method.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 can further include memory located remotely from the processor 310, which can be connected to a terminal device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal apparatus. The output device 340 may include a display device such as a display screen.
The terminal equipment comprises an interface design automatic testing device, can be used for executing any interface design automatic testing method, and has corresponding functions and beneficial effects.
Embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform operations related to the interface design automation test method provided in any embodiment of the present application, and have corresponding functions and benefits.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An automated interface design test method, comprising:
receiving a test instruction, and confirming an operation to be tested according to the test instruction;
acquiring the associated icons of the operations to be detected from an icon library according to the operations to be detected, wherein the icons in the icon library are the same as the design icons of the software to be detected, icon information is recorded in each icon, and the icon information comprises operation information, an operation sequence and a display position;
and confirming the final icon of the operation to be tested from the associated icons, sequentially confirming the preorder icon of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons.
2. The automated interface design test method according to claim 1, wherein the test instruction is used for testing the software to be tested;
the automated testing method for interface design further comprises the following steps:
sequentially capturing pictures in the display process of the associated icons to obtain a reference interface;
capturing pictures in sequence in the running process of the software to be tested to obtain a comparison interface;
and correspondingly comparing the reference interface with the comparison interface, and confirming the interface design operation test result of the software to be tested according to the comparison result.
3. The automated interface design testing method of claim 2, wherein the reference interface and the comparison interface are compared by optical character recognition or image recognition.
4. The automated interface design testing method of claim 1, wherein the test instructions are used to test the display process of the associated icon;
the automatic testing method for interface design further comprises the following steps:
and when the confirmation of the preorder icon is interrupted, displaying test exception.
5. The automated interface design testing method of claim 1, further comprising:
and responding to an icon replacing instruction, replacing an old icon with a new icon in the icon library, and correspondingly recording the icon information of the old icon to the new icon.
6. The automated interface design testing method of claim 1, wherein the icon information is recorded in exchangeable image file format information of the icon.
7. The automated interface design testing method of claim 1, wherein the icon information further comprises header information, the header information being displayed corresponding to the associated icon.
8. An automated interface design test device, comprising:
the instruction receiving unit is used for receiving a test instruction and confirming the operation to be tested according to the test instruction;
the icon acquisition unit is used for acquiring the associated icons of the operations to be detected from an icon library according to the operations to be detected, the icons in the icon library are the same as the design icons of the software to be detected, icon information is recorded in the icons respectively, and the icon information comprises operation information, an operation sequence and a display position;
and the icon display unit is used for confirming the final icon of the operation to be detected from the associated icons, sequentially confirming the preorder icon of the final icon according to the operation sequence, and sequentially displaying the associated icons at the display position corresponding to the associated icons.
9. A terminal device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the interface design automation test method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for automated testing of an interface design according to any one of claims 1 to 7.
CN202110174463.XA 2021-02-09 2021-02-09 Interface design automation test method and device, terminal equipment and storage medium Pending CN114911688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110174463.XA CN114911688A (en) 2021-02-09 2021-02-09 Interface design automation test method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110174463.XA CN114911688A (en) 2021-02-09 2021-02-09 Interface design automation test method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114911688A true CN114911688A (en) 2022-08-16

Family

ID=82762276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110174463.XA Pending CN114911688A (en) 2021-02-09 2021-02-09 Interface design automation test method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114911688A (en)

Similar Documents

Publication Publication Date Title
WO2020233053A1 (en) Method, apparatus, device, and storage medium for making test page script
CN102184138B (en) Method and system for automatically reproducing and positioning software error
WO2017005148A1 (en) Automatic software-testing method and device
US10019346B2 (en) Generating software test script from video
CN112988605B (en) Method and device for realizing WEB application automatic test
TW201616356A (en) System and method for debug firmware/software to generate trace data, recording medium and computer program product
CN114546881B (en) Application software testing method, electronic device and computer readable storage medium
CN108845924B (en) Control response area display control method, electronic device, and storage medium
Havranek et al. V2s: A tool for translating video recordings of mobile app usages into replayable scenarios
JP4896909B2 (en) Scenario generation apparatus and program
KR101460860B1 (en) GUI Test apparatus using test scenario model based on states and the method thereof
CN112256146A (en) Method, device, equipment and storage medium for testing whiteboard handwriting
US20210042204A1 (en) Testing apparatus, testing system, and non-transitory tangible machine-readable medium thereof for testing touch mobile devices
CN114911688A (en) Interface design automation test method and device, terminal equipment and storage medium
CN113360366A (en) Web page testing method, testing device, electronic equipment and storage medium
CN113326193A (en) Applet testing method and device
CN113238969A (en) Interface automation test method, device, equipment and storage medium
US20160209989A1 (en) Record and replay of operations on graphical objects
CN112015658A (en) Method and device for generating software integration test case
WO2021036599A1 (en) Method and apparatus for testing set top box, set top box, and computer-readable storage medium
CN111522737B (en) Automatic test verification method and device for front-end interface and storage medium
US20240069515A1 (en) Information processing device, information processing method, recording medium, and method of manfacturing product
CN110036373B (en) System, method, and article of manufacture for trimming portions of a program during tracking of the program
CN116860606A (en) Code detection method, medium, device and computing equipment
CN113220596A (en) Application testing method, device, equipment, storage medium and program product

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