CN107728999A - A kind of App, the method and system of small routine interface simulation - Google Patents

A kind of App, the method and system of small routine interface simulation Download PDF

Info

Publication number
CN107728999A
CN107728999A CN201711122533.7A CN201711122533A CN107728999A CN 107728999 A CN107728999 A CN 107728999A CN 201711122533 A CN201711122533 A CN 201711122533A CN 107728999 A CN107728999 A CN 107728999A
Authority
CN
China
Prior art keywords
interface
app
module
small routine
operating
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
CN201711122533.7A
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.)
Suzhou Qisong Software Co Ltd
Original Assignee
Suzhou Qisong Software 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 Suzhou Qisong Software Co Ltd filed Critical Suzhou Qisong Software Co Ltd
Priority to CN201711122533.7A priority Critical patent/CN107728999A/en
Publication of CN107728999A publication Critical patent/CN107728999A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Abstract

The invention discloses the method and system that a kind of App, small routine interface are simulated, including Operating Interface Module, interface to define memory module and server interface analog module;The operation interface that the Operating Interface Module includes project information and interface defines;Its operating method is as follows:(a)Cuit information and interface define information on Operating Interface Module(Title, App and wechat small routine upload server information, server response message, test case);(b)Interface in clicking operation interface module checks link, you can checks that the interface interchange code automatically generated, server end interface realize code, and the URL of the interface of invoking server end simulated implementation;(c)App, wechat small routine or browser access server end simulated implementation interface, carry out interface code debugging.

Description

