CN103326892A - Web interface operation method and device - Google Patents

Web interface operation method and device Download PDF

Info

Publication number
CN103326892A
CN103326892A CN2013101779831A CN201310177983A CN103326892A CN 103326892 A CN103326892 A CN 103326892A CN 2013101779831 A CN2013101779831 A CN 2013101779831A CN 201310177983 A CN201310177983 A CN 201310177983A CN 103326892 A CN103326892 A CN 103326892A
Authority
CN
China
Prior art keywords
interface
message
log
web interface
generate
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
CN2013101779831A
Other languages
Chinese (zh)
Other versions
CN103326892B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310177983.1A priority Critical patent/CN103326892B/en
Publication of CN103326892A publication Critical patent/CN103326892A/en
Application granted granted Critical
Publication of CN103326892B publication Critical patent/CN103326892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a Web interface operating method and a Web interface operating device. By receiving description information on a Web interface to be registered, the description information can be utilized to register the Web interface so as to generate registration information. The registration information comprises interface requesting type information, interface address information, interface parameter information and interface returning information. Thus, operators are not needed to be involved in a interface operation process at all stages, the flexibility is high, operation is simple and errors are not prone to happening so that flexibility, efficiency and reliability of interface operation are improved.

Description

The method of operation of Web interface and device
[technical field]
The present invention relates to measuring technology, relate in particular to a kind of World Wide Web (WWW) (World Wide Web, Web) method of operation of interface and device.
[background technology]
In the World Wide Web (WWW) (World Wide Web Web) uses, interface mode communicate with cooperate be before the data, between the system, technological means that internal system is commonly used.In the prior art, the operating personnel in each stage for example, developer, tester etc., can utilize be used to the interface of introducing the Web interface and describe document, understand some relevant informations of Web interface, and then for example carry out follow-up interface operation, bookkeeping, test operation etc.
Yet, because present interfaces operation all is to describe document according to interface to carry out, very flexible, complicated operation, and makeing mistakes easily, thus caused the reduction of flexibility, efficient and the reliability of interface operation.
[summary of the invention]
Many aspects of the present invention provide a kind of method of operation and device of Web interface, in order to flexibility, efficient and the reliability that improves interface operation.
An aspect of of the present present invention provides a kind of method of operation of Web interface, comprising:
Receive the descriptor of Web interface to be registered;
Utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, describedly utilize described descriptor, and described Web interface is registered, and to generate after the log-on message, also comprise:
Upgrade described log-on message.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, and described log-on message also comprises the interface related operating personnel with described Web; Describedly utilize described descriptor, described Web interface registered, to generate after the log-on message, also comprise:
Detect described log-on message;
If described log-on message upgrades, according to described log-on message, included described operating personnel send update notification in the described log-on message.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, describedly utilize described descriptor, and described Web interface is registered, and to generate after the log-on message, also comprise:
According to described log-on message, generate the test case of described Web interface;
Generate the input data at random, described input data comprise structured data and/or business datum;
Utilize described input data, move described test case, to obtain return data;
According to described return data and described interface return information, described Web interface is verified.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, and the described input data that generate at random comprise:
According to pre-configured restrictive condition, generate the described structured data that satisfies described restrictive condition at random; And/or
Pre-configured reference data is randomly drawed, to obtain described business datum.
Another aspect of the present invention provides a kind of operating means of Web interface, comprising:
Receiving element is for the descriptor that receives Web interface to be registered;
Registering unit is used for utilizing described descriptor, and described Web interface is registered, and to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, and described registering unit also is used for
Upgrade described log-on message.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, and described log-on message also comprises the interface related operating personnel with described Web; Described device also comprises:
Detecting unit is for detection of described log-on message;
Notification unit is used for if described test cell detects described log-on message and upgrades, and according to described log-on message, included described operating personnel send update notification in the described log-on message.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, and described device also comprises test cell, is used for
According to described log-on message, generate the test case of described Web interface; Generate the input data at random, described input data comprise structured data and/or business datum; Utilize described input data, move described test case, to obtain return data; And according to described return data and described interface return information, described Web interface is verified.
Aforesaid aspect and arbitrary possible implementation further provide a kind of implementation, and described test cell specifically is used for
According to pre-configured restrictive condition, generate the described structured data that satisfies described restrictive condition at random; And/or
Pre-configured reference data is randomly drawed, to obtain described business datum.
As shown from the above technical solution, the embodiment of the invention is by receiving the descriptor of Web interface to be registered, make it possible to utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information, like this, need not operating personnel in each stage and participate in the interface operation process, the flexibility height, simple to operate, and be not easy to make mistakes, thereby flexibility, efficient and the reliability of interface operation improved.
In addition, adopt technical scheme provided by the invention, because the descriptor according to the Web interface has generated log-on message automatically, therefore, make operating personnel need not referenced interface and describe document and carry out follow-up work, but by self according to described log-on message, automatically perform follow-up operation, thereby further improved the flexibility of operation, and automation of operation.
In addition, adopt technical scheme provided by the invention, because the descriptor of Web interface is the processing foundation of subsequent operation, revise these descriptors if desired, only the descriptor after revising need be registered again and got final product, namely registration updating information need not to revise whole operation flow process and test case, thereby further improved the flexibility of operation, and automation of operation.
In addition, adopt technical scheme provided by the invention, because the descriptor of Web interface is the processing foundation of subsequent operation, need not test case and consider these descriptors, thereby further improved the flexibility of testing, and the automation of test.
[description of drawings]
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the method for operation of the Web interface that Fig. 1 provides for one embodiment of the invention;
Fig. 2 is an inputting interface schematic diagram of the descriptor of Web interface among the embodiment of Fig. 1 correspondence;
Fig. 3 is another inputting interface schematic diagram of the descriptor of Web interface among the embodiment of Fig. 1 correspondence;
The structural representation of the operating means of the Web interface that Fig. 4 provides for another embodiment of the present invention;
The structural representation of the operating means of the Web interface that Fig. 5 provides for another embodiment of the present invention;
The structural representation of the operating means of the Web interface that Fig. 6 provides for another embodiment of the present invention.
[embodiment]
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
In addition, herein term " and/or ", only be a kind of incidence relation of describing affiliated partner, can there be three kinds of relations in expression, for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/" herein, generally represent forward-backward correlation to as if a kind of " or " relation.
The schematic flow sheet of the method for operation of the Web interface that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1.
101, receive the descriptor of Web interface to be registered.
Be understandable that the descriptor of described Web interface can be used for be described some relevant informations of Web interface, for example, information such as the parameter name of the request type of interface, the address of interface and port and interface and parameter type.Specifically can be as shown in Figures 2 and 3, (User Interface UI), receives the descriptor of input by Fig. 2 and user interface shown in Figure 3.
102, utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information.
Wherein, described Web interface can include but not limited to based on HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP) interface, based on Telnet (Telecommunication network, Telnet) interface of agreement, based on file transfer protocol (FTP) (File Transfer Protocol, FTP) interface, based on domain name system (Domain Name System, DNS) interface, based on Simple Network Management Protocol (Simple Network Management Protocol, SNMP) interface or based on simple message transfer protocol (SMTP) (Simple Mail Transfer Protocol, SMTP) interface, present embodiment does not limit this.
Need to prove that 101 and 102 executive agent can be operating means.
Like this, by receiving the descriptor of Web interface to be registered, make it possible to utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information, like this, need not operating personnel in each stage and participates in the interface operation process, the flexibility height, simple to operate, and be not easy to make mistakes, thereby flexibility, efficient and the reliability of interface operation improved.
Particularly, be example with the interface based on HTTP, in described log-on message,
Described interface requests type information can include but not limited to be used to indicate information, the information that is used to indicate propelling movement (post), the information that is used to indicate a method (head) of obtaining (get) type, be used to indicate the information of renewal (put) or be used to indicate the information of deletion (delete), and present embodiment does not limit this;
Described interface IP address information can include but not limited to address, port, entrance function, parameter name and parameter value, for example, http://www.baidu.com/s wd=%E8%AF%B7%E6%B1%82, present embodiment does not limit this;
Described interface parameters information can include but not limited to parameter name and parameter type, and present embodiment does not limit this;
Described interface return information can be character string, and present embodiment does not limit this.
Be understandable that described parameter type can include but not limited at least one in Boolean type (bool), digit group type (array), integer (int) and the enumeration type (enum), present embodiment does not limit this.
Alternatively, in one of present embodiment possible implementation, after 102, operating means can also further upgrade described log-on message, and the descriptor after being about to revise is registered again and got final product.
Alternatively, in one of present embodiment possible implementation, described log-on message can further include the interface related operating personnel with described Web.
Correspondingly, after 102, operating means can also further detect described log-on message.If described log-on message upgrades, described operating means then can be according to described log-on message, and included described operating personnel send update notification in the described log-on message.
Be understandable that described operating means sends the mode of update notification and can determine according to the operating personnel's that can obtain contact method.If contact method is addresses of items of mail, then can send update notification to operating personnel by mail; If contact method is landline telephone, then can send update notification to operating personnel by voice call; If contact method is mobile phone, then can send update notification to operating personnel by voice call, short message or multimedia message, present embodiment does not limit this.
Like this, after log-on message changes, the operating personnel in each stage for example, developer, tester etc., can in time know update notification, can for example carry out follow-up interface operation according to the log-on message after upgrading, bookkeeping, test operation etc., thus improved the reliability of interface operation.
Further, described log-on message can further include interface status information, is used for the state of the described Web interface of sign, for example, has developed and has finished, allows automatic test and allow simulation (Mock) etc.
Alternatively, in one of present embodiment possible implementation, after 102, operating means can also generate the test case of described Web interface further according to described log-on message.And then described operating means generates the input data at random, and described input data comprise structured data and/or business datum.Then, described operating means then can utilize described input data, moves described test case, to obtain return data.Like this, described operating means then can be verified described Web interface according to described return data and described interface return information.Be understandable that, only meet the return data of described interface return information, corresponding Web interface can be by checking.
Like this, because the descriptor according to the Web interface has generated log-on message automatically, therefore, making operating personnel need not referenced interface describes document and carries out follow-up work, but by self according to described log-on message, automatically perform follow-up operation, thereby further improved the flexibility of operation, and automation of operation.
In addition, because the descriptor of Web interface is the processing foundation of subsequent operation, need not test case and consider these descriptors, thereby further improved the flexibility of testing, and the automation of test.
Particularly, described operating means specifically can generate the described structured data that satisfies described restrictive condition at random according to pre-configured restrictive condition.For example, if parameter type is integer, so, pre-configured restrictive condition can be 1~100, perhaps can also be some fixed value 1,5,60 etc.Perhaps, more for example, if parameter type is enumeration type, so, pre-configured restrictive condition can be the numerical value that allows.
Perhaps, described operating means specifically can also be randomly drawed pre-configured reference data, to obtain described business datum.Wherein, described reference data can be the actual services data of gathering, and perhaps can also be according to other data, for example, the return data of other interfaces of upstream etc., the associated services data of acquisition, the present embodiment contrast does not limit.
In the present embodiment, by receiving the descriptor of Web interface to be registered, make it possible to utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information, like this, need not operating personnel in each stage and participates in the interface operation process, the flexibility height, simple to operate, and be not easy to make mistakes, thereby flexibility, efficient and the reliability of interface operation improved.
In addition, adopt technical scheme provided by the invention, because the descriptor according to the Web interface has generated log-on message automatically, therefore, make operating personnel need not referenced interface and describe document and carry out follow-up work, but by self according to described log-on message, automatically perform follow-up operation, thereby further improved the flexibility of operation, and automation of operation.
In addition, adopt technical scheme provided by the invention, because the descriptor of Web interface is the processing foundation of subsequent operation, revise these descriptors if desired, only the descriptor after revising need be registered again and got final product, namely registration updating information need not to revise whole operation flow process and test case, thereby further improved the flexibility of operation, and automation of operation.
In addition, adopt technical scheme provided by the invention, because the descriptor of Web interface is the processing foundation of subsequent operation, need not test case and consider these descriptors, thereby further improved the flexibility of testing, and the automation of test.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
The structural representation of the operating means of the Web interface that Fig. 4 provides for another embodiment of the present invention, as shown in Figure 4.The operating means of the Web interface of present embodiment can comprise receiving element 41 and registering unit 42.Wherein, receiving element 41 is for the descriptor that receives Web interface to be registered; Registering unit 42 is used for utilizing described descriptor, and described Web interface is registered, and to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information.
Be understandable that the descriptor of described Web interface can be used for be described some relevant informations of Web interface, for example, information such as the parameter name of the request type of interface, the address of interface and port and interface and parameter type.Specifically can be as shown in Figures 2 and 3, (User Interface UI), receives the descriptor of input by Fig. 2 and user interface shown in Figure 3.
Wherein, described Web interface can include but not limited to based on HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP) interface, based on Telnet (Telecommunication network, Telnet) interface of agreement, based on file transfer protocol (FTP) (File Transfer Protocol, FTP) interface, based on domain name system (Domain Name System, DNS) interface, based on Simple Network Management Protocol (Simple Network Management Protocol, SNMP) interface or based on simple message transfer protocol (SMTP) (Simple Mail Transfer Protocol, SMTP) interface, present embodiment does not limit this.
Like this, receive the descriptor of Web interface to be registered by receiving element, make registering unit can utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information, like this, need not operating personnel in each stage and participate in the interface operation process, the flexibility height, simple to operate, and be not easy to make mistakes, thereby flexibility, efficient and the reliability of interface operation improved.
Particularly, be example with the interface based on HTTP, in described log-on message,
Described interface requests type information can include but not limited to be used to indicate information, the information that is used to indicate propelling movement (post), the information that is used to indicate a method (head) of obtaining (get) type, be used to indicate the information of renewal (put) or be used to indicate the information of deletion (delete), and present embodiment does not limit this;
Described interface IP address information can include but not limited to address, port, entrance function, parameter name and parameter value, for example, http://www.baidu.com/s wd=%E8%AF%B7%E6%B1%82, present embodiment does not limit this;
Described interface parameters information can include but not limited to parameter name and parameter type, and present embodiment does not limit this;
Described interface return information can be character string, and present embodiment does not limit this.
Be understandable that described parameter type can include but not limited at least one in Boolean type (bool), digit group type (array), integer (int) and the enumeration type (enum), present embodiment does not limit this.
Alternatively, in one of present embodiment possible implementation, described registering unit 42 can also be further used for upgrading described log-on message.
Alternatively, in one of present embodiment possible implementation, described log-on message can further include the interface related operating personnel with described Web.
Correspondingly, as shown in Figure 5, the operating means of the Web interface that present embodiment provides can further include:
Detecting unit 51 is for detection of described log-on message;
Notification unit 52 is used for if described detecting unit 51 detects described log-on message and upgrades, and according to described log-on message, included described operating personnel send update notification in the described log-on message.
Be understandable that described notification unit 52 sends the mode of update notification and can determine according to the operating personnel's that can obtain contact method.If contact method is addresses of items of mail, then can send update notification to operating personnel by mail; If contact method is landline telephone, then can send update notification to operating personnel by voice call; If contact method is mobile phone, then can send update notification to operating personnel by voice call, short message or multimedia message, present embodiment does not limit this.
Like this, after log-on message changes, the operating personnel in each stage for example, developer, tester etc., can in time know update notification, can for example carry out follow-up interface operation according to the log-on message after upgrading, bookkeeping, test operation etc., thus improved the reliability of interface operation.
Further, described log-on message can further include interface status information, is used for the state of the described Web interface of sign, for example, has developed and has finished, allows automatic test and allow simulation (Mock) etc.
Alternatively, in one of present embodiment possible implementation, as shown in Figure 6, the operating means of the Web interface that present embodiment provides can further include test cell 61, is used for according to described log-on message, generates the test case of described Web interface; And then, generating the input data at random, described input data comprise structured data and/or business datum; Then, utilize described input data, move described test case, to obtain return data; Like this, then can described Web interface be verified according to described return data and described interface return information.Be understandable that, only meet the return data of described interface return information, corresponding Web interface can be by checking.
Like this, because the descriptor according to the Web interface has generated log-on message automatically, therefore, making operating personnel need not referenced interface describes document and carries out follow-up work, but by self according to described log-on message, automatically perform follow-up operation, thereby further improved the flexibility of operation, and automation of operation.
In addition, because the descriptor of Web interface is the processing foundation of subsequent operation, need not test case and consider these descriptors, thereby further improved the flexibility of testing, and the automation of test.
Particularly, described test cell 61 specifically can be used for according to pre-configured restrictive condition, generates the described structured data that satisfies described restrictive condition at random.For example, if parameter type is integer, so, pre-configured restrictive condition can be 1~100, perhaps can also be some fixed value 1,5,60 etc.Perhaps, more for example, if parameter type is enumeration type, so, pre-configured restrictive condition can be the numerical value that allows.
Perhaps, described test cell 61 specifically can also be randomly drawed pre-configured reference data, to obtain described business datum.Wherein, described reference data can be the actual services data of gathering, and perhaps can also be according to other data, for example, the return data of other interfaces of upstream etc., the associated services data of acquisition, the present embodiment contrast does not limit.
In the present embodiment, receive the descriptor of Web interface to be registered by receiving element, make registering unit can utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information, like this, need not operating personnel in each stage and participate in the interface operation process, the flexibility height, simple to operate, and be not easy to make mistakes, thereby flexibility, efficient and the reliability of interface operation improved.
In addition, adopt technical scheme provided by the invention, because the descriptor according to the Web interface has generated log-on message automatically, therefore, make operating personnel need not referenced interface and describe document and carry out follow-up work, but by self according to described log-on message, automatically perform follow-up operation, thereby further improved the flexibility of operation, and automation of operation.
In addition, adopt technical scheme provided by the invention, because the descriptor of Web interface is the processing foundation of subsequent operation, revise these descriptors if desired, only the descriptor after revising need be registered again and got final product, namely registration updating information need not to revise whole operation flow process and test case, thereby further improved the flexibility of operation, and automation of operation.
In addition, adopt technical scheme provided by the invention, because the descriptor of Web interface is the processing foundation of subsequent operation, need not test case and consider these descriptors, thereby further improved the flexibility of testing, and the automation of test.
The those skilled in the art can be well understood to, and is the convenience described and succinct, the system of foregoing description, and the concrete course of work of device and unit can not repeat them here with reference to the corresponding process among the preceding method embodiment.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method can realize by other mode.For example, device embodiment described above only is schematic, for example, the division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of unit to realize the purpose of present embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, the form that also can adopt hardware to add SFU software functional unit realizes.
The above-mentioned integrated unit of realizing with the form of SFU software functional unit can be stored in the computer read/write memory medium.Above-mentioned SFU software functional unit is stored in the storage medium, comprise that some instructions are with so that a computer installation (can be personal computer, server, perhaps network equipment etc.) or processor (processor) carry out the part steps of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), various media that can be program code stored such as magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the method for operation of a Web interface is characterized in that, comprising:
Receive the descriptor of Web interface to be registered;
Utilize described descriptor, described Web interface is registered, to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information.
2. method according to claim 1 is characterized in that, describedly utilizes described descriptor, and described Web interface is registered, and to generate after the log-on message, also comprises:
Upgrade described log-on message.
3. method according to claim 1 and 2 is characterized in that, described log-on message also comprises the interface related operating personnel with described Web; Describedly utilize described descriptor, described Web interface registered, to generate after the log-on message, also comprise:
Detect described log-on message;
If described log-on message upgrades, according to described log-on message, included described operating personnel send update notification in the described log-on message.
4. according to the described method of the arbitrary claim of claim 1~3, it is characterized in that, describedly utilize described descriptor, described Web interface is registered, to generate after the log-on message, also comprise:
According to described log-on message, generate the test case of described Web interface;
Generate the input data at random, described input data comprise structured data and/or business datum;
Utilize described input data, move described test case, to obtain return data;
According to described return data and described interface return information, described Web interface is verified.
5. method according to claim 4 is characterized in that, the described input data that generate at random comprise:
According to pre-configured restrictive condition, generate the described structured data that satisfies described restrictive condition at random; And/or
Pre-configured reference data is randomly drawed, to obtain described business datum.
6. the operating means of a Web interface is characterized in that, comprising:
Receiving element is for the descriptor that receives Web interface to be registered;
Registering unit is used for utilizing described descriptor, and described Web interface is registered, and to generate log-on message, described log-on message comprises interface requests type information, interface IP address information, interface parameters information and interface return information.
7. device according to claim 6 is characterized in that, described registering unit also is used for upgrading described log-on message.
8. according to claim 6 or 7 described devices, it is characterized in that described log-on message also comprises the interface related operating personnel with described Web; Described device also comprises:
Detecting unit is for detection of described log-on message;
Notification unit is used for if described test cell detects described log-on message and upgrades, and according to described log-on message, included described operating personnel send update notification in the described log-on message.
9. according to the described device of the arbitrary claim of claim 6~8, it is characterized in that described device also comprises test cell, is used for
According to described log-on message, generate the test case of described Web interface; Generate the input data at random, described input data comprise structured data and/or business datum; Utilize described input data, move described test case, to obtain return data; And according to described return data and described interface return information, described Web interface is verified.
10. device according to claim 9 is characterized in that, described test cell specifically is used for
According to pre-configured restrictive condition, generate the described structured data that satisfies described restrictive condition at random; And/or
Pre-configured reference data is randomly drawed, to obtain described business datum.
CN201310177983.1A 2013-05-14 2013-05-14 The operating method and device of web interface Active CN103326892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310177983.1A CN103326892B (en) 2013-05-14 2013-05-14 The operating method and device of web interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310177983.1A CN103326892B (en) 2013-05-14 2013-05-14 The operating method and device of web interface

