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

UI automatic test method and device

A technology of automated testing and test results, applied in the computer field, can solve the problems of no centralized management, inconvenient multi-person collaboration, heavy workload of test code writing, etc., to achieve the effect of improving efficiency, facilitating team collaboration, and lowering the threshold

Pending Publication Date: 2021-11-19
HUNAN HUINONG TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The technical frameworks related to automated testing of android, ios, and web pages include appium and selenium automated testing frameworks, but the existing technology requires high user thresholds and requires code development capabilities; the workload of early test code writing is heavy; for Frequently changing version, the maintenance workload of test cases is heavy; all test cases and codes are on the computers of different personnel, there is no centralized management, and it is inconvenient for multiple people to collaborate

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0034] see figure 1 , the present invention provides a UI automated testing method, comprising:

[0035] S1. Enter the element operation information through the PC terminal, and write the element operation information into the mysql database.

[0036] The operation information of the input element on the PC web page, the xpath path is used for element positioning, and the operation information includes click on the element, text box input, pop-up window monitoring, sliding, clearing the text box, click coordinates, ...

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 provides a UI automatic test method and device. The method comprises the steps that element operation information is input through a PC terminal, and the element operation information is written into a mysql database; a terminal server queries operation information in the mysql database and calls an API of an appium server, and the appium server analyzes JSON data and sends the JSON data to a mobile phone side; and the mobile phone side processes the JSON data through UIAutomator, operates an APP to complete a test, and feeds back a result to the appium server. Compared with the prior art, the UI automatic test method provided by the invention has the advantages that complete separation of test cases and codes and remote control of automatic tests are realized, and the test efficiency and the flexibility are improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a UI automation testing method and device. Background technique [0002] The technical frameworks related to automated testing of android, ios, and web pages include appium and selenium automated testing frameworks, but the existing technology requires high user thresholds and requires code development capabilities; the workload of early test code writing is heavy; for Revisions with frequent changes require a heavy workload for test case maintenance; all test cases and codes are on the computers of different personnel, and there is no centralized management, which is inconvenient for multi-person collaboration. [0003] Therefore, it is necessary to provide a novel UI automated testing method and device to overcome the above defects. Contents of the invention [0004] The purpose of the present invention is to provide a novel UI automated testing method and device, ...

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/36G06F9/448G06F16/25
CPCG06F11/3684G06F11/3688G06F9/449G06F16/25
Inventor 申斌武磊
Owner HUNAN HUINONG TECH
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