CN105471665A - Website function testing method, website function testing system and website server - Google Patents

Website function testing method, website function testing system and website server Download PDF

Info

Publication number
CN105471665A
CN105471665A CN201410415478.0A CN201410415478A CN105471665A CN 105471665 A CN105471665 A CN 105471665A CN 201410415478 A CN201410415478 A CN 201410415478A CN 105471665 A CN105471665 A CN 105471665A
Authority
CN
China
Prior art keywords
test
website
data
web sites
function
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.)
Pending
Application number
CN201410415478.0A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410415478.0A priority Critical patent/CN105471665A/en
Publication of CN105471665A publication Critical patent/CN105471665A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a website function testing method, a website function testing system and a website server. The method comprises steps: a website function testing request issued by a testing terminal is received; according to the website function testing request, preset data operation is carried out on data related to the website function and stored in the website server; according to the preset data operation result, a testing code with a preset format is generated; and the testing code is sent to the testing terminal for enabling the testing terminal to obtain a website function testing result according to the testing code. According to the scheme of the invention, when the testing request is received, through the preset data operation, user information submission is simulated, user information submission processing, an interactive process with a server and the like are simulated, the testing result is obtained, the scheme can be applied to various dynamic functions such as login and transaction, the method is not limited by a static webpage file, a website maintainer can know various items of service of the website more thoroughly, and more timely maintenance is provided.

Description