Publications (2)

Publication Number Publication Date
CN103326892A true CN103326892A (en) 2013-09-25
CN103326892B CN103326892B (en) 2018-10-16

Family

ID=49195436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310177983.1A Active CN103326892B (en) 2013-05-14 2013-05-14 The operating method and device of web interface

Country Status (1)

Country Link
CN (1) CN103326892B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170604A (en) * 2017-12-29 2018-06-15 成都市共维科技有限公司 Test method, device, computer equipment and storage medium
CN108205558A (en) * 2016-12-19 2018-06-26 北京奇虎科技有限公司 A kind of method and apparatus of online management service interface
CN110413526A (en) * 2019-07-30 2019-11-05 北京达佳互联信息技术有限公司 A kind of request processing method, device, server and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334728A (en) * 2008-07-28 2008-12-31 北京航空航天大学 Interface creating method and platform based on XML document description
US20100185634A1 (en) * 2009-01-22 2010-07-22 International Business Machines Corporation Data tranformations for a source application and multiple target applications supporting different data formats
CN102055770A (en) * 2011-01-17 2011-05-11 西安电子科技大学 Automatic secure protocol code implementation system based on extensive markup language (XML) description
CN103049271A (en) * 2012-12-27 2013-04-17 微梦创科网络科技(中国)有限公司 Method and device for automatically generating description document of API (application program interface)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334728A (en) * 2008-07-28 2008-12-31 北京航空航天大学 Interface creating method and platform based on XML document description
US20100185634A1 (en) * 2009-01-22 2010-07-22 International Business Machines Corporation Data tranformations for a source application and multiple target applications supporting different data formats
CN102055770A (en) * 2011-01-17 2011-05-11 西安电子科技大学 Automatic secure protocol code implementation system based on extensive markup language (XML) description
CN103049271A (en) * 2012-12-27 2013-04-17 微梦创科网络科技(中国)有限公司 Method and device for automatically generating description document of API (application program interface)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108205558A (en) * 2016-12-19 2018-06-26 北京奇虎科技有限公司 A kind of method and apparatus of online management service interface
CN108170604A (en) * 2017-12-29 2018-06-15 成都市共维科技有限公司 Test method, device, computer equipment and storage medium
CN108170604B (en) * 2017-12-29 2021-01-15 成都市共维科技有限公司 Test method, test device, computer equipment and storage medium
CN110413526A (en) * 2019-07-30 2019-11-05 北京达佳互联信息技术有限公司 A kind of request processing method, device, server and equipment

