CN103377127A - Development testing system, testing method and device for webpage product - Google Patents

Development testing system, testing method and device for webpage product Download PDF

Info

Publication number
CN103377127A
CN103377127A CN2012101339362A CN201210133936A CN103377127A CN 103377127 A CN103377127 A CN 103377127A CN 2012101339362 A CN2012101339362 A CN 2012101339362A CN 201210133936 A CN201210133936 A CN 201210133936A CN 103377127 A CN103377127 A CN 103377127A
Authority
CN
China
Prior art keywords
test
page elements
webpage
test case
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.)
Granted
Application number
CN2012101339362A
Other languages
Chinese (zh)
Other versions
CN103377127B (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

Images

Abstract

The invention discloses a development testing system, a testing method and a device for a webpage product. According to the technical scheme of an embodiment of the invention, a testing case inputted by a user for page elements is received and stored by a testing frame embedded into the webpage product, the page elements are tested according to the testing case selected by the user to obtain a testing result, testing and development for the webpage product can be integrated on the same resource platform, testing progress can be accelerated, testing period can be shortened, a developer can perform testing only by designing the testing case without specially writing testing codes for the testing case, testing complexity can be reduced, and testing efficiency can be improved, so that the problems that development and testing for the webpage product are separated, the testing progress is backward, testing efficiency is low and development requirements cannot be met in the prior art can be solved.

Description

Development and testing system, method of testing and the device of webpage product
Technical field
The application relates to network technology, particularly, relates to a kind of development and testing system, method of testing and device of webpage product.
Background technology
At present, in the process of Website development, development is tested the link that is absolutely necessary.Test job need to be write test code and test case for the product that develops, and on the special testing server of disposing, whether operation test code and test case satisfy specific demand with the product that detection develops.
But, present day by day complicated along with the web site architecture system, test period constantly elongate, testing cost constantly increases, testing efficiency constantly reduces.Need to dispose new test environment for new product in the test job, so not only strengthen hardware cost, also make test job become loaded down with trivial details, strengthen the complexity of testing, reduced the efficient of testing.Complicated and the huge product 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 of continually developing out, need to constantly write new test code and test case, so just elongate test period, reduced testing efficiency.Thereby under present development and testing environment, the progress of test job falls behind, cost is soaring, inefficiency, can not satisfy the demand of development far away.
As seen, exist in the prior art development and test job to the webpage product to be separated, testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of development and testing system of webpage product, be separated in order to solve development and the test job to the webpage product that exist in the prior art, testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
Accordingly, the embodiment of the present application also provides a kind of method of testing and device of webpage product.
The embodiment of the present application comprises following technical scheme:
A kind of development and testing system of webpage product comprises: Development Framework also comprises: be embedded in test frame, part flow arrangement in the webpage product; Part flow arrangement, be used for user's request is identified, comprise that in identification request test frame is under the Main Domain of webpage product during pre-assigned address, test frame is mail in request, comprise that in identification request Development Framework during pre-assigned address, mails to Development Framework with request under the Main Domain of webpage product; Test frame is used for being triggered when arriving above-mentioned request from part flow arrangement receiving, and receives also the storage user for the test case of the input of the page elements in the webpage to be measured of webpage product; Wherein, test case comprises the test operation that page elements is carried out; The test case of in the test case of storing, selecting according to the user and selected test case for the sign of page elements, the page elements of the sign correspondence of this page elements of location in the webpage product; The page elements that the location is obtained is carried out the test operation of selected test case indicating, obtains test result.
A kind of method of testing of webpage product comprises: during pre-assigned address, trigger the test frame that is embedded in the webpage product for test frame in user access under the Main Domain of webpage product; The test case that test frame after the triggering receives and the storage user inputs for the page elements in the webpage to be measured of webpage product; Wherein, test case comprises the test operation that page elements is carried out; The test case of in the test case of storing, selecting according to the user and selected test case for the sign of page elements, the page elements of the sign correspondence of this page elements of location in the webpage product, the page elements that the location is obtained is carried out the test operation of selected test case indicating, obtains test result.
A kind of proving installation of webpage product, proving installation is embedded in the webpage product, and has a pre-assigned address under the Main Domain of webpage product, this proving installation comprises: the test case management unit is used for receiving and storing the user for the test case of the page elements input of the webpage to be measured of webpage product; Wherein, test case comprises the test operation that page elements is carried out; The Object Management group unit, be used for the test case selected according to the test case that the user stores in the test case management unit and selected test case institute for the page elements sign, in the webpage product, locate the page elements of the sign correspondence of this page elements; The test execution unit is used for the page elements that the Object Management group cell location obtains is carried out the test operation of selected test case indicating, obtains test result.
Technical scheme according to the embodiment of the present application, test frame is embedded in the webpage product in advance, and be the pre-assigned address of test frame under the Main Domain of webpage product, webpage product and the Development Framework that will comprise test frame are deployed on the same server, by the test case that test frame receives and the storage user inputs for page elements, and according to the test case of user selection page elements is carried out test operation, obtain test result, test job and development to the webpage product can be merged under same resource platform, the developer can be tested the webpage product that develops in time, thereby can accelerate the progress of test job, shorten the cycle of test job; And by the test frame that the embodiment of the present application provides, the developer only needs design test case just can carry out test job, need not write test code for test case specially, thereby can reduce numerous and diverse degree of test job, the efficient of raising test job; Thereby the technical scheme that the embodiment of the present application provides can solve development and the test job to the webpage product that exist in the prior art and be separated, and testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
The application's further feature and advantage will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the application.The application's purpose and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Description of drawings
The structural framing synoptic diagram of the development and testing system of the webpage product that Fig. 1 provides for the embodiment of the present application;
Fig. 2 is the fundamental diagram in the part flow arrangement implementation shown in Fig. 1;
The workflow diagram of the method for testing of the webpage 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 Figure 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 webpage product that provides of application embodiment is provided Fig. 6.
Embodiment
Embodiment to the application describes below in conjunction with accompanying drawing, should be appreciated that embodiment described herein only is used for description and interpretation the application, and is not used in restriction the application.
In the prior art at present, in the test job to the webpage product, have that the test job progress falls behind, cost is soaring, inefficiency, can not satisfy 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 webpage product.
In the testing scheme to the webpage product that the embodiment of the present application provides, test frame is embedded in the webpage product in advance, and be the pre-assigned address of test frame under the Main Domain of webpage product, webpage product and the Development Framework that will comprise test frame are deployed on the same server, by the test case that test frame receives and the storage user inputs for page elements, and according to the test case of user selection page elements is carried out test operation, obtain test result, test job and development to the webpage product can be merged under same resource platform, the developer can be tested the webpage product that develops in time, thereby can accelerate the progress of test job, shorten the cycle of test job; The test frame developer who provides by the embodiment of the present application only needs design test case just can carry out test job, need not write test code for test case specially, thereby can reduce numerous and diverse degree of test job, the efficient of raising test job; Thereby the technical scheme that the embodiment of the present application provides can solve development and the test job to the webpage product that exist in the prior art and be separated, and testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
The below is elaborated to the embodiment of the present application.
Fig. 1 shows the structural framing of the development and testing system of the webpage product that the embodiment of the present application provides, as shown in Figure 1, this system comprises Development Framework 1, is embedded in the test frame (BIT in the webpage product, Buildin Test) 2, part flow arrangement 3, preferably, described webpage product, Development Framework 1, test frame 2, part flow arrangement 3 are arranged in same server.
Part flow arrangement 3, be used for user's request is identified, comprise that in identification request test frame 2 is under the Main Domain of webpage product during pre-assigned address, test frame 2 is mail in request, comprise that in identification request Development Framework 1 during pre-assigned address, mails to Development Framework 1 with request under the Main Domain of webpage product;
Test frame 2 is connected to part flow arrangement 3, is used for being triggered when the request that receives from part flow arrangement 3, receives also the storage user for the test case of the input of the page elements in the webpage to be measured of webpage product; Wherein, test case comprises the test operation that page elements is carried out; The test case of in the test case of storing, selecting according to the user and selected test case for the page elements sign, the page elements of the sign correspondence of this page elements of location in the webpage product; The page elements that the location is obtained is carried out the test operation of selected test case indicating, obtains test result.
A kind of preferred mode can be embedded in test frame 2 in the webpage product in advance by the mode in two side storehouses.Particularly, to test frame 2 make up finish after, test frame 2 is stored on the remote server, in the packing inventory file of webpage product, write the memory address of test frame 2 on remote server, for example in item objects model (POM, Project Object Model) file, write the memory address of test frame 2.And be that test frame 2 distributes the address under the Main Domain of webpage product, this address can be the subdirectory name under the webpage product Main Domain, for example, the Main Domain of webpage product is http://a.net, and the address of distributing for test frame is: http://a.nebit/index.htm.When the webpage product is packed, strapping tool is according to the memory address of packing inventory file test frame 2, test frame 2 is downloaded to from the remote server this locality at webpage product place, test frame 2 is bundled in the webpage product bag, also be about to test frame and be embedded in the webpage product.Follow-up startup webpage product bag can conduct interviews to test frame 2.
In the process of implementation, owing to test frame has been embedded in the webpage product in advance, only need dispose a test environment (being test frame) for each webpage product like this, follow-up associative operation that needs the address of access test frame under webpage product Main Domain just can directly test, avoided in the prior art, in each test job, all to carry out to test environment the loading (comprise renewal of the page and download+check public documents and upgrade and download+load the public shared file of the public page+load) of repetition, thereby can save the test duration significantly, statistical conditions rule of thumb, on average each test case can save for 60% test duration.
A kind of preferred mode, part flow arrangement 3 is analyzed by the HTTP request (HTTPRequest) that browser is sent, when comprising the address of test frame 2 under the Main Domain of webpage product in the HTTP request, this HTTP request is sent to test frame 2, when in the HTTP request, comprising Development Framework 1 in the address under the Main Domain of webpage product, this HTTP request is sent to Development Framework 1.In the process of implementation, part flow arrangement 3 can be realized by the Servlet technology, realize identification and shunting to HTTP request by the filter F ilter in the Servlet technology, and realize response to HTTP request by Servlet, as shown in Figure 2,3 couples of users of part flow arrangement request of sending processing of shunting comprises the steps:
When step 21, audiomonitor Listener listen to the HTTP Request that browser sends, this HTTPRequest is sent to filter F ilter in the part flow arrangement 3;
Step 22, Filter resolve HTTP Request, when HTTP Request for to the request (being BIT Request) of test frame 2 time, judge when test environment is open mode under the line, this BITRequest is mail to the interface BIT Servlet of test frame, process proceeding to step 23; Be general application request APP Request when (comprising the request to Development Framework 1) at HTTP Request, HTTP Request mail to this interface of application interface APP Servlet(also process request to Development Framework), process proceeding to step 24;
Step 23, BIT Servlet judge when the user is validated user, and BIT request is mail to APPServlet;
Step 24, APP Servlet process user's BIT request or APP Request.
By system as shown in Figure 1, test frame is embedded in the webpage product in advance, and be the pre-assigned address of test frame under the Main Domain of webpage product, webpage product and the Development Framework that will comprise test frame are deployed on the same server, test job and development to the webpage product can be merged under same resource platform, the developer can be tested the webpage product that develops in time, thereby can accelerate the progress of test job, the cycle of shortening test job.
The principle of work that the below tests the use test framework describes.
Fig. 3 shows the workflow diagram of the method for testing of the webpage product that the embodiment of the present application provides, and as shown in Figure 1, the method comprises following processing procedure:
Step 31, under the Main Domain of webpage product, during pre-assigned address, trigger the test frame that is embedded in the webpage product for test frame in user access;
The test case that test frame receives and the storage user inputs for the page elements in the webpage to be measured of webpage product after step 32, the triggering; Wherein, test case comprises the test operation that page elements is carried out;
Step 33, the test case of in the test case of storing, selecting according to the user and selected test case for the sign of page elements, the page elements of the sign correspondence of this page elements of location in the webpage product, the page elements that the location is obtained is carried out the test operation of selected test case indicating, obtains test result.
According to method as shown in Figure 3, by being embedded in the test case that test frame receives and the storage user inputs for page elements in the webpage product, and according to the test case of user selection page elements is carried out test operation, obtains test result, the developer can be tested the webpage product that develops in time, thereby can accelerate the progress of test job, the cycle of shortening test job; And the developer only needs design test case just can carry out test job, need not write test code for test case specially, thereby can reduce numerous and diverse degree of test job, the efficient of raising test job; Thereby the technical scheme that the embodiment of the present application provides can solve development and the test job to the webpage product that exist in the prior art and be separated, and testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
Fig. 4 shows the workflow diagram of the preferred implementation of method shown in Figure 3, and as shown in Figure 4, this preferred implementation comprises following processing procedure:
Step 41, test frame are after being triggered, in the webpage product, read webpage to be measured, store the URL(uniform resource locator) (URL of webpage to be measured, Universal Resource Locator), the sign of the sign of the webpage to be measured that demonstration is read and the page elements of webpage to be measured, the sign of webpage to be measured comprises title and/or the URL of webpage to be measured, the sign of page elements comprises title and/or the finger URL of page elements, and this finger URL has recorded the positional information of page elements on webpage to be measured;
Particularly, the title that can show by the form of tab label webpage to be measured, actual storage be the URL of webpage to be measured, the tab label is the webpage title to be measured of bibliographic structure for the user like this, be the webpage URL to be measured of tree construction for the test frame internal processing program, be convenient to like this user's operation and test frame internal processes to the operation of the page to be measured;
The sign of step 42, the page to be measured in the sign of the page elements of the sign of shown webpage to be measured out and webpage to be measured, selected for the user and the sign of the page elements in the page to be measured, receive and store the test case of user's input, test case comprises test operation that page elements is carried out and to the test expectation value of page elements, and sets up the test point corresponding relation between the test case of the sign of sign, the page elements in the webpage to be measured of the webpage to be measured of user selection and user's input;
Particularly, similar with the display mode in the step 41, the user can select the webpage to be measured tested in the webpage title to be measured of the bibliographic structure that shows with the tab label form, test frame reads this page to be measured according to the URL of the webpage to be measured of user selection, show user-selected webpage to be measured, and the sign of the page elements in this page to be measured, the concrete condition that shows can be as shown in Figure 5, in Fig. 5, page view 501 has shown the Page Name to be measured of bibliographic structure, tested page view 502 has shown the page info of user-selected webpage to be measured, the title that shows the page elements of the page to be measured in the element view 503, at user selection behind the page elements of testing, test frame finds the finger URL of the page elements of user selection, test frame receives test operation and the test expectation value that the user inputs in demand view 504, and sets up the URL of the webpage to be measured of user selection, the finger URL of the page elements in the webpage to be measured, and the test operation of user's input is configured to test file with the test expectation value;
Preferably, the user can input a plurality of test cases for same page elements, can comprise respectively the dissimilar test operation that page elements is carried out in these a plurality of test cases, so just form the test point different to page elements according to dissimilar test operations;
Wherein, the type of test operation comprises: to page elements click (for example clickthrough, button click, click radio box or multiselect frame), value (namely reads the property value of page elements, for example read the color of edit box), assignment (be about to character string give page elements, for example the user name password is carried out assignment, edit box is carried out assignment);
Be in the situation of assign operation at test operation, also comprise the test data corresponding with assign operation in the test case of user's input, test frame is stored as test data file in addition with the test data corresponding with assign operation of user's input, and set up test file and the corresponding relation between the test data file corresponding with assign operation, i.e. the assignment data corresponding relation of assign operation;
Step 43, the test case of in the test case of storing, selecting according to the user, determine to comprise the test file of this selected test case, in the test file of determining, search this selected test case for the sign of webpage to be measured, read the webpage to be measured of the sign correspondence of the webpage to be measured that finds, and according to the sign of the page elements in the test file of determining to obtain, page elements corresponding to the described page elements sign in location in the webpage to be measured that reads;
Particularly, similar with the display mode in the step 41, the user can select the webpage to be measured (such as the page view 501 among Fig. 5) tested in the webpage title to be measured of bibliographic structure, test frame reads this page to be measured according to the URL of the webpage to be measured of user selection, and show user-selected webpage to be measured (such as the tested page view 502 among Fig. 5), and the title of the page elements in this page to be measured (such as the element view 503 among Fig. 5), user selection behind the page elements of testing, test frame finds the finger URL of selected page elements, and according to the URL of the webpage to be measured of user selection, the finger URL of page elements, and whole test files of having set up, find the webpage to be measured with user selection, the test case that page elements is corresponding, and show the content of the whole test cases find with the form of tabulation, namely show the test operation that test case is included, the test expectation value, and the form demonstration test data to tabulate, concrete demonstration situation can be shown in the demand view 504 among Fig. 5, the user just can check clearly whether test case has covered whole demands of test point like this, and when the user need to improve test case, test frame received and stores the user to the modification of the content in the test case; In prior art, by calling successively test case and checking the mode of the content in the test case, show content in the test case with the form of tabulation, the user can be checked effectively and perfect to test case, can improve the efficient of test job;
A plurality of test cases of step 44, different test operation types that the user is selected for same page elements, type merger according to test operation is different test assignment, the test case that comprises the same test action type in each test assignment, the classification of the test assignment that obtains according to merger is carried out the test case that comprises in each test assignment successively to the same page elements that the location obtains; In the process of implementation, come implementation of test cases can improve testing efficiency according to test assignment;
When the user has selected test case to a plurality of page elements, can also be different testing processs with the test case merger to different page elements, comprise a plurality of test cases to same page elements in each testing process, can also comprise a plurality of test assignments in each testing process;
Step 45, before page elements that the location is obtained is carried out test operation, comprise in the situation of login task at the webpage to be measured that reads, call default HTTP request and login, comprise predetermined log-on message in this default HTTP request;
Step 46, the page elements that the location is obtained are carried out the test operation of selected test case indicating; Specifically comprise: in the situation of test operation for click, click the page elements that the location obtains; Be in the situation of value at test operation, read the property value of the page elements that the location obtains; Carry out at test operation in the situation of assignment, the assignment data corresponding relation according to setting up reads the test data in the test data file corresponding with assign operation, gives the page elements that the location obtains with the test data that reads;
In step 46, the embodiment of the present application will be three types to the operation merger of page elements: click, value, assignment, so that test frame can be carried out various test operations to page elements, thereby can reach the effect of a kind of " universal test ", so that the user need not to write corresponding test code for test case, can improve testing efficiency;
In above-mentioned steps 45,46, be used for the HTTP request of login and test data is stored as independent test data file by default, can play the effect that testing process is separated with test data, be convenient to maintenance, renewal and modification to test case; By calling default HTTP request or the independent test data file of storage, can also in the process of test execution, avoid the artificial input data and the problem that causes wasting the test duration, can shorten the test duration, improve testing efficiency; The embodiment of the present application is in the process of implementation, realize document dbject model (DOM by the Jquery technology, Document ObjectMode) location and assign operation and the register of element (being page elements), can on single assign operation, save at least 2 to 10 seconds time, on single register, save at least 5 seconds time;
Step 47, the test result that obtains and the test expectation value in the described selected test case are compared, when the test result that obtains is consistent with this test expectation value, test successfully, otherwise, test crash, finish follow-up test operation, the test case of test crash is submitted to long-range Bug management system;
When test crash, test case submitted to long-range Bug management system, the Bug management system is positioned webpage to be measured and the page elements of test crash effectively, and in the prior art, just when test crash, send alarm by test platform to the Bug management system, the very difficult concrete condition to test crash of Bug management system positions and reappears, the Bug management system is according to upper report test case in the embodiment of the present application, webpage to be measured and the page elements of assignment test failure help development is fed back effectively;
Step 48, carry out the late time data cleaning work, for example, the user profile that will register in test is deleted.
Processing procedure by as shown in Figure 4 as seen, the test frame that the embodiment of the present application provides can effectively be managed for the test case of page elements input the user, and can be according to the test case of user selection, page elements is carried out effectively test, test duration can be shortened, improve testing efficiency, can play the effect of " universal test ", so that the user need not the independent test code of test case establishment, be separated thereby can solve development and the test job to the webpage product that exist in the prior art, testing progress falls behind, inefficiency, can not satisfy the problem of the demand of development.
The method of testing of the webpage product that the embodiment of the present application provides not only can realize by hardware, can also realize by software program, namely realizes by the proving installation of following webpage product.
The structural representation of the proving installation of the webpage product that the embodiment of the present application provides has been shown among Fig. 6, this proving installation is embedded in the webpage product, and having under the Main Domain of webpage product pre-assigned address as shown in Figure 6, this proving installation comprises: test case management unit 61, Object Management group unit 62, test execution unit 63.
Test case management unit 61 is used for receiving and storing the user for the test case of the page elements input of the webpage to be measured of webpage product; Wherein, test case comprises the test operation that page elements is carried out;
Object Management group unit 62, be connected to test case management unit 61, be used for the test case selected according to the test case that the user stores in test case management unit 61 and selected test case institute for the sign of page elements, in the webpage product, locate the page elements of the sign correspondence of this page elements;
Test execution unit 63 is connected to Object Management group unit 62, is used for the page elements that 62 location, Object Management group unit obtain is carried out the test operation of selected test case indicating, obtains test result.
The principle of work of device shown in Figure 6 repeats no more as shown in Figure 2 here.
According to device as shown in Figure 6, also can be by being embedded in the test case that proving installation receives and the storage user inputs for page elements in the webpage product, and according to the test case of user selection page elements is carried out test operation, obtains test result, the developer can be tested the webpage product that develops in time, thereby can accelerate the progress of test job, the cycle of shortening test job; And the developer only needs design test case just can carry out test job, need not write test code for test case specially, thereby can reduce numerous and diverse degree of test job, the efficient of raising test job; Thereby the technical scheme that the embodiment of the present application provides can solve development and the test job to the webpage product that exist in the prior art and be separated, and testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
A kind of preferably mode, test case management unit 61, also be used for: the sign of the page to be measured of selecting in the sign of the page elements of the sign of shown webpage to be measured out and webpage to be measured for the user and the sign of the page elements in the page to be measured, receive the also test case of storage user input, the sign of the webpage to be measured of user selection, the sign of page elements in the webpage to be measured and the test case of user's input are configured to test file; Particularly, the test data corresponding with assign operation of user input is stored as test data file, and sets up the test file of assign operation and the assignment data corresponding relation between the test data file corresponding with assign operation; For a plurality of test cases of user for the same test action type of same page elements selection, show the content that comprises in each test case with the form of tabulating, receive and also store the user to the modification of the content in the shown test case.
Object Management group unit 62 specifically is used for: after proving installation is triggered, read webpage to be measured in the webpage product, the sign of the sign of the webpage to be measured that demonstration is read and the page elements of webpage to be measured; The test case of in the test case that test case management unit 61 is stored, selecting according to the user, determine to comprise the test file of this selected test case, in the test file of determining, search this selected test case for the sign of webpage to be measured, read the webpage to be measured of the sign correspondence of the webpage to be measured that finds, and according to the page elements sign of determining in the test file, page elements corresponding to the described page elements sign in location in the webpage to be measured that reads.
Test execution unit 63, also be used for: with a plurality of test cases of user for the different test operation types of same page elements selection, type merger according to test operation is different test assignment, the test case that comprises the same test action type in each test assignment, the classification of the test assignment that obtains according to merger is carried out the test case that comprises in each test assignment successively to the same page elements that 62 location, described Object Management group unit obtain; Before the page elements that the location is obtained is carried out test operation, comprise in the situation of login task at the webpage to be measured that reads, call default HTML (Hypertext Markup Language) HTTP request and login, comprise predetermined log-on message in this default HTTP request; When carrying out test operation, at test operation in the situation that page elements is clicked, click the page elements that the location obtains, at test operation for page elements is carried out in the situation of value, read the property value of locating the page elements that obtains, at test operation for page elements is carried out in the situation of assignment, according to the assignment data corresponding relation of setting up, read the test data in the test data file corresponding with assign operation, give the page elements that the location obtains with the test data that reads; The test result that obtains and the test expectation value in the selected test case are compared, when the test result that obtains is consistent with this test expectation value, test successfully, otherwise, test crash finishes follow-up test operation, and the test case of test crash is submitted to long-range Bug management system.
The preferred implementation mode of the described device of Fig. 6 as shown in Figure 4, repeats no more here.
In sum, in the testing scheme to the webpage product that the embodiment of the present application provides, test frame is embedded in the webpage product in advance, and be the pre-assigned address of test frame under the Main Domain of webpage product, webpage product and the Development Framework that will comprise test frame are deployed on the same server, by the test case that test frame receives and the storage user inputs for page elements, and according to the test case of user selection page elements is carried out test operation, obtain test result, test job and development to the webpage product can be merged under same resource platform, the developer can be tested the webpage product that develops in time, thereby can accelerate the progress of test job, shorten the cycle of test job; And the developer only needs design test case just can carry out test job, need not write test code for test case specially, thereby can reduce numerous and diverse degree of test job, the efficient of raising test job; Thereby the technical scheme that the embodiment of the present application provides can solve development and the test job to the webpage product that exist in the prior art and be separated, and testing progress backwardness, inefficiency, can not satisfy the problem of the demand of development.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not break away from the application to the application.Like this, if these of the application are revised and modification belongs within the scope of the application's claim and equivalent technologies thereof, then the application also is intended to comprise these changes and modification interior.

Claims (12)

1. the development and testing system of a webpage product comprises: Development Framework, it is characterized in that, and also comprise: be embedded in test frame, part flow arrangement in the described webpage product;
Described part flow arrangement, be used for user's request is identified, comprise that in identification described test frame is under the Main Domain of described webpage product during pre-assigned address in the described request, described request is mail to described test frame, comprise that in identification described Development Framework during pre-assigned address, mails to described Development Framework with described request in the described request under the Main Domain of described webpage product;
Described test frame is used for being triggered when the request that receives from described part flow arrangement, receives also the storage user for the test case of the input of the page elements in the webpage to be measured of described webpage product; Wherein, described test case comprises the test operation that page elements is carried out; The test case of in the test case of storing, selecting according to the user and described selected test case for the sign of page elements, the page elements of the sign correspondence of this page elements of location in described webpage product; The page elements that the location is obtained is carried out the test operation of described selected test case indicating, obtains test result.
2. system according to claim 1 is characterized in that, described part flow arrangement also is used for:
Comprise described test frame in the described request under the Main Domain of described webpage product during pre-assigned address in identification, judge under the line test environment be open mode and described user in the situation of validated user, described request is mail to described test frame.
3. the method for testing of a webpage product is characterized in that, comprising:
Under the Main Domain of webpage product, during pre-assigned address, trigger the described test frame that is embedded in the described webpage product for test frame in user access;
The test case that described test frame receives and the storage user inputs for the page elements in the webpage to be measured of described webpage product after the triggering; Wherein, described test case comprises the test operation that page elements is carried out;
The test case of in the test case of storing, selecting according to the user and described selected test case for the sign of page elements, the page elements of the sign correspondence of this page elements of location in described webpage product, the page elements that the location is obtained is carried out the test operation of described selected test case indicating, obtains test result.
4. method according to claim 3 is characterized in that, described method also comprises:
Described test frame reads described webpage to be measured in described webpage product after being triggered, the sign of the sign of the described webpage to be measured that demonstration is read and the page elements of described webpage to be measured;
Receive and store the user for the test case of the input of the page elements in the webpage to be measured of described webpage product, specifically comprise:
The sign of the page to be measured of selecting in the sign of shown described webpage to be measured out for the user and the sign of the page elements in the page to be measured, receive the also test case of storage user input, the sign of the webpage to be measured of user selection, the sign of page elements in the 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 of in the test case of storing, selecting according to the user and described selected test case for the sign of page elements, the page elements of the sign correspondence of this page elements of location in described webpage product specifically comprises:
The test case of in the test case of storing, selecting according to the user, determine to comprise the test file of this selected test case, in the test file of determining, search this selected test case for the sign of webpage to be measured, read the webpage to be measured of the sign correspondence of the webpage to be measured that finds, and according to the sign of the page elements in the test file of determining to obtain, page elements corresponding to the described page elements sign in location in the webpage to be measured that reads.
6. method according to claim 5 is characterized in that, described method also comprises:
Before the page elements that the location is obtained is carried out test operation, comprise in the situation of login task at the webpage to be measured that reads, call default HTML (Hypertext Markup Language) HTTP request and login, comprise predetermined log-on message in this default HTTP request.
7. method according to claim 4 is characterized in that, the type of described test operation comprises: page elements is clicked, page elements is carried out value, page elements is carried out assignment; The type of described test operation is in the situation of assignment, and described test case also comprises the test data corresponding with assign operation that the user inputs;
The page elements that the location is obtained is carried out the test operation of described selected test case indicating, possesses to comprise:
The test operation that comprises in described selected test case is clicked the page elements that the location obtains in the situation that page elements is clicked;
The test operation that comprises in described selected test case reads the property value of locating the page elements that obtains for page elements is carried out in the situation of value;
The test operation that comprises in described selected test case is given the page elements that the location obtains for page elements is carried out in the situation of assignment with the test data corresponding with assign operation.
8. method according to claim 7, it is characterized in that, the storage user is for the test case of the input of the page elements in the webpage to be measured of described webpage product, also comprise: the test data corresponding with assign operation of user input is stored as test data file, and sets up the test file of assign operation and the assignment data corresponding relation between the test data file corresponding with assign operation;
Give the page elements that the location obtains with the test data corresponding with assign operation, specifically comprise: according to the assignment data corresponding relation of setting up, read the test data in the test data file corresponding with assign operation, give the page elements that the location obtains with the test data that reads.
9. method according to claim 7 is characterized in that, described method also comprises:
A plurality of test cases of the different test operation types that the user is selected for same page elements are different test assignments according to the type merger of test operation, comprise the test case of same test action type in each test assignment;
The classification of the test assignment that obtains according to merger is carried out the test case that comprises in each test assignment successively to the described same page elements that the location obtains.
10. method according to claim 7 is characterized in that, described method also comprises:
A plurality of test cases for the user selects for same page elements show the content that comprises in each test case with the form of tabulating;
Receive and store the user to the modification of the content in the shown test case.
11. method according to claim 3 is characterized in that, also comprises in the described test case: to the test expectation value of page elements;
Described method also comprises: the test result that obtains and the test expectation value in the described selected test case are compared, when the test result that obtains is consistent with this test expectation value, test successfully, otherwise, test crash, finish follow-up test operation, the test case of test crash is submitted to long-range Bug management system.
12. the proving installation of a webpage product is characterized in that, described proving installation is embedded in the webpage product, and has pre-assigned address under the Main Domain of described webpage product, and described proving installation comprises:
The test case management unit is used for receiving and storing the user for the test case of the page elements input of the webpage to be measured of described webpage product; Wherein, described test case comprises the test operation that page elements is carried out;
The Object Management group unit, be used for the test case selected according to the test case that the user stores in described test case management unit and described selected test case institute for the sign of page elements, in described webpage product, locate the page elements of the sign correspondence of this page elements;
The test execution unit is used for the page elements that described Object Management group cell location obtains is carried out the test operation of described selected test case indicating, 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 true CN103377127A (en) 2013-10-30
CN103377127B 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)

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331369A (en) * 2014-11-21 2015-02-04 北京奇虎科技有限公司 Browser-based webpage detection method and device, and server
CN104809064A (en) * 2015-04-24 2015-07-29 百度在线网络技术(北京)有限公司 Page display test method and device of browser
CN105159825A (en) * 2015-08-20 2015-12-16 上海斐讯数据通信技术有限公司 Web testing method and system
CN105260318A (en) * 2015-11-25 2016-01-20 飞天诚信科技股份有限公司 Automatic testing method and device based on web pages
CN105320603A (en) * 2015-12-04 2016-02-10 上海斐讯数据通信技术有限公司 Locating system and method for browser page elements and automatic testing method thereof
CN105574416A (en) * 2015-12-16 2016-05-11 北京神州绿盟信息安全科技股份有限公司 Detection method and device of browser bug
CN105608007A (en) * 2015-12-28 2016-05-25 北京致远协创软件有限公司 Page model as well as user interface automated test method and device
CN105868096A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Methods and apparatuses used for displaying web page test result in browser and device
CN106330925A (en) * 2016-08-26 2017-01-11 重庆蓝盾电子技术服务公司 Working method for controlling a vehicle management and check test system on cloud
CN106372782A (en) * 2016-08-26 2017-02-01 重庆蓝盾电子技术服务公司 Working method of vehicle management, check and test system
CN106649090A (en) * 2016-10-10 2017-05-10 上海瀚之友信息技术服务有限公司 Automated test system and method
CN106991045A (en) * 2017-03-24 2017-07-28 广州酷狗计算机科技有限公司 Page method of calibration 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
CN107943682A (en) * 2016-10-13 2018-04-20 北京国双科技有限公司 Submit the method and device of bug
CN105760290B (en) * 2014-12-17 2018-11-13 阿里巴巴集团控股有限公司 The problem of being tested based on webpage front-end localization method and relevant apparatus, system
CN108845929A (en) * 2018-05-07 2018-11-20 北京三快在线科技有限公司 Page performance test method and apparatus
WO2018223717A1 (en) * 2017-06-08 2018-12-13 武汉斗鱼网络科技有限公司 Webpage front-end testing method, device, system, apparatus and readable storage medium
CN109067726A (en) * 2018-07-24 2018-12-21 北京知道创宇信息技术有限公司 It builds a station system identification method, device, electronic equipment and storage medium
CN109165170A (en) * 2018-10-16 2019-01-08 杭州安恒信息技术股份有限公司 A kind of method and system automating request for test
CN109491906A (en) * 2018-11-05 2019-03-19 郑州云海信息技术有限公司 A kind of testing case management and system
CN109558323A (en) * 2018-11-30 2019-04-02 百度在线网络技术(北京)有限公司 For debugging system, the method and apparatus of the page
CN109582580A (en) * 2018-11-30 2019-04-05 百度在线网络技术(北京)有限公司 For debugging system, the method and apparatus of the page
CN110209579A (en) * 2019-05-28 2019-09-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
CN110347577A (en) * 2018-04-04 2019-10-18 阿里巴巴集团控股有限公司 A kind of page test method, device and its equipment
CN112015643A (en) * 2020-08-25 2020-12-01 广州鲁邦通物联网科技有限公司 Method, system, device and storage medium for processing test information
CN112100086A (en) * 2020-11-17 2020-12-18 深圳市房多多网络科技有限公司 Software automation test method, device, equipment and computer readable storage medium
CN112527688A (en) * 2021-01-18 2021-03-19 杭银消费金融股份有限公司 Test case processing method and system for page elements
CN113448839A (en) * 2020-12-24 2021-09-28 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium
CN113806210A (en) * 2020-06-16 2021-12-17 北京字节跳动网络技术有限公司 Test method, test device, test system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234293A1 (en) * 2005-12-12 2007-10-04 Archivas, Inc. Automated software testing framework
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234293A1 (en) * 2005-12-12 2007-10-04 Archivas, Inc. Automated software testing framework
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应用测试方法", 《计算机工程》 *
王恩雷等: "基于TTCN-3的Web Service测试方法", 《计算机工程》 *
贾丽等: "Web系统测试用例自动执行系统", 《计算机工程与应用》 *

