CN103377127B - The development and testing system of web page product, method of testing and device - Google Patents

The development and testing system of web page product, method of testing and device Download PDF

Info

Publication number
CN103377127B
CN103377127B CN201210133936.2A CN201210133936A CN103377127B CN 103377127 B CN103377127 B CN 103377127B CN 201210133936 A CN201210133936 A CN 201210133936A CN 103377127 B CN103377127 B CN 103377127B
Authority
CN
China
Prior art keywords
test
page elements
test case
web page
user
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.)
Active
Application number
CN201210133936.2A
Other languages
Chinese (zh)
Other versions
CN103377127A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210133936.2A priority Critical patent/CN103377127B/en
Publication of CN103377127A publication Critical patent/CN103377127A/en
Priority to HK13114273.4A priority patent/HK1186809A1/en
Application granted granted Critical
Publication of CN103377127B publication Critical patent/CN103377127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of development and testing system of web page product, method of testing and device, according to the technical scheme of the embodiment of the present application, received by the test frame be embedded in web page product and store the test case that user inputs for page elements, and according to the test case that user selects, page elements is carried out to test operation, obtains test result, can merge to the test job of web page product and development under same resource platform, the progress of test job can be accelerated, shorten the cycle of test job; And developer only needs design test case just can carry out test job, specially for test case writes test code, need not can reduce numerous and diverse degree of test job, improve the efficiency of test job; Thus the development to web page product that exists in prior art can be solved and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.

Description

The development and testing system of web page product, method of testing and device
Technical field
The application relates to network technology, particularly, relates to a kind of development and testing system of web page product, method of testing and device.
Background technology
At present, in the process of Website development, test is carried out to development and to be absolutely necessary link.Test job needs to write test code and test case for the product developed, and on the special testing server disposed, whether testing results code and test case meet specific demand to detect the product developed.
But, day by day complicated at present along with web site architecture system, test period constantly elongating, testing cost constantly increases, testing efficiency constantly reduces.In test job, new product is needed to dispose new test environment, so not only increase hardware cost, also make test job become loaded down with trivial details, increase the complexity of test, reduce the efficiency of test.The product complicated and huge for framework, the work of writing of test code and test case is also correspondingly complicated and loaded down with trivial details, for the new product continually developing out, need constantly to write new test code and test case, so just elongated test period, reduced testing efficiency.Thus under current development and testing environment, the progress of test job falls behind, cost is soaring, inefficiency, can not meet the demand of development far away.
Visible, exist in the prior art and the development of web page product and test job are separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of development and testing system of web page product, in order to solve the development to web page product that exists in prior art and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
Accordingly, the embodiment of the present application additionally provides a kind of method of testing and device of web page product.
The embodiment of the present application comprises following technical scheme:
A development and testing system for web page product, comprising: Development Framework, also comprises: be embedded in the test frame in web page product, part flow arrangement; Part flow arrangement, for identifying the request of user, under identification request comprises the Main Domain of test frame in web page product during pre-assigned address, test frame is mail in request, under identification request comprises the Main Domain of Development Framework in web page product during pre-assigned address, Development Framework is mail in request; Test frame, for being triggered when receiving and arriving the above-mentioned request from part flow arrangement, receiving and storing the test case of user for the page elements input in the webpage to be measured of web page product; Wherein, test case comprises the test operation performed page elements; The test case selected in stored test case according to user and selected test case for the mark of page elements, in web page product, locate the page elements of the mark correspondence of this page elements; Performing to locating the page elements obtained the test operation indicated in selected test case, obtaining test result.
A method of testing for web page product, comprising: under user's access is for the Main Domain of test frame in web page product during pre-assigned address, trigger the test frame be embedded in web page product; Test frame after triggering receives and stores the test case of user for the page elements input in the webpage to be measured of web page product; Wherein, test case comprises the test operation performed page elements; The test case selected in stored test case according to user and selected test case for the mark of page elements, the page elements of the mark correspondence of this page elements is located in web page product, performing to locating the page elements obtained the test operation indicated in selected test case, obtaining test result.
A kind of proving installation of web page product, proving installation is embedded in web page product, and there is pre-assigned address under the Main Domain of web page product, this proving installation comprises: test case management unit, for receiving and storing the test case of user for the page elements input in the webpage to be measured of web page product; Wherein, test case comprises the test operation performed page elements; Object management unit, for the test case selected in the test case that stores at test case management unit according to user and selected test case for page elements mark, in web page product, locate the page elements of the mark correspondence of this page elements; Test execution unit, performing for locating to object management unit the page elements obtained the test operation indicated in selected test case, obtaining test result.
According to the technical scheme of the embodiment of the present application, in advance test frame is embedded in web page product, and be the pre-assigned address of test frame under the Main Domain of web page product, the web page product and Development Framework that comprise test frame are deployed on same server, received by test frame and store the test case that user inputs for page elements, and according to the test case that user selects, test operation is carried out to page elements, obtain test result, can merge to the test job of web page product and development under same resource platform, developer is tested the web page product developed in time, thus the progress of test job can be accelerated, shorten the cycle of test job, and by the test frame that the embodiment of the present application provides, developer only needs design test case just can carry out test job, specially for test case writes test code, thus numerous and diverse degree of test job, the efficiency of raising test job need not can be reduced, thus the technical scheme that the embodiment of the present application provides can solve the development to web page product that exists in prior art and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
The further feature of the application and advantage will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the application.The object of the application and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
The structural framing schematic diagram of the development and testing system of the web page product that Fig. 1 provides for the embodiment of the present application;
Fig. 2 for part flow arrangement shown in Fig. 1 specifically implement in fundamental diagram;
The workflow diagram of the method for testing of the web page product that Fig. 3 provides for the embodiment of the present application;
Fig. 4 is the workflow diagram of the preferred implementation of method shown in Fig. 3;
The display page structural representation of the test frame that Fig. 5 provides for the embodiment of the present application;
The structured flowchart of the proving installation of the web page product that Fig. 6 provides for application embodiment.
Embodiment
Be described below in conjunction with the embodiment of accompanying drawing to the application, should be appreciated that embodiment described herein is only for instruction and explanation of the application, and be not used in restriction the application.
In the prior art at present, to in the test job of web page product, have that test job progress falls behind, cost rises, inefficiency, can not meet the problem of the demand of development, the embodiment of the present application provides a solution for this problem, namely to the testing scheme of web page product.
The embodiment of the present application provide in the testing scheme of web page product, in advance test frame is embedded in web page product, and be the pre-assigned address of test frame under the Main Domain of web page product, the web page product and Development Framework that comprise test frame are deployed on same server, received by test frame and store the test case that user inputs for page elements, and according to the test case that user selects, test operation is carried out to page elements, obtain test result, can merge to the test job of web page product and development under same resource platform, developer is tested the web page product developed in time, thus the progress of test job can be accelerated, shorten the cycle of test job, the test frame developer provided by the embodiment of the present application only needs design test case just can carry out test job, specially for test case writes test code, thus need not can reduce numerous and diverse degree of test job, the efficiency of raising test job, thus the technical scheme that the embodiment of the present application provides can solve the development to web page product that exists in prior art and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
Below the embodiment of the present application is described in detail.
Fig. 1 shows the structural framing of the development and testing system of the web page product that the embodiment of the present application provides, as shown in Figure 1, this system comprises Development Framework 1, the test frame (BIT be embedded in web page product, BuildinTest) 2, part flow arrangement 3, preferably, described web page product, Development Framework 1, test frame 2, part flow arrangement 3 are arranged in same server.
Part flow arrangement 3, for identifying the request of user, under identification request comprises the Main Domain of test frame 2 in web page product during pre-assigned address, request is mail to test frame 2, under identification request comprises the Main Domain of Development Framework 1 in web page product during pre-assigned address, request is mail to Development Framework 1;
Test frame 2, is connected to part flow arrangement 3, for being triggered when receiving the request from part flow arrangement 3, receiving and storing the test case of user for the page elements input in the webpage to be measured of web page product; Wherein, test case comprises the test operation performed page elements; The test case selected in stored test case according to user and selected test case for page elements mark, in web page product, locate the page elements of the mark correspondence of this page elements; Performing to locating the page elements obtained the test operation indicated in selected test case, obtaining test result.
A kind of preferred mode, can be embedded in test frame 2 in web page product in advance by the mode in two side storehouses.Particularly, after test frame 2 has been built, test frame 2 is stored on the remote server, test frame 2 memory address is on the remote server write in the packing inventory file of web page product, in item objects model (POM, ProjectObjectModel) file, such as write the memory address of test frame 2.And be test frame 2 allocation address under the Main Domain of web page product, this address can be the subdirectory name under web page product Main Domain, such as, the Main Domain of web page product is http://a.net, and the address distributed for test frame is: http://a.nebit/index.htm.When packing to web page product, strapping tool is according to the memory address of packing inventory file test frame 2, test frame 2 is downloaded to this locality at web page product place from remote server, test frame 2 is bundled in web page product bag, is also embedded in web page product by test frame.Follow-up startup web page product bag can conduct interviews to test frame 2.
In the concrete process implemented, owing in advance test frame being embedded in web page product, a test environment (i.e. test frame) only need be disposed like this for each web page product, follow-up the associative operation need accessed the address of test frame under web page product Main Domain and just can directly carry out testing, avoid in prior art, all to carry out the loading (comprise renewal of the page and download+check public documents and upgrade and download+load the public page+load public shared file) of repetition to test environment in each test job, thus the test duration can be saved significantly, rule of thumb statistical conditions, average each test case can save the test duration of 60%.
A kind of preferred mode, part flow arrangement 3 is analyzed by the HTTP request (HTTPRequest) sent browser, when HTTP request comprises the address under the Main Domain of test frame 2 in web page product, this HTTP request is sent to test frame 2, when HTTP request comprises the address of Development Framework 1 under the Main Domain in web page product, this HTTP request is sent to Development Framework 1.In the concrete process implemented, part flow arrangement 3 realizes by Servlet technology, identification to HTTP request and shunting is realized by the filter F ilter in Servlet technology, and realize the response to HTTP request by Servlet, as shown in Figure 2, the process that the request that part flow arrangement 3 couples of users send is shunted comprises the steps:
When step 21, audiomonitor Listener listen to the HTTPRequest that browser sends, this HTTPRequest is sent to the filter F ilter in part flow arrangement 3;
Step 22, Filter resolve HTTPRequest, when HTTPRequest is request (i.e. BITRequest) to test frame 2, when judging that test environment is open mode under line, this BITRequest is mail to the interface BITServlet of test frame, process proceeds to step 23; When HTTPRequest is general application request APPRequest (comprising the request to Development Framework 1), HTTPRequest is mail to this interface of application interface APPServlet(and also processes request to Development Framework), process proceeds to step 24;
When step 23, BITServlet judge user as validated user, BITrequest is mail to APPServlet;
Step 24, APPServlet are to BITrequest or the APPRequest process of user.
By system as shown in Figure 1, in advance test frame is embedded in web page product, and be the pre-assigned address of test frame under the Main Domain of web page product, the web page product and Development Framework that comprise test frame are deployed on same server, can merge to the test job of web page product and development under same resource platform, developer is tested the web page product developed in time, thus the progress of test job, the cycle of shortening test job can be accelerated.
Below the principle of work using test frame to test is described.
Fig. 3 shows the workflow diagram of the method for testing of the web page product that the embodiment of the present application provides, and as shown in Figure 1, the method comprises following processing procedure:
Step 31, in user's access under the Main Domain of test frame in web page product during pre-assigned address, trigger the test frame be embedded in web page product;
Test frame after step 32, triggering receives and stores the test case of user for the page elements input in the webpage to be measured of web page product; Wherein, test case comprises the test operation performed page elements;
Step 33, the test case selected in stored test case according to user and selected test case for the mark of page elements, the page elements of the mark correspondence of this page elements is located in web page product, performing to locating the page elements obtained the test operation indicated in selected test case, obtaining test result.
According to method as shown in Figure 3, received by the test frame be embedded in web page product and store the test case that user inputs for page elements, and according to the test case that user selects, page elements is carried out to test operation, obtains test result, developer is tested the web page product developed in time, thus the progress of test job, the cycle of shortening test job can be accelerated; And developer only needs design test case just can carry out test job, specially for test case writes test code, thus numerous and diverse degree of test job, the efficiency of raising test job need not can be reduced; Thus the technical scheme that the embodiment of the present application provides can solve the development to web page product that exists in prior art and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
Fig. 4 shows the workflow diagram of the preferred implementation of method shown in Fig. 3, and as shown in Figure 4, this preferred implementation comprises following processing procedure:
Step 41, test frame are in a triggered, webpage to be measured is read in web page product, store the URL(uniform resource locator) (URL of webpage to be measured, UniversalResourceLocator), the mark of the mark of webpage to be measured that display is read and the page elements of webpage to be measured, the mark of webpage to be measured comprises title and/or the URL of webpage to be measured, and the mark of page elements comprises title and/or the finger URL of page elements, and this finger URL have recorded the positional information of page elements on webpage to be measured;
Particularly, form by tab label shows the title of webpage to be measured, actual storage be the URL of webpage to be measured, such tab label is the webpage title to be measured of bibliographic structure for user, be the webpage URL to be measured of tree construction for test frame internal processing program, be convenient to user operation and test frame internal processes like this to the operation of the page to be measured;
The mark of the page elements in step 42, the mark of the page to be measured selected in the mark of the shown mark of webpage to be measured out and the page elements of webpage to be measured for user and the page to be measured, receive and store user input test case, test case comprises the test operation of page elements execution and the test expectation value to page elements, and sets up the test point corresponding relation between the mark of the page elements in the mark of the webpage to be measured that user selects, webpage to be measured and the test case of user's input;
Particularly, similar with the display mode in step 41, user can select the webpage to be measured carrying out testing in the webpage title to be measured of the bibliographic structure shown with tab label form, the URL of the webpage to be measured that test frame is selected according to user reads this page to be measured, show user-selected webpage to be measured, and the mark of page elements in this page to be measured, the concrete condition of display can be as shown in Figure 5, as in Fig. 5, page view 501 shows the Page Name to be measured of bibliographic structure, tested page view 502 shows the page info of user-selected webpage to be measured, the title of the page elements of the page to be measured is shown in element view 503, after have selected user the page elements carrying out testing, test frame finds the finger URL of the page elements that user selects, the test operation that test frame reception user inputs in demand view 504 and test expectation value, and set up the URL of the webpage to be measured that user selects, the finger URL of the page elements in webpage to be measured, and the test operation of user's input is configured to test file with test expectation value,
Preferably, user can input multiple test case for same page elements, the dissimilar test operation that page elements is performed can be comprised in this multiple test case respectively, so just form the test point different to page elements according to dissimilar test operation;
Wherein, the type of test operation comprises: click (such as clickthrough, button click, click radio box or multiselect frame) to page elements, value (namely reads the property value of page elements, such as read the color of edit box), assignment (by character string give page elements, such as user name password is carried out to assignment, carries out assignment to edit box);
When test operation is assignment operation, also comprise in the test case of user's input and operate corresponding test data with assignment, what user inputted by test frame operate corresponding test data with assignment is stored as test data file in addition, and set up the test file of assignment operation and operate the corresponding relation between corresponding test data file with assignment, i.e. assignment data corresponding relation;
Step 43, the test case selected in stored test case according to user, determine the test file comprising this selected test case, search in the test file determined this selected test case for the mark of webpage to be measured, read the webpage to be measured of the mark correspondence of the webpage to be measured found, and according to the page elements mark in the test file determining to obtain, in the webpage to be measured read, locate the page elements that described page elements mark is corresponding;
Particularly, similar with the display mode in step 41, user can select the webpage to be measured (page view 501 as in Fig. 5) carrying out testing in the webpage title to be measured of bibliographic structure, the URL of the webpage to be measured that test frame is selected according to user reads this page to be measured, and show user-selected webpage to be measured (the tested page view 502 as in Fig. 5), and the title (the element view 503 as in Fig. 5) of page elements in this page to be measured, after user have selected the page elements carrying out testing, test frame finds the finger URL of selected page elements, and according to the URL of webpage to be measured that user selects, the finger URL of page elements, and the whole test files set up, find the webpage to be measured selected with user, the test case that page elements is corresponding, and show the content of the whole test cases found in the form of a list, namely the test operation included by test case is shown, test expectation value, and show test data in the form of a list, concrete display situation can as shown in the demand view 504 in Fig. 5, such user just clearly can check whether test case covers whole demands of test point, and when user needs to improve test case, test frame receives and stores the amendment of user to the content in test case, compared in prior art, by calling test case successively and checking the mode of the content in test case, show the content in test case in the form of a list, user is checked test case effectively and perfect, the efficiency of test job can be improved,
Step 44, multiple test cases of different test operation types that user is selected for same page elements, be different test assignments according to the type merger of test operation, each test assignment comprises the test case of same test action type, the classification of the test assignment obtained according to merger, performs to locating the same page elements that obtains the test case that each test assignment comprises successively; In the concrete process implemented, carrying out implementation of test cases according to test assignment can improve testing efficiency;
When user have selected test case to multiple page elements, can also will be different testing processs to the test case merger of different page elements, each testing process comprises the multiple test cases to same page elements, can also comprise multiple test assignments in each testing process;
Step 45, to locating before the page elements that obtains performs test operation, the webpage to be measured read comprises login task, call default HTTP request and log in, this HTTP request preset comprises predetermined log-on message;
Step 46, perform to locating the page elements that obtains the test operation indicated in selected test case; Specifically comprise: when test operation is click, click the page elements of locating and obtaining; When test operation is value, read the property value of locating the page elements obtained; When test operation carries out assignment, according to the assignment data corresponding relation set up, reading operates the test data in corresponding test data file with assignment, the test data of reading is given the page elements of locating and obtaining;
In step 46, the embodiment of the present application will be three types to the operation merger of page elements: click, value, assignment, make test frame can perform the various test operation to page elements, thus the effect of a kind of " universal test " can be reached, making user without the need to writing corresponding test code for test case, can testing efficiency be improved;
In above-mentioned steps 45,46, by the HTTP request preset for logging in and test data is stored as independent test data file, the effect be separated with test data by testing process can be played, be convenient to the maintenance to test case, renewal and amendment; By the test data file calling default HTTP request or store separately, artificial input data can also be avoided in the process of test execution and cause wasting the problem of test duration, the test duration can be shortened, improve testing efficiency; The embodiment of the present application is in the concrete process implemented, realize document dbject model (DOM by Jquery technology, DocumentObjectMode) location of element (i.e. page elements) and assignment operation and register, in the operation of single assignment, at least can save the time of 2 to 10 seconds, single register is at least saved the time of 5 seconds;
Step 47, the test expectation value in the test result obtained and described selected test case to be compared, when the test result obtained is consistent with this test expectation value, test successfully, otherwise, test crash, terminate follow-up test operation, the test case of test crash is submitted to long-range Bug management system;
Test case is submitted to long-range Bug management system when test crash, Bug management system can be made effectively to position the webpage to be measured of test crash and page elements, and in the prior art, just when test crash, alarm is sent to Bug management system by test platform, Bug management system is difficult to position the concrete condition of test crash and reappear, Bug management system is according to upper report test case in the embodiment of the present application, can the webpage to be measured of assignment test failure and page elements effectively, contribute to feeding back development;
Step 48, carry out late time data cleaning work, such as, the user profile registered in testing is deleted.
Visible by processing procedure as shown in Figure 4, the test frame that the embodiment of the present application provides effectively can manage the test case that user inputs for page elements, and the test case can selected according to user, page elements is performed and effectively tests, test duration can be shortened, improve testing efficiency, the effect of " universal test " can be played, make user without the need to working out independent test code to test case, thus the development to web page product that exists in prior art can be solved and test job is separated, testing progress falls behind, inefficiency, the problem of the demand of development can not be met.
The method of testing of the web page product that the embodiment of the present application provides, can not only be passed through hardware implementing, can also be realized by software program, namely be realized by the proving installation of following web page product.
The structural representation of the proving installation of the web page product that the embodiment of the present application provides has been shown in Fig. 6, this proving installation is embedded in web page product, and as shown in Figure 6, this proving installation comprises: test case management unit 61, object management unit 62, test execution unit 63 to have pre-assigned address under the Main Domain of web page product.
Test case management unit 61, for receiving and storing the test case of user for the page elements input in the webpage to be measured of web page product; Wherein, test case comprises the test operation performed page elements;
Object management unit 62, be connected to test case management unit 61, for the test case selected in the test case that stores at test case management unit 61 according to user and selected test case for the mark of page elements, in web page product, locate the page elements of the mark correspondence of this page elements;
Test execution unit 63, is connected to object management unit 62, performing the test operation indicated in selected test case, obtaining test result for locating to object management unit 62 page elements obtained.
The principle of work of Fig. 6 shown device as shown in Figure 2, repeats no more here.
According to device as shown in Figure 6, also can be received by the proving installation be embedded in web page product and store the test case that user inputs for page elements, and according to the test case that user selects, page elements is carried out to test operation, obtains test result, developer is tested the web page product developed in time, thus the progress of test job, the cycle of shortening test job can be accelerated; And developer only needs design test case just can carry out test job, specially for test case writes test code, thus numerous and diverse degree of test job, the efficiency of raising test job need not can be reduced; Thus the technical scheme that the embodiment of the present application provides can solve the development to web page product that exists in prior art and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
One is mode preferably, test case management unit 61, also for the mark of the page elements in: the mark of the page to be measured selected in the mark of the shown mark of webpage to be measured out and the page elements of webpage to be measured for user and the page to be measured, receive and store the test case of user's input, the mark of the page elements in the mark of webpage to be measured user selected, webpage to be measured and the test case of user's input are configured to test file; Particularly, what user inputted operates corresponding test data with assignment and is stored as test data file, and sets up the test file of assignment operation and operate the assignment data corresponding relation between corresponding test data file with assignment; For multiple test cases of the same test action type that user selects for same page elements, show the content that each test case comprises in the form of a list, receive and store the amendment of user to the content in shown test case.
Object management unit 62, specifically for: after proving installation is triggered, in web page product, read webpage to be measured, the mark of the mark of webpage to be measured that display is read and the page elements of webpage to be measured; The test case selected in the test case stored at test case management unit 61 according to user, determine the test file comprising this selected test case, search in the test file determined this selected test case for the mark of webpage to be measured, read the webpage to be measured of the mark correspondence of the webpage to be measured found, and according to the page elements mark determined in test file, in the webpage to be measured read, locate the page elements that described page elements mark is corresponding.
Test execution unit 63, also for: by multiple test cases of the different test operation types that user selects for same page elements, be different test assignments according to the type merger of test operation, each test assignment comprises the test case of same test action type, the classification of the test assignment obtained according to merger, locates to described object management unit 62 the same page elements obtained and performs the test case that each test assignment comprises successively; Before the page elements obtained location performs test operation, the webpage to be measured read comprises login task, call default HTTP request and log in, this HTTP request preset comprises predetermined log-on message; When performing test operation, when test operation be page elements is clicked, click the page elements of locating and obtaining, be value is carried out to page elements at test operation, read the property value of locating the page elements obtained, be assignment is carried out to page elements at test operation, according to the assignment data corresponding relation set up, reading operates the test data in corresponding test data file with assignment, the test data of reading is given the page elements of locating and obtaining; Test expectation value in the test result obtained and selected test case is compared, when the test result obtained is consistent with this test expectation value, tests successfully, otherwise, test crash, terminates follow-up test operation, and the test case of test crash is submitted to long-range Bug management system.
The preferred implementation mode of device described in Fig. 6, as shown in Figure 4, repeats no more here.
In sum, the embodiment of the present application provide in the testing scheme of web page product, in advance test frame is embedded in web page product, and be the pre-assigned address of test frame under the Main Domain of web page product, the web page product and Development Framework that comprise test frame are deployed on same server, received by test frame and store the test case that user inputs for page elements, and according to the test case that user selects, test operation is carried out to page elements, obtain test result, can merge to the test job of web page product and development under same resource platform, developer is tested the web page product developed in time, thus the progress of test job can be accelerated, shorten the cycle of test job, and developer only needs design test case just can carry out test job, specially for test case writes test code, thus numerous and diverse degree of test job, the efficiency of raising test job need not can be reduced, thus the technical scheme that the embodiment of the present application provides can solve the development to web page product that exists in prior art and test job is separated, testing progress backwardness, inefficiency, the problem of the demand of development can not be met.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (12)

1. a development and testing system for web page product, comprising: Development Framework, it is characterized in that, also comprise: be embedded in the test frame in described web page product, part flow arrangement;
Described part flow arrangement, for identifying the request of user, described test frame is comprised under the Main Domain of described web page product during pre-assigned address in identification described request, described request is mail to described test frame, comprise described Development Framework under the Main Domain of described web page product in identification described request and, during pre-assigned address, described request is mail to described Development Framework;
Described test frame, for being triggered when receiving the request from described part flow arrangement, receiving and storing the test case of user for the page elements input in the webpage to be measured of described web page product; Wherein, described test case comprises the test operation performed page elements; According to selected test case and described selected test case for the mark of page elements, in described web page product, locate the page elements of the mark correspondence of this page elements; Wherein, the test case selected in stored test case for user of described selected test case; Performing to locating the page elements obtained the test operation indicated in described selected test case, obtaining test result.
2. system according to claim 1, is characterized in that, described part flow arrangement, also for:
Comprise described test frame under the Main Domain of described web page product during pre-assigned address in identification described request, to judge under line test environment be open mode and described user as validated user when, described request is mail to described test frame.
3. a method of testing for web page product, is characterized in that, comprising:
Under user's access is for the Main Domain of test frame in web page product during pre-assigned address, trigger the described test frame be embedded in described web page product;
Described test frame after triggering receives and stores the test case of user for the page elements input in the webpage to be measured of described web page product; Wherein, described test case comprises the test operation performed page elements;
According to selected test case and described selected test case for the mark of page elements, the page elements of the mark correspondence of this page elements is located in described web page product, performing to locating the page elements obtained the test operation indicated in described selected test case, obtaining test result; Wherein, the test case selected in stored test case for user of described selected test case.
4. method according to claim 3, is characterized in that, described method also comprises:
Described test frame in a triggered, reads described webpage to be measured in described web page product, the mark of the mark of webpage described to be measured that display is read and the page elements of described webpage to be measured;
Receive and store the test case of user for the page elements input in the webpage to be measured of described web page product, specifically comprising:
The mark of the page elements in the mark of the page to be measured selected in the mark of shown webpage described to be measured out for user and the page to be measured, receive and store the test case of user's input, the mark of the page elements in the mark of webpage to be measured user selected, webpage to be measured and the test case of input are configured to test file.
5. method according to claim 4, it is characterized in that, the test case selected in stored test case according to user and described selected test case for the mark of page elements, in described web page product, locate the page elements of the mark correspondence of this page elements, specifically comprise:
According to the test case that user selects in stored test case, determine the test file comprising this selected test case, search in the test file determined this selected test case for the mark of webpage to be measured, read the webpage to be measured of the mark correspondence of the webpage to be measured found, and according to the page elements mark in the test file determining to obtain, in the webpage to be measured read, locate the page elements that described page elements mark is corresponding.
6. method according to claim 5, is characterized in that, described method also comprises:
Before the page elements obtained location performs test operation, the webpage to be measured read comprises login task, call default HTTP request and log in, this HTTP request preset comprises predetermined log-on message.
7. method according to claim 4, is characterized in that, the type of described test operation comprises: click page elements, page elements carried out to value, carry out assignment to page elements; When the type of described test operation is assignment, described test case also comprise user input operate corresponding test data with assignment;
Performing to locating the page elements obtained the test operation indicated in described selected test case, possessing and comprising:
When the test operation that described selected test case comprises be page elements is clicked, click and locate the page elements that obtains;
Be value is carried out to page elements at the test operation that described selected test case comprises, read the property value of locating the page elements obtained;
Being assignment is carried out to page elements at the test operation that described selected test case comprises, giving the page elements of locating and obtaining by operating corresponding test data with assignment.
8. method according to claim 7, it is characterized in that, store the test case of user for the page elements input in the webpage to be measured of described web page product, also comprise: what user inputted operates corresponding test data with assignment and be stored as test data file, and set up the test file of assignment operation and operate the assignment data corresponding relation between corresponding test data file with assignment;
The page elements of locating and obtaining is given by operating corresponding test data with assignment, specifically comprise: according to the assignment data corresponding relation set up, reading operates the test data in corresponding test data file with assignment, the test data of reading is given the page elements of locating and obtaining.
9. method according to claim 7, is characterized in that, described method also comprises:
By multiple test cases of the different test operation types that user selects for same page elements, be different test assignments according to the type merger of test operation, each test assignment comprises the test case of same test action type;
The classification of the test assignment obtained according to merger, performs to locating the described same page elements that obtains the test case that each test assignment comprises successively.
10. method according to claim 7, is characterized in that, described method also comprises:
For multiple test cases that user selects for same page elements, show the content that each test case comprises in the form of a list;
Receive and store the amendment of user to the content in shown test case.
11. methods according to claim 3, is characterized in that, also comprise in described test case: to the test expectation value of page elements;
Described method also comprises: the test expectation value in the test result obtained and described selected test case compared, when the test result obtained is consistent with this test expectation value, test successfully, otherwise, test crash, terminate follow-up test operation, the test case of test crash is submitted to long-range Bug management system.
The proving installation of 12. 1 kinds of web page product, is characterized in that, described proving installation is embedded in web page product, and has pre-assigned address under the Main Domain of described web page product, and described proving installation comprises:
Test case management unit, for receiving and storing the test case of user for the page elements input in the webpage to be measured of described web page product; Wherein, described test case comprises the test operation performed page elements;
Object management unit, for according to selected test case and described selected test case for the mark of page elements, in described web page product, locate the page elements of the mark correspondence of this page elements; Wherein, the test case selected in the test case that described selected test case stores at described test case management unit for user;
Test execution unit, performs for locating the page elements obtained to described object management unit the test operation indicated in described selected test case, obtains test result.
CN201210133936.2A 2012-04-28 2012-04-28 The development and testing system of web page product, method of testing and device Active CN103377127B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210133936.2A CN103377127B (en) 2012-04-28 2012-04-28 The development and testing system of web page product, method of testing and device
HK13114273.4A HK1186809A1 (en) 2012-04-28 2013-12-25 Webpage product developing and testing system, testing method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210133936.2A CN103377127B (en) 2012-04-28 2012-04-28 The development and testing system of web page product, method of testing and device

