Web automation test method and method-based system

A technology of automated testing and correspondence table, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as poor adaptability, difficult data maintenance in test data and test scenarios, and low efficiency of Web automated testing technology. Clear distribution, increased flexibility and adaptability

Inactive Publication Date: 2018-09-04
GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF6 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a kind of Web automation test method, to solve the low efficiency of existing We

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
  • Web automation test method and method-based system
  • Web automation test method and method-based system
  • Web automation test method and method-based system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Embodiments of the present invention will be described in detail below.

[0030] like figure 1 As shown, the Web automated testing method includes building an automated testing framework environment for Selenium. Based on this environment, the test code is divided into data layer, object layer, and business layer for automated testing. Common automated testing environments include java or pyhton , C, C++ and other compiled language test environments,

[0031] Build data layer: acquire and / or store assertion standard data, test result data, and input data of test cases. The assertion standard data of test cases include text comparison standards and image comparison standards. After the data layer is constructed, it is encapsulated as a method for Business layer call; the natural language (item name) of the execution item, the natural language (page element name), and the corresponding table of the natural language (page element name) action, the table can be a database ...

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 Web automation test method and a method-based system. The Web automation test method comprises the steps of creating an automation test framework environment of Selenium; based on the environment, dividing test codes into forms of a data layer, an object layer and a business layer to perform automation testing; constructing the data layer: obtaining and/or storing assertion standard data, test result data and input data of test cases, wherein the data layer is configured to be called by the business layer; constructing an object layer: establishing a corresponding relationship table of page element names and page elements, performing secondary packaging on an element search method of the Selenium, and returning the corresponding relationship table to page elementobjects; and constructing the business layer: constructing a corresponding table of page element name operations by utilizing the corresponding relationship table of the page element names and the page elements, established by the object layer, and establishing and/or analyzing a sequence table of page element name execution items. Through hierarchical control, the data, object and business layersare mutually independent and distributed clearly, so that maintenance and modification are facilitated and flexibility is high.

Description

technical field [0001] The invention relates to the field of Web automation testing, in particular to a Selenium-based Web automation testing method and a system based on the method. Background technique [0002] Traditional web testing uses record test case-playback tools for automated testing, which is inefficient. For example, CN103678105 A provides a method and device for testing page codes, wherein the method includes: S1, constructing test cases, wherein the test cases include: constructed or recorded background module response data, recorded page test operations and Page area reference image; S2, replaying the recorded page test operation, intercepting the request sent by the tested page to the background module and returning the constructed or recorded background module response data to the tested page according to the request; S3, intercepting the page An area test image, and comparing the page area test image with the page area reference image to check the test re...

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/3688G06F11/3696
Inventor 吴庆庆颜专谢凯凯
Owner GUANGZHOU LANGO ELECTRONICS TECH 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