CN109522094A - A kind of software demonstration method, system and computer equipment - Google Patents

A kind of software demonstration method, system and computer equipment Download PDF

Info

Publication number
CN109522094A
CN109522094A CN201811383929.1A CN201811383929A CN109522094A CN 109522094 A CN109522094 A CN 109522094A CN 201811383929 A CN201811383929 A CN 201811383929A CN 109522094 A CN109522094 A CN 109522094A
Authority
CN
China
Prior art keywords
mock
data
software
software demonstration
data items
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
CN201811383929.1A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811383929.1A priority Critical patent/CN109522094A/en
Publication of CN109522094A publication Critical patent/CN109522094A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of software demonstration method, system and computer equipments.It is related to research and development of software technology, solves the problems, such as used data volume excessive caused complex software, heavy workload during software demonstration.This method comprises: intercepting the performance layer state transfer REST request that all front ends are sent to bottom during software demonstration;At mock layers of front end analogue interface, according to the routing route information carried in REST request, corresponding mock data are accessed.Technical solution provided by the invention is suitable for mock data management, realizes a mock service as multiple and different requests and provides the mock Data duplication using mechanism of data.

Description

A kind of software demonstration method, system and computer equipment
Technical field
The present invention relates to research and development of software technology, espespecially a kind of software demonstration method, system and computer equipment.
Background technique
Software development is getting faster at present, and many times a software is in research staff's open procedure, because of development process The often reasons such as front and back end concurrent development usually will do a demo again for this large-scale software, i.e. demo is used to It explains or demonstrates to client.
Because demo will not generally use truthful data, but use false front end analogue interface data (mock data), Common methods are developers for each REST interface one mock data of generation, and this mode is in the more complexity of interface Cause workload very big in software, for the project of secondary development or customization class, because original function may be very much, this way is just It is more complicated.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of software demonstration method, system and computer equipments.It is logical Building mock service management system is crossed, a mock service is realized as multiple and different requests and the mock data weight of data is provided Multiple using mechanism, solve during software demonstration used in data volume it is excessive caused by complex software, heavy workload ask Topic.
In order to reach the object of the invention, the present invention provides a kind of software demonstration methods, comprising:
During software demonstration, the performance layer state transfer REST request that all front ends are sent to bottom is intercepted;
At mock layers of front end analogue interface, according to the routing route information carried in REST request, access is corresponding Mock data.
Preferably, intercept all front ends be sent to bottom performance layer state transfer REST request the step of before, further includes:
According to tissue, business, software item target structure is pressed, multiple mock data items, each mock data items are generated One mock service is provided, identical REST request is issued at least one visitor and mock data is provided.
Preferably, this method further include:
In system operation, increase/deletion/modification mock data items.
Preferably, this method further include:
Any one of following attended operation is carried out to the mock data items:
Increase data, delete data, modification data, inquiry data.
Preferably, this method further include:
Record the operation information to project organization structure and/or mock data items.
The present invention also provides a kind of software demonstration systems, comprising:
Mock service module, the performance layer state that bottom is sent to for during software demonstration, intercepting all front ends turn REST request is moved, at mock layers of front end analogue interface, according to the routing route information carried in REST request, accesses phase The mock data answered.
Preferably, the system further include:
Molded tissue block, for generating multiple mock data items, each according to tissue, business, software item target structure is pressed Mock data items provide a mock service, issue identical REST request at least one visitor and provide mock data.
Preferably, the molded tissue block, is also used in system operation, increase/deletion/modification mock data item Mesh, and/or,
Any one of following attended operation is carried out to the mock data items:
Increase data, delete data, modification data, inquiry data.
Preferably, the system further include:
System module, for recording the operation information to project organization structure and/or mock data items.
The present invention also provides a kind of computer equipments, including memory, processor and are stored on the memory Computer program, described program are performed the method and step realized as described in claim 1-5 any one.
The present invention provides a kind of software demonstration method, system and computer equipments, during software demonstration, intercept institute The performance layer state transfer REST request for having front end to be sent to bottom is requested at mock layers of front end analogue interface according to the REST The routing route information of middle carrying, accesses corresponding mock data.Realizing a mock service is that multiple and different requests mentions For the mock Data duplication using mechanism of data, solves the used excessive caused software of data volume during software demonstration The problem of complexity, heavy workload.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of configuration diagram for software demonstration system that one embodiment of the invention provides;
Fig. 2 is a kind of flow diagram for software demonstration method that one embodiment of the invention provides;
Fig. 3 is the structural schematic diagram for another software demonstration system that one embodiment of the invention provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Demo will not generally use truthful data, but use false front end analogue interface data (mock data), common Method is developer for each REST interface one mock data of generation, and this mode is in the more complex software of interface In cause workload very big, for secondary development or customize the project of class, because original function may be very much, this way is just more multiple It is miscellaneous.
To solve the above-mentioned problems, the embodiment provides a kind of software demonstration method, system and computers to set It is standby.
One embodiment of the invention provides a kind of software demonstration system, makes for current software product demo false data Situation complicated or that research and development are at high cost, proposes that a kind of technical costs is low, reusable software demonstration system easy to operate.
System provided in an embodiment of the present invention is capable of providing multiple mock and services to different request offer data, in life It produces and intercepts the REST request that front end is sent to bottom in environment;Mock data are accessed, mock data are found according to the route of REST, And return to front end.
The system includes system module, molded tissue block, mock service module.
Wherein, the system module includes log recording function, records the operation information of operator;Service system is opened It opens, closing function.
The molded tissue block provide tissue additions and deletions change look into, project additions and deletions change Cha Gongneng, different for being supplied to different departments Interface warehouse.
The mock service module intercepts the request that all front ends are sent to bottom;Judge that the request requirement accesses mock number According to being found according to the url of REST using catalogue file, and find the content of response according to the route that REST is requested.
Concrete operations are that administrator or developer need, in tissue and business in this mock service system according to oneself The project of oneself or team is established under catalogue, such as: user's mock project, the project provide the data-interface of user.
Front and back end developer needs to formulate the url and data format of interface in project according to business, and is put into project In catalogue.
After opening mock service, for developer in the specified url of access, mock service can intercept url request, root Visitor is returned to according to the content that the route of RESTurl finds response.
The mock service may be reused, and it is each that mock service system, which can control the connection of request, and support is cross-domain A mock service is opened in access connection;Developer does not have to the mock service that each project safeguards oneself.The mock service Physical interface formulated jointly in building by front and back end developer, modified in development process with either party, it is synchronous simultaneously To mock service system.
System architecture is requested as shown in Figure 1, receiving in front end layer;At mock layers according to the corresponding interface of request call, connect Enter the service of corresponding mock data items;Specific mock data are provided in mock service layer.
One embodiment of the invention additionally provides a kind of software demonstration method, and it is soft to provide the completion of mock data using this method The process of part demonstration is as shown in Figure 2, comprising:
Step 201, basis press tissue, business, software item target structure, generate multiple mock data items.
In the embodiment of the present invention, each mock data items provide a mock service, issue at least one visitor Identical REST request provides mock data.A mock service management system is realized, multiple mock are provided and are serviced to difference Request provide data.One mock service can the same request to different access person different mock data are provided.One Tissue can have multiple business, a business that can have multiple mock data items.Mock service is formulated by developer, includes Url and data format;The software demonstration system of the offer of the embodiment of the present invention can be automatically generated according to data format to meet the requirements Mock data.
In system operation, administrator or developer can in the system maintenance organization, business and project Relationship.It/is deleted/for example, can increase and modifies mock data items.Attended operation can also be carried out to mock data items, specifically , any one of following attended operation is carried out to the mock data items:
Increase data, delete data, modification data, inquiry data.
In the embodiment of the present invention, it is preferred that the also recordable operation to project organization structure and/or mock data items is believed Breath.Maintenance has the connection relationship between visitor and request.
Step 202, during software demonstration, intercept all front ends be sent to bottom performance layer state transfer (REST) ask It asks.
In this step, each mock service intercepts the request that all front ends are sent to bottom when in use.
Step 203, at mock layers of front end analogue interface, according to the routing route information that carries in REST request, visit Ask corresponding mock data.
In this step, judges that the request requirement accesses mock data, the content of response is found according to the route of REST;It will Mock data return to front end, use for software demonstration.
One embodiment of the invention additionally provides a kind of software demonstration system, and structure is as shown in Figure 3, comprising:
Mock service module 301, for intercepting the performance layer state that all front ends are sent to bottom during software demonstration REST request is shifted, at mock layers of front end analogue interface, according to the routing route information carried in REST request, access Corresponding mock data.
Preferably, the system further include:
Molded tissue block 302, for generating multiple mock data items according to tissue, business, software item target structure is pressed, Each mock data items provide a mock service, issue identical REST request at least one visitor and provide mock number According to.
Preferably, the molded tissue block 302, is also used in system operation, increase/deletion/modification mock data Project, and/or,
Any one of following attended operation is carried out to the mock data items:
Increase data, delete data, modification data, inquiry data.
Preferably, the system further include:
System module 303, for recording the operation information to project organization structure and/or mock data items.
One embodiment of the invention additionally provides a kind of computer equipment, including memory, processor and is stored in described Computer program on memory, described program are performed a kind of software demonstration method for realizing that the embodiment of the present invention provides The step of.
The embodiment provides a kind of software demonstration method, system and computer equipments, in software demonstration process In, the performance layer state transfer REST request that all front ends are sent to bottom is intercepted, at mock layers of front end analogue interface, according to described The routing route information carried in REST request, accesses corresponding mock data.It is multiple and different for realizing a mock service Request the mock Data duplication using mechanism of data is provided, solve during software demonstration used in data volume is excessive leads The problem of complex software of cause, heavy workload.
Reasonable mock data system is designed, mock technology and attached functional module is based on, accomplishes as different items Mesh provides shared mock data service;Solve the problems, such as that each project will construct itself mock data.Sufficiently lower exploitation When mock data workload, greatly reduction human cost;The advantage of mock is sufficiently used, it is synchronous to guarantee the one of front and back end exploitation Cause property, accomplishes to adjust immediately, ensures the procedure quality of product development.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (10)

