CN108173957B - Rapid configuration joint debugging platform for Http interface - Google Patents

Rapid configuration joint debugging platform for Http interface Download PDF

Info

Publication number
CN108173957B
CN108173957B CN201810003643.XA CN201810003643A CN108173957B CN 108173957 B CN108173957 B CN 108173957B CN 201810003643 A CN201810003643 A CN 201810003643A CN 108173957 B CN108173957 B CN 108173957B
Authority
CN
China
Prior art keywords
request
adaptation
protocol
configuration
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810003643.XA
Other languages
Chinese (zh)
Other versions
CN108173957A (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.)
Fujian Boshicom Information Co.,Ltd.
Original Assignee
Fujian Boshitong Information 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 Fujian Boshitong Information Co ltd filed Critical Fujian Boshitong Information Co ltd
Priority to CN201810003643.XA priority Critical patent/CN108173957B/en
Publication of CN108173957A publication Critical patent/CN108173957A/en
Application granted granted Critical
Publication of CN108173957B publication Critical patent/CN108173957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The utility model provides a quick configuration joint debugging platform of Http interface which characterized in that, this configuration platform mainly includes: channel request, protocol encapsulation, common logic processing, adaptation result judgment and channel and process order response ending. The channel request acquires corresponding information according to the service order, the packaging protocol performs common logic processing according to the information acquired by the channel request, and the common logic processing performs wind control result judgment on wind control options of a service line, a company, product configuration and interface configuration, enters adaptation result judgment and finally generates an order. The invention improves the production efficiency of daily development, improves the system performance, enhances the function expansibility and makes a foundation framework for realizing the automation of the Http interface rapid configuration joint debugging platform.

Description

