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

Automatic test method and system of WEB interface

An automated testing and interface technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as low efficiency of manual testing, and achieve the effect of automatic testing

Inactive Publication Date: 2016-04-06
PHICOMM (SHANGHAI) CO LTD
View PDF2 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Aiming at the low efficiency of manual testing in the prior art, the present invention provides an automated testing method and system for a WEB interface. By building an automated testing framework, web interface testing can be implemented to improve test execution efficiency and reduce the cost of manual regression.

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
  • Automatic test method and system of WEB interface
  • Automatic test method and system of WEB interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Such as figure 1 As shown, the present embodiment provides a kind of automated testing method of WEB interface, and this automated testing method comprises: at first download test case by Svn server, after counting the number of test cases, test case is filled in the defined Excel table , and then introduce the Excel table class through the Python programming language, customize the keywords of the automated test, and write the keywords into the header of the Excel table.

[0030] Before the automated test, call the Http interface to execute the test case, set the checkpoint by introducing the API, test the required http assembly characters, parse the XML file, get the return value field, and then check whether the XML file is correct when the automated test is performed for the first time ; If correct, encapsulate the XML file, and backfill the test result information into the Excel table as a reference for subsequent regression testing; if not correct, save it after m...

Embodiment 2

[0033] Such as figure 2 As shown, the present embodiment provides a kind of automatic test system of WEB interface, and present embodiment mainly adopts python language to write, and the system of present embodiment mainly comprises use case management module, test data entry module, execution module, in the present embodiment The use case management module mainly obtains the automated test cases by clicking on the interface of this embodiment, downloads them through the svn server, counts the number of use cases to be tested, and fills them in the defined excel form. The test data entry module connects with the use case management module, introduces the excel class through python, customizes the relevant fields that will need to be tested, and defines them at the beginning of the program running, such as CaseID, running or not, file size, result record, test result, and Fields such as use case description. The result information returned during program execution is written ...

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 relates to the automatic test field, especially an automatic test method and system of a WEB interface. Test cases are downloaded by an Svn server; after the number of the test cases is counted, a defined table is filled with the test cases; a class of the table is introduced through programming of the Python language; the keywords of the automatic test are customized; the keywords are written to the table header of the table; and the result information of the automatic test is stored in the table according to corresponding keywords in automatic test.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to an automated testing method and system for a WEB interface. Background technique [0002] The web interface test is a means of testing on the UI layer of the web service program. It is to test the correctness of the business logic of the web service program from the perspective of the user. Since there are many interface protocols for testing, if manual testing is used, not only inefficient and error-prone, Contents of the invention [0003] Aiming at the low efficiency of manual testing in the prior art, the present invention provides an automated testing method and system for a WEB interface. By building an automated testing framework, web interface testing is realized to improve test execution efficiency and reduce manual regression costs. [0004] The present invention adopts following technical scheme: [0005] An automated testing method for a WEB interface, comprising:...

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/3684G06F11/3688
Inventor 谷颖
Owner PHICOMM (SHANGHAI) CO LTD
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