1. a kind of software demonstration method characterized by comprising
During software demonstration, the performance layer state transfer REST request that all front ends are sent to bottom is intercepted;
At mock layers of front end analogue interface, according to the routing route information carried in REST request, corresponding mock is accessed Data.
2. software demonstration method according to claim 1, which is characterized in that intercept the presentation layer that all front ends are sent to bottom State shifted before the step of REST request, further includes:
According to tissue, business, software item target structure is pressed, multiple mock data items are generated, each mock data items provide One mock service issues identical REST request at least one visitor and provides mock data.
3. software demonstration method according to claim 2, which is characterized in that this method further include:
In system operation, increase/deletion/modification mock data items.
4. software demonstration method according to claim 2, which is characterized in that this method further include:
Any one of following attended operation is carried out to the mock data items:
Increase data, delete data, modification data, inquiry data.
5. software demonstration method according to claim 2, which is characterized in that this method further include:
Record the operation information to project organization structure and/or mock data items.
6. a kind of software demonstration system characterized by comprising
Mock service module, the performance layer state transfer for being sent to bottom for during software demonstration, intercepting all front ends REST request, at mock layers of front end analogue interface, according to the routing route information carried in REST request, access is corresponding Mock data.
7. software demonstration system according to claim 6, which is characterized in that the system further include:
Molded tissue block, for generating multiple mock data items, each mock according to tissue, business, software item target structure is pressed Data items provide a mock service, issue identical REST request at least one visitor and provide mock data.
8. software demonstration system according to claim 7, which is characterized in that
The molded tissue block, is also used in system operation, increase/deletion/modification mock data items, and/or,
Any one of following attended operation is carried out to the mock data items:
Increase data, delete data, modification data, inquiry data.
9. software demonstration system according to claim 7, which is characterized in that the system further include:
System module, for recording the operation information to project organization structure and/or mock data items.
10. a kind of computer equipment, which is characterized in that including memory, processor and the calculating being stored on the memory Machine program, described program are performed the method and step realized as described in claim 1-5 any one.
CN201811383929.1A 2018-11-20 2018-11-20 A kind of software demonstration method, system and computer equipment Pending CN109522094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811383929.1A CN109522094A (en) 2018-11-20 2018-11-20 A kind of software demonstration method, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811383929.1A CN109522094A (en) 2018-11-20 2018-11-20 A kind of software demonstration method, system and computer equipment

