Method and device for testing user interface

A user interface and testing method technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as differences in the directory structure of multimedia file resources, inability to accurately find multimedia files, and uncertainty in automated testing. Guaranteed effect of accuracy and consistency

Active Publication Date: 2017-08-29
TENCENT TECH (SHENZHEN) CO LTD
View PDF14 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing UI automation test scheme, when the UI automation test step involves the need for the application under test to open a certain multimedia file, it is necessary to select a multimedia file in the storage medium of the test device, but the multimedia file in each test device There are often differences in the structure of the file r

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
  • Method and device for testing user interface
  • Method and device for testing user interface
  • Method and device for testing user interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0023] The user interface testing method in the embodiment of the present invention can be executed by the user interface testing device in the test terminal in the embodiment of the present invention. The user interface testing device in the embodiment of the present invention can be a test tool running in the test terminal. There are test scripts and multimedia test files set up.

[0024] figure 1 It is a schematic flow chart of a user interface testing method i...

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

One embodiment of the invention discloses a method for testing a user interface comprising following steps: executing a test instruction in a preset script in a test terminal for automatically testing a user interface of a tested application; intercepting multimedia file requests sent by the tested application during the automatic test; according to the intercepted multimedia file requests, returning a resource access path of the multimedia test file in the tested terminal corresponding to the multimedia file requests obtained in a prior record to the tested application so that the tested application opens the multimedia test file according to the resource access path of the multimedia test file. One embodiment of the invention also discloses a device for testing user interfaces. By means of the method and device of the invention, the accuracy and consistency of user interface testing can be guaranteed.

Description

technical field [0001] The invention relates to the field of application testing, in particular to a user interface testing method and device. Background technique [0002] With the popularization of automated testing technology, the testing of application programs is gradually changed from manual testing to UI (User Interface, user interface) automated testing. UI automation testing, that is, the device executes the preset test script through the testing tool to simulate the user's operation on the UI of the application under test, so as to automatically test the function and performance of the application under test. [0003] In the existing UI automation test scheme, when the UI automation test step involves the need for the application under test to open a certain multimedia file, it is necessary to select a multimedia file in the storage medium of the test device, but the multimedia file in each test device There are often differences in the structure of the file resou...

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
CPCG06F11/3688
Inventor 胡泊王典
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products