Cited By (46)

* 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
CN104331369A (en) * 2014-11-21 2015-02-04 北京奇虎科技有限公司 Browser-based webpage detection method and device, and server
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
CN105868096A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Methods and apparatuses used for displaying web page test result in browser and device
CN104809064A (en) * 2015-04-24 2015-07-29 百度在线网络技术(北京)有限公司 Page display test method and device of 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
CN105260318A (en) * 2015-11-25 2016-01-20 飞天诚信科技股份有限公司 Automatic testing method and device based on web pages
CN105320603A (en) * 2015-12-04 2016-02-10 上海斐讯数据通信技术有限公司 Locating system and method for browser page elements and automatic testing method thereof
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
CN105608007A (en) * 2015-12-28 2016-05-25 北京致远协创软件有限公司 Page model as well as user interface automated test method and device
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
WO2018223717A1 (en) * 2017-06-08 2018-12-13 武汉斗鱼网络科技有限公司 Webpage front-end testing method, device, system, apparatus and readable storage medium
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
CN110347577A (en) * 2018-04-04 2019-10-18 阿里巴巴集团控股有限公司 A kind of page test method, device and its equipment
CN108845929A (en) * 2018-05-07 2018-11-20 北京三快在线科技有限公司 Page performance test method and apparatus
CN109067726A (en) * 2018-07-24 2018-12-21 北京知道创宇信息技术有限公司 It builds a station system identification method, device, electronic equipment and storage medium
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
CN109165170A (en) * 2018-10-16 2019-01-08 杭州安恒信息技术股份有限公司 A kind of method and system automating request for test
CN109491906A (en) * 2018-11-05 2019-03-19 郑州云海信息技术有限公司 A kind of testing case management and system
CN109582580A (en) * 2018-11-30 2019-04-05 百度在线网络技术(北京)有限公司 For debugging system, the method and apparatus of the page
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
CN109558323A (en) * 2018-11-30 2019-04-02 百度在线网络技术(北京)有限公司 For debugging system, the method and apparatus of the page
CN110209579B (en) * 2019-05-28 2023-06-06 Oppo广东移动通信有限公司 Test method and electronic device
CN110209579A (en) * 2019-05-28 2019-09-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
CN113806210A (en) * 2020-06-16 2021-12-17 北京字节跳动网络技术有限公司 Test method, test device, 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
CN112100086A (en) * 2020-11-17 2020-12-18 深圳市房多多网络科技有限公司 Software automation test method, device, equipment and computer readable storage medium
CN113448839A (en) * 2020-12-24 2021-09-28 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium
CN113448839B (en) * 2020-12-24 2024-01-26 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium
CN112527688A (en) * 2021-01-18 2021-03-19 杭银消费金融股份有限公司 Test case processing method and system for page elements
CN112527688B (en) * 2021-01-18 2021-12-17 杭银消费金融股份有限公司 Test case processing method and system for page elements