Publications (1)

Publication Number Publication Date
CN109522094A true CN109522094A (en) 2019-03-26

Family

ID=65776508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811383929.1A Pending CN109522094A (en) 2018-11-20 2018-11-20 A kind of software demonstration method, system and computer equipment

Country Status (1)

Country Link
CN (1) CN109522094A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297475A (en) * 2012-03-01 2013-09-11 阿里巴巴集团控股有限公司 Mock service system and processing method of Mock service
CN106254423A (en) * 2016-07-20 2016-12-21 普元信息技术股份有限公司 The method realizing Restful service release quickly based on micro services framework
US9531677B1 (en) * 2014-05-07 2016-12-27 Skyport Systems, Inc. Method and system for managing network access
CN108762957A (en) * 2018-06-01 2018-11-06 郑州云海信息技术有限公司 A kind of generation method and device of cloud platform demo system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297475A (en) * 2012-03-01 2013-09-11 阿里巴巴集团控股有限公司 Mock service system and processing method of Mock service
US9531677B1 (en) * 2014-05-07 2016-12-27 Skyport Systems, Inc. Method and system for managing network access
CN106254423A (en) * 2016-07-20 2016-12-21 普元信息技术股份有限公司 The method realizing Restful service release quickly based on micro services framework
CN108762957A (en) * 2018-06-01 2018-11-06 郑州云海信息技术有限公司 A kind of generation method and device of cloud platform demo system

