Web automatic testing framework construction method based on selenium

A technology of automated testing and construction methods, applied in software testing/debugging, etc., can solve problems such as low reusability, failure of automated testing, and large amount of maintenance of automated testing scripts, so as to improve the success rate and reduce costs

Inactive Publication Date: 2015-07-29
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF2 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention is aimed at the problems that Selenium is not involved in the management of data, objects and scripts, which causes defects such as large maintenance amount and low reusability of automated test scripts in the later stage, and easily leads to the failure of automated tests, and provides a web automated test framework based on selenium The construction method fully considers the rapid changes in web application requirements, and combines selenium tools at the execution level to support multiple operating system platforms, cross-browser and other characteristics, through unified management of data, vertical management of UI objects by page, and operation scripts Hierarchical management, constructing a framework suitable for web automation testing, using the web automation testing constructed by the present invention to improve the success rate of automation testing

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 automatic testing framework construction method based on selenium
  • Web automatic testing framework construction method based on selenium
  • Web automatic testing framework construction method based on selenium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described in conjunction with the accompanying drawings.

[0026] A method for building a selenium-based web automation test framework:

[0027] Unified management of data: systematically design test cases and test data, separate data from scripts, and use one or several of Test Data Builder, Data Factory, GenerateData or Fresh Trash Generator to compare and generate The test data is stored in the database, and the data deletion tool is set to destroy the useless data, which is called by the test instance; see figure 1

[0028] Page-by-page vertical management of UI objects: List UI objects in sequence according to object names and object attributes, or select other parameters to list UI objects in sequence, with pages as units, page title is the document name, and the serial number attribute of objects in the first-level page is 1. The type of the pop-up box clicked through the first-level page object is the second-level page, an...

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 automatic testing framework construction method based on selenium, and belongs to the technical field of computer testing. The situation of rapid change of web application demands is fully considered, and a framework suitable for web automatic testing is constructed through uniform management of data, page-based longitudinal management of a UI (User Interface) object and operation script graded management in combination with the properties of supporting various operating system platforms, browser crossing and the like of a selenium tool on an execution layer. Through the constructed web automatic testing, the success rate of automatic testing is increased.

Description

technical field [0001] The invention discloses a method for constructing a web automation test framework, which belongs to the technical field of computer testing; in particular, it relates to a method for constructing a web automation test framework based on selenium. Background technique [0002] A web application is an application program that can be accessed through the web. Web applications make it easy for users to access applications. Users only need to have a browser and do not need to install other software. All kinds of Web applications are booming, such as chat rooms, forums, e-commerce, information query, full-text retrieval, etc. People can finally enjoy more convenient Web applications such as information retrieval, information exchange, and information processing. Because of its short iteration cycle, fast-changing requirements, complex UI, cross-platform, cross-browser and other special properties, it is being developed more and more. At the same time, with...

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/36
Inventor 赵霞李男张新玲
Owner LANGCHAO ELECTRONIC INFORMATION IND 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