Method and device for page automation testing

An automated test and page technology, applied in the computer field, can solve problems such as low flexibility, inapplicability of the automation framework, and no transformation, so as to release human resources, reduce maintenance and writing costs, and improve flexibility

Active Publication Date: 2022-03-04
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the maintenance frequency of test cases is high, the maintenance cost is high, and the flexibility is low;
[0006] 2. If multiple elements of a page are verified, multiple test cases need to be configured, and the cost of writing test cases is high;
[0007] 3. This page automation framework is not suitable for testing web application revisions. When encountering this kind of project, all use cases need to be redone, but in fact the page request and server side have not been modified, so human resources will be wasted

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
  • Method and device for page automation testing
  • Method and device for page automation testing
  • Method and device for page automation testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The exemplary embodiments of the present invention will be described below, including various details of the embodiments of the invention to help understand, and they should be considered simply exemplary. Accordingly, it will be appreciated by those skilled in the art that various modifications and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Also, for the sake of clarity and concise, the following description is omitted in the following description.

[0034] The embodiment of the present invention proposes a technical solution for the high-efficiency, maintenance cost of the web application, enabling the page automation test no longer dependent on the page elements. After the changes of the page, the original automated test case (test case, Test Case is a set of test inputs, execution conditions, and expected results prepared for a particular goal, so that a program path or verification is sati...

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 present invention provides a method and device for page automation testing, which can make page automation testing no longer rely on page elements to make assertions. After the page is changed, the original automation test cases do not need to be re-maintained, only the configuration file needs to be modified to shield The changed page structure part can still return to the old structure, so as to realize efficient page automation testing with wide application range and low maintenance cost. The method includes: configuring a specified network request of the page to be tested; sending the specified network request to the application server of the application program before the revision and the application server of the application program after the revision respectively; receiving the reference response returned by the application server of the application program before the revision and The response to be compared returned by the application server of the application program after the revision is compared, and if the responses are consistent, the test case succeeds, and if the responses are inconsistent, the test case fails.

Description

Technical field [0001] The present invention relates to the field of computer technology, and more particularly to a method and apparatus for page automation testing. Background technique [0002] Selenium is an open source automation tool for the longest use of current page automation testing. Selenium is the page automation test tool developed by THOUGHTWORKS. It can be run on a variety of platforms such as Windows, Linux, and Mac, and can be built with multiple programming languages ​​such as Java, C #, Perl, PHP, supporting multiple browsers tests. [0003] In the technical solution of the prior art page automation test, most of SELENIUM + PYTHON or Selenium + Java is used as a framework for page automation. The path of the page element and the correctness are asserted by configuring the expected value of the test case by page elements. In general, a test case is used to assert an element of the page. [0004] In the process of implementing the invention, the inventors have f...

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 Patents(China)
IPC IPC(8): G06F11/36H04L43/50
CPCH04L43/50G06F11/3688
Inventor 朱媛媛
Owner BEIJING JINGDONG SHANGKE INFORMATION 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