Method and system for acquiring valid image verification code

An effective image and graphic verification code technology, applied in the field of web system automated testing, can solve the problems of inability to determine the completion time of graphic verification codes, inability to accurately configure the execution time, and lack of reusability, so as to improve maintainability. , high stability, guaranteed effectiveness

Active Publication Date: 2013-02-27
中移信息技术有限公司
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The present invention is aimed at the existing technology for solving the graphic verification code problem in the Web automated login test, which depends on the display position of the graphic verification code, and cannot determine the actual completion time of graphic verification code loading, resulting in the inability to accurately configure the execution time of the next operation. And when the function of the right mouse button menu is disabled or overloaded on the web page, the technical failure will result, and there will be no reusability defects in different test environments. Provide a method and system for obtaining valid image verification codes without relying on graphic verification The implementation details of the code (including the display position, etc.), overcome the limitation of the front-end control code of the web page, and have reusability in different test environments

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 system for acquiring valid image verification code
  • Method and system for acquiring valid image verification code
  • Method and system for acquiring valid image verification code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] The present invention will be further explained below in conjunction with the accompanying drawings and embodiments.

[0069] figure 1 It is a flow chart of the first embodiment of the method for obtaining a valid image verification code of the present invention, such as figure 1 Shown, in the present embodiment, method of the present invention comprises the following steps:

[0070] S1. Drive the browser to access the login page of the Web system through the test engine of the graphical user interface (GUI) installed on the client, and receive the information generated by the server to indicate the uniqueness of the client, which is used to indicate the uniqueness of the client Information includes session ID (Session ID). Wherein, depending on the accessed Web system, the information used to represent the uniqueness of the client generated by the server is also different, and the information used to represent the uniqueness of the client may also include random vari...

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 method and a system for acquiring a valid image verification code. The system comprises first to fifth units. The method includes that (1) a graphical user interface (GUI) test engine drives a browser to access to a login page; (2) the GUI test engine drives the browser to access to an image verification code uniform resource locator (URL) at a new window to acquire a Cookie message; (3) a hyper text transport protocol (HTTP) test engine establishes an HTTP protocol request, and a request path is the image verification code URL to acquire a reference source and a Cookie message which are responded by the HTTP; (4) a HTTP request is reestablished according to the cookie message in the (2) and the reference source and the Cookie message in the (3), and the request path is the image verification code URL; and (5) read-write operation is performed for a part of input / output (I / O) stream of the HTTP responded content to generate the image verification code. The method and the system are not required to depend on implementation details of the image verification code, the limit of a control code of a webpage frontend is overcome, and the reusability is achieved at different testing environments.

Description

technical field [0001] The present invention relates to Web system automatic testing, more specifically, relates to a method and system for obtaining effective image verification codes in Web system automatic login testing. Background technique [0002] With the increasing popularization of Internet technology, more and more enterprise applications based on browser-server (Browser / Server) architecture, how to effectively test these Web systems has become an increasingly urgent problem. [0003] In order to improve testing efficiency, automated testing technology is currently widely used in Web system testing. In the web system, "user login" is one of the very common functions, and it is also a test point that many web system automation tests cannot avoid. For example: in the functional test of the Web system, it is necessary to test whether the login form meets the requirements; in the security test of the Web system, it is necessary to test whether the login information is...

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): H04L12/26H04L29/08G06F11/36
Inventor 朱昌创涂昀方有轩朱青
Owner 中移信息技术有限公司
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