Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

UI (User Interface) testing method and device

A testing method and tested technology, applied in software testing/debugging, etc., can solve problems such as non-reusability

Inactive Publication Date: 2017-04-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that the prior art has at least the following problems: test engineers need to learn the use of automated testing tools, and need to have a certain programming foundation to write test scripts, and test scripts are usually for testing Use-case-specific procedures, not reusable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • UI (User Interface) testing method and device
  • UI (User Interface) testing method and device
  • UI (User Interface) testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] The UI (User Interface, user interface) testing method provided by each embodiment of the present disclosure can be implemented by an intelligent terminal using an Android (Android) operating system, and the intelligent terminal can be a smart phone, a smart TV, a tablet computer or the like. Electronic equipment. For smart terminals adopting the Android (Android) operating system, Google Inc. of the United States provides a kind of automated testing tool UIAutomator, which provides an API (Application Programming Interface, application programming interface) for customizing the library of UI testing. This disclosure provides The testing framework in the UI testing method is implemented based on UIAutomator.

[0028] Figure 1A...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a UI (User Interface) testing method, and belongs to the field of software testing. The method comprises the following steps of: parsing a first description file to obtain at least one test step and an expected test result of a test case, parsing a second description file to obtain a class file corresponding to a test operation in each test step, and for each test step, testing a target UI control in a tested program according to the class file; and according to whether the output result of an application program is the same as the expected test result, obtaining the test result of the test case. The problems in the relevant technologies that a user needs to own certain programing bases to compile a test script and the test script can not be reused are solved. A test engineer only needs to use a natural language to describe the test case in the first description file and then can automatically finish a test according to the second description file. The whole testing method is simple and efficient, and the second description file can be reused.

Description

technical field [0001] The embodiments of the present invention relate to the field of software testing, in particular to a UI testing method and device. Background technique [0002] UI (User Interface, user interface) testing is a technique for testing UI control elements on an application. For example, click each UI control element on the user interface to detect whether the output results of the application under test meet the expected test results. [0003] Taking UI testing of application programs on smartphones as an example, a test method in the prior art is as follows: test engineers learn to use automated testing tools, test engineers construct test cases for the application program to be tested, and according to the test case Write test scripts with automated testing tools, and then run the test scripts and the program under test on the smart terminal to obtain test results. For example, a test case engineer writes a test case as "click the button A on the first...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 陈豪赞付良高安东
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products