Test data obtaining method, client and server

A technology of test data and acquisition method, applied in the computer field, can solve the problems such as the inability to easily and effectively realize the test data acquisition, the insufficient intelligence of WEB automated testing, etc., to achieve the effect of preparation

Active Publication Date: 2015-03-18
ALIBABA GRP HLDG LTD
View PDF5 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a method for acquiring test data in WEB testing, a client and a server to solve the problem that the

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
  • Test data obtaining method, client and server
  • Test data obtaining method, client and server
  • Test data obtaining method, client and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] refer to figure 1 , shows a flow chart of steps of a test data acquisition method according to Embodiment 1 of the present invention.

[0033] The test data acquisition method of the present embodiment includes the following steps:

[0034] Step S102: When the test data acquisition condition is met, the browser sends a first test data acquisition request to the server.

[0035] Wherein, the first test data acquisition request is used to request test data that can be prepared in the page to be tested of the client in the WEB test.

[0036] The determination of whether the test data acquisition conditions are satisfied is related to the trigger conditions for obtaining test data in actual implementation. For example, if the button or control for obtaining test data is displayed when the page to be tested is opened, when the user clicks the button or control, the test data acquisition condition That is, it is satisfied; if a corresponding navigation bar for obtaining tes...

Embodiment 2

[0050] refer to figure 2 , shows a flow chart of steps of a test data acquisition method according to Embodiment 2 of the present invention.

[0051] In this embodiment, the test data acquisition method of the present invention is implemented through the browser plug-in installed in the client browser, and the test data acquisition is completed through the browser plug-in, so that the user can complete the test without leaving the page to be tested. Data preparation (acquisition). But not limited to this, those skilled in the art should understand that other appropriate implementation methods, such as through a browser interface, or through a browser program, or through a function or interface call, can realize the test data acquisition solution of this embodiment .

[0052] The test data acquisition method of the present embodiment includes the following steps:

[0053] Step S202: When the test data acquisition condition is satisfied, the browser plug-in of the client bro...

Embodiment 3

[0083] refer to image 3 , shows a flow chart of steps of a test data acquisition method according to Embodiment 3 of the present invention.

[0084] In this embodiment, a Chrome browser plug-in is used to obtain test data, and the whole solution includes two parts: the Chrome browser plug-in of the client browser and the Webapp service of the background server. Certainly, those skilled in the art should understand that the Chrome browser plug-in and the Webapp service are only exemplary illustrations, and browser plug-ins based on other browser kernels such as IE browser plug-ins and other appropriate services in the server are equally applicable.

[0085] In the test data acquisition scheme of this embodiment, the Chrome browser plug-in first requests the Webapp service of the background server to obtain the source code of the Chrome browser plug-in function display page and render it (that is, obtain the test data form and render it into a data preparation subpage). Operat...

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 provides a test data obtaining method, a client and a server, wherein, the test data obtaining method comprises: transmitting, by a browser, a first test data obtaining request to a server for requesting test data that can be prepared in a page to be tested of a client in WEB testing when a test data obtaining condition is satisfied; receiving a test data form that can be prepared in a page to be tested, returned in accordance with the first test data obtaining request, and displaying the test data form by a data preparation subpage; receiving a operation of a user on the test data form in the data preparation subpage, and transmitting a second test data obtaining request to the server in accordance with the operation; obtaining a test data corresponding to the test data form operated by the user, returned in accordance with the second test data, and uploading the test data to the page to be tested to test the page to be tested. The invention prepares test data in WEB testing.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for acquiring test data in WEB testing, a client and a server. Background technique [0002] WEB automated testing means that the test program automatically tests a WEB system (for example, an electronic shopping website) to test whether the process of the WEB system is smooth and whether the execution results of each step of the process are correct. For example, it is possible to test whether the retrieval->view item details->login->payment process of an e-shopping website is smooth, and check whether the execution results of each step in this process are correct, for example, to determine whether the retrieval result is correct, and whether the item details Whether the information displayed is correct or not. [0003] In the process of WEB automated testing, it is necessary to obtain certain test data to execute the test program. For example, for the test p...

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): H04W72/12H04W76/00
CPCH04L43/04H04L67/02
Inventor 吴健
Owner ALIBABA GRP HLDG 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