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

A desktop automatic test development method and system

A technology of automated testing and elements, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as poor positioning efficiency, and achieve the effects of short positioning time, accurate identification, and improved search algorithms

Active Publication Date: 2018-12-18
陈希
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a desktop automation test development method and system to solve the problems that the current desktop automation test development technology does not have a common cross-language API, poor positioning efficiency, etc.

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
  • A desktop automatic test development method and system
  • A desktop automatic test development method and system
  • A desktop automatic test development method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] A desktop automation test development system disclosed in this embodiment includes: a locator developed in C++ language, used to locate the element object to obtain the necessary information of the parent window of the element object and the Automation Id of the element object (AutomationId: uniquely automate the UI Attributes that an element identifies from its siblings. More information about attribute identifiers related to control identification), name Name, class name Class, ControlType information; dynamics developed in C and C++ that expose the C language interface The link library dll is used to search for the IUIAutomationElement element pointer of the precisely positioned element object according to the parameter passed in by the locator to obtain the coordinates of the clickable point of the element object and call WindowsAPI to simulate the mouse click on the element object; and use C++ Language development is used to generate the kernel of the exe file, and ...

Embodiment 2

[0050]A desktop automation test development system disclosed in this embodiment includes: a locator developed in C++ language, used to locate the element object to obtain the necessary information of the parent window of the element object and the Automation Id, name Name, class name Class, and so on of the element object. ControlType information; a dynamic link library dll that exposes a C language interface developed in C language and C++ language, and is used to obtain the IUIAutomationElement element pointer of the precisely positioned element object searched according to the parameters passed in by the locator to obtain the element object. The coordinates of the point clicked and call the Windows API to simulate the mouse to click on the element object; and the kernel for generating the exe file developed by C++ language, the exe file includes the positioning function findElement and the sendkeys function, and the positioning function findElement and the sendkeys function a...

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 desktop automatic test development method and system. The system comprises a locator developed in C + + language, a dynamic link library dll developed in C language and C + +language and exposing C language interface, and a kernel developed in C + + language for generating an exe file. The invention can efficiently position desktop elements by improving the search algorithm only requiring four elements, and the 4 elements can be identified by specially developed locators, which is much better than the same kind of software autoit abroad and can be more accurate in location and recognition. The invention also overcomes the problem that the scope of the Webdriver is only limited to the part of the browser webpage display area, and the part beyond the webpage area can be controlled. The invention can support various languages, such as C + + language, Java language, C# language, Python language and other mainstream test development common languages.

Description

technical field [0001] The invention relates to the technical field of desktop automation test development, in particular to a desktop automation test development method and system. Background technique [0002] At present, there is no universal cross-language API in the field of desktop automation test development. This is the biggest pain point. It does not support various mainstream programming languages ​​such as Java, C#, and Python. At most, it only supports self-defined script editing, which is very complicated. , inconvenient, and cannot be promoted in the field of test development. [0003] It is more common for major companies to use autoit tools developed by foreign teams. Although they also use the underlying API technology of Microsoft, the positioning efficiency is poor and inaccurate, and it relies on too much element information to locate. The autoit tool uses a language similar to vb to write a script to generate exe, and then call it to various languages. ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F8/38
CPCG06F8/38G06F11/3684G06F11/3688
Inventor 陈希
Owner 陈希
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