Rapid configuration joint debugging platform for Http interface
Technical Field
The invention relates to the technical field of communication, in particular to a rapid configuration joint debugging platform for an Http interface.
Background
With the rapid development of the value added service, in order to better provide the high-quality value added service for the user, the problem of rapid configuration and joint debugging of the Http interface of the user needs to be solved. The user group can be better expanded by solving the problem of the Http interface.
Today is an internet era in which all industries have been covered. The Internet platform is composed of foreground display and background business processing. The foreground client and the background server are in network communication through an http protocol, and the data format widely adopts formats supporting cross-platform analysis, such as xml, json, jsonnp and the like. But the way that different platforms call the server is different; different platforms realize different styles in calling grammar and logic; meanwhile, the coding modes of different platforms for transmitting data are also eight-door, namely GBK coding, UTF-8 coding, GB2312 coding and the like. After the development of the server interface is completed, in order to be compatible with the correct use of various platforms, developers need to be expected to be proficient in all languages, unit test cases of various languages can be written, the requirements on the interface developers are high, and the interface development difficulty is high.
Disclosure of Invention
The embodiment of the invention aims to provide a Http interface rapid configuration joint debugging platform capable of solving the problems, and the Http interface testing process of different platforms can be simplified.
The embodiment of the invention adopts the following technical scheme: the utility model provides a quick configuration joint debugging platform of Http interface which characterized in that the platform configuration mainly includes: channel request, protocol encapsulation, common logic processing, adaptation result judgment and channel and process order response ending. The channel request acquires corresponding information according to the short message service list, the packaging protocol performs public logic processing according to the information acquired by the channel request, and the public logic processing performs wind control result judgment on wind control options of service lines, companies, product configuration and interface configuration and finally enters adaptation result judgment. And judging that a response channel is formed by generating a bare code instruction through the bare code according to the adaptation result, and then sending the instruction through the response channel to finish the order process.
The wind control result judgment in the embodiment of the invention enters the adaptation result judgment through entering the service processing type matching, and is characterized in that: and matching the business processing types from the business processing type attributes of the business line, the company and the product, wherein the priority is product > company > business line.
The embodiment of the invention also provides a protocol adaptation process, which comprises the following steps:
(1) reading information and starting adaptation;
(2) acquiring parameter matching protocols of service lines, companies, products and the like in the selected instruction;
(3) acquiring corresponding protocol parameters, parameter assembly modes (key/value, json and the like), request url and request modes (post/get and the like) of the configuration of the protocol configuration interface;
(4) matching the parameter values in the request corresponding to the protocol parameters, and if the protocol parameters which need to be filled cannot obtain the matching values, judging that the protocol parameters fail;
(5) judging a parameter acquisition result;
(6) a, obtaining url address, b, assembling request parameters according to parameter assembling mode (the assembling mode includes key/value, json, etc.)
(7) After the adaptation is finished, returning a result;
further: in the protocol adaptation process described in the embodiment of the present invention, as long as an error occurs in one step, it is determined that adaptation has failed.
Further: the protocol adaptation result is judged successfully, and the protocol adaptation result enters an assembly request parameter process, wherein the assembly request parameter process comprises the following steps:
(1) request sending and analyzing processes;
(2) judging request types Get/POST and the like-Get request processing packet, POST request key/value processing packet, POST request JSON format processing packet and other mode processing packet;
(3) sending a request;
(4) judging the response time;
(5) processing the response message branch;
(6) return result, success/failure.
The fast configuration joint debugging platform for the Http interface reduces manual operation, improves production efficiency of daily development, improves system performance, enhances function expansibility, and provides a foundation framework for realizing fast configuration automation of the Http interface.
Description of the drawings:
FIG. I is a flow chart of the request service processing of the Http interface rapid configuration joint debugging platform according to the present invention;
FIG. two is a protocol adaptation flow of a Http interface rapid configuration joint debugging platform according to the present invention;
fig. three is an assembly request parameter flow of the Http interface rapid configuration joint debugging platform of the present invention.
The specific implementation mode is as follows:
the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. one is a flow chart of processing a request service of an Http interface rapid configuration joint debugging platform according to the present invention, which mainly includes: channel request, protocol encapsulation, common logic processing, adaptation result judgment, and channel response and order flow ending. And the channel request acquires corresponding information according to the short message service list to carry out public logic processing. And the common logic processing carries out wind control judgment on wind control options of a service line, a company, product configuration and interface configuration.
The public logic processing judges the matching of the entering service processing types through the wind control result, and is characterized in that: and matching the service processing type from the service processing type attributes of the service line, the company and the product, wherein the priority is product > company > service line, so as to obtain the adaptation result judgment. And the adaptation result judgment enters a protocol adaptation flow through networking, after the adaptation result is successful, the protocol adaptation flow enters an assembly parameter flow so as to generate an order, data is stored in a database according to the generated order, and finally a response channel is entered. And the response channel sends an instruction, the user receives the verification code and submits the verification code, the response channel matches the order through the verification code, the system judges the matching result according to the order number, the data is put in a warehouse after the judgment result comes out, and finally the order process is ended.
According to the second figure, a protocol adaptation process of an Http interface rapid configuration joint debugging platform mainly comprises the following steps:
(1) reading information and starting adaptation;
(2) acquiring parameter matching protocols of service lines, companies, products and the like in the selected instruction;
(3) acquiring corresponding protocol parameters, parameter assembly modes (key/value, json and the like), request url and request modes (post/get and the like) of the configuration of the protocol configuration interface;
(4) matching the parameter values in the request corresponding to the protocol parameters, and if the protocol parameters which need to be filled cannot obtain the matching values, judging that the protocol parameters fail;
(5) judging a parameter acquisition result;
(6) a, obtaining url address, b, assembling request parameters according to parameter assembling mode (the assembling mode includes key/value, json, etc.)
(7) After the adaptation is finished, returning a result;
and if the protocol adaptation result is successfully judged, entering an assembly request parameter process, referring to fig. three, wherein the assembly request parameter process comprises the following steps:
(1) request sending and analyzing processes;
(2) judging request types Get/POST and the like-Get request processing packet, POST request key/value processing packet, POST request JSON format processing packet and other mode processing packet;
(3) sending a request;
(4) judging the response time;
(5) processing the response message branch;
(6) return result, success/failure.
The invention has the beneficial effects that: the manual operation is reduced, the production efficiency of daily development is improved, the system performance is improved, the function expansibility is enhanced, and a basic framework is made for realizing the automatic joint debugging of the fast configuration of the Http interface.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all changes in the flow process or direct and indirect application to other related technical fields made by the contents of the present specification and the drawings are included in the scope of the present invention.