A kind of App, the method and system of small routine interface simulation
Technical field
The invention belongs to mobile App and wechat small routine development technique field, more particularly to Android, iOS, wechat little Cheng Sequence, wechat public number and the definition of server end interface, management and analogy method.
Background technology
Mobile phone is almost everyone indispensable article, and the mobile phone of main flow is the intelligence using Android and iOS as operating system at present Can mobile phone.Android and iOS account for more than the 95% of the operation system of smart phone market share.The upper program for operating in smart mobile phone claims For mobile App(Hereinafter referred App).App points of locally applied and networking the applications not network.The application accounting wherein networked Example estimation is more than 70%.The App of exploitation networking needs to define the communication interface of App and server end, abbreviation interface, general bag Include the parameter list of App uploads(Including title and data type), abbreviation upload parameter;App is returned to after server-side processes Data(Including structure, title and data type), abbreviation result data.When definition, realization and the debugging of interface account for App exploitations Between ratio it is very big(Estimation is 30% to 50%), main reasons is that:1), interface definition be usually described with picture and text, not enough sternly Sincerely, the deviation understood in development process is easily caused;But interface interchange is mistake extremely rigorous, that a character boundary is write By mistake, call error will be caused;So it is careful to write the code of App calling interfaces and the interface realization of server end respond request And fallibility, it is very time-consuming;2), interface definition after the completion of, mobile Development person can write code according to interface definition document, still Often cannot debugging interface code in time because the interface exploitation of server end often and during App exploitations is carried out simultaneously.So open Originator generally requires first to realize the interface of a simulation, so that App can carry out code debugging.3), interface debugging be that part is time-consuming Work because interface debugging is related to App developer and backstage developer, cooperation needs to take more time.
Interface is defined generally by text(word、html、pdf)Mode preserve.Related personnel consult or When changing some interface, it is impossible to navigate to desired interface easily, other uncorrelated interfaces can not be hidden.
Wechat small routine is that a kind of need not download installs the application that can wechat is opened, hereinafter referred small routine. It is the technology of Tencent's exploitation.Its advantage is that Consumer's Experience is similar to primary App, but not download installation.To exploitation For person, it the advantages of be not have to develop respectively for Android and iOS, development cost can be saved;Without being published to respectively Apple AppStore and Android market.The problem of above-mentioned exploitation movement App, is also adapted to the exploitation of wechat small routine.The wechat public Number or other mobile phones Web applications, if the technology separated using front and back is developed, foreground with HTML and The problem of logic of data processing is only realized on Javascript, backstage, and above-mentioned App is developed is also adapted to.
Another patent of our company's application(Application number:201710326868.4 )Also for solving, App, wechat are small The problem of when program and the exploitation of server end interface and debugging charge, but emphasis is to be code building, of the invention stresses Point is server end simulation immediately and the management function of interface of interface.
The content of the invention
In order to solve the above-mentioned technical problem, the present invention is achieved by the following technical solutions:A kind of App, small routine connect The method and system that mouth mold is intended, system include interface definition and management module, and server interface analog module.The interface Definition and management module include standardization and the interface of formalization defines method and software interface, including interface input parameter, defeated Go out the defining operation such as parameter, test case interface.Management module provides conveniently interface and consults and change operation interface.Institute Stating server interface analog module realizes function workable for interface definition is completed i.e., i.e. App or wechat small routine, can be with The simulated implementation of relevant interface is called immediately, be able to can be returned according to the upload parameter calling interface that interface defines, simulated implementation Meet the data of interface definition format.
Preferably, server interface analog functuion is by a JavaEE Servlet(With PHP or .Net etc. its His technology can also)Receive all analog interfaces to call, by analysis request URL and upload parameter, from database or text Part obtains corresponding interface definition, and generation reply data is defined according to interface.
The operating procedure of the system is as follows:
(a)Cuit information and interface define information in operation interface;Interface definition include interface name, upload parameter, Returning result and test case, test case are optional.
(b)Interface definition is completed, and the server end analog functuion can of interface uses, i.e. App or wechat little Cheng Sequence can access interface, it can also be conducted interviews by browser or other interface testing instruments.If the ginseng of input Without defined test case is matched, then return one meets definition and required number(That is data structure, title and type)With Machine response;If the parameter of input have matched the test case of definition, the response message that use-case defines is returned.
(c)Interface definition interfaces are also the administration interface of interface simultaneously, and increase, deletion and modification interface are convenient and swift.Often Individual interface has a link(Or button), click on this link, you can with check interface define, the code of App calling interfaces, Back office interface realizes code, and calls the URL of simulated implementation.
Compared with prior art, the present invention is advantageous in that:
1st, the mode that interface defines is standardization and formalization, therefore the result defined is that unambiguously, the efficiency of definition is more Height, interface definition is accurate unambiguously, can use generation code and user interface(UI).
2nd, interface definition is completed, and App and small routine can directly invoke simulated implementation, and existing development mode then needs Developer develops analog interface, can save the substantial amounts of time.
3rd, line interface definition, the definition, renewal, access and hair of the system are entered compared to word or other texts Cloth is more efficient.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings.
Fig. 1 is present system structure chart.
In figure:1st, Operating Interface Module;2nd, the interface of defining interface, including interface increasing, delete, change, looking into function;3rd, interface The memory module of definition(Stored using database or file);4th, the server end analog module of interface;5th, App or Wechat small routine.
Embodiment
The present invention will be described in detail with reference to the accompanying drawings and detailed description.
A kind of App, the method and system of small routine interface simulation, as shown in figure 1, fixed including Operating Interface Module 1, interface Adopted database 3, server interface analog module 4 and interface interchange program(App or small routine)5.The Operating Interface Module 1 Include project information input and interface definition interfaces 2.The result of Operating Interface Module is stored in interface storage simulation and examined in 3. Server interface analog module 4 receives caller(App, small routine or browser)5 requests sent, pass through access interface Memory module 3, caller is returned result to according to certain logical process.
This App, the method and system operating method of small routine interface simulation comprise the following steps:
(a)Create the information such as a project, cuit title, bag name, item description;
(b)Various icons in clicking operation interface module 2, interface, input parameter, output knot are increased according to interface prompt Fruit and test case.
(c)Click on and linked on interface, you can to see the App automatically generated(Android and iOS)Accessed with wechat small routine Code, the server response interface code of interface, and call the URL of the interface of simulated implementation.
Embodiment one:
By taking the App that one community of exploitation makes friends as an example(Small routine has identical mode of operation), its mode of operation is as follows:
1. in operation interface, project is created, according to prompt message cuit title:" community " and bag name: “cn.wwt.community”
It is exactly the process that App asks a server 2. increasing an interface newly.According to prompting input interface title:" login " and Description information:" user's login ", after creating, it can be seen that this interface in interface list
3. it is exactly the parameter list of App upload servers newly-increased input parameter, including title and type, and description.Connecing Login is chosen in mouth list, clicks on newly-increased input parameter button, according to prompting input parameter name:" username ", type: “String”.Another parameter name:" password ", type:“password”
4. newly-increased output parameter, it is exactly that after server receives App requests, which type of data of App returned to.Click on newly-increased defeated Go out button, according to prompting input parameter title:UserId, type:String.
5. newly-increased test case, when being exactly App and server progress interface testing, which value is uploaded to server, service Device returns to any value.2 test cases typically are comprised at least, one represents correct operating process, and one represents abnormal operation Flow.
6. click on the link on interface, you can to see the App automatically generated(Android and iOS)Visited with wechat small routine Code, the server response interface code of interface are asked, and calls the URL and relevant parameter explanation of the interface of simulated implementation.
7. the Android of a Code copying automatically generated, iOS or wechat small routine project, access connecing for simulated implementation Then mouth URL, server interface analog module 4 will pass through necessarily according to incoming parameter, access interface memory module 3 Logical process, return and meet that what interface defined requirement responds to called side.
It is emphasized that:It the above is only presently preferred embodiments of the present invention, not the present invention made any formal Limitation, every any simple modification, equivalent change and modification for being made to above example of technical spirit according to the present invention, In the range of still falling within technical solution of the present invention.

Claims (3)

1. the method and system of a kind of App, small routine interface simulation, it is characterised in that including Operating Interface Module(1), interface Define memory module(3)With the server end analog module of interface(4);The Operating Interface Module(1)Include project information The inputting interface defined with interface(2), can be both defined at this interface with docking port, and can also check that the system was given birth to automatically Into interface interchange and realize code, moreover it is possible to check the URL of calling interface simulated implementation.
2. the method and system of a kind of App according to claim 1, small routine interface simulation, it is characterised in that interface Server end analog module defines according to the interface being stored in database or file, dynamic response App, small routine or clear Look at the request of device.
3. the operating method of the method and system of a kind of App, small routine interface simulation, it is characterised in that comprise the following steps: (a)In Operating Interface Module(1)Cuit information and interface description information(Interface name, input, output and test case); (b)Clicking operation interface module(1)On interface can check interface interchange and realization that the system automatically generates referring to link Code, moreover it is possible to check the URL of invoking server end interface simulated implementation.
CN201711122533.7A 2017-11-14 2017-11-14 A kind of App, the method and system of small routine interface simulation Pending CN107728999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711122533.7A CN107728999A (en) 2017-11-14 2017-11-14 A kind of App, the method and system of small routine interface simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711122533.7A CN107728999A (en) 2017-11-14 2017-11-14 A kind of App, the method and system of small routine interface simulation

Publications (1)

Publication Number Publication Date
CN107728999A true CN107728999A (en) 2018-02-23

Family

ID=61215516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711122533.7A Pending CN107728999A (en) 2017-11-14 2017-11-14 A kind of App, the method and system of small routine interface simulation

Country Status (1)

