CN106569951A - Web test method independent of page - Google Patents

Web test method independent of page Download PDF

Info

Publication number
CN106569951A
CN106569951A CN201610965092.6A CN201610965092A CN106569951A CN 106569951 A CN106569951 A CN 106569951A CN 201610965092 A CN201610965092 A CN 201610965092A CN 106569951 A CN106569951 A CN 106569951A
Authority
CN
China
Prior art keywords
response
data
test
request
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610965092.6A
Other languages
Chinese (zh)
Other versions
CN106569951B (en
Inventor
王步飞
陈静禄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HANGZHOU ICAFE TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU ICAFE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HANGZHOU ICAFE TECHNOLOGY Co Ltd filed Critical HANGZHOU ICAFE TECHNOLOGY Co Ltd
Priority to CN201610965092.6A priority Critical patent/CN106569951B/en
Publication of CN106569951A publication Critical patent/CN106569951A/en
Application granted granted Critical
Publication of CN106569951B publication Critical patent/CN106569951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a Web test method independent of a page. A tool is written by applying characteristics of an HTTP protocol; a message is assembled and sent; a server is requested by different methods; response information is captured; analysis and rendering are performed in a memory of a client; a correlation connection is obtained; the correlation connection is sent; a response package body is analyzed; expected data is compared with response data, and a comparison result serves as an output of a test result; and all items described in a test case are subjected to search, comparison and test result output in a response information formatting data dictionary. According to the Web test method, the test is profound and flexible, the use is simple, the case coverage range is wider, the automation can be quickly realized, the response html compliance can be automatically checked, and cases which cannot be tested by the page can be simulated.

Description

A kind of Web method of testings for departing from the page
Technical field
The invention belongs to computer network testing technical field, and in particular to a kind of Web method of testings of the disengaging page.
Background technology
Web application automatic tests are the automatic tests based on user interface (User Interface, UI), and which passes through The UI automated test frames such as figure script Sikuli or Selenium, realize the automatic test of modelling customer behavior. Specifically, in Web applications automatic test course, first, test machine implementation of test cases, obtains the corresponding operation of test case As a result;Then, test machine calculates the operation success rate of predetermined batch according to the corresponding operation result of each test case;Which is most Have the disadvantage that greatly the dependency to the page is very strong, the modification of the page can cause script to write again and safeguard, workload is very big, leads Automatization is caused to realize being difficult to advance, main automatization is also limited in the test of a small amount of Core Feature.
At present, existing some Web method of testings are mainly managed the displaying that depends on browser and are rendered, different browsers pair The support of the page is also different, and tester is typically really doing page functional test, and the displaying of the page constrains test Test of the personnel to service end, carries out going deep into coverage test to service end and specific aim test lacks means and method.Therefore, it is Raising testing efficiency, deepens MTD, it is desirable to have new method of testing is meeting the demand of daily Web tests.
The content of the invention
In view of it is above-mentioned, the invention provides a kind of Web method of testings for departing from the page, enable to test deeply flexibly, Automatization can quickly be realized.
A kind of Web method of testings for departing from the page, comprise the steps:
(1) by extracting the carrying data required by URL address analog access URL addresses, so as to constitute request data package;
(2) described request data package is sent to into server, the solicited message received by monitoring server obtains clothes The response results of business device;
(3) described response results are analyzed and are stored into data dictionary, anticipatory data is entered with response data Row matching is simultaneously write the result in test result file, and then by each item described in test case in response message format Data dictionary in make a look up, contrast, and output test result.
The step (1) to implement process as follows:First, determined in tested Web applications according to application function Each accesses URL addresses;Then, obtain each URL address and access with regard to the packet that this is asked in intercept network communication Incidental resource request and Redirect URL address afterwards;Finally, test parameter is obtained one by one with expected knot from parametrization file Really, the carrying data and then according to required by this use-case analog access URL addresses, so as to constitute request data package.
Further, need during URL is extracted in the step (1) it is clear and definite each access the money needed for URL addresses Source constitutes, for judging to provide foundation for test result.
Comprising needs when accessing the header, the submission of access URL addresses that need when URL addresses are submitted in the carrying data Method, port and whether have redirection information, send parameter type, send parameter coded method, send parameter Required digital signature and encryption data and the adnexa sent together with this request.
Described header include User-Agent parameters in Cookie, User Defined variable, HTTP Header, Accept parameters and Accept-Language parameters, which does basis for test case as the input data asked can Radix Ginseng selection Number, gos deep into various test case so as to constitute.
The step (3) to implement process as follows:First, with tool analysis response results, response results are checked In resource information and be deposited in resource response list, the type of request resource that response page is needed, number and The information format of corresponding address is stored into data dictionary, in case using when test result is contrasted;Simultaneously by response page Html source files are stored in response text list, in case test case can extract response using regular expression being expected, are used as Test result is identified, obtains pre- period parameters and be put in memory variable, asks to provide selectable |input paramete for next;Further With the test parameter, header and response data body that carry in tool analysis response results, and test parameter and head are believed Breath formatting is stored into data dictionary, in case using when test result is contrasted.
The present invention is using http protocol support client/server communication pattern, simple and convenient fast and flexible, towards without even Stateless feature is connect, and authoring tool, assembling send message, request server is removed according to a point distinct methods, response message is grabbed Take, analyze in client's end memory and render, obtain associated connection, send associated connection, analyze response inclusion, search target Whether occur;Flexible configuration request row of the present invention, message header, request text reach inspection multiformity and use-case depth is covered, Statusline, message header, response text in analysis response message, realizes hiding information inspection;The present invention is by response message Critical data crawl use as the required parameter of next request, the connection of an operation flow is combined as into a test set Close, complete to call automatically and analyze, the precondition and expected resultss that connect each is put in operating parameter, before first carrying out Put, then perform connection request, the response message of acquisition is analyzed, the value and expected resultss for obtaining regulation compares, used as survey The foundation that test result judges;Integrated data of the present invention is initial, data check so that front-end process test is examined with reference to Back end data Look into, Connecting quantity flexible configuration, add safety test use-case, quick inspection parameter whether there is SQL injection risks, to loaded page Html document compliance in face is checked automatically.
Thus, Web method of testings of the present invention cause test deep, flexible, and using simply, use-case covers wider, can be fast Speed realizes automatization, can check automatically response html compliance, can simulate the use-case that the page cannot be tested.
Description of the drawings
Fig. 1 is http protocol structure composition schematic diagram.
Fig. 2 is the schematic flow sheet of Web method of testings of the present invention.
The operating process schematic diagram that Fig. 3 is embodied as the inventive method.
Specific embodiment
In order to more specifically describe the present invention, below in conjunction with the accompanying drawings and specific embodiment is to technical scheme It is described in detail.
Total well known, http protocol has following main feature:
(1) support client end/server end communication pattern.
(2) it is simple and convenient quick:When client send ask when, simply simply fill in request path and Requesting method, then can just pass through that the request sends by browser or other modes just can be with.The more commonly used request Method has three kinds, is respectively:GET、HEAD、POST.Different requesting methods causes the mode that client and server end contacts It is different.Because http protocol is fairly simple, the program scale of http server is relatively small, so that communication Speed it is very fast.
(3) flexibly:Http protocol allows client and server end to transmit the data object of any type arbitrary format.This A little different types are by Content-Type labellings.
(4) towards connectionless:The connectionless connection for being meant that each foundation only processes a client request.Work as service After device has processed the request of client, and after receiving the feedback response of client, server end is disconnected immediately.Using this Plant communication mode and can greatly save transmission time.
(5) towards stateless:HTTP is stateless agreement.So-called stateless refers to that agreement does not have for the process of request There is memory function.If stateless means to process previous information again, these previous information have to retransmit, this Have led to the increase of data transfers.But on the other hand, when previous information server not when in use, The then response of server will be very fast.
As shown in figure 1, HTTP request is made up of three parts, it is respectively:Request row, message header, request text;HTTP rings Should be also to be made up of three parts, be respectively:Statusline, message header, response text.Web method of testings of the present invention are used The characteristics of http protocol, authoring tool, assembling, send message, remove request server according to a point distinct methods, response message is grabbed Take, analyze in client's end memory and render, obtain associated connection, send associated connection, analyze response inclusion, search target Whether occur;It is as shown in Figure 2 which implements process:
First, each access URL address of tested application is determined according to application function, with regard to this in intercept network communication The packet of secondary request, that is, obtain subsidiary resource request and Redirect URL address after each URL address accesses;Specify each The resource composition needed for URL addresses is accessed, judges to provide foundation for test result, according to use-case analog access URL address challenges Carrying data, composition sends bag, it is determined that access the header needed when url addresses are submitted to, including Cookie, User Defined User-Agent parameters, Accept parameters in variable, HTTP Header, Accept-Language parameters, it is determined that accessing url Method that address is needed when submitting to, port, whether there is redirection, it is determined that sending the type of parameter, sending the coded method of parameter And the adnexa sent together with request, realize sending the encryption datas such as the signature of parameter needs using algorithm;
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number;
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, test is used Each item described in example is searched in response message format data dictionary, contrasts, is outputed test result.
Embodiment 1
Present embodiment combines request address, adjustment address transmission order, the A modification behaviour in such as Fig. 3 according to business need Make, it is determined that sending a request each time, with regard to the packet that this is asked in intercept network communication, obtain each url address Subsidiary resource request and redirection url addresses after access;Its each resource accessed needed for url addresses clear and definite first is constituted, Judge to provide foundation for test result, according to the carrying data of use-case analog access url address challenges, composition sends bag;It is determined that Access the header needed when url addresses are submitted to, including the User- in Cookie, User Defined variable, HTTP Header Agent parameters, Accept parameters, Accept-Language parameters;It is determined that accessing method, the end needed when url addresses are submitted to Mouthful, whether have redirection;It is determined that send parameter type, send parameter coded method and with request together with send it is attached Part;Realize sending the encryption datas such as the signature of parameter needs using algorithm.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number.
Finally, anticipatory data is contrasted with response data with instrument, used as the output of test result, upper one please The parameter variable association for asking the variable for spreading out of to need when asking as next request address, each request are received after sending Response all carries out being expected to match with use-case, realizes the test of operation flow, the operation B in such as Fig. 3.
Embodiment 2
Present embodiment by the input of the page, does not avoid the data form inspection by, can ask for single The parameter of middle requirement is sought, data variation input is done, such as input does not conform to the test data of rule, the A modification operations in such as Fig. 3; Its each resource accessed needed for url addresses clear and definite first is constituted, and is judged to provide foundation for test result, is visited according to use-case simulation The carrying data of url address challenges are asked, composition sends bag;It is determined that the header needed when url addresses are submitted to is accessed, including User-Agent parameters, Accept parameters in Cookie, User Defined variable, HTTP Header, Accept- Language parameters, it is determined that access need when url addresses are submitted to method, port, whether have redirection, it is determined that sending parameter Type, the coded method for sending parameter and the adnexa sent together with request, realize sending the label that parameter needs using algorithm The encryption datas such as name.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number.
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, and then is checked Whether there is expected miscue in response message, check whether service end meets demand or code specification to abnormal process Require, the operation B in such as Fig. 3.
Embodiment 3
Present embodiment clearly accesses resource group needed for url addresses for the url of tested request and is simulated according to use-case The requirement data composition for accessing url address challenges sends bag;Its each resource accessed needed for url addresses clear and definite first is constituted, Judge to provide foundation for test result, according to the carrying data of use-case analog access url address challenges, composition sends bag;It is determined that Access the header needed when url addresses are submitted to, including the User- in Cookie, User Defined variable, HTTP Header Agent parameters, Accept parameters, Accept-Language parameters, delete or distort cookie, the A modification operations in such as Fig. 3; It is determined that access need when url addresses are submitted to method, port, whether have redirection, it is determined that sending the type of parameter, sending parameter Coded method and together with request the adnexa that sends, realize sending the encryption datas such as the signature that parameter needs using algorithm.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number.
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, and then is tested Request address to user right judge whether meet the requirement of demand or specification, the operation B in such as Fig. 3.
Embodiment 4
Present embodiment clearly accesses resource group needed for url addresses for the url of tested request and is simulated according to use-case The carrying data composition for accessing url address challenges sends bag;Its each resource accessed needed for url addresses clear and definite first is constituted, Judge to provide foundation for test result, according to the carrying data of use-case analog access url address challenges, composition sends bag;It is determined that Access the header needed when url addresses are submitted to, including the User- in Cookie, User Defined variable, HTTP Header Agent parameters, Accept parameters, Accept-Language parameters, modification requesting method (GET, POST, HEAD, PUT, DELETE, TRACE), the A modification operations in such as Fig. 3;It is determined that access need when url addresses are submitted to method, port, whether have Redirect, it is determined that the type of parameter, the coded method for sending parameter and the adnexa sent together with request are sent, using algorithm Realize sending the encryption datas such as the signature of parameter needs.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number.
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, and then will be pre- Phase result is matched with response data, it is possible to achieve receive the checking of browse request method, the behaviour in such as Fig. 3 to service end Make B.
Embodiment 5
Present embodiment the request address of core is carried sensitive data clearly access resource group needed for url addresses according to The carrying data composition of use-case analog access url address challenges sends bag;Its each money needed for access url addresses clear and definite first Source constitutes, and judges to provide foundation for test result, and according to the carrying data of use-case analog access url address challenges, composition sends Bag;It is determined that the header needed when url addresses are submitted to is accessed, including in Cookie, User Defined variable, HTTP Header User-Agent parameters, Accept parameters, Accept-Language parameters, distort sensitive data (such as dollar amount etc.), such as A modification operations in Fig. 3;It is determined that access need when url addresses are submitted to method, port, whether have redirection, it is determined that sending ginseng Using algorithm, several type, the coded method for sending parameter and the adnexa sent together with request, realize that sending parameter needs The encryption data such as signature.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address, are put in data dictionary, in case test Comparative result is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Change storage to be put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will The header that response is taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will The html source files of response page are stored in being put into response text list, in case test case can be extracted using regular expression Response is expected, and is used as test result identification, obtains pre- period parameters and is put into variable, provides selectable input ginseng for next request Number
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, and then can be with Check whether service end does respective handling to data safety inspection, it is ensured that the operation B in the primitiveness of data, such as Fig. 3.
Embodiment 6
Resource group needed for the identical url addresses of present embodiment repetitive requests is according to use-case analog access url address challenges Carrying data composition send bag, in such as Fig. 3 A modification operation;Its each resource group needed for access url addresses clear and definite first Into, judge to provide foundation for test result, according to the carrying data of use-case analog access url address challenges, composition sends bag;Really Surely the header needed when url addresses are submitted to is accessed, including in Cookie, User Defined variable, HTTP Header User-Agent parameters, Accept parameters, Accept-Language parameters, it is determined that accessing the side needed when url addresses are submitted to Method, port, whether there is redirection;It is determined that sending the type of parameter, sending the coded method of parameter and send together with request Adnexa, realize sending the encryption data such as signature that parameter needs using algorithm.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number.
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, and then can be with Check the fault-tolerant ability of server end, the operation B in such as Fig. 3.
Embodiment 7
Present embodiment clearly accesses resource group needed for url addresses for the url of tested request and is simulated according to use-case The carrying data composition for accessing url address challenges sends bag;Its each resource accessed needed for url addresses clear and definite first is constituted, Judge to provide foundation for test result, according to the carrying data of use-case analog access url address challenges, composition sends bag;It is determined that Access the header needed when url addresses are submitted to, including the User- in Cookie, User Defined variable, HTTP Header Agent parameters, Accept parameters, Accept-Language parameters, it is determined that accessing method, the end needed when url addresses are submitted to Mouthful, whether have redirection;It is determined that send parameter type, send parameter coded method and with request together with send it is attached Part, realizes sending the encryption datas such as the signature of parameter needs using algorithm.
Then, the solicited message that combined request bag is received to server, monitoring server is sent with instrument, Server response results are obtained with instrument;The response message of server is kept in memory variable, is that post analysis and contrast are carried For initial data;With tool analysis response results, the resource information checked in response is simultaneously stored in resource response list, will response Request resource type that the page needs, number, the storage of the information formatization such as corresponding address are put in data dictionary, in case test knot Fruit contrast is used;The parameter carried with tool analysis response message and response data body, the parameter format that response is taken back Storage is put in data dictionary, in case test result contrast is used;The header carried with tool analysis response message, will ring The header that should be taken back formats storage and is put in data dictionary, in case test result contrast is used;With tool analysis, will ring The html source files of the page are answered to store in being put into response text list, in case test case can be extracted using regular expression ringing It is contemplated that, test result identification is used as, pre- period parameters is obtained and is put into variable, selectable input ginseng is provided for next request Number.
Finally, anticipatory data is contrasted with response data with instrument, as the output of test result, and then will be obtained The html for taking judges the compliance of Shipping Options Page, the operation B in such as Fig. 3 according to the description of use-case.
The above-mentioned description to embodiment is to be understood that for ease of those skilled in the art and apply the present invention. Person skilled in the art obviously easily can make various modifications to above-described embodiment, and described herein general Principle is applied in other embodiment without through performing creative labour.Therefore, the invention is not restricted to above-described embodiment, ability Field technique personnel announcement of the invention, the improvement made for the present invention and modification all should be in protection scope of the present invention Within.

Claims (6)

1. a kind of Web method of testings for departing from the page, comprise the steps:
(1) by extracting the carrying data required by URL address analog access URL addresses, so as to constitute request data package;
(2) described request data package is sent to into server, the solicited message received by monitoring server obtains server Response results;
(3) described response results are analyzed and are stored into data dictionary, anticipatory data and response data is carried out With and write the result in test result file, and then by each item described in test case response message format number According to making a look up in dictionary, contrast, and output test result.
2. Web method of testings according to claim 1, it is characterised in that:The step (1) implements process such as Under:First, each access URL address in tested Web applications is determined according to application function;Then, in intercept network communication With regard to the packet that this is asked, that is, obtain incidental resource request and Redirect URL address after each URL address accesses; Finally, test parameter and expected resultss are obtained from parametrization file one by one, and then according to this use-case analog access URL addresses Required carrying data, so as to constitute request data package.
3. Web method of testings according to claim 1, it is characterised in that:In the process for extracting URL in the step (1) Clear and definite each resource accessed needed for URL addresses of middle need is constituted, for judging to provide foundation for test result.
4. Web method of testings according to claim 1, it is characterised in that:Comprising access URL addresses in the carrying data The header that needs during submission, access need when URL addresses are submitted to method, port and whether have the information of redirection, send out Send parameter type, send parameter coded method, send parameter required for digital signature and encryption data and and this The adnexa that request is sent together.
5. Web method of testings according to claim 4, it is characterised in that:Described header includes Cookie, user certainly User-Agent parameters, Accept parameters and Accept-Language parameters in defined variable, HTTP Header, its work Input data for request does basic optional parameters for test case, gos deep into various test case so as to constitute.
6. Web method of testings according to claim 1, it is characterised in that:The step (3) implements process such as Under:First, with tool analysis response results, the resource information checked in response results is simultaneously deposited into resource response list In, the information format of the type, number and corresponding address of the request resource that response page is needed is stored to data dictionary In, in case using when test result is contrasted;Simultaneously the html source files of response page are stored in response text list, in case surveying Example on probation can be extracted response using regular expression and be expected, and identify as test result, obtain pre- period parameters and be put into internal memory change In amount, selectable |input paramete is provided for next request;And then with the test ginseng carried in tool analysis response results Number, header and response data body, and test parameter and header formatting are stored into data dictionary, in case test knot Use when fruit contrasts.
CN201610965092.6A 2016-11-04 2016-11-04 A kind of Web test method being detached from the page Active CN106569951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610965092.6A CN106569951B (en) 2016-11-04 2016-11-04 A kind of Web test method being detached from the page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610965092.6A CN106569951B (en) 2016-11-04 2016-11-04 A kind of Web test method being detached from the page

Publications (2)

Publication Number Publication Date
CN106569951A true CN106569951A (en) 2017-04-19
CN106569951B CN106569951B (en) 2019-05-07

Family

ID=58536210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610965092.6A Active CN106569951B (en) 2016-11-04 2016-11-04 A kind of Web test method being detached from the page

Country Status (1)

Country Link
CN (1) CN106569951B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992500A (en) * 2017-12-29 2019-07-09 北京奇虎科技有限公司 Interface test method, device and the computer readable storage medium of application
CN110399305A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The test method and device of BTT module
CN111026645A (en) * 2019-11-20 2020-04-17 航天信息股份有限公司 User interface automatic testing method and device, storage medium and electronic equipment
CN111177014A (en) * 2020-02-24 2020-05-19 重庆长安新能源汽车科技有限公司 Software automatic test method, system and storage medium
CN111953659A (en) * 2020-07-21 2020-11-17 北京思特奇信息技术股份有限公司 Method and system for simulating http request
CN112243033A (en) * 2020-10-15 2021-01-19 浪潮商用机器有限公司 Method, device and equipment for acquiring memory information and computer readable storage medium
CN113065048A (en) * 2021-02-26 2021-07-02 山东英信计算机技术有限公司 BMC Web automatic detection method, system and medium based on Web crawler
CN113342694A (en) * 2021-07-08 2021-09-03 中国工商银行股份有限公司 Test case processing method and device based on block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100251329A1 (en) * 2009-03-31 2010-09-30 Yottaa, Inc System and method for access management and security protection for network accessible computer services
CN103312551A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Test method and test device of common gateway interface
CN104199725A (en) * 2014-09-27 2014-12-10 上海瀚之友信息技术服务有限公司 Service interface data simulation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100251329A1 (en) * 2009-03-31 2010-09-30 Yottaa, Inc System and method for access management and security protection for network accessible computer services
CN103312551A (en) * 2012-03-12 2013-09-18 腾讯科技(深圳)有限公司 Test method and test device of common gateway interface
CN104199725A (en) * 2014-09-27 2014-12-10 上海瀚之友信息技术服务有限公司 Service interface data simulation method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992500A (en) * 2017-12-29 2019-07-09 北京奇虎科技有限公司 Interface test method, device and the computer readable storage medium of application
CN110399305A (en) * 2019-07-31 2019-11-01 中国工商银行股份有限公司 The test method and device of BTT module
CN110399305B (en) * 2019-07-31 2023-12-08 中国工商银行股份有限公司 BTT module testing method and device
CN111026645A (en) * 2019-11-20 2020-04-17 航天信息股份有限公司 User interface automatic testing method and device, storage medium and electronic equipment
CN111026645B (en) * 2019-11-20 2023-11-28 航天信息股份有限公司 User interface automatic test method and device, storage medium and electronic equipment
CN111177014B (en) * 2020-02-24 2023-02-24 重庆长安新能源汽车科技有限公司 Software automatic test method, system and storage medium
CN111177014A (en) * 2020-02-24 2020-05-19 重庆长安新能源汽车科技有限公司 Software automatic test method, system and storage medium
CN111953659A (en) * 2020-07-21 2020-11-17 北京思特奇信息技术股份有限公司 Method and system for simulating http request
CN112243033B (en) * 2020-10-15 2022-09-13 浪潮商用机器有限公司 Method, device and equipment for acquiring memory information and computer readable storage medium
CN112243033A (en) * 2020-10-15 2021-01-19 浪潮商用机器有限公司 Method, device and equipment for acquiring memory information and computer readable storage medium
CN113065048A (en) * 2021-02-26 2021-07-02 山东英信计算机技术有限公司 BMC Web automatic detection method, system and medium based on Web crawler
CN113065048B (en) * 2021-02-26 2023-03-21 山东英信计算机技术有限公司 BMC Web automatic detection method, system and medium based on Web crawler
CN113342694A (en) * 2021-07-08 2021-09-03 中国工商银行股份有限公司 Test case processing method and device based on block chain

Also Published As

Publication number Publication date
CN106569951B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN106569951A (en) Web test method independent of page
CN101222349B (en) Method and system for collecting web user action and performance data
RU2648966C2 (en) Apparatus and method for processing multiple open api
CN103067214B (en) For testing the method for web site performance, client, server and system
CN108399114A (en) A kind of system performance testing method, apparatus and storage medium
CN103428042B (en) Server is carried out the method and system of stress test
CN108304410A (en) A kind of detection method, device and the data analysing method of the abnormal access page
CN108696481A (en) leak detection method and device
CN104573520B (en) The method and apparatus for detecting resident formula cross site scripting loophole
CN107172081A (en) A kind of method and apparatus of data check
CN108521353A (en) Processing method, equipment and the readable storage medium storing program for executing of positioning performance bottleneck
CN109446075A (en) Interface testing method and device
CN109729044A (en) A kind of general internet data acquisition is counter to climb system and method
CN110377522A (en) The test method for scene of trading, calculates equipment and medium at device
CN106897207A (en) Ui testing method and apparatus
CN107766509A (en) A kind of method and apparatus of webpage static backup
CN105068876A (en) Method for acquiring mobile phone APP performance data based on distributed true phones
US20170220218A1 (en) Automatic Generation of Regular Expression Based on Log Line Data
CN105117340B (en) URL detection methods and device for iOS browser application quality evaluations
CN112956157A (en) System and method for tracking client device events
CN105868956A (en) Data processing method and device
CN115150377A (en) Method and device for calling and processing simulation interface
CN107368399A (en) Webpage monitoring method and system on a kind of line
CN107040434A (en) Terminal computer actual bandwidth remote centralized acquisition system and method
CN109146561A (en) Recognition methods, device and the server of the network user

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant