CN105847444A - Interface simulation method based on proxy service - Google Patents
Interface simulation method based on proxy service Download PDFInfo
- Publication number
- CN105847444A CN105847444A CN201610377295.3A CN201610377295A CN105847444A CN 105847444 A CN105847444 A CN 105847444A CN 201610377295 A CN201610377295 A CN 201610377295A CN 105847444 A CN105847444 A CN 105847444A
- Authority
- CN
- China
- Prior art keywords
- service
- api service
- interface
- api
- simulation
- 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
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 24
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000012360 testing method Methods 0.000 claims abstract description 17
- 101000804902 Drosophila melanogaster Xaa-Pro aminopeptidase ApepP Proteins 0.000 claims description 3
- 230000010354 integration Effects 0.000 claims description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/562—Brokering proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
Abstract
The invention discloses an interface simulation method based on proxy service, which comprises the following steps: (A) defining an API service interface; (B) both the appointed simulation API service and the real API service can realize an API service interface; (C) creating a proxy object, wherein the proxy object is used for calling simulation API service to realize an API service interface; (D) simultaneously developing a client APP and a real API service; (E) testing the APP through an API service interface realized by simulating the API service; (F) when the development of the real API service is completed, switching the simulation API service of the agent into the real API service; (G) and comprehensively testing the APP. The method based on the simulation API test can thoroughly isolate the APP development from the interface development, reduce the dependence of the APP development on the service background development and greatly improve the APP development efficiency.
Description
Technical field
The invention belongs to App development technique, be specifically related to a kind of interface analogy method based on agency service.
Background technology
In APP development process, the neck part of the exploitation of server A PI interface and test whole project development often
Point.Owing to APP needs to extract storage data by server A PI, the development progress of APP is often depending on the progress of API with steady
Qualitative.Traditional method is first real interface to be defined, and develop to test, and then carries out App and calls test, thus wants
API is asked to have precedence over the exploitation of APP.Daily App exploitation is usually required for spending a lot of time in the test joint debugging of api interface, past
The delay of APP progress is directly resulted in toward not carrying out due to api interface.
Summary of the invention
For solving above-mentioned technical problem, it is an object of the invention to provide one and realize API and APP synchronization based on agency service
The interface analogy method of parallel Efficient Development.
The technical solution used in the present invention is:
A kind of interface analogy method based on agency service, comprises the following steps:
(A) definition API service interface;(B) agreement simulation API service and true API service all can realize API service interface;
(C) creating agent object, this agent object is used for calling simulation API service and realizes API service interface;(D) carry out visitor simultaneously
Family end APP exploitation and true API service are developed;(E) the API service interface testing APP realized by simulation API service;(F)
When true API service has been developed, the simulation API service of agency is switched to true API service;(G) integration test APP, tests
Demonstrate,prove the correctness of true API service.
Further, the API service interface of described step A definition includes interface API protocol and Data Transport Protocol.
Further, described step B is simulated API service to realize according to interface API protocol.
Further, described agent object is held simulation API service simultaneously and is realized object and true API service realizes object.
Further, described agent object is by configuring the object indicating active service.
Beneficial effects of the present invention:
The present invention compares based on true API service test APP relative to tradition, method based on simulation API test, can be by
APP exploitation is thoroughly isolated with interface exploitation, reduces the APP exploitation dependence to service background exploitation simultaneously, is greatly promoted APP's
Development efficiency.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings the detailed description of the invention of the present invention is described further.
Fig. 1 is the principle framework figure of the present invention;
Fig. 2 is the flow chart of the present invention.
Detailed description of the invention
The theory of institute of the present invention foundation is: as long as appointing api interface agreement and data contract in advance, server A PI and
Client end AP P can complete APP exploitation, in order to ensure very by simulation API service functional mode with synchronous development
Real API service can seamless switching after develop, it is not necessary to revises APP and just can directly update.The present invention uses agency
Technology.
As shown in Figure 1: the good API service interface of our predefined, and arrange to simulate API service and true API service all
Realize API service interface.And APP client calls api interface by agency, agent object holds simulation API service simultaneously
Realize object and true API service realizes object, and indicate active service object by configuring.During simulating, we
Act on behalf of analog service API object, wait true API service object to develop, just switch to true API service object, and this
Switching is transparent for APP client.Thus realize the target of APP client and server API synchronous coordination exploitation.
As in figure 2 it is shown, be a kind of based on agency service the interface analogy method of the present invention, comprise the following steps: (A)
Definition API service interface;(B) agreement simulation API service and true API service all can realize API service interface;(C) create
Agent object, this agent object is used for calling simulation API service and realizes API service interface;(D) carry out client end AP P to open simultaneously
Send out and true API service is developed;(E) the API service interface testing APP realized by simulation API service;(F) as true API
Service development completes, and the simulation API service of agency is switched to true API service;(G) integration test APP, verifies true API
The correctness of service.
The method realizing API analog interface based on agency service that the present invention proposes, allows App developer at true API
Situation about not completing can develop the APP of test oneself smoothly.Thus realize API and APP and run simultaneously the mesh of Efficient Development
's.
The foregoing is only the preferred embodiments of the present invention, the present invention is not limited to above-mentioned embodiment, as long as with
Essentially identical means realize within the technical scheme of the object of the invention broadly falls into protection scope of the present invention.
Claims (5)
1. an interface analogy method based on agency service, it is characterised in that comprise the following steps:
(A) definition API service interface;
(B) agreement simulation API service and true API service all can realize API service interface;
(C) creating agent object, this agent object is used for calling simulation API service and realizes API service interface;
(D) carry out the exploitation of client end AP P simultaneously and true API service is developed;
(E) the API service interface testing APP realized by simulation API service;
(F) developed when true API service, the simulation API service of agency has been switched to true API service;
(G) integration test APP, verifies the correctness of true API service.
A kind of interface analogy method based on agency service the most according to claim 1, it is characterised in that: described step A
The API service interface of definition includes interface API protocol and Data Transport Protocol.
A kind of interface analogy method based on agency service the most according to claim 2, it is characterised in that: described step B
Middle simulation API service realizes according to interface API protocol.
A kind of interface analogy method based on agency service the most according to claim 1, it is characterised in that: described agency is right
Object is realized and true API service realizes object as holding simulation API service simultaneously.
A kind of interface analogy method based on agency service the most according to claim 4, it is characterised in that: described agency is right
As by configuring the object indicating active service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610377295.3A CN105847444A (en) | 2016-05-31 | 2016-05-31 | Interface simulation method based on proxy service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610377295.3A CN105847444A (en) | 2016-05-31 | 2016-05-31 | Interface simulation method based on proxy service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105847444A true CN105847444A (en) | 2016-08-10 |
Family
ID=56596018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610377295.3A Pending CN105847444A (en) | 2016-05-31 | 2016-05-31 | Interface simulation method based on proxy service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105847444A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218297A (en) * | 2018-08-31 | 2019-01-15 | 北京创鑫旅程网络技术有限公司 | A kind of method and device of request data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364436A (en) * | 2011-06-24 | 2012-02-29 | 浙大网新科技股份有限公司 | Method and system for realizing debugging of WinCE/Android mixed application program interface (API) |
CN102567071A (en) * | 2010-12-15 | 2012-07-11 | 中兴通讯股份有限公司 | Virtual serial port system and communication method for same |
CN102739470A (en) * | 2012-05-29 | 2012-10-17 | 百度在线网络技术(北京)有限公司 | Method and device for realizing Hadoop system testing |
CN104375933A (en) * | 2014-09-18 | 2015-02-25 | 广州华多网络科技有限公司 | Unit testing method and device |
US20160092344A1 (en) * | 2014-09-29 | 2016-03-31 | Teodor Joav Bally | End-to-end, lifecycle aware, api management |
-
2016
- 2016-05-31 CN CN201610377295.3A patent/CN105847444A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567071A (en) * | 2010-12-15 | 2012-07-11 | 中兴通讯股份有限公司 | Virtual serial port system and communication method for same |
CN102364436A (en) * | 2011-06-24 | 2012-02-29 | 浙大网新科技股份有限公司 | Method and system for realizing debugging of WinCE/Android mixed application program interface (API) |
CN102739470A (en) * | 2012-05-29 | 2012-10-17 | 百度在线网络技术(北京)有限公司 | Method and device for realizing Hadoop system testing |
CN104375933A (en) * | 2014-09-18 | 2015-02-25 | 广州华多网络科技有限公司 | Unit testing method and device |
US20160092344A1 (en) * | 2014-09-29 | 2016-03-31 | Teodor Joav Bally | End-to-end, lifecycle aware, api management |
Non-Patent Citations (1)
Title |
---|
包建强等: "《移动开发App研发录 架构设计、Crash分析和竞品技术分析》", 31 October 2015, 机械工业出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218297A (en) * | 2018-08-31 | 2019-01-15 | 北京创鑫旅程网络技术有限公司 | A kind of method and device of request data |
CN109218297B (en) * | 2018-08-31 | 2020-08-07 | 北京创鑫旅程网络技术有限公司 | Method and device for requesting data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
De Andrade et al. | Cross platform app: a comparative study | |
CN104683386B (en) | The stake service implementing method and device of customizable response | |
US20150227449A1 (en) | Method and device for developing, compiling and debugging | |
CN108170612A (en) | A kind of automated testing method, device and server | |
Yasrab | Platform-as-a-service (paas): the next hype of cloud computing | |
CN106681718A (en) | Toolkit-based desktop side plugin frame and implementation method thereof | |
CN103294599A (en) | Cloud-based method for cross test of embedded software | |
WO2016011764A1 (en) | Communication method and system based on assembled communication protocol stack | |
CN105955731A (en) | Quick compiling method and system of mobile game | |
CN107222542B (en) | Construction method of cloud service management system | |
CN105634876B (en) | A kind of terminal capabilities test method and system | |
JP2017199359A (en) | System and method for developing mobile based applications using model driven development | |
CN105847444A (en) | Interface simulation method based on proxy service | |
CN103593199A (en) | Method and systems for data conversion | |
CN106254491A (en) | A kind of stable IOS client framework model efficiently | |
Chen et al. | ICAT: An IoT device compatibility testing tool | |
CN104102477A (en) | Method and frame platform system for changing mobile terminal application into plugin | |
CN108536574B (en) | Application program debugging method and device | |
CN104679648B (en) | Across the automated testing method of application | |
Queck et al. | Runtime infrastructure for simulating vehicle-2-x communication scenarios | |
CN105812434B (en) | Business chain control method and device after the virtualization of user's handheld device | |
CN104063320B (en) | The transplantation method and system of a kind of software test platform | |
CN108415839A (en) | The development frame of multinuclear SoC chip and the development approach of multinuclear SoC chip | |
CN102868461A (en) | Base band test method, device and system | |
Jansen et al. | Testbeds for IT systems in tactical environments |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160810 |