Web sites function method of testing and system, Website server
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of web sites function method of testing, Website server and web sites function test macro.
Background technology
During user's requested webpage, sent request to web page server by browser, after web page server receives request, return web page files to browser, be rendered as news, word etc., also the input elements such as list may be comprised in webpage, for collecting user data, mutual for server and database, realize the dynamic functions such as login, registration.
Web page server is possible wrong or abnormality generation in the process of process request, and cannot provide partial service.A kind of common situation is, after user inputs network address, and requested webpage file, and server is due to reasons such as configuration errors, causes user to open the page.
For ensureing that web sites function is normal, whether the guardian of website needs constantly to test website and can use.Method of testing of the prior art is generally send a http request to web page server, receive the http conditional code that web page server returns, if http conditional code represents that server receives, process this request, then think that web sites function is normal, such as, if http conditional code is 200, represent request successfully, the head response desired by request or data volume will return with this response; If http conditional code is 5xx, then represent wrong or abnormal generation.
But this method of testing is only applicable to static page, the web page files of static page is preserved on the server, if http conditional code is 200, represents that server can normal process, to user's back page file.At present, most webpage provides dynamic function, such as, the functions such as login, registration, transaction, at this moment, possible web page server can the request of normal process user access static webpage, and the page shows normally in a browser, but can not ensure that the dynamic functions such as login, registration, transaction are normal, such as, although user opens normal webpage, after inputting correct username and password, click and log in, but cannot Successful login.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the web sites function method of testing solved the problem at least in part and system, Website server.
According to an aspect of the present invention, provide a kind of web sites function method of testing, it comprises:
Receive the test request to web sites function that test terminal is initiated; According to the test request to web sites function, to the data manipulation that the data relevant with web sites function stored in Website server are preset; According to the result of the data manipulation preset, generate the test patterns of preset format; Test patterns is sent to test terminal, obtains web sites function test result for test terminal according to test patterns.
According to a further aspect in the invention, provide a kind of Website server, comprising:
Receiver module, is suitable for receiving the test request to web sites function initiated test terminal; Data operation modules, is suitable for according to the test request to web sites function, to the data manipulation that the data relevant with web sites function stored in Website server are preset; Test code generation module, is suitable for the result according to the data manipulation preset, and generates the test patterns of preset format; Sending module, is suitable for test patterns to return to test terminal, obtains web sites function test result for test terminal according to test patterns.
According to another aspect of the present invention, provide a kind of web sites function test macro, comprising:
Above-mentioned Website server, and test terminal, be suitable for sending web sites function test request to described Website server, and receive the test patterns of the preset format that described Website server returns, obtain web sites function test result according to described test patterns.
According to web sites function method of testing of the present invention and system, Website server, according to web sites function to be measured, to the data manipulation that the data relevant with web sites function to be measured stored in Website server are preset, judge whether website can normally perform corresponding function by the result of data manipulation.According to the program, when receiving test request, by the data manipulation preset, analog subscriber submits information to, and emulating server submits process and the database reciprocal process of information to user, obtains test result, be applicable to the various dynamic functions such as login, registration, transaction, and be not limited only to static web page files, make the attendant of website more fully understand the respective services of website, safeguard more timely to provide.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the flow chart of web sites function method of testing according to an embodiment of the invention;
Fig. 2 shows the flow chart of web sites function method of testing in accordance with another embodiment of the present invention;
Fig. 3 shows the flow chart of web sites function method of testing in accordance with another embodiment of the present invention;
Fig. 4 shows the structured flowchart of Website server according to an embodiment of the invention;
Fig. 5 shows the structured flowchart of web sites function test macro according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the flow chart of web sites function method of testing according to an embodiment of the invention, and as shown in Figure 1, method comprises the steps:
Step S110, receives the test request to web sites function that test terminal is initiated.
The dynamic function such as login, registration, transaction that the present invention is applicable on website that Website server provides self carries out Autonomous test.
Test terminal can be a test server communicated with Website server, or test terminal is a computer by http mode access websites server.Such as, the test program on Website server is one or more php scripts, corresponds respectively to one or more web sites function.The mode that functional test request is initiated in test terminal can be with http mode request script file, and such as, by browse request http: // 360.cn/login_monitor.php file, this script file is for testing user's login feature of website.When Website server receives this php file request of http mode, run corresponding script.
Alternatively, test terminal timed sending, to the test request of web sites function, such as, sends once for every 30 seconds.
Web sites function comprises and returns web page files to browser, handles user login, registration behavior, and shopping, transaction etc.
Step S120, according to the test request to web sites function, to the data manipulation that the data relevant with web sites function stored in Website server are preset.
For user's login feature, usually, Website server provides a static login page, this login page saves as a file in the server, such as, and login.html, input element is provided in this page, input username and password for user, after collecting username and password by this input element, utilize database manipulation to verify username and password.Particularly, the database manipulation that execution user login validation relates to may comprise: connect and log in relevant database with user, inquiring user name in a database, reading database record etc.
One or morely perform failure if had in above-mentioned database manipulation, such as, DataBase combining failure, data base querying, read unsuccessfully etc., then user can not log in.That is, at this moment, although the login page of user's request is played up in a browser, shown normally, the partial function in the page possibly cannot perform.
To other functions in the page, such as, registration, transaction etc., the data manipulation related to and above-mentioned login process are similar, except database manipulation, also may relate to server memory reading etc., and such as, memcache operates, and repeats no more herein.
The functional test request that the present invention sends according to test terminal, process operation data during simulation page execution corresponding function is to determine that whether this function is normal.Such as, to functions such as login, registration, transaction, the data manipulation preset in this step comprises: DataBase combining, and inquiry is read, write, deletes.
Step S130, according to the result of the data manipulation preset, generates the test patterns of preset format.
The concrete form of test patterns is reached an agreement in advance between test terminal and Website server.Alternatively, test patterns comprises multiple field, and each field shows the test result of respective wire station function.Such as, field information is " login:OK, registration:failed ", and the login feature in representation page is normal, and registering functional is abnormal.
The test patterns returned according to server and field information, can learn the part unusual condition of Website server, such as, for " login:OK; registration:failed ", showing that login feature normally cannot be registered, then may be the database write operation exception of Website server.
Step S140, returns to test terminal by test patterns, obtains web sites function test result for test terminal according to test patterns.
Test terminal performs corresponding action according to web sites function test result, and such as, if website test result shows that login feature is abnormal, test terminal can provide information, and the attendant to website sends mail etc.
According to the method that the above embodiment of the present invention provides, according to web sites function to be measured, to the data manipulation that the data relevant with web sites function to be measured stored in Website server are preset, judge whether website can normally perform corresponding function by the result of data manipulation.According to the program, when receiving test request, by the data manipulation preset, analog subscriber submits information to, and emulating server submits process and the database reciprocal process of information to user, obtains test result, be applicable to the various dynamic functions such as login, registration, transaction, and be not limited only to static web page files, make the attendant of website more fully understand the respective services of website, safeguard more timely to provide.
Fig. 2 shows the flow chart of web sites function method of testing in accordance with another embodiment of the present invention, and as shown in Figure 2, method comprises the steps:
Step S210, receives the test request treating survey web sites function that test terminal is initiated.
The specific implementation process of this step see a upper embodiment, can repeat no more herein.
Step S220, determines the database relevant with web sites function to be measured.
As an example of the present invention, preset script the http: // 360.cn/login_monitor.php file for login feature test on the request server of test terminal, then web sites function to be measured and corresponding database relation are previously recorded in this script file, particularly, database manipulation function is included in script file, as database contiguous function, this DataBase combining function with preset database name for parameter, when server receives the request to this script file, Run Script file, is implemented to the connection of default database.
Step S230, generates the test data corresponding with web sites function to be measured.
According to the data structure of database with concrete treat that brake generates test data, such as, for user's registration and login, store in database be generally user user name and through the encrypted password of the modes such as MD5, then this step can be: generate random character string, respectively as the user name of test, and the password after md5 encryption.
Step S240, performs the update of test data in the database relevant with web sites function to be measured.
Step S240 and S250 analog subscriber log in, registration, the lower database manipulation process that must relate to of the situations such as transaction.
Particularly, to the test of user's login feature, due to the match query work of username and password will be performed, first need the username and password of generation to be inserted in database.For user's registration, trading function, because database needs to record new user data, also must relate to the step in the information data inserting storehouse of being collected by the input elements such as list.
Step S250, performs inquiry to the test data inserted in database, deletion action.
As described in step S240, query manipulation can be used for analog subscriber login process.In addition, for registration, the functions such as transaction, also relate to query manipulation, such as, after user's registration, return customer center data, when user checks order, present order data etc. to user.
For realizing the real-time testing to web sites function, the frequency of test terminal transmission test request may be higher, such as, 10 seconds once, the database space outside the data meeting occupying volume that each test is inserted, therefore, the embodiment of the present invention also relates to deletion action, deletes the test data of redundancy from database.In addition, due to also can deletion action be related to when process user asks, such as, user deletes order or nullifies account etc. when concluding the business, and therefore, deletion action also can be used for realizing the test to above-mentioned functions.
Step S260, according to the result of above-mentioned data manipulation, generates the json character string of preset format.
Step S270, returns to test terminal by the json character string of generation.
Json is a kind of data interchange format of lightweight, for the data transmission between server and client.Particularly, in the embodiment of the present invention, utilize json that web sites function and corresponding test result are converted to character string, with the form record of key-value pair, and send test terminal to.Such as, the web sites function test request that test terminal sends comprises database and reads and buffer memory reading, then key-value pair can be: { " db ": " OK ", " cache ": " OK " }.The form of this key-value pair has higher readability.
According to the method that the above embodiment of the present invention provides, the script file of preset multiple test on website, Website server receive test terminal send to after the request of script file, script file runs, be connected to corresponding database, perform the insertion preset, inquiry and deletion action, action when being asked by aforesaid operations emulating server actual treatment user, can the exception of the function such as login, registration, transaction in Timeliness coverage website.
Fig. 3 shows the flow chart of web sites function method of testing in accordance with another embodiment of the present invention, and as shown in Figure 3, method comprises the steps:
Step S310, receives the http request to the Website page file on Website server that test terminal is initiated.
Step S320, according to the response results of the http request to Website page file, generates http conditional code.
Step S330, returns http conditional code to test terminal.
Whether step S310-S330 normally can return the web page files of user's request for testing website.
After Website server receives the http request of Website page file, http conditional code is returned to test terminal, if http conditional code represents that server receives, process this request, then think that web sites function is normal, such as, if http conditional code is 200, represent request successfully, the head response desired by request or data volume will return with this response; If http conditional code is 5xx, then represents that server end is wrong or abnormal and occur, cannot web page files be returned.
Step S340, receives the memcache functional test request treating survey grid station that test terminal is initiated.
Determining that website to be measured, can be tested the memcache caching function of website by step S340-S360 after returning web page files according to web page files request.
Memcache buffer memory is a high performance distributed memory object caching system, by the Hash table that maintenance one in internal memory is unified, stores the data of various form, comprises the result etc. of image, video, file and database retrieval.
Usually, what usually preserve in memcache buffer memory is the data that some often need to read or store, and is applicable to some data volumes comparatively large, and high concurrent, the website of high access, such as, has the website of a large amount of picture, and the microblogging website etc. that waterfall is streamed.
Website server accesses related data after receiving client-access request from database, but database access operation is more time-consuming, when visit capacity is higher, the speed of Website server process request may be caused to reduce.Therefore, in the website of these high accesses, Website server first time from database, obtain data after, by data backup in memcache buffer memory.
First website checks the data of client-requested after receiving user's request, for picture, check that image data is whether in memcache buffer memory, if, directly read requests data returning from memcache, and do not need to operate database, if the data of request are not in memcache buffer memory, Query Database again, returns to client the data obtained from database, simultaneously data buffer storage portion in memcache buffer memory.This is conducive to reducing database and reads burden, promotes the reading speed of data.
Therefore, for ensureing the response speed of Website server, the test to memcache buffer memory read functions in the present invention, is also comprised.
Default cache test data are stored in the memcache buffer memory of Website server by step S350.
Alternatively, before in the memcache buffer memory default cache test data being stored in Website server, memcache functional test can also comprise the connection etc. being established to memcache.
The cache test data preset in memcache can be pictures, video data etc.
Particularly, above-mentioned default cache test data in advance is stored in the database of server, during test memcache, the memcache storing process that simulation is actual, from database, inquire about test data, then read out cache test data, leave in memcache.
The function that above-mentioned test configures by memcache completes, and such as, default cache test data is stored in the memcache buffer memory of Website server and realizes by Memcache::add function; With the connection of server by Memcache::pconnect function realization etc.
Default cache test data are deleted by step S360 from memcache buffer memory.
Memcache is for storing the data often read, and due to the restriction of memory size, relating to the frequent updating of data, is the renewal of guarantee data, also needs the data of testing in memcache buffer memory to delete, replacement function.Particularly, this can realize respectively by functions such as Memcache::delete, Memcache::replace.
Above-mentioned test mode is only example, and according to testing requirement and the function of website, memcache functional test can also comprise removing cache contents, reads cached variable value etc., repeats no more herein.
Step S370, according to the result of above-mentioned data manipulation, generates the json character string of preset format.
With a upper embodiment similarly, step S350-S370 is realized by the one or more preset scripts on Website server.
According to the method that the above embodiment of the present invention provides, first website is tested to the disposition of pagefile request by http conditional code, afterwards, run corresponding script, when the actual submission of analog subscriber is asked, Website server is to the reading of memcache, and the data manipulations such as deletion, generate the test patterns of preset format according to the result of data manipulation.According to the program, memcache read functions can be known in time, ensure that website has higher response speed to user's request.
Fig. 4 shows the structured flowchart of Website server according to an embodiment of the invention, and as shown in Figure 4, server comprises:
Receiver module 410, is suitable for receiving the test request to web sites function initiated test terminal.
Wherein, web sites function comprises: the trading function of website and/or user's registering functional and/or user's login feature etc. need the function of database interactive operation, and, the read functions that memcache etc. are data cached.
Data operation modules 420, is suitable for according to the test request to web sites function, to the data manipulation that the data relevant with web sites function stored in Website server are preset.
Alternatively, data operation modules 420 comprises further:
Query unit 4201, is suitable for according to the trading function of website and/or the test request of user's registering functional and/or user's login feature, determines the database relevant with trading function and/or user's registering functional and/or user's login feature;
Generation unit 4202, is suitable for generating the test data corresponding with described trading function and/or user's registering functional and/or user's login feature;
Database manipulation unit 4203, is suitable for the update performing test data in a database, and, inquiry is performed to the test data inserted in database, deletion action.
Alternatively, data operation modules comprises further: caching unit 4204, is suitable for default cache test data to be stored in the memcache buffer memory of Website server, and, default cache test data are deleted from memcache buffer memory.
Test code generation module 430, is suitable for the result of the data manipulation preset according to database operating modules 420, generates the test patterns of preset format.
Particularly, Test code generation module 430, according to the operating result of database manipulation unit 4203 and buffer memory operating unit 4204, generates the test patterns of preset format.
Alternatively, Test code generation module 430 is further adapted for: according to the result of data manipulation, generates the json character string of preset format.
Sending module 440, is suitable for test patterns to return to test terminal, obtains web sites function test result for test terminal according to test patterns.
Alternatively, receiver module 410 is also suitable for receiving the http request to the Website page file on Website server initiated test terminal; Then server also comprises: http conditional code generation module 450, is suitable for, according to the response results to the http request of Website page file, generating http conditional code; Sending module 440 is also suitable for: return http conditional code to test terminal.
Fig. 5 shows the structured flowchart of the web sites function test macro that another embodiment of the present invention provides, and as shown in Figure 5, system comprises: the Website server 510 in a upper embodiment, and,
Test terminal 520, is suitable for sending web sites function test request to Website server, and receives the test patterns of the preset format that Website server returns, obtain web sites function test result according to test patterns.
Alternatively, when web sites function to be measured occurs abnormal, test terminal 520 can also provide information, and such as, the attendant to website sends mail etc.
The Website server provided according to the above embodiment of the present invention and web sites function test macro, test request is sent by test terminal, Website server receives after test request, with website, data operation modules treats that the relevant data of brake carry out database manipulation or caching to what store in Website server; The result of the above-mentioned database manipulation of Test code generation module or caching, generates the test patterns of preset format; Then, test patterns is back to test terminal by sending module.According to the program, information is submitted to by analog subscriber, and emulating server submits the process of information and the reciprocal process of database to user, obtain test result, be applicable to the various dynamic functions such as test login, registration, transaction, and be not limited only to static web page files, make the attendant of website more fully understand the respective services of website, safeguard more timely to provide.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the Website server of the embodiment of the present invention and system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses:
A1, a kind of web sites function method of testing, described method comprises:
Receive the test request to web sites function that test terminal is initiated;
According to the described test request to web sites function, to the data manipulation that the data relevant with described web sites function stored in Website server are preset;
According to the result of described default data manipulation, generate the test patterns of preset format;
Described test patterns is returned to described test terminal, obtains web sites function test result for described test terminal according to described test patterns.
A2, method according to A1, wherein, what described reception test terminal was initiated comprises further to the test request of web sites function: the test request receiving the trading function to website and/or user's registering functional and/or user's login feature of initiating test terminal;
Described according to the described test request to web sites function, the data manipulation that the data relevant with described web sites function stored in Website server are preset is comprised further:
According to the test request of the described trading function to website and/or user's registering functional and/or user's login feature, determine the database relevant with described trading function and/or user's registering functional and/or user's login feature;
Generate the test data corresponding with described trading function and/or user's registering functional and/or user's login feature;
Perform the update of described test data in the database;
Inquiry and deletion action are performed to the described test data inserted in described database.
A3, method according to A1, wherein, what described reception test terminal was initiated comprises further to the test request of web sites function: the test request receiving the data cached read functions to website that described test terminal is initiated;
Described according to the described test request to web sites function, the data manipulation that the data relevant with described web sites function stored in Website server are preset is comprised further:
Default cache test data are stored in the memcache buffer memory of Website server;
Described default cache test data are deleted from described memcache buffer memory.
A4, method according to any one of A1-A3, the described result according to described default data manipulation, the test patterns generating preset format comprises further: according to the result of described data manipulation, generates the json character string of preset format.
A5, method according to any one of A1-A3, wherein, described Website server has the one or more preset scripts for web sites function test;
The test request to web sites function that described reception test terminal is initiated is further: receive the http request to described one or more preset script that test terminal is initiated;
Described according to the described test request to web sites function, to the data manipulation that the data relevant with described web sites function stored in Website server are preset be further:
According to described http request, run the preset script corresponding to described http request, described preset script is used for the data manipulation preset the data relevant with described one or more web sites function stored in Website server.
A6, method according to A1, wherein, what described reception test terminal was initiated also comprises the test request of web sites function: receive the http request to the Website page file on Website server that test terminal is initiated;
Described method also comprises: according to the response results of the http request to described Website page file, generates http conditional code;
Described http conditional code is returned to described test terminal.
The invention also discloses:
B7, a kind of Website server, comprising:
Receiver module, is suitable for receiving the test request to web sites function initiated test terminal;
Data operation modules, is suitable for according to the described test request to web sites function, to the data manipulation that the data relevant with described web sites function stored in Website server are preset;
Test code generation module, is suitable for the result according to described default data manipulation, generates the test patterns of preset format;
Sending module, is suitable for described test patterns to return to described test terminal, obtains web sites function test result for described test terminal according to described test patterns.
B8, server according to B7, wherein, described receiver module is further adapted for: receive the trading function to website and/or user's registering functional and/or user's login feature of initiating test terminal;
Described data operation modules comprises further:
Query unit, is suitable for the test request according to the described trading function to website and/or user's registering functional and/or user's login feature, determines the database relevant with described trading function and/or user's registering functional and/or user's login feature;
Generation unit, is suitable for generating the test data corresponding with described trading function and/or user's registering functional and/or user's login feature;
Database manipulation unit, is suitable for the update performing described test data in the database, and, inquiry and deletion action are performed to the described test data inserted in described database.
B9, server according to B7, wherein, described receiver module is further adapted for: the test request receiving the data cached read functions to website that described test terminal is initiated;
Described data operation modules comprises further: caching unit, is suitable for default cache test data to be stored in the memcache buffer memory of Website server, and, described default cache test data are deleted from described memcache buffer memory.
B10, server according to any one of B7-B9, wherein, described Test code generation module is further adapted for: according to the result of described data manipulation, generates the json character string of preset format.
B11, server according to any one of B7-B9, wherein, described Website server has the one or more preset scripts for web sites function test;
Described receiver module is further adapted for: receive the http request to described one or more preset script that test terminal is initiated;
Described data operation modules is further adapted for: run the preset script corresponding to described http request, and described preset script is used for the data manipulation preset the data relevant with described one or more web sites function stored in Website server.
B12, server according to B7, wherein, described receiver module is also suitable for: receive the http request to the Website page file on Website server that test terminal is initiated;
Described server also comprises: http conditional code generation module, is suitable for, according to the response results to the http request of described Website page file, generating http conditional code;
Described sending module is also suitable for: return described http conditional code to described test terminal.
The invention also discloses: C13, a kind of web sites function test macro, comprising: the Website server described in any one of B7-B12, and
Test terminal, is suitable for sending web sites function test request to described Website server, and receives the test patterns of the preset format that described Website server returns, obtain web sites function test result according to described test patterns.

Claims (10)

1. a web sites function method of testing, described method comprises:
Receive the test request to web sites function that test terminal is initiated;
According to the described test request to web sites function, to the data manipulation that the data relevant with described web sites function stored in Website server are preset;
According to the result of described default data manipulation, generate the test patterns of preset format;
Described test patterns is returned to described test terminal, obtains web sites function test result for described test terminal according to described test patterns.
2. method according to claim 1, wherein, what described reception test terminal was initiated comprises further to the test request of web sites function: the test request receiving the trading function to website and/or user's registering functional and/or user's login feature of initiating test terminal;
Described according to the described test request to web sites function, the data manipulation that the data relevant with described web sites function stored in Website server are preset is comprised further:
According to the test request of the described trading function to website and/or user's registering functional and/or user's login feature, determine the database relevant with described trading function and/or user's registering functional and/or user's login feature;
Generate the test data corresponding with described trading function and/or user's registering functional and/or user's login feature;
Perform the update of described test data in the database;
Inquiry and deletion action are performed to the described test data inserted in described database.
3. method according to claim 1, wherein, what described reception test terminal was initiated comprises further to the test request of web sites function: the test request receiving the data cached read functions to website that described test terminal is initiated;
Described according to the described test request to web sites function, the data manipulation that the data relevant with described web sites function stored in Website server are preset is comprised further:
Default cache test data are stored in the memcache buffer memory of Website server;
Described default cache test data are deleted from described memcache buffer memory.
4. the method according to any one of claim 1-3, the described result according to described default data manipulation, the test patterns generating preset format comprises further: according to the result of described data manipulation, generates the json character string of preset format.
5. the method according to any one of claim 1-3, wherein, described Website server has the one or more preset scripts for web sites function test;
The test request to web sites function that described reception test terminal is initiated is further: receive the http request to described one or more preset script that test terminal is initiated;
Described according to the described test request to web sites function, to the data manipulation that the data relevant with described web sites function stored in Website server are preset be further:
According to described http request, run the preset script corresponding to described http request, described preset script is used for the data manipulation preset the data relevant with described one or more web sites function stored in Website server.
6. method according to claim 1, wherein, what described reception test terminal was initiated also comprises the test request of web sites function: receive the http request to the Website page file on Website server that test terminal is initiated;
Described method also comprises: according to the response results of the http request to described Website page file, generates http conditional code;
Described http conditional code is returned to described test terminal.
7. a Website server, comprising:
Receiver module, is suitable for receiving the test request to web sites function initiated test terminal;
Data operation modules, is suitable for according to the described test request to web sites function, to the data manipulation that the data relevant with described web sites function stored in Website server are preset;
Test code generation module, is suitable for the result according to described default data manipulation, generates the test patterns of preset format;
Sending module, is suitable for described test patterns to return to described test terminal, obtains web sites function test result for described test terminal according to described test patterns.
8. server according to claim 7, wherein, described receiver module is further adapted for: receive the trading function to website and/or user's registering functional and/or user's login feature of initiating test terminal;
Described data operation modules comprises further:
Query unit, is suitable for the test request according to the described trading function to website and/or user's registering functional and/or user's login feature, determines the database relevant with described trading function and/or user's registering functional and/or user's login feature;
Generation unit, is suitable for generating the test data corresponding with described trading function and/or user's registering functional and/or user's login feature;
Database manipulation unit, is suitable for the update performing described test data in the database, and, inquiry and deletion action are performed to the described test data inserted in described database.
9. server according to claim 7, wherein, described receiver module is further adapted for: the test request receiving the data cached read functions to website that described test terminal is initiated;
Described data operation modules comprises further: caching unit, is suitable for default cache test data to be stored in the memcache buffer memory of Website server, and, described default cache test data are deleted from described memcache buffer memory.
10. a web sites function test macro, comprising: the Website server described in any one of claim 7-9, and
Test terminal, is suitable for sending web sites function test request to described Website server, and receives the test patterns of the preset format that described Website server returns, obtain web sites function test result according to described test patterns.
CN201410415478.0A 2014-08-21 2014-08-21 Website function testing method, website function testing system and website server Pending CN105471665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410415478.0A CN105471665A (en) 2014-08-21 2014-08-21 Website function testing method, website function testing system and website server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410415478.0A CN105471665A (en) 2014-08-21 2014-08-21 Website function testing method, website function testing system and website server

Publications (1)

Publication Number Publication Date
CN105471665A true CN105471665A (en) 2016-04-06

Family

ID=55608978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410415478.0A Pending CN105471665A (en) 2014-08-21 2014-08-21 Website function testing method, website function testing system and website server

Country Status (1)

Country Link
CN (1) CN105471665A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155852A (en) * 2016-06-28 2016-11-23 浪潮(北京)电子信息产业有限公司 The collection method of Apache service error event and system
CN106681922A (en) * 2016-12-27 2017-05-17 广州唯品会信息科技有限公司 Simulation server response method and system
CN109933528A (en) * 2019-03-11 2019-06-25 恒生电子股份有限公司 A kind of method and device of automatized script encapsulation
WO2019205280A1 (en) * 2018-04-24 2019-10-31 平安科技(深圳)有限公司 Server testing method, apparatus, and device, and computer readable storage medium
WO2020015191A1 (en) * 2018-07-18 2020-01-23 平安科技(深圳)有限公司 Business rule releasing and managing method, electronic device and readable storage medium
CN110795291A (en) * 2019-10-23 2020-02-14 中国银联股份有限公司 Database processing method and device
CN111984520A (en) * 2019-05-23 2020-11-24 上海哔哩哔哩科技有限公司 Buried point testing method, computer device and computer-readable storage medium
CN112181802A (en) * 2020-08-21 2021-01-05 长沙市到家悠享网络科技有限公司 Test method and device
CN113225223A (en) * 2021-04-21 2021-08-06 武汉思普崚技术有限公司 Automatic testing method for WEB authentication process of PC terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935A (en) * 2008-07-09 2009-04-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
CN102023856A (en) * 2010-10-21 2011-04-20 杭州万格网络科技有限公司 Method for outputting and operating data at server in formatting way according to demands of user
CN102938716A (en) * 2012-12-06 2013-02-20 网宿科技股份有限公司 Content distribution network acceleration test method and device
CN103001815A (en) * 2011-09-13 2013-03-27 阿里巴巴集团控股有限公司 Method, device and system for acquiring test data
CN103391222A (en) * 2012-05-11 2013-11-13 三星Sds株式会社 System and method for monitoring web service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935A (en) * 2008-07-09 2009-04-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
CN102023856A (en) * 2010-10-21 2011-04-20 杭州万格网络科技有限公司 Method for outputting and operating data at server in formatting way according to demands of user
CN103001815A (en) * 2011-09-13 2013-03-27 阿里巴巴集团控股有限公司 Method, device and system for acquiring test data
CN103391222A (en) * 2012-05-11 2013-11-13 三星Sds株式会社 System and method for monitoring web service
US20130305096A1 (en) * 2012-05-11 2013-11-14 Samsung Sds Co., Ltd. System and method for monitoring web service
CN102938716A (en) * 2012-12-06 2013-02-20 网宿科技股份有限公司 Content distribution network acceleration test method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐剑强等: "Memcached应用研究", 《科技广场SCIENCE MOSAIC》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155852A (en) * 2016-06-28 2016-11-23 浪潮(北京)电子信息产业有限公司 The collection method of Apache service error event and system
CN106681922A (en) * 2016-12-27 2017-05-17 广州唯品会信息科技有限公司 Simulation server response method and system
WO2019205280A1 (en) * 2018-04-24 2019-10-31 平安科技(深圳)有限公司 Server testing method, apparatus, and device, and computer readable storage medium
WO2020015191A1 (en) * 2018-07-18 2020-01-23 平安科技(深圳)有限公司 Business rule releasing and managing method, electronic device and readable storage medium
CN109933528A (en) * 2019-03-11 2019-06-25 恒生电子股份有限公司 A kind of method and device of automatized script encapsulation
CN111984520A (en) * 2019-05-23 2020-11-24 上海哔哩哔哩科技有限公司 Buried point testing method, computer device and computer-readable storage medium
CN110795291A (en) * 2019-10-23 2020-02-14 中国银联股份有限公司 Database processing method and device
CN112181802A (en) * 2020-08-21 2021-01-05 长沙市到家悠享网络科技有限公司 Test method and device
CN113225223A (en) * 2021-04-21 2021-08-06 武汉思普崚技术有限公司 Automatic testing method for WEB authentication process of PC terminal