Claims (4)

1. A fast configuration joint debugging platform for an Http interface mainly comprises: channel request, protocol encapsulation, common logic processing, adaptation result judgment and channel and process order response ending; the channel request acquires corresponding information according to the service list, the protocol package performs public logic processing according to the information acquired by the channel request, and the public logic processing performs wind control result judgment on wind control options of service lines, companies, product configuration and interface configuration and finally enters adaptation result judgment; the adaptation result judges that a response channel is formed by generating a bare code instruction through the bare code, then the instruction is sent through the response channel, and the order flow is ended;
wherein, the adaptation result judgment enters a protocol adaptation flow through networking, and the protocol adaptation flow comprises the following steps:
(1) reading information and starting adaptation;
(2) acquiring parameter matching protocols of service lines, companies and products in the selected instruction;
(3) acquiring corresponding protocol parameters, parameter assembly modes, request urls and request modes configured by a protocol configuration interface;
(4) matching the parameter values in the request corresponding to the protocol parameters, if the protocol parameters which need to be filled cannot obtain the matching values, judging that the protocol parameters fail, skipping to the step (7) to continue to execute, and otherwise, continuing to execute the step (5);
(5) judging a parameter acquisition result;
(6) a, acquiring a url address, b, assembling request parameters according to a parameter assembling mode;
(7) and after the adaptation is finished, returning a result.
2. The Http interface rapid configuration joint debugging platform according to claim 1, wherein the wind control result judgment is performed by entering service processing type matching and entering adaptation result judgment, and the method comprises the following steps: and matching the business processing types from the business processing type attributes of the business line, the company and the product, wherein the priority is product > company > business line.
3. The Http interface rapid configuration joint debugging platform of claim 1, wherein the adaptation is determined to fail if an error occurs in one step in the protocol adaptation process.
4. The Http interface rapid configuration joint debugging platform of claim 1, wherein the adaptation result is determined successfully and enters an assembly request parameter process, wherein the assembly request parameter process includes:
(1) request sending and analyzing processes;
(2) judging a request type Get/POST-Get request processing packet, a POST request key/value processing packet, a POST request JSON format processing packet and other mode processing packets;
(3) sending a request;
(4) judging the response time;
(5) processing the response message branch;
(6) return result, success/failure.
CN201810003643.XA 2018-01-03 2018-01-03 Rapid configuration joint debugging platform for Http interface Active CN108173957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810003643.XA CN108173957B (en) 2018-01-03 2018-01-03 Rapid configuration joint debugging platform for Http interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810003643.XA CN108173957B (en) 2018-01-03 2018-01-03 Rapid configuration joint debugging platform for Http interface

Publications (2)

Publication Number Publication Date
CN108173957A CN108173957A (en) 2018-06-15
CN108173957B true CN108173957B (en) 2020-12-15

Family

ID=62517143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810003643.XA Active CN108173957B (en) 2018-01-03 2018-01-03 Rapid configuration joint debugging platform for Http interface

Country Status (1)