Publications (2)

Publication Number Publication Date
CN103377127A CN103377127A (en) 2013-10-30
CN103377127B true CN103377127B (en) 2016-04-13

Family

ID=49462277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210133936.2A Active CN103377127B (en) 2012-04-28 2012-04-28 The development and testing system of web page product, method of testing and device

Country Status (2)

Country Link
CN (1) CN103377127B (en)
HK (1) HK1186809A1 (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331369B (en) * 2014-11-21 2019-10-15 北京奇虎科技有限公司 Page detection method and device, server based on browser
CN105760290B (en) * 2014-12-17 2018-11-13 阿里巴巴集团控股有限公司 The problem of being tested based on webpage front-end localization method and relevant apparatus, system
CN105868096B (en) * 2015-01-22 2019-09-10 阿里巴巴集团控股有限公司 For showing the method, device and equipment of web page test result in a browser
CN104809064B (en) * 2015-04-24 2018-08-10 百度在线网络技术(北京)有限公司 The webpage representation test method and device of browser
CN105159825A (en) * 2015-08-20 2015-12-16 上海斐讯数据通信技术有限公司 Web testing method and system
CN105260318B (en) * 2015-11-25 2018-04-03 飞天诚信科技股份有限公司 A kind of automated testing method and device based on webpage
CN105320603B (en) * 2015-12-04 2018-04-06 上海斐讯数据通信技术有限公司 The alignment system and method and its automated testing method of browser page element
CN105574416A (en) * 2015-12-16 2016-05-11 北京神州绿盟信息安全科技股份有限公司 Detection method and device of browser bug
CN105608007B (en) * 2015-12-28 2018-04-13 北京致远互联软件股份有限公司 Page model, user interface automated testing method and device
CN106372782A (en) * 2016-08-26 2017-02-01 重庆蓝盾电子技术服务公司 Working method of vehicle management, check and test system
CN106330925A (en) * 2016-08-26 2017-01-11 重庆蓝盾电子技术服务公司 Working method for controlling a vehicle management and check test system on cloud
CN106649090A (en) * 2016-10-10 2017-05-10 上海瀚之友信息技术服务有限公司 Automated test system and method
CN107943682A (en) * 2016-10-13 2018-04-20 北京国双科技有限公司 Submit the method and device of bug
CN106991045A (en) * 2017-03-24 2017-07-28 广州酷狗计算机科技有限公司 Page method of calibration and device
CN107256195B (en) * 2017-06-08 2019-01-29 武汉斗鱼网络科技有限公司 Webpage front-end test method and device
CN107357735A (en) * 2017-07-20 2017-11-17 万帮充电设备有限公司 Discount method of testing and device
CN107861867A (en) * 2017-10-24 2018-03-30 阿里巴巴集团控股有限公司 Page fault monitoring method, device, system and electronic equipment
CN110347577B (en) * 2018-04-04 2024-04-09 阿里巴巴集团控股有限公司 Page testing method, device and equipment thereof
CN108845929A (en) * 2018-05-07 2018-11-20 北京三快在线科技有限公司 Page performance test method and apparatus
CN109067726B (en) * 2018-07-24 2021-04-13 北京知道创宇信息技术股份有限公司 Identification method and device for station building system, electronic equipment and storage medium
CN109165170B (en) * 2018-10-16 2022-03-11 杭州安恒信息技术股份有限公司 Method and system for automatic request test
CN109491906A (en) * 2018-11-05 2019-03-19 郑州云海信息技术有限公司 A kind of testing case management and system
CN109558323B (en) * 2018-11-30 2022-04-12 百度在线网络技术(北京)有限公司 System, method and apparatus for debugging pages
CN109582580B (en) * 2018-11-30 2022-04-12 百度在线网络技术(北京)有限公司 System, method and apparatus for debugging pages
CN110209579B (en) * 2019-05-28 2023-06-06 Oppo广东移动通信有限公司 Test method and electronic device
CN110347591A (en) * 2019-06-19 2019-10-18 平安普惠企业管理有限公司 Method, apparatus, electronic equipment and storage medium based on use-case test macro
CN113553254A (en) * 2020-04-24 2021-10-26 阿里巴巴集团控股有限公司 Page testing method and device and electronic equipment
CN113806210B (en) * 2020-06-16 2024-07-26 北京字节跳动网络技术有限公司 Test method, test equipment, test system and storage medium
CN112015643A (en) * 2020-08-25 2020-12-01 广州鲁邦通物联网科技有限公司 Method, system, device and storage medium for processing test information
CN112100086B (en) * 2020-11-17 2021-02-26 深圳市房多多网络科技有限公司 Software automation test method, device, equipment and computer readable storage medium
CN113448839B (en) * 2020-12-24 2024-01-26 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium
CN112527688B (en) * 2021-01-18 2021-12-17 杭银消费金融股份有限公司 Test case processing method and system for page elements

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
CN101882107A (en) * 2010-06-28 2010-11-10 山东中创软件商用中间件股份有限公司 Method and device for automatically testing WEB (World Wide Web) application
CN102043621A (en) * 2010-12-01 2011-05-04 北京迅捷英翔网络科技有限公司 Webpage development method based on Javascript tag library

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694181B2 (en) * 2005-12-12 2010-04-06 Archivas, Inc. Automated software testing framework

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
CN101882107A (en) * 2010-06-28 2010-11-10 山东中创软件商用中间件股份有限公司 Method and device for automatically testing WEB (World Wide Web) application
CN102043621A (en) * 2010-12-01 2011-05-04 北京迅捷英翔网络科技有限公司 Webpage development method based on Javascript tag library

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Web系统测试用例自动执行系统;贾丽等;《计算机工程与应用》;20091231;第45卷(第4期);第82-85页 *
基于TTCN-3的Web Service测试方法;王恩雷等;《计算机工程》;20090630;第35卷(第11期);第59-61页 *
基于用户行为和会话的Web应用测试方法;武晋南,高建华;《计算机工程》;20100430;第36卷(第8期);第83-85页 *

Also Published As

Publication number Publication date
HK1186809A1 (en) 2014-03-21
CN103377127A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103377127B (en) The development and testing system of web page product, method of testing and device
CN105095059B (en) A kind of method and apparatus of automatic test
CN103338254B (en) Terminal across application pushing method, device, terminal and system
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN112491602B (en) Behavior data monitoring method and device, computer equipment and medium
WO2017140227A1 (en) Method and system for realizing mobile device data tracking using software development kit
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
CN109614157A (en) A kind of configuration method of system, device and storage medium
CN112241360B (en) Test case generation method, device, equipment and storage medium
CN107608874A (en) Method of testing and device
CN104461856A (en) Performance test method, device and system based on cloud computing platform
CN110221968A (en) Method for testing software and Related product
CN108959059A (en) A kind of test method and test platform
US11138645B2 (en) Virtualized services discovery and recommendation engine
CN112394908A (en) Method and device for automatically generating embedded point page, computer equipment and storage medium
CN109327355A (en) Cloud storage system performance evaluation methodology, device and computer readable storage medium
CN105718533A (en) Information pushing method and device
CN111782317A (en) Page testing method and device, storage medium and electronic device
CN107102928A (en) Application crash information reporting method and device
CN112131224A (en) Application installation package processing and installation source determining method, device and traceability system
CN111949522A (en) User interface automatic testing method and device
CN112835808A (en) Interface testing method and device, computer equipment and storage medium
CN105094857A (en) Method and system used for loading applications
CN110244934B (en) Method and device for generating product demand document and test information
CN116451271A (en) Automatic privacy policy extraction method for application software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1186809

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1186809

Country of ref document: HK