Similar Documents

Publication Publication Date Title
CN105471665A (en) Website function testing method, website function testing system and website server
CN102970284B (en) User profile processing method and server
US11240289B2 (en) Apparatus and method for low-latency message request/response processing
US8799576B1 (en) System for caching data
CN104104649B (en) The method of page login, apparatus and system
KR102166589B1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
CN107133180A (en) Method of testing, test device and the storage medium of dynamic page
CN102915363B (en) Web site collection method and system
US20100064234A1 (en) System and Method for Browser within a Web Site and Proxy Server
CN105337787A (en) Multi-server monitoring method, device and system
CN107181779B (en) Method, device and system for processing access request
CN105337990A (en) User identity verification method and device
CN105354337A (en) Web crawler implementation method and web crawler system
CN105337735A (en) Digital certificate processing and verifying method and apparatus
CN104462571A (en) Webpage loading method and device and browser client-side
CN104468834A (en) Method and device for processing Cookie data and browser client side
CN105095367A (en) Method and device for acquiring client data
CN102932469A (en) Method for achieving client browser and client browser
CN105516333A (en) Interactive method and system based on webpage
US8352796B2 (en) Selective logging based on set parameter
CN104125303A (en) Data read-and-write requesting method, client end and data read-and-write requesting system
CN111556080A (en) Network node monitoring method, device, medium and electronic equipment
CN102929489A (en) Implementation method of client browser and client browser
US20130036157A1 (en) Server hierarchical structure on user-agents
US11949784B2 (en) Auditing for events

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160406

RJ01 Rejection of invention patent application after publication