Also Published As

Publication number Publication date
CN103326892B (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN101902756B (en) M2M (Machine To Machine) business platform and working method thereof
CN111427803B (en) Automated random test method, apparatus, computer device and medium
CN105630685A (en) Method and device for testing program interface
CN107357593A (en) Source code file construction method, device, electric terminal and readable storage medium storing program for executing
CN108111364B (en) Service system testing method and device
CN104246759A (en) Application programming interface testing services
CN108920370B (en) Compatibility problem detection method, device and equipment
CN105357204B (en) Method and device for generating terminal identification information
CN109726105A (en) Test data building method, device, equipment and storage medium
CN102760096A (en) Test data generation method, unit testing method and unit testing system
CN104133765A (en) Test case sending method and test case server of network activities
CN111399840A (en) Module development method and device
WO2020211360A1 (en) Mock test method and system, electronic device, and computer non-volatile readable storage medium
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium
CN113268243A (en) Memory prediction method and device, storage medium and electronic equipment
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN109947624A (en) Method for monitoring state and device
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN107679423A (en) Partition integrity inspection method and device
CN103326892A (en) Web interface operation method and device
CN106161389A (en) Cheating identification method and device and terminal
CN103902543A (en) Database inquiry method and device and database system
CN105323145A (en) Malicious information identification method, device and system
CN102609253B (en) A kind of application implementation method of smart card and system
CN111488286A (en) Method and device for independently developing Android module

Legal Events

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