Automatic test method and device

A technology for automated testing and testing requirements, applied in the field of testing, can solve problems such as increasing the amount of code in test cases and increasing the complexity of testing, and achieve the effects of reducing code amount, reducing learning costs, and avoiding learning

Inactive Publication Date: 2014-02-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The API provided by the Instrumentation+JUnit framework is relatively basic. The realization of a function needs to call multiple APIs. Therefore, the test case contains a large number of codes for implementing the API, which increases th

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
  • Automatic test method and device
  • Automatic test method and device
  • Automatic test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] see figure 1 , this embodiment provides a method for automated testing, the process of the method is as follows:

[0057] 101: When testing the object under test, run the test case, and load the Android tool from the specified path.

[0058]102: Call the API provided by the Android tool to perform a test operation according to the test requirement, so as to complete the test of the object under test.

[0059] Among them, Android tools are loaded from the specified path, including:

[0060] Loads the pre-stored toolkit of Android tools from the classpath path according to the load statement.

[0061] Wherein, according to the test requirement, the application programming interface API provided by the Android tool is called to perform the test operation, including at least one of the following:

[0062] Call the operation resource folder API provided by the Android tool according to the test requirements to perform operations on the resource folder;

[0063] Call the ...

Embodiment 2

[0079] see figure 2 , this embodiment provides a method for automated testing, the process of the method is as follows:

[0080] 201: When testing the object under test, run the test case, and load the Android tool from the specified path.

[0081] The tested objects involved in this embodiment are application programs in the Android (Android) system, such as weather, clock and calendar. Wherein, the measured object may contain one or more functions, usually several functions. The functions may include, but are not limited to, turning on and off, and the like. When testing the function of the object under test, you can write a test case according to each function, and test whether the function is normal during the process of running the test case.

[0082] Android Tools (aTools for short) is an automated testing framework developed for the Android system. It consists of one or more automated testing basic modules, automated testing management modules, automated testing sta...

Embodiment 3

[0157] see image 3 , the present embodiment provides a device for automated testing, the device comprising:

[0158] The loading module 301 is used to run the test case and load the Android tool from the specified path when the object under test is tested;

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 an automatic test method and device, and belongs to the field of test. The method includes the steps: running a test case and loading an android tool from a specified path when testing objects to be tested; calling an API (application programming interface) provided by the android tool to execute test operation according to test requirements, and testing the objects to be tested. The device comprises a loading module and a calling module. The API provided by the android tool can be directly called, the number of codes for implementing the API in the test case is decreased, and test complexity is reduced. In addition, testers can write test cases according to the API provided by the android tool, leaning of the API codes is avoided, and the learning cost of the testers is reduced.

Description

technical field [0001] The invention relates to the field of testing, in particular to a method and device for automatic testing. Background technique [0002] The automated testing framework is a solution applied to automated testing, which provides an API (Application Programming Interface, Application Programming Interface) for the object under test to interact with peripheral devices. When testing the object under test, the automated test framework is loaded in the test project provided by the test software, and the simulation operation parameters can be passed through the API provided by the automated test framework to realize the simulated operation of the object under test, so that during the operation process Test the function of the object under test, and realize the automatic test of the object under test. [0003] Existing automated testing framework is Instrumentation (test tool)+JUnit (Java unit test) framework, and described Instrumentation+JUnit framework can...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products