Similar Documents

Publication Publication Date Title
US10762075B2 (en) Database interface agent for a tenant-based upgrade system
US8612406B1 (en) Sharing business data across networked applications
KR101863398B1 (en) Method and system for synchronization mechanism on multi-server reservation system
JP3075486B2 (en) How to manage a database network
US9128964B2 (en) Selective mapping of integrated data
US7934018B1 (en) Methods and apparatus for synchronizing configuration data
WO2021052502A1 (en) Configuration change method and related apparatus
US7680905B1 (en) Methods and system for viewing SAN resources
CN110032886A (en) The method and apparatus of access authorization for resource management
CN105897946A (en) Obtaining method and system of access address
US20200092168A1 (en) Production software application performance and resiliency testing
US20200104404A1 (en) Seamless migration of distributed systems
US20120303692A1 (en) Federation of master data management systems
US8316058B2 (en) Data structure versioning for data management systems and methods
US20140214956A1 (en) Method and apparatus for managing sessions of different websites
EP1480130A2 (en) Method and apparatus for moving data between storage devices
US8527995B2 (en) Synchronization system for entities maintained by multiple applications
CN106921721A (en) A kind of server, conversation managing method and system
CN112698792A (en) Data migration method and device of distributed storage system and electronic equipment
US20240187501A1 (en) Techniques for distributed interface component generation
US11093477B1 (en) Multiple source database system consolidation
EP3061011B1 (en) Method for optimizing index, master database node and subscriber database node
CN111552956B (en) Role authority control method and device for background management
CN109522094A (en) A kind of software demonstration method, system and computer equipment
CN106657360A (en) Synchronization method and system for NIS servers under Linux system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326