Country Link
CN (1) CN107728999A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733775A (en) * 2018-04-28 2018-11-02 上海鲜花日记网络技术有限公司 The contents management method and background framework of client
CN109117361A (en) * 2018-06-21 2019-01-01 腾讯科技(深圳)有限公司 A kind of remote debugging method of small routine, relevant device and system
CN109344058A (en) * 2018-09-18 2019-02-15 北京云测信息技术有限公司 A kind of small routine automated testing method
CN109885792A (en) * 2019-01-04 2019-06-14 石化盈科信息技术有限责任公司 A kind of APP bridging method based on webdriver technology
CN110389886A (en) * 2018-04-16 2019-10-29 腾讯科技(深圳)有限公司 A kind of additional function test method, device and the storage medium of main body application program
CN110489101A (en) * 2019-07-15 2019-11-22 北京字节跳动网络技术有限公司 Interface analogy method, system, medium and electronic equipment
CN110908904A (en) * 2019-11-15 2020-03-24 北京小米移动软件有限公司 Method and device for debugging fast application and electronic equipment
CN111464429A (en) * 2020-03-31 2020-07-28 高新兴科技集团股份有限公司 WeChat applet multi-item compatible sharing method, system, storage medium and equipment
CN113722020A (en) * 2020-05-26 2021-11-30 腾讯科技(深圳)有限公司 Interface calling method, device and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229474A (en) * 2017-05-31 2017-10-03 成都药王科技股份有限公司 Method and device based on visualization interface rapid configuration Java interfaces and graph service
US20170286571A1 (en) * 2016-03-31 2017-10-05 Cae Inc. Dynamically updating a model associated to a simulated interactive object

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170286571A1 (en) * 2016-03-31 2017-10-05 Cae Inc. Dynamically updating a model associated to a simulated interactive object
CN107229474A (en) * 2017-05-31 2017-10-03 成都药王科技股份有限公司 Method and device based on visualization interface rapid configuration Java interfaces and graph service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KEVINDO: "HTTP服务端接口模拟工具-HttpServerMockTool", 《CSDN,HTTPS://BLOG.CSDN.NET/ADOAIWE N1314/ARTICLE/DETAILS/50518758》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389886A (en) * 2018-04-16 2019-10-29 腾讯科技(深圳)有限公司 A kind of additional function test method, device and the storage medium of main body application program
CN110389886B (en) * 2018-04-16 2021-08-03 腾讯科技(深圳)有限公司 Additional function testing method and device of main application program and storage medium
CN108733775A (en) * 2018-04-28 2018-11-02 上海鲜花日记网络技术有限公司 The contents management method and background framework of client
CN109117361B (en) * 2018-06-21 2020-12-15 腾讯科技(深圳)有限公司 Remote debugging method, related equipment and system for small program
CN109117361A (en) * 2018-06-21 2019-01-01 腾讯科技(深圳)有限公司 A kind of remote debugging method of small routine, relevant device and system
CN109344058A (en) * 2018-09-18 2019-02-15 北京云测信息技术有限公司 A kind of small routine automated testing method
CN109344058B (en) * 2018-09-18 2021-06-15 北京云测信息技术有限公司 Automatic small program testing method
CN109885792A (en) * 2019-01-04 2019-06-14 石化盈科信息技术有限责任公司 A kind of APP bridging method based on webdriver technology
CN110489101A (en) * 2019-07-15 2019-11-22 北京字节跳动网络技术有限公司 Interface analogy method, system, medium and electronic equipment
CN110489101B (en) * 2019-07-15 2023-08-25 北京字节跳动网络技术有限公司 Interface simulation method, system, medium and electronic equipment
CN110908904A (en) * 2019-11-15 2020-03-24 北京小米移动软件有限公司 Method and device for debugging fast application and electronic equipment
CN111464429A (en) * 2020-03-31 2020-07-28 高新兴科技集团股份有限公司 WeChat applet multi-item compatible sharing method, system, storage medium and equipment
CN111464429B (en) * 2020-03-31 2022-09-23 高新兴科技集团股份有限公司 WeChat applet multi-item compatible sharing method, system, storage medium and equipment
CN113722020A (en) * 2020-05-26 2021-11-30 腾讯科技(深圳)有限公司 Interface calling method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107728999A (en) A kind of App, the method and system of small routine interface simulation
US10831802B2 (en) Techniques to respond to user requests using natural-language machine learning based on example conversations
CN107168702A (en) A kind of App, small routine and web interface definition and code generating method
US20180321922A1 (en) Bot creation with workflow development system
US10013245B2 (en) Systems and methods for converting typed code
US20110113090A1 (en) Dynamic mobile client
US20210149645A1 (en) System, method, and apparatus for data-centric networked application development services
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
US20200371755A1 (en) Tri-affinity model driven method and platform for authoring, realizing, and analyzing a cross-platform application
US10810358B2 (en) Automatic and dynamic generation of customized computer user interface screens
US20200364813A1 (en) User interface and smart contract interaction model for generating user interface representations
CN101504616B (en) Method and apparatus for login of Windows application program through Web application
CN108132879A (en) Automated software testing method, platform, terminal and medium
Um et al. Strengthening trust in the future social-cyber-physical infrastructure: an ITU-T perspective
CN106406844A (en) A method and a device for realizing a communication interaction platform official account menu
US20190005228A1 (en) Trusted and untrusted code execution in a workflow
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
Machiraju et al. Developing Bots with Microsoft Bots Framework
Rukzio et al. Automatic form filling on mobile devices
CN103561113A (en) Web Service interface generating method and device
US20220342742A1 (en) Graphical management of big data pipelines
CN105988992A (en) Icon pushing method and device
US10324692B2 (en) Integration for next-generation applications
US11775261B2 (en) Dynamic process model palette
CN114282760A (en) Workflow generation method and device combining dynamic form and dynamic flow

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180223

WD01 Invention patent application deemed withdrawn after publication