Also Published As

Publication number Publication date
HK1186809A1 (en) 2014-03-21
CN103377127B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN103377127B (en) The development and testing system of web page product, method of testing and device
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN103092665B (en) Immediate updating device and immediate updating method
US7917815B2 (en) Multi-layer context parsing and incident model construction for software support
CN108959059B (en) Test method and test platform
CN104067276B (en) Client-side minimum is downloaded and the page navigation feature of simulation
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
CN112491602B (en) Behavior data monitoring method and device, computer equipment and medium
CN105095059A (en) Method and device for automated testing
CN110955600B (en) Interface testing method and device
CN105718533A (en) Information pushing method and device
CN101853152A (en) Method and system for generating graphical user interface
US10127587B2 (en) Virtualized services discovery and recommendation engine
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
CN102591874A (en) Prompt method, terminal and server
CN111737334A (en) Data reporting method, device, equipment and storage medium
CN112394908A (en) Method and device for automatically generating embedded point page, computer equipment and storage medium
CN114036439A (en) Website building method, device, medium and electronic equipment
EP2998885A1 (en) Method and device for information search
CN111026945B (en) Multi-platform crawler scheduling method, device and storage medium
CN108427599A (en) Method, apparatus and storage medium is uniformly processed in asynchronous task
JPWO2005020071A1 (en) Program generation system, program generation program, and program generation module
CN105338091A (en) High-transmission-efficiency personalized information interface display method and apparatus
CN101772196A (en) Method and system for processing message sent by mobile terminal and acting server
CN115016775A (en) Interface simulation method and device, storage medium and electronic equipment

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