Country Link
CN (1) CN108173957B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968744B (en) 2018-09-30 2023-09-05 中国移动通信有限公司研究院 Resource query method and device, equipment and storage medium
CN111796822B (en) * 2020-06-18 2022-08-09 浪潮金融信息技术有限公司 Scheme for realizing fast development of Http request of non-existing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607786A (en) * 2003-10-13 2005-04-20 华为技术有限公司 Method for implementing media gateway control protocol application adaptive compatibility
CN107046482A (en) * 2017-04-25 2017-08-15 厦门集微科技有限公司 The management method and device of a kind of API service
CN107222505A (en) * 2017-07-12 2017-09-29 杭州时趣信息技术有限公司 A kind of method and device for being adapted to external protocol
US10110573B2 (en) * 2010-07-08 2018-10-23 Texas Instruments Incorporated Packet-processing with CPPI DMA streaming interface ingress and egress ports

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101077404B1 (en) * 2003-11-20 2011-10-26 파나소닉 주식회사 Association control apparatus, association control method and service association system
US8572677B2 (en) * 2010-07-14 2013-10-29 William G. Bartholomay Devices, systems, and methods for enabling reconfiguration of services supported by a network of devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607786A (en) * 2003-10-13 2005-04-20 华为技术有限公司 Method for implementing media gateway control protocol application adaptive compatibility
US10110573B2 (en) * 2010-07-08 2018-10-23 Texas Instruments Incorporated Packet-processing with CPPI DMA streaming interface ingress and egress ports
CN107046482A (en) * 2017-04-25 2017-08-15 厦门集微科技有限公司 The management method and device of a kind of API service
CN107222505A (en) * 2017-07-12 2017-09-29 杭州时趣信息技术有限公司 A kind of method and device for being adapted to external protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于面向对象技术的自动化测试平台的设计与实现;沈亮;《中国优秀硕士学位论文全文数据库信息科技辑》;20120315;全文 *

Also Published As

Publication number Publication date
CN108173957A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN110889270B (en) Form page document generation method, form page rendering method and device
CN104821954A (en) Cross-platform remote procedure call method
CN104866512A (en) Method, device and system for extracting webpage content
CN108563768A (en) Data transfer device, device, equipment and the storage medium of different data model
CN102609264A (en) Method and device for generating calling codes by calling application programming interfaces
CN103176834B (en) A kind of method of invoke extensions interface and device
CN103873918A (en) Picture processing method, device and terminal
CN104967644A (en) Message push method, apparatus and system
CN108173957B (en) Rapid configuration joint debugging platform for Http interface
CN107342910A (en) Simulate automated testing method and instrument that multi-user carries out network access
CN113806037A (en) Service calling method and device, storage medium and electronic equipment
CN111639275A (en) Routing information processing method and device, electronic equipment and computer storage medium
CN110555145A (en) Browser-based webpage content acquisition system and acquisition method thereof
CN111723019A (en) Interface debugging method and system
CN109600381B (en) Interface adaptation method, device and system
CN114448719A (en) Message interaction method, device and system
CN109347914A (en) A kind of method and device of the processing browse request based on Python Flask and decorator
CN111124924B (en) API deployment method and device, electronic equipment and storage medium
CN109672732B (en) Interface adaptation method, device and system
CN111738853A (en) Transaction optimization method and device based on block chain distributed system
CN109816462A (en) A kind of recognition methods of invoice information and device
CN116346660A (en) Data processing method, device, equipment and medium based on dependent replacement service
CN113542416A (en) Message receiving and sending method and device
CN110913406B (en) Access configuration method and device of RCS test server
CN113608900B (en) Method, device, equipment and medium for calling algorithm model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 7th Floor, Building 4, Zone F, Software Park, Tongpan Road, Gulou District, Fuzhou City, Fujian Province, 350001

Patentee after: Fujian Boshicom Information Co.,Ltd.

Address before: 7th Floor, Building 4, Zone F, Software Park, Tongpan Road, Gulou District, Fuzhou City, Fujian Province, 350001

Patentee before: FUJIAN BOSHITONG INFORMATION Co.,Ltd.

CP01 Change in the name or title of a patent holder