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

Automation testing script offline debugging method and system

A technology of automated testing and debugging methods, applied in the direction of software testing/debugging, etc., can solve the problems of wasting testing resources, reducing testing efficiency, and lack of code checking methods in explanatory languages, so as to improve testing efficiency and save testing resources.

Active Publication Date: 2013-11-27
MAIPU COMM TECH CO LTD
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the automated test script development of the prior art, the writing language of the script usually selects an explanatory scripting language (such as: Tcl, Ruby, Perl, Python, etc.), which has the advantage of being conducive to rapid development and debugging of scripts, but some problems are prone to occur when writing scripts. Syntax errors, such as parameter input errors when calling the corresponding application programming interface (Application Programming Interface, API) function, etc.
These errors occur when script developers write code. At the same time, due to the lack of effective code inspection methods in the interpreted language itself (regular code walkthrough usually only finds a small number of errors), these error scripts can only be loaded into the tested Debugging on the device, the result will inevitably fail, but the reason for this failure is the failure caused by some errors in the script itself, which does not reflect whether the function of a certain function point of the product under test we want to verify is correct or not. We expect to develop this script for the purpose of
If there is more than one error, we need to run it repeatedly to find these errors. This process not only wastes test resources, but also wastes a lot of time for repeated script initialization and device initialization processes, resulting in low efficiency of test script debugging.
Therefore, if the automated test script is debugged on the real device without effectively checking the script itself for errors before running online, it will consume test resources and test time, and reduce test efficiency

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
  • Automation testing script offline debugging method and system
  • Automation testing script offline debugging method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] For automated test system script developers, limited by resources and other conditions, it is difficult to load each test script to the real device under test for debugging immediately. However, when resources are available and the script is debugged, it is found that many low-level grammatical problems always hinder the debugging. Spending a lot of time on this will not only consume equipment resources, but also greatly reduce the test efficiency. The offline debugging method of the automated test script of the present invention can find and correct the errors of the script itself, such as grammatical errors or API function calling errors, before the actual online debugging, so as to overcome the above-mentioned shortcomings.

[0027] The process flow of the offline debugging method of the automated test scr...

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 relates to automation testing technologies of the data communication field and discloses an automation testing script offline debugging method and system. The automation testing script offline debugging method mainly comprises the steps of setting two debugging modes inside a testing script; developing two branches in the API (application programming interface) function of the testing script; simulating the information of a device to be tested in the offline debugging branch of the API function for connecting the device to be tested; in the offline debugging mode, defaulting every function corresponding to a simulated physical device as normal; when echo values need to be read from the device to be tested, simulating the echo values through the offline debugging branch, ignoring the logic check of the function and only checking whether the information transmitted in as the function requires is correct; outputting a debugging result after offline debugging is completed. The automation testing script offline debugging system comprises a mode setting module and a debugging agent module. The automation testing script offline debugging method and system can save testing resources and improve the testing efficiency.

Description

technical field [0001] The invention relates to an automated test technology in the field of data communication, in particular to an off-line debugging method and system for an automated test script. Background technique [0002] As the development cycle of data communication products is getting shorter and shorter, the product release cycle is getting faster and faster, and the corresponding testing workload is also increasing. For automated testing, it is required to be able to complete the testable automated test scripts as soon as possible to verify the product. function. [0003] In the automated test script development of the prior art, the writing language of the script usually selects an explanatory scripting language (such as: Tcl, Ruby, Perl, Python, etc.), which has the advantage of being conducive to rapid development and debugging of scripts, but some problems are prone to occur when writing scripts. Syntax errors, such as incorrect parameter input when calling...

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 MAIPU COMM TECH 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