CN111782330B - Page data acquisition method, device and equipment based on Web application - Google Patents

Page data acquisition method, device and equipment based on Web application Download PDF

Info

Publication number
CN111782330B
CN111782330B CN202010644011.9A CN202010644011A CN111782330B CN 111782330 B CN111782330 B CN 111782330B CN 202010644011 A CN202010644011 A CN 202010644011A CN 111782330 B CN111782330 B CN 111782330B
Authority
CN
China
Prior art keywords
interface
access address
page
target access
parameters
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
CN202010644011.9A
Other languages
Chinese (zh)
Other versions
CN111782330A (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.)
Agree Technology Co Ltd
Original Assignee
Agree 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 Agree Technology Co Ltd filed Critical Agree Technology Co Ltd
Priority to CN202010644011.9A priority Critical patent/CN111782330B/en
Publication of CN111782330A publication Critical patent/CN111782330A/en
Application granted granted Critical
Publication of CN111782330B publication Critical patent/CN111782330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种基于Web应用的页面数据获取方法,应用于数据挡板服务,包括:响应于针对目标页面的数据获取请求;根据资源定位符标识,确定资源定位符标识对应的目标访问地址;访问目标访问地址,获取接口参数对应的页面显示值。可见,本申请实现了用户通过直接在web应用的图形化界面(目标页面)中快速切换不同的资源定位符标识,确定目标访问地址,并通过访问目标访问地址,获取到接口参数对应的页面显示值,而不需要程序开发人员通过手动改动或编写代码,以获取到接口参数对应的页面显示值,提高了业务的开发效率。

The invention discloses a page data acquisition method based on Web applications, which is applied to data baffle services, including: responding to a data acquisition request for a target page; and determining a target access address corresponding to the resource locator identifier according to the resource locator identifier. ;Access the target access address and obtain the page display value corresponding to the interface parameter. It can be seen that this application enables the user to quickly switch between different resource locator identifiers directly in the graphical interface (target page) of the web application, determine the target access address, and obtain the page display corresponding to the interface parameters by accessing the target access address. Values do not require program developers to manually change or write code to obtain the page display values corresponding to interface parameters, which improves business development efficiency.

Description

一种基于Web应用的页面数据获取方法、装置及设备A web application-based page data acquisition method, device and equipment

技术领域Technical field

本发明涉及计算机技术领域,尤其涉及一种基于Web应用的页面数据获取方法、装置及设备。The present invention relates to the field of computer technology, and in particular to a method, device and equipment for obtaining page data based on Web applications.

背景技术Background technique

随着软件技术的发展和用户需求的不断提高,web应用越来越复杂,用户需求也越来越高。With the development of software technology and the continuous improvement of user needs, web applications are becoming more and more complex, and user needs are becoming higher and higher.

现有技术中,通常将web应用的前端和后端彻底分离,以便能够支持后端一套接口,提供给web,ios,android使用,大大提高了开发的效率。但与此同时,也带来了web应用的前端UI依赖后端数据的问题,在后端的接口没有开发完成之前,前端需要根据接口定义的规范模拟接口数据,确定web应用页面中的页面数据,以便确定当前web应用页面中的页面数据展示情况。在web应用的前端项目可视化开发过程中,前端没有与后端连接时,现有的web应用的页面数据获取方式通常需要开发人员手动编写web应用的页面数据,即web应用的页面数据完全由程序开发人员编码,但是,如果每个web应用的页面数据都需要完全手动编码,会导致业务的开发效率比较低下。In the existing technology, the front-end and back-end of web applications are usually completely separated to support a set of back-end interfaces for use by web, ios, and android, which greatly improves the efficiency of development. But at the same time, it also brings about the problem that the front-end UI of the web application depends on the back-end data. Before the back-end interface is developed, the front-end needs to simulate the interface data according to the specifications defined by the interface and determine the page data in the web application page. In order to determine the page data display situation in the current web application page. In the visual development process of front-end projects of web applications, when the front-end is not connected to the back-end, the existing method of obtaining page data of web applications usually requires developers to manually write the page data of web applications, that is, the page data of web applications is completely controlled by the program. Developers code, but if the page data of each web application needs to be completely manually coded, it will lead to low business development efficiency.

故此,如何提高web应用的前端项目可视化开发的效率是当前亟待解决的技术难点。Therefore, how to improve the efficiency of visual development of front-end projects for web applications is a technical difficulty that needs to be solved urgently.

发明内容Contents of the invention

本发明提供一种基于Web应用的页面数据获取方法及装置,以实现不需要程序开发人员通过手动改动或手动编写代码,以获取到接口参数对应的页面显示值,也可以避免由于人工手动编写程序所导致的程序编写错误问题,进而提高了业务的开发效率。The present invention provides a method and device for obtaining page data based on Web applications, so that program developers do not need to manually change or write codes to obtain page display values corresponding to interface parameters, and can also avoid manual programming of programs. The resulting programming errors have improved business development efficiency.

第一方面,本发明提供了一种基于Web应用的页面数据获取方法,所述方法应用于Web应用系统中的数据挡板服务,所述方法包括:In a first aspect, the present invention provides a method for obtaining page data based on Web applications. The method is applied to the data baffle service in the Web application system. The method includes:

响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;Respond to a data acquisition request for the target page, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page;

根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;Determine the target access address corresponding to the resource locator identifier according to the resource locator identifier;

访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。Access the target access address and obtain the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page.

第二方面,本发明提供了一种基于Web应用的页面数据获取装置,所述装置应用于Web应用系统中的数据挡板服务,所述装置包括:In a second aspect, the present invention provides a device for obtaining page data based on Web applications. The device is applied to the data baffle service in a Web application system. The device includes:

响应模块,用于响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;A response module, configured to respond to a data acquisition request for the target page, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page;

确定模块,用于根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;A determining module, configured to determine the target access address corresponding to the resource locator identifier according to the resource locator identifier;

获取模块,用于访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。An acquisition module is used to access the target access address and obtain the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page.

第三方面,本发明提供了一种可读介质,包括执行指令,当电子设备的处理器执行所述执行指令时,所述电子设备执行如第一方面中任一所述的方法。In a third aspect, the present invention provides a readable medium including execution instructions. When a processor of an electronic device executes the execution instructions, the electronic device executes the method described in any one of the first aspects.

第四方面,本发明提供了一种电子设备,包括处理器以及存储有执行指令的存储器,当所述处理器执行所述存储器存储的所述执行指令时,所述处理器执行如第一方面中任一所述的方法。In a fourth aspect, the present invention provides an electronic device, including a processor and a memory storing execution instructions. When the processor executes the execution instructions stored in the memory, the processor executes the first aspect. any of the methods described.

由上述技术方案可以看出,所述方法应用于Web应用系统中的数据挡板服务,具体地,数据挡板服务获取到针对目标页面的数据获取请求后,可以响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;然后,数据挡板服务可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;接着,数据挡板服务可以访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在Web应用所述目标页面的所述接口参数对应的区域中显示所述页面显示值。这样,本申请可以根据针对目标页面的数据获取请求中的资源定位符标识和接口参数,确定并访问所述资源定位符标识对应的目标访问地址,以获取所述接口参数对应的页面显示值;也就是说,本申请可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址,接着,可以通过访问目标访问地址获取到接口参数对应的页面显示值。这样,用户可以通过直接在web应用的图形化界面(即目标页面)中快速切换不同的资源定位符标识,确定目标访问地址,并可以通过访问目标访问地址,获取到接口参数对应的页面显示值,而不需要程序开发人员通过手动改动或手动编写代码,以获取到接口参数对应的页面显示值,也可以避免由于人工手动编写程序所导致的程序编写错误问题,进而提高了业务的开发效率。It can be seen from the above technical solution that the method is applied to the data baffle service in the Web application system. Specifically, after the data baffle service obtains the data acquisition request for the target page, it can respond to the data acquisition request for the target page. request, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page; then, the data baffle service can determine the target access corresponding to the resource locator identifier based on the resource locator identifier address; then, the data baffle service can access the target access address and obtain the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page of the Web application. . In this way, this application can determine and access the target access address corresponding to the resource locator identifier based on the resource locator identifier and interface parameters in the data acquisition request for the target page, so as to obtain the page display value corresponding to the interface parameter; That is to say, this application can determine the target access address corresponding to the resource locator identifier based on the resource locator identifier, and then obtain the page display value corresponding to the interface parameter by accessing the target access address. In this way, the user can quickly switch between different resource locator identifiers directly in the graphical interface of the web application (ie, the target page), determine the target access address, and obtain the page display value corresponding to the interface parameter by accessing the target access address. , instead of requiring program developers to manually change or write code to obtain the page display values corresponding to the interface parameters, it can also avoid program writing errors caused by manual programming, thereby improving business development efficiency.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above-mentioned non-conventional optional methods will be described below in conjunction with specific implementations.

附图说明Description of the drawings

为了更清楚地说明本发明实施例或现有的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the existing technical solutions more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for illustration. For some embodiments recorded in the invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting any creative effort.

图1为本发明一实施例提供的一种示例性应用场景的框架示意图;Figure 1 is a schematic framework diagram of an exemplary application scenario provided by an embodiment of the present invention;

图2为本发明一实施例提供的一种基于Web应用的页面数据获取方法的流程示意图;Figure 2 is a schematic flow chart of a method for obtaining page data based on Web applications provided by an embodiment of the present invention;

图3为本发明一实施例提供的另一种示例性应用场景的框架示意图;Figure 3 is a schematic framework diagram of another exemplary application scenario provided by an embodiment of the present invention;

图4为本发明一实施例提供的一种基于可视化的界面修改配置页面的界面示意图;Figure 4 is an interface schematic diagram of a visualization-based interface modification configuration page provided by an embodiment of the present invention;

图5为本发明一实施例提供的一种导出按键界面的示意图Figure 5 is a schematic diagram of an export key interface provided by an embodiment of the present invention.

图6为本发明一实施例提供的一种基于Web应用的页面数据获取装置的结构示意图;Figure 6 is a schematic structural diagram of a web application-based page data acquisition device provided by an embodiment of the present invention;

图7为本发明一实施例提供的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合具体实施例及相应的附图对本发明的技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

为了解决现有的在后端的接口没有开发完成之前,前端需要根据接口定义的规范模拟接口数据,确定web应用页面中的页面数据,以便确定当前web应用页面中的页面数据展示情况;在web应用的前端项目可视化开发过程中,前端没有与后端连接时,现有的web应用的页面数据获取方式通常需要开发人员手动编写web应用的页面数据,即web应用的页面数据完全由程序开发人员编码,例如对于mock.js,用户需要自己写URL路由;easy-mock,用户依然需要自己写代码形成模拟的页面数据,要实现这些功能,要求用户需要对比较数据JS编码;但是,如果每个web应用的页面数据都需要完全手动编码,会导致业务的开发效率比较低下的问题。In order to solve the problem that before the development of the existing back-end interface is completed, the front-end needs to simulate the interface data according to the specifications of the interface definition and determine the page data in the web application page in order to determine the page data display situation in the current web application page; in the web application During the visual development process of front-end projects, when the front-end is not connected to the back-end, the existing web application page data acquisition method usually requires developers to manually write the web application page data, that is, the web application page data is completely coded by the program developer. , for example, for mock.js, users need to write their own URL routing; for easy-mock, users still need to write their own code to form simulated page data. To realize these functions, users need to JS code the comparison data; however, if each web The page data of the application needs to be completely manually coded, which will lead to low business development efficiency.

本发明提供了一种基于Web应用的页面数据获取方法,所述方法应用于Web应用系统中的数据挡板服务,具体地,数据挡板服务获取到针对目标页面的数据获取请求后,可以响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;然后,数据挡板服务可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;接着,数据挡板服务可以访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在Web应用所述目标页面的所述接口参数对应的区域中显示所述页面显示值。这样,本申请可以根据针对目标页面的数据获取请求中的资源定位符标识和接口参数,确定并访问所述资源定位符标识对应的目标访问地址,以获取所述接口参数对应的页面显示值;也就是说,本申请可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址,接着,可以通过访问目标访问地址获取到接口参数对应的页面显示值。这样,用户可以通过直接在web应用的图形化界面(即目标页面)中通过快速切换不同的资源定位符标识,确定资源定位符标识对应的目标访问地址,并可以通过访问目标访问地址,获取到接口参数对应的页面显示值,而不需要程序开发人员通过手动改动或手动编写代码,以获取到接口参数对应的页面显示值,也可以避免由于人工手动编写程序所导致的程序编写错误问题,进而提高了业务的开发效率。The present invention provides a page data acquisition method based on Web applications. The method is applied to the data baffle service in the Web application system. Specifically, after the data baffle service obtains the data acquisition request for the target page, it can respond A data acquisition request for a target page, wherein the data acquisition request includes a resource locator identifier and an interface parameter corresponding to the target page; then, the data baffle service can determine the resource based on the resource locator identifier. The target access address corresponding to the locator identification; then, the data barrier service can access the target access address and obtain the page display value corresponding to the interface parameter, so as to apply the area corresponding to the interface parameter of the target page on the Web The page displays the value. In this way, this application can determine and access the target access address corresponding to the resource locator identifier based on the resource locator identifier and interface parameters in the data acquisition request for the target page, so as to obtain the page display value corresponding to the interface parameter; That is to say, this application can determine the target access address corresponding to the resource locator identifier based on the resource locator identifier, and then obtain the page display value corresponding to the interface parameter by accessing the target access address. In this way, the user can quickly switch between different resource locator identifiers directly in the graphical interface of the web application (ie, the target page) to determine the target access address corresponding to the resource locator identifier, and can obtain the target access address by accessing the target access address. The page display value corresponding to the interface parameter does not require the program developer to manually change or manually write the code to obtain the page display value corresponding to the interface parameter. It can also avoid programming errors caused by manual programming of the program, and thus Improved business development efficiency.

举例说明,本发明实施例可以应用到如图1所示的场景,所述图1所示的可以为Web应用系统的系统架构示意图。在该场景中,包括前端101(例如可以为web客户端)、数据挡板服务102和后端(例如可以为后台服务器)/预设模拟数据代码库103。数据挡板服务102获取到前端101发送的针对目标页面的数据获取请求之后,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数,数据挡板服务102可以响应于该数据获取请求;然后,数据挡板服务102可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;接着,数据挡板服务102可以通过访问所述目标访问地址,从后端或者预设模拟数据代码库103中获取所述接口参数对应的页面显示值,并将该页面显示值返回所述前端101,以便前端101可以在所述目标页面的所述接口参数对应的区域中显示所述页面显示值,以便用户可以根据所显示的页面显示值的显示情况,对该目标页面中接口参数对应的显示区域进行调整,以使得页面显示值的显示情况满足实际需求,例如显示正常、完整。这样,本场景对应的技术方案可以根据针对目标页面的数据获取请求中的资源定位符标识和接口参数,确定并访问所述资源定位符标识对应的目标访问地址,以获取所述接口参数对应的页面显示值;也就是说,本申请可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址,接着,可以通过访问目标访问地址获取到接口参数对应的页面显示值。这样,用户可以通过直接在web应用的图形化界面(即目标页面)中快速切换不同的资源定位符标识,确定目标访问地址,并可以通过访问目标访问地址,获取到接口参数对应的页面显示值,而不需要程序开发人员通过手动改动或手动编写代码,以获取到接口参数对应的页面显示值,也可以避免由于人工手动编写程序所导致的程序编写错误问题,进而提高了业务的开发效率。For example, embodiments of the present invention can be applied to the scenario shown in Figure 1, which can be a schematic system architecture diagram of a Web application system. In this scenario, it includes a front-end 101 (for example, it can be a web client), a data baffle service 102 and a back-end (for example, it can be a backend server)/default simulation data code library 103. After the data barrier service 102 obtains the data acquisition request for the target page sent by the front end 101, where the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page, the data barrier service 102 can respond to This data acquisition request; then, the data barrier service 102 can determine the target access address corresponding to the resource locator identifier according to the resource locator identifier; then, the data barrier service 102 can access the target access address by accessing the target access address, Obtain the page display value corresponding to the interface parameter from the back end or the preset simulation data code library 103, and return the page display value to the front end 101, so that the front end 101 can display the interface parameter corresponding to the target page. The page display value is displayed in the area, so that the user can adjust the display area corresponding to the interface parameter in the target page according to the display situation of the displayed page display value, so that the display situation of the page display value meets the actual needs, For example, the display is normal and complete. In this way, the technical solution corresponding to this scenario can determine and access the target access address corresponding to the resource locator identifier based on the resource locator identifier and interface parameters in the data acquisition request for the target page, so as to obtain the resource locator identifier corresponding to the interface parameter. Page display value; that is to say, this application can determine the target access address corresponding to the resource locator identifier based on the resource locator identifier, and then obtain the page display value corresponding to the interface parameter by accessing the target access address. In this way, the user can quickly switch between different resource locator identifiers directly in the graphical interface of the web application (ie, the target page), determine the target access address, and obtain the page display value corresponding to the interface parameter by accessing the target access address. , instead of requiring program developers to manually change or write code to obtain the page display values corresponding to the interface parameters, it can also avoid program writing errors caused by manual programming, thereby improving business development efficiency.

需要注意的是,上述应用场景仅是为了便于理解本申请而示出,本申请的实施方式在此方面不受任何限制。相反,本申请的实施方式可以应用于适用的任何场景。It should be noted that the above application scenarios are only shown to facilitate understanding of the present application, and the implementation of the present application is not subject to any limitation in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.

下面结合附图,详细说明本发明的各种非限制性实施方式。Various non-limiting embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

参见图2,示出了本发明实施例中的一种基于Web应用的页面数据获取方法,所述方法应用于Web应用系统中的数据挡板服务,需要说明的是,web应用系统可以包括前端、数据挡板服务和后端/预设虚拟数据库,其中,数据挡板服务可以理解为在前端的项目可视化开发过程中,在前端没有真正连接到后端的时候,可以起到通过获取一些接口参数对应的模拟数据,并利用该模拟数据实现页面内容填充的功能的一服务,也就是说,在前端没有真正连接到后端的时候,数据挡板服务虽然不能通过后端获取到接口参数对应的真实数据,但是可以通过预设虚拟数据库获取到接口参数对应的模拟数据,以该模拟数据替代通过后端获取到接口参数对应的真实数据,以作为页面显示值。在本实施例中,所述方法例如可以包括以下步骤:Referring to Figure 2, a page data acquisition method based on a Web application is shown in an embodiment of the present invention. The method is applied to the data baffle service in the Web application system. It should be noted that the web application system may include a front-end , data baffle service and back-end/preset virtual database. Among them, the data baffle service can be understood as a function that can be used to obtain some interface parameters when the front-end is not really connected to the back-end during the front-end project visualization development process. The corresponding simulated data is a service that uses the simulated data to realize the function of filling the page content. That is to say, when the front end is not really connected to the back end, the data baffle service cannot obtain the real values corresponding to the interface parameters through the back end. Data, but the simulated data corresponding to the interface parameters can be obtained through the preset virtual database, and the simulated data can be used as the page display value instead of the real data corresponding to the interface parameters obtained through the backend. In this embodiment, the method may include the following steps:

S201:数据挡板服务响应于针对目标页面的数据获取请求。S201: The data barrier service responds to the data acquisition request for the target page.

在本实施例中,当用户需要获取web应用的一页面中接口对应的页面显示值时,可以将该页面称之为目标页面,即目标页面可以理解为需要获取的页面显示值所对应的接口所在的页面。当用户需要获取目标页面中接口对应的页面显示值时,可以先通过web应用的前端生成针对目标页面的数据获取请求,接着,通过web应用的前端将该数据获取请求向数据挡板服务发送,以便数据挡板服务获取到该数据获取请求,并响应于该数据获取请求进行后续的操作。其中,所述数据获取请求可以包括所述目标页面对应的资源定位符标识和接口参数。In this embodiment, when the user needs to obtain the page display value corresponding to the interface in a page of the web application, the page can be called the target page, that is, the target page can be understood as the interface corresponding to the page display value that needs to be obtained. The page it is on. When the user needs to obtain the page display value corresponding to the interface in the target page, he or she can first generate a data acquisition request for the target page through the front end of the web application, and then send the data acquisition request to the data baffle service through the front end of the web application. So that the data baffle service can obtain the data acquisition request and perform subsequent operations in response to the data acquisition request. The data acquisition request may include the resource locator identifier and interface parameters corresponding to the target page.

需要说明的是,目标页面对应的资源定位符标识可以理解为统一资源定位符(Uniform Resource Locator,URL)别名,需要强调的是URL别名可以对应一个地址;需要说明的是,资源定位符标识可以反映接口的运行环境类型,例如,当资源定位符标识为“/afa”,说明接口的运行环境类型为生产环境,即前端通过该接口与后端连接,又例如,当资源定位符标识为“/test”,说明接口的运行环境为调试环境,即前端通过该接口不与后端连接;接口参数可以理解为接口的相关信息,例如,可以包括接口的名称、接口的中文描述、接口的调用方法类型、接口对应的返回数据的类型等。It should be noted that the resource locator identifier corresponding to the target page can be understood as a Uniform Resource Locator (URL) alias. It should be emphasized that the URL alias can correspond to an address; it should be noted that the resource locator identifier can Reflects the running environment type of the interface. For example, when the resource locator is marked as "/afa", it means that the running environment type of the interface is the production environment, that is, the front end connects to the back end through this interface. For example, when the resource locator is marked as " /test", indicating that the running environment of the interface is a debugging environment, that is, the front end is not connected to the back end through this interface; the interface parameters can be understood as related information of the interface, for example, they can include the name of the interface, the Chinese description of the interface, and the call of the interface Method type, type of return data corresponding to the interface, etc.

接下来,将结合图3和图4举例说明数据挡板服务如何获取到数据获取请求。假设编辑器为一web浏览器,其中,编辑器可以理解为在开发平台中可以提供一个可视化开发页面的组件,具体地,编辑器可以提供一web页面,若用户需要获取该页面中接口“用户名称”对应的页面显示值,用户可以通过浏览器提供的一web设置页面(如图4所示),选择URL的别名为“/afa”,描述为“AFA测试连接”,且数据库为mock数据,则可以确定URL的别名为“/afa”;另外,由于用户在web页面中选择了“/user”接口,该接口对应的URL为“/user”,接口的调用方法类型为“get”,接口的中文描述为“获取用户信息”,接口对应的返回数据的类型为“string”;此时,编辑器可以生成一个针对目标页面(即接口“用户名称”所在的web页面)的数据获取请求,其中,该数据获取请求包括资源定位符标识“/afa”和接口参数(即接口的名称“/user”、接口的中文描述“获取用户信息”、接口的调用方法类型“get”、接口对应的返回数据的类型“string”),并将该数据获取请求向开发平台服务发送,其中,开发平台服务是AWEB 7.0可视化开发平台需要运行的服务,通过开发平台服务用户才能通过浏览器访问该服务提供的地址去访问使用这个开发平台;接着,开发平台服务可以根据该目标页面对应的项目,确定该项目对应的运行平台服务,并将该数据获取请求向该运行平台服务发送,其中,运行平台服务是前端项目在开发阶段与开发平台服务通信的一个服务;紧接着,运行平台服务可以通过数据动态代理向数据挡板服务发送该数据获取请求。需要说明的是,在本例子中,也可以通过运行平台获取数据获取请求,并且通过该运行平台向数据挡板服务发送该数据获取请求,其中,运行平台为前端项目运行的平台。Next, an example of how the data baffle service obtains the data acquisition request will be described with reference to Figures 3 and 4. Assume that the editor is a web browser. The editor can be understood as a component that can provide a visual development page in the development platform. Specifically, the editor can provide a web page. If the user needs to obtain the interface "User" in the page, The page corresponding to "name" displays the value. Users can use a web settings page provided by the browser (as shown in Figure 4), select the URL alias as "/afa", the description as "AFA test connection", and the database is mock data , it can be determined that the alias of the URL is "/afa"; in addition, since the user selected the "/user" interface in the web page, the URL corresponding to this interface is "/user", and the calling method type of the interface is "get". The Chinese description of the interface is "get user information", and the type of return data corresponding to the interface is "string"; at this time, the editor can generate a data acquisition request for the target page (that is, the web page where the interface "user name" is located) , where the data acquisition request includes the resource locator identifier "/afa" and interface parameters (i.e., the name of the interface "/user", the Chinese description of the interface "get user information", the calling method type of the interface "get", the interface corresponding The type of return data is "string"), and the data acquisition request is sent to the development platform service. The development platform service is a service that the AWEB 7.0 visual development platform needs to run. Users can access the service through the browser through the development platform service. Provide the address to access and use this development platform; then, the development platform service can determine the running platform service corresponding to the project based on the project corresponding to the target page, and send the data acquisition request to the running platform service, where the running platform The service is a service that the front-end project communicates with the development platform service during the development phase; then, the running platform service can send the data acquisition request to the data baffle service through the data dynamic proxy. It should be noted that in this example, the data acquisition request can also be obtained through the running platform, and the data acquisition request can be sent to the data baffle service through the running platform, where the running platform is the platform on which the front-end project runs.

S202:数据挡板服务根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址。S202: The data baffle service determines the target access address corresponding to the resource locator identifier based on the resource locator identifier.

在本实施例中,由于资源定位符标识可以反映接口的运行环境类型,而运行环境类型能够体现前端与后端的连接状态,因此,数据挡板服务可以根据所述资源定位符标识,确定数据挡板服务需要访问后端或者预设模拟数据代码库获取接口参数对应的页面显示值,即确定所述资源定位符标识对应的目标访问地址。In this embodiment, since the resource locator identifier can reflect the running environment type of the interface, and the running environment type can reflect the connection status of the front end and the back end, the data baffle service can determine the data baffle according to the resource locator identifier. The board service needs to access the backend or the preset simulation data code library to obtain the page display value corresponding to the interface parameter, that is, determine the target access address corresponding to the resource locator identifier.

作为一种示例,数据挡板服务获取到资源定位符标识后,数据挡板服务可以先根据所述资源定位符标识,确定所述资源定位符标识对应的环境类型,举例来说,假设当资源定位符标识为“/afa”,可以根据资源定位符标识为“/afa”确定资源定位符标识为“/afa”对应的运行环境类型为生产环境时,即前端通过该接口与后端连接,假设当资源定位符标识为“/test”,说明接口的运行环境为调试环境,即前端通过该接口不与后端连接。然后,数据挡板服务可以根据所述资源定位符标识和所述资源定位符标识对应的环境类型,确定所述资源定位符标识对应的目标访问地址,举例说明,假设资源定位符标识为“/afa”且资源定位符标识为“/afa”对应的运行环境类型为生产环境,则可以确认资源定位符标识“/afa”对应的目标访问地址为“/afa”在后端中的数据源地址,假设资源定位符标识为“/test”且资源定位符标识为“/test”对应的运行环境类型为测试环境,则可以确认资源定位符标识“/test”对应的目标访问地址为“/test”在预设模拟数据代码库中的数据源地址。As an example, after the data barrier service obtains the resource locator identifier, the data barrier service can first determine the environment type corresponding to the resource locator identifier based on the resource locator identifier. For example, assume that when a resource The locator identifier is "/afa". You can determine based on the resource locator identifier "/afa" that the running environment type corresponding to the resource locator identifier "/afa" is a production environment, that is, the front end connects to the back end through this interface. Assume that when the resource locator is marked as "/test", it means that the running environment of the interface is a debugging environment, that is, the front end does not connect to the back end through this interface. Then, the data baffle service can determine the target access address corresponding to the resource locator identifier according to the resource locator identifier and the environment type corresponding to the resource locator identifier. For example, assume that the resource locator identifier is "/ afa" and the running environment type corresponding to the resource locator identifier "/afa" is the production environment, you can confirm that the target access address corresponding to the resource locator identifier "/afa" is the data source address of "/afa" in the backend , assuming that the resource locator identifier is "/test" and the running environment type corresponding to the resource locator identifier "/test" is a test environment, it can be confirmed that the target access address corresponding to the resource locator identifier "/test" is "/test" "The data source address in the default simulation data code library.

S203:数据挡板服务访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。S203: The data baffle service accesses the target access address and obtains the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page.

在本实施例中,数据挡板服务确定所述资源定位符标识对应的目标访问地址之后,数据挡板服务可以访问所述目标访问地址,并获取所述接口参数对应的页面显示值;在一种实现方式中,假设目标访问地址为资源定位符标识在后端中的数据源地址,则数据挡板服务可以通过访问资源定位符标识在后端中的数据源地址,获取到该接口参数对应的真实的页面显示值,即后端运行该接口参数所获取到的页面显示值;在一种实现方式中,假设目标访问地址为资源定位符标识在预设模拟数据代码库中的数据源地址,则数据挡板服务可以通过访问资源定位符标识在预设模拟数据代码库中的数据源地址,获取到该接口参数对应的模拟的页面显示值,需要说明的是,预设模拟数据代码库可以根据接口参数中的数据类型(即接口对应的返回数据的类型)随机生成接口对应的模拟页面显示值,比如该预设模拟数据代码库可以为“mockjs”开源代码库。接着,数据挡板服务可以将该页面显示值向前端返回,以便前端在所述目标页面的所述接口参数对应的区域中显示所述页面显示值,这样,程序开发人员可以根据目标页面中页面显示值的显示情况对页面布局进行调整,以使页面布局更加完善,举例来说,假设目标页面的所述接口参数对应的区域原先预留的是三个字符的显示空间,若数据挡板服务向前端返回的该页面显示值为四个字符,这时候程序开发人员可以发现当前接口参数对应的区域显示该页面显示值不完整的问题,进而可以对该页面布局进行调整,即将目标页面的所述接口参数对应的区域的显示空间设置大于或等于四个字符,进而完善了页面布局。In this embodiment, after the data baffle service determines the target access address corresponding to the resource locator identifier, the data baffle service can access the target access address and obtain the page display value corresponding to the interface parameter; In this implementation, assuming that the target access address is the data source address identified by the resource locator in the backend, the data baffle service can obtain the corresponding interface parameter by accessing the data source address identified by the resource locator in the backend. The real page display value is the page display value obtained by running the interface parameters on the backend; in one implementation, it is assumed that the target access address is the data source address identified by the resource locator in the preset simulation data code library , the data baffle service can obtain the simulated page display value corresponding to the interface parameter by accessing the data source address identified by the resource locator in the preset simulation data code library. It should be noted that the preset simulation data code library The simulation page display value corresponding to the interface can be randomly generated according to the data type in the interface parameter (that is, the type of return data corresponding to the interface). For example, the preset simulation data code library can be the "mockjs" open source code library. Then, the data baffle service can return the page display value to the front end, so that the front end displays the page display value in the area corresponding to the interface parameter of the target page. In this way, the program developer can use the page display value in the target page according to the page display value. The display of the displayed value adjusts the page layout to make the page layout more perfect. For example, assuming that the area corresponding to the interface parameters of the target page originally reserved a display space of three characters, if the data bezel service The displayed value of the page returned to the front end is four characters. At this time, the program developer can find that the area corresponding to the current interface parameter displays the problem that the displayed value of the page is incomplete, and then the page layout can be adjusted, that is, all of the target page The display space setting of the area corresponding to the above interface parameters is greater than or equal to four characters, thereby improving the page layout.

需要说明的是,在一种实现方式中,所述访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值,具体包括以下步骤:It should be noted that, in one implementation, the target access address is accessed to obtain the page display value corresponding to the interface parameter, so that the page display value corresponding to the interface parameter is displayed on the target page. The page displays the value, including the following steps:

步骤a:根据所述接口参数,确定所述接口参数对应的运行参数。Step a: Determine the operating parameters corresponding to the interface parameters according to the interface parameters.

在本实现方式中,可以预先设置各个接口参数对应的预设代码模板,例如可以预先将接口参数以及其对应的预设代码模板之间的对应关系先存储至数据挡板服务中,这样,数据挡板服务可以先根据所述接口参数,确定所述接口参数对应的预设代码模板。接着,数据挡板服务可以根据所述接口参数和所述接口参数对应的预设代码模板,生成所述接口参数对应的运行参数,例如,可以是将接口参数替换预设代码模板中的占位符,从而得到替换后的预设代码模板,即接口参数对应的运行参数。其中,需要说明的是,运行参数可以理解为接口参数能够运行的代码,即在一种实现方式中,所述运行参数包括可运行代码。In this implementation, the preset code template corresponding to each interface parameter can be set in advance. For example, the correspondence between the interface parameter and its corresponding preset code template can be stored in the data baffle service in advance. In this way, the data The baffle service may first determine the preset code template corresponding to the interface parameter based on the interface parameter. Then, the data baffle service can generate operating parameters corresponding to the interface parameters according to the interface parameters and the preset code template corresponding to the interface parameters. For example, the interface parameters can be replaced with placeholders in the preset code template. symbol, thereby obtaining the replaced preset code template, that is, the running parameters corresponding to the interface parameters. It should be noted that the running parameters can be understood as code that can be run by the interface parameters, that is, in one implementation, the running parameters include runnable code.

举例来说,假设,编辑器通过HTML界面将本身需要些代码的地方通过表单表格的形式展现,然后再通过逻辑代码解析用户填写的表单表格数据生成原本要写的代码。用户在AWEB 7.0(WebIDE)开发平台上面基于可视化的界面修改配置,见图4,然后将资源定位符标识和接口参数(比如接口名称、接口参数类型、接口类型等信息)发送给数据挡板服务,然后由数据挡板服务保存到项目的config/mock下,例如定义一个“获取用户信息/user的接口,然后定义返回字符串类型”的代码为:For example, suppose that the editor displays the parts that require some code in the form of a form through the HTML interface, and then uses logical code to parse the form data filled in by the user to generate the code originally written. The user modifies the configuration based on the visual interface on the AWEB 7.0 (WebIDE) development platform, as shown in Figure 4, and then sends the resource locator identifier and interface parameters (such as interface name, interface parameter type, interface type, etc.) to the data baffle service , and then saved to the project's config/mock by the data barrier service. For example, the code to define an "interface to obtain user information/user, and then define the return string type" is:

[{[{

"source":"afa","source":"afa",

"name":"/user","name":"/user",

"desp":"获取用户信息","desp":"Get user information",

"method":"get","method":"get",

"type":"string""type":"string"

}];}];

接着,数据挡板服务通过解析引擎,生成AST代码树,生成可运行的代码,即确定所述接口参数对应的运行参数,其中,“获取用户信息/user的接口,然后定义返回字符串类型”对应的运行参数,即所述接口参数对应的运行参数,如下所示:Then, the data baffle service generates an AST code tree through the parsing engine and generates runnable code, that is, determining the running parameters corresponding to the interface parameters, among which, "get the user information/user interface, and then define the return string type" The corresponding operating parameters, that is, the operating parameters corresponding to the interface parameters, are as follows:

步骤b:访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。Step b: Access the target access address, load the operating parameters corresponding to the interface parameters into the target access address, and obtain the page display value corresponding to the interface parameters so that the interface on the target page The page display value is displayed in the area corresponding to the parameter.

在本实施例中,数据挡板服务可以访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,即把接口参数对应的运行参数加载到目标访问地址中以便该接口参数对应的运行参数进行运行,这样,便获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。在一种实现方式中,数据挡板服务可以访问所述目标访问地址,并将所述接口参数对应的运行参数热加载或热重载至所述目标访问地址中,其中,热加载、热重载即不需要重启服务器,就可以把接口参数对应的运行参数加载到目标访问地址中以便该接口参数对应的运行参数进行运行;并获取所述目标访问地址返回的所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。In this embodiment, the data baffle service can access the target access address and load the operating parameters corresponding to the interface parameters into the target access address, that is, load the operating parameters corresponding to the interface parameters into the target access address. In order to run the operation parameter corresponding to the interface parameter, the page display value corresponding to the interface parameter is obtained, so that the page display value is displayed in the area corresponding to the interface parameter of the target page. In one implementation, the data baffle service can access the target access address, and hot load or hot reload the operating parameters corresponding to the interface parameters into the target access address, where hot loading and hot reloading are Loading means that there is no need to restart the server, and the operating parameters corresponding to the interface parameters can be loaded into the target access address so that the operating parameters corresponding to the interface parameters can be run; and the page display corresponding to the interface parameters returned by the target access address is obtained. value, so that the page display value is displayed in the area corresponding to the interface parameter of the target page.

需要强调的是,若所述环境类型为开发环境变量,则所述访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,包括以下步骤:It should be emphasized that if the environment type is a development environment variable, then the target access address is accessed, the running parameters corresponding to the interface parameters are loaded into the target access address, and the corresponding interface parameters are obtained. The page displays the value, including the following steps:

根据所述目标访问地址,访问后端服务器;将所述接口参数对应的运行参数加载至所述后端服务器中的所述目标访问地址中;接收所述后端服务器返回的所述接口参数对应的页面显示值。Access the back-end server according to the target access address; load the operating parameters corresponding to the interface parameters into the target access address in the back-end server; receive the interface parameters corresponding to the back-end server. The page displays the value.

举例来说,假设资源定位符标识为“/afa”且资源定位符标识为“/afa”对应的运行环境类型为生产环境,则可以确认资源定位符标识“/afa”对应的目标访问地址为“/afa”在后端服务器中的数据源地址;数据挡板服务可以先根据“/afa”在后端服务器中的数据源地址,访问后端服务器,然后,可以将所述接口参数对应的运行参数加载至所述后端服务器中“/afa”在后端服务器中的数据源地址中,这样,后端服务器中可以运行该接口参数对应的运行参数,并获取到该接口参数对应的页面显示值,并且,后端服务器可以将该页面显示值返回至数据挡板服务,接着,数据挡板服务可以接收所述后端服务器返回的所述接口参数对应的页面显示值。For example, assuming that the resource locator identifier is "/afa" and the running environment type corresponding to the resource locator identifier "/afa" is a production environment, you can confirm that the target access address corresponding to the resource locator identifier "/afa" is The data source address of "/afa" in the back-end server; the data baffle service can first access the back-end server based on the data source address of "/afa" in the back-end server, and then, the interface parameters corresponding to The running parameters are loaded into the back-end server. "/afa" is in the data source address in the back-end server. In this way, the back-end server can run the running parameters corresponding to the interface parameters and obtain the page corresponding to the interface parameters. Display value, and the back-end server can return the page display value to the data baffle service. Then, the data baffle service can receive the page display value corresponding to the interface parameter returned by the back-end server.

还需要强调的是,若所述环境类型为调试环境,则所述访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,包括:It should also be emphasized that if the environment type is a debugging environment, then the target access address is accessed, and the running parameters corresponding to the interface parameters are loaded into the target access address, and the corresponding interface parameters are obtained. The page displays values, including:

根据所述目标访问地址,访问预设模拟数据代码库;将所述接口参数对应的运行参数加载至所述预设模拟数据代码库中的所述目标访问地址中;接收所述预设模拟数据代码库返回的所述接口参数对应的页面显示值。Access the preset simulation data code library according to the target access address; load the operating parameters corresponding to the interface parameters into the target access address in the preset simulation data code library; receive the preset simulation data The page display value corresponding to the interface parameter returned by the code library.

举例来说,假设资源定位符标识为“/test”且资源定位符标识为“/test”对应的运行环境类型为测试环境,则可以确认资源定位符标识“/test”对应的目标访问地址为“/test”在预设模拟数据代码库中的数据源地址;数据挡板服务可以先根据“/test”在预设模拟数据代码库中的数据源地址,访问预设模拟数据代码库或者预设模拟数据代码库所在服务器,然后,可以将所述接口参数对应的运行参数加载至预设模拟数据代码库中的数据源地址中,这样,预设模拟数据代码库可以根据该接口参数对应的运行参数,并获取到该接口参数对应的页面显示值,例如,预设模拟数据代码库可以根据接口参数对应的运行参数中的数据类型(即接口对应的返回数据的类型)随机生成接口对应的模拟页面显示值;并且,预设模拟数据代码库可以将该页面显示值返回至数据挡板服务,接着,数据挡板服务可以接收所述预设模拟数据代码库返回的所述接口参数对应的页面显示值。For example, assuming that the resource locator identifier is "/test" and the running environment type corresponding to the resource locator identifier "/test" is a test environment, it can be confirmed that the target access address corresponding to the resource locator identifier "/test" is The data source address of "/test" in the preset simulation data code library; the data baffle service can first access the preset simulation data code library or preset data source address based on the data source address of "/test" in the preset simulation data code library. Assume that the simulation data code library is located on the server, and then the operating parameters corresponding to the interface parameters can be loaded into the data source address in the preset simulation data code library. In this way, the preset simulation data code library can be based on the interface parameters corresponding to Run parameters, and obtain the page display value corresponding to the interface parameter. For example, the preset simulation data code library can randomly generate the data type corresponding to the interface based on the data type in the running parameter corresponding to the interface parameter (that is, the type of return data corresponding to the interface). The simulation page displays the value; and the preset simulation data code library can return the page display value to the data baffle service. Then, the data baffle service can receive the interface parameters corresponding to the interface parameters returned by the preset simulation data code library. The page displays the value.

可见,本实施例中通过采用数据挡板服务根据所述接口参数,确定所述接口参数对应的运行参数,访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值的方式,实现了采用了图形化界面自动解析生成接口参数对应的运行参数(即运行代码),这样,用户不需要学习代码编写(比如mockjs)的语法和上传下载各个接口参数对应的预设代码模板的细节,减少学习成本,提高了项目开发效率。It can be seen that in this embodiment, the data baffle service is used to determine the operating parameters corresponding to the interface parameters according to the interface parameters, access the target access address, and load the operating parameters corresponding to the interface parameters to the target In the access address, the method of obtaining the page display value corresponding to the interface parameter realizes the use of a graphical interface to automatically parse and generate the operating parameters (i.e., running code) corresponding to the interface parameter. In this way, the user does not need to learn code writing (such as mockjs ) syntax and the details of uploading and downloading the preset code templates corresponding to each interface parameter, reducing learning costs and improving project development efficiency.

综上,本发明提供了一种基于Web应用的页面数据获取方法,所述方法应用于Web应用系统中的数据挡板服务,具体地,数据挡板服务获取到针对目标页面的数据获取请求后,可以响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;然后,数据挡板服务可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;接着,数据挡板服务可以访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在Web应用所述目标页面的所述接口参数对应的区域中显示所述页面显示值。这样,本申请可以根据针对目标页面的数据获取请求中的资源定位符标识和接口参数,确定并访问所述资源定位符标识对应的目标访问地址,以获取所述接口参数对应的页面显示值;也就是说,本申请可以根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址,接着,可以通过访问目标访问地址获取到接口参数对应的页面显示值。这样,用户可以通过直接在web应用的图形化界面(即目标页面)中通过快速切换不同的资源定位符标识,确定资源定位符标识对应的目标访问地址,并可以通过访问目标访问地址,获取到接口参数对应的页面显示值,而不需要程序开发人员通过手动改动或手动编写代码,以获取到接口参数对应的页面显示值,也可以避免由于人工手动编写程序所导致的程序编写错误问题,进而提高了业务的开发效率。In summary, the present invention provides a page data acquisition method based on Web applications. The method is applied to the data baffle service in the Web application system. Specifically, the data baffle service obtains the data acquisition request for the target page. , can respond to a data acquisition request for the target page, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page; then, the data baffle service can determine based on the resource locator identifier. The target access address corresponding to the resource locator identifier; then, the data baffle service can access the target access address and obtain the page display value corresponding to the interface parameter, so as to apply the interface parameter of the target page on the Web The page display value is displayed in the corresponding area. In this way, this application can determine and access the target access address corresponding to the resource locator identifier based on the resource locator identifier and interface parameters in the data acquisition request for the target page, so as to obtain the page display value corresponding to the interface parameter; That is to say, this application can determine the target access address corresponding to the resource locator identifier based on the resource locator identifier, and then obtain the page display value corresponding to the interface parameter by accessing the target access address. In this way, the user can quickly switch between different resource locator identifiers directly in the graphical interface of the web application (ie, the target page) to determine the target access address corresponding to the resource locator identifier, and can obtain the target access address by accessing the target access address. The page display value corresponding to the interface parameter does not require the program developer to manually change or manually write the code to obtain the page display value corresponding to the interface parameter. It can also avoid programming errors caused by manual programming of the program, and thus Improved business development efficiency.

进一步地,在一种实现方式中,为了能够减少程序开发者之间交流的成本以及编写程序的时间,即提高项目开发的效率,在本实施例的一种实现方式中,可以对数据挡板服务中的历史目标访问地址以及历史接口参数进行导入导出,其中,可以通过预设接口和导出文件模板导出多种格式的文档。接下来,将具体介绍如何实现对数据挡板服务中的历史目标访问地址以及历史接口参数进行导入导出。Furthermore, in an implementation manner, in order to reduce the cost of communication between program developers and the time for writing programs, that is, to improve the efficiency of project development, in an implementation manner of this embodiment, the data baffle can be Historical target access addresses and historical interface parameters in the service can be imported and exported. Documents in multiple formats can be exported through preset interfaces and export file templates. Next, we will introduce in detail how to import and export historical target access addresses and historical interface parameters in the data barrier service.

一、如何实现对数据挡板服务中的历史目标访问地址以及历史接口参数进行导出的介绍。1. Introduction on how to export the historical target access address and historical interface parameters in the data barrier service.

在一种实现方式中,所述方法还包括以下步骤:In one implementation, the method further includes the following steps:

获取导出指令;Get export instructions;

响应于所述导出指令,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, obtain an export file template according to the export file type;

将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template.

在本实施例中,可以在web页面中提供一导出按键(如图5所示的“导出文件”),用户按下该导出按键后,前端可以生成导出指令,并将该导出指令向数据挡板服务发送,数据挡板服务获取导出指令,其中,所述导出指令包括导出文件类型,例如导出文件类型可以为excel、word、pdf等格式。需要说明的是,由于数据挡板服务可以预先存储了各类导出文件类型对应的导出文件模板,因此,数据挡板服务可以响应于所述导出指令,根据所述导出文件类型,获取导出文件模板,并将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,例如,将历史目标访问地址以及历史接口参数替换导出文件模板中的占位符,并输出填充后的导出文件模板。其中,需要说明的是,在一种实现方式中,历史接口参数和上文提及的接口参数的格式可以均为JSON格式。接下来,将以导出文件类型分别为word和excel进行举例说明。In this embodiment, an export button ("export file" as shown in Figure 5) can be provided in the web page. After the user presses the export button, the front end can generate an export instruction and send the export instruction to the data file. The data baffle service sends the export instruction, and the data baffle service obtains the export instruction, wherein the export instruction includes the export file type. For example, the export file type can be in excel, word, pdf and other formats. It should be noted that since the data baffle service can pre-store export file templates corresponding to various export file types, the data baffle service can respond to the export instruction and obtain the export file template according to the export file type. and fill the historical target access address and historical interface parameters into the export file template. For example, replace the placeholders in the export file template with the historical target access address and historical interface parameters, and output the filled export file template. Among them, it should be noted that, in an implementation manner, the formats of the historical interface parameters and the above-mentioned interface parameters may both be in JSON format. Next, we will give an example using the export file types as word and excel respectively.

(1)、当所述导出文件类型为word文档;所述响应于所述导出指令,根据所述导出文件类型,获取导出文件模板,包括:(1) When the export file type is a word document; in response to the export instruction, obtain an export file template according to the export file type, including:

响应于所述导出指令,利用docx-templates模块,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, use the docx-templates module to obtain an export file template according to the export file type;

相应地,所述将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板,包括:Correspondingly, filling the historical target access address and historical interface parameters into the export file template, and outputting the filled export file template includes:

利用docx-templates模块,将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Use the docx-templates module to fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template.

举例说明,数据挡板服务响应于所述导出指令,根据所述导出文件类型为word,获取导出文件模板的一种代码方式可以如下:For example, the data baffle service responds to the export instruction. According to the export file type being word, a code method for obtaining the export file template can be as follows:

(2)、当所述导出文件类型为excel文档;所述响应于所述导出指令,根据所述导出文件类型,获取导出文件模板,包括:(2) When the export file type is an excel document; in response to the export instruction, obtain an export file template according to the export file type, including:

响应于所述导出指令,利用ejsexcel模块,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, use the ejsexcel module to obtain an export file template according to the export file type;

相应地,所述将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板,包括:Correspondingly, filling the historical target access address and historical interface parameters into the export file template, and outputting the filled export file template includes:

利用ejsexcel模块,将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Use the ejsexcel module to fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template.

举例说明,数据挡板服务响应于所述导出指令,根据所述导出文件类型为excel,获取导出文件模板的一种代码方式可以如下:For example, the data baffle service responds to the export instruction. According to the export file type being excel, a code method for obtaining the export file template can be as follows:

const result=await ejsexcel.renderExcel(workbook,data);const result=await ejsexcel.renderExcel(workbook,data);

const filepath=path.join(WEEKREPORT_PATH,`${content.title}.xlsx`);const filepath=path.join(WEEKREPORT_PATH,`${content.title}.xlsx`);

await writeFileAsync(filepath,result)。await writeFileAsync(filepath,result).

二、如何实现对数据挡板服务中的历史目标访问地址以及历史接口参数进行导入的介绍。2. Introduction on how to import historical target access addresses and historical interface parameters in the data barrier service.

在一种实现方式中,In one implementation,

所述方法还包括:The method also includes:

获取导入指令;Get import instructions;

响应于所述导入指令,确定所述导入文件中的目标访问地址以及接口参数;In response to the import instruction, determine the target access address and interface parameters in the import file;

保存所述目标访问地址以及所述接口参数。Save the target access address and the interface parameters.

在本实施例中,可以在web页面中提供一导入按键,用户按下该导出按键后,前端可以生成导入指令,并将该导入指令向数据挡板服务发送,数据挡板服务获取导入指令,其中,所述导入指令可以包括导入文件,其中,该导入文件包括目标访问地址以及接口参数的对应关系。在一种实现方式中,该导入文件的文件格式可以为excel。数据挡板服务获取到该导入文件后,可以通过解析引擎,对该导入文件进行解析,例如可以通过解析引擎根据预先定义的JSON报文格式去解析该导入文件(比如解析导入的excel文件),生成目标访问地址以及接口参数(比如JSON格式的目标访问地址以及接口参数),然后,可以通过解析引擎生成到数据挡板服务中的接口文件(比如config/mock的接口文件),即保存所述目标访问地址以及所述接口参数。接下来,将以导出文件类型分别为excel进行举例说明。In this embodiment, an import button can be provided in the web page. After the user presses the export button, the front end can generate an import instruction and send the import instruction to the data baffle service. The data baffle service obtains the import instruction. Wherein, the import instruction may include an import file, wherein the import file includes a corresponding relationship between the target access address and the interface parameters. In an implementation manner, the file format of the imported file can be excel. After the data baffle service obtains the imported file, it can parse the imported file through the parsing engine. For example, the parsing engine can be used to parse the imported file according to the predefined JSON message format (such as parsing the imported excel file). Generate the target access address and interface parameters (such as the target access address and interface parameters in JSON format), and then generate the interface file (such as the config/mock interface file) in the data baffle service through the parsing engine, that is, save the Target access address and the interface parameters. Next, we will give an example using the export file type as excel.

例如,当数据挡板服务接收到excel导入文件,数据挡板服务可以响应于所述导入指令,利用ejsexcel模块,确定所述导入文件中的目标访问地址以及接口参数,具体地,数据挡板服务可以通过ejsexcel模块解析导入的excel导入文件,生成JSON格式的目标访问地址以及接口参数,然后通过解析引擎在数据挡板服务中的config/mock文件下生成目标访问地址以及接口参数对应的接口文件。需要说明的是,ejsexcel模块提供了一个renderExcel接口,只需要将excel导入文件的内容传给ejsexcel模块,ejsexcel模块就能通过renderExcel接口返回一个JSON格式的目标访问地址以及接口参数。For example, when the data barrier service receives an excel import file, the data barrier service can respond to the import instruction and use the ejsexcel module to determine the target access address and interface parameters in the import file. Specifically, the data barrier service The imported excel import file can be parsed through the ejsexcel module to generate the target access address and interface parameters in JSON format, and then the interface file corresponding to the target access address and interface parameters can be generated through the parsing engine under the config/mock file in the data baffle service. It should be noted that the ejsexcel module provides a renderExcel interface. You only need to pass the contents of the excel import file to the ejsexcel module, and the ejsexcel module can return a target access address and interface parameters in JSON format through the renderExcel interface.

例如,假设导入文件包括以下代码:For example, assume the import file includes the following code:

[{[{

"source":"afa","source":"afa",

"name":"/user","name":"/user",

"desp":"获取用户信息","desp":"Get user information",

"method":"get","method":"get",

"type":"string""type":"string"

}];}];

数据挡板服务可以通过ejsexcel模块解析导入的导入文件,生成目标访问地址(比如可以为URL别名source"afa")以及接口参数(接口名称name"/user"、中文描述desp"获取用户信息"、调用方法类型method"get"、返回数据的类型type"string")等等。The data baffle service can parse the imported import file through the ejsexcel module and generate the target access address (for example, it can be the URL alias source "afa") and interface parameters (interface name name "/user", Chinese description desp "Get user information", The calling method type method "get", the return data type type "string"), etc.

可见,本实施例可以对数据挡板服务中的历史目标访问地址以及历史接口参数进行导入或导出,其中,可以通过预设接口和导出文件模板导出多种格式的文档,这样,便实现了能够减少程序开发者之间交流的成本以及编写程序的时间,从而提高了项目开发的效率。It can be seen that this embodiment can import or export historical target access addresses and historical interface parameters in the data baffle service. Documents in multiple formats can be exported through the preset interface and export file template. In this way, it is possible to It reduces the cost of communication between program developers and the time of writing programs, thus improving the efficiency of project development.

如图6所示,为本发明所述基于Web应用的页面数据获取装置的一个具体实施例。本实施例所述装置,即用于执行上述实施例所述方法的实体装置。其技术方案本质上与上述实施例一致,上述实施例中的相应描述同样适用于本实施例中。本实施例中所述装置包括:As shown in FIG. 6 , it is a specific embodiment of the web application-based page data acquisition device of the present invention. The device described in this embodiment is a physical device used to execute the method described in the above embodiment. The technical solution is essentially consistent with the above-mentioned embodiment, and the corresponding descriptions in the above-mentioned embodiment are also applicable to this embodiment. The device described in this embodiment includes:

响应模块601,用于响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;Response module 601, configured to respond to a data acquisition request for a target page, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page;

确定模块602,用于根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;Determining module 602, configured to determine the target access address corresponding to the resource locator identifier according to the resource locator identifier;

获取模块603,用于访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。The acquisition module 603 is used to access the target access address and obtain the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page.

可选的,所述确定模块602,具体用于:Optionally, the determination module 602 is specifically used for:

根据所述资源定位符标识,确定所述资源定位符标识对应的环境类型;According to the resource locator identifier, determine the environment type corresponding to the resource locator identifier;

根据所述资源定位符标识和所述资源定位符标识对应的环境类型,确定所述资源定位符标识对应的目标访问地址。The target access address corresponding to the resource locator identifier is determined according to the resource locator identifier and the environment type corresponding to the resource locator identifier.

可选的,所述获取模块603,具体用于:Optionally, the acquisition module 603 is specifically used for:

根据所述接口参数,确定所述接口参数对应的运行参数;According to the interface parameters, determine the operating parameters corresponding to the interface parameters;

访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。Access the target access address, load the operating parameters corresponding to the interface parameters into the target access address, and obtain the page display value corresponding to the interface parameters, so that the interface parameters corresponding to the target page can be displayed. The page display value is displayed in the area.

可选的,所述获取模块603,还具体用于:Optionally, the acquisition module 603 is also specifically used for:

根据所述接口参数,确定所述接口参数对应的预设代码模板;According to the interface parameters, determine a preset code template corresponding to the interface parameters;

根据所述接口参数和所述接口参数对应的预设代码模板,生成所述接口参数对应的运行参数,其中,所述运行参数包括可运行代码。Operating parameters corresponding to the interface parameters are generated according to the interface parameters and the preset code template corresponding to the interface parameters, where the operating parameters include executable code.

可选的,所述获取模块603,还具体用于:Optionally, the acquisition module 603 is also specifically used for:

访问所述目标访问地址,并将所述接口参数对应的运行参数热加载或热重载至所述目标访问地址中;Access the target access address, and hot load or hot reload the operating parameters corresponding to the interface parameters into the target access address;

获取所述目标访问地址返回的所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。Obtain the page display value corresponding to the interface parameter returned by the target access address, so as to display the page display value in the area corresponding to the interface parameter of the target page.

可选的,所述获取模块603,还具体用于:Optionally, the acquisition module 603 is also specifically used for:

根据所述目标访问地址,访问后端服务器;Access the backend server according to the target access address;

将所述接口参数对应的运行参数加载至所述后端服务器中的所述目标访问地址中;Load the operating parameters corresponding to the interface parameters into the target access address in the back-end server;

接收所述后端服务器返回的所述接口参数对应的页面显示值。Receive the page display value corresponding to the interface parameter returned by the back-end server.

可选的,所述获取模块603,还具体用于:Optionally, the acquisition module 603 is also specifically used for:

根据所述目标访问地址,访问预设模拟数据代码库;Access the preset simulation data code library according to the target access address;

将所述接口参数对应的运行参数加载至所述预设模拟数据代码库中的所述目标访问地址中;Load the operating parameters corresponding to the interface parameters into the target access address in the preset simulation data code library;

接收所述预设模拟数据代码库返回的所述接口参数对应的页面显示值。Receive the page display value corresponding to the interface parameter returned by the preset simulation data code library.

可选的,所述装置还包括,导出模块,用于:Optionally, the device also includes an export module for:

获取导出指令,其中,所述导出指令包括导出文件类型;Obtain an export instruction, wherein the export instruction includes an export file type;

响应于所述导出指令,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, obtain an export file template according to the export file type;

将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template.

可选的,所述导出文件类型为word文档;所述导出模块具体用于:Optionally, the export file type is a word document; the export module is specifically used for:

响应于所述导出指令,利用docx-templates模块,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, use the docx-templates module to obtain an export file template according to the export file type;

利用docx-templates模块,将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Use the docx-templates module to fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template.

可选的,所述导出文件类型为excel文档;所述导出模块具体用于:Optionally, the export file type is an excel document; the export module is specifically used for:

响应于所述导出指令,利用ejsexcel模块,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, use the ejsexcel module to obtain an export file template according to the export file type;

利用ejsexcel模块,将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Use the ejsexcel module to fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template.

可选的,所述装置还包括,导入模块,用于:Optionally, the device also includes an import module for:

获取导入指令,其中,所述导入指令包括导入文件;Obtain an import instruction, wherein the import instruction includes an import file;

响应于所述导入指令,确定所述导入文件中的目标访问地址以及接口参数;In response to the import instruction, determine the target access address and interface parameters in the import file;

保存所述目标访问地址以及所述接口参数。Save the target access address and the interface parameters.

可选的,所述导入模块,具体用于:Optional, the imported module is specifically used for:

响应于所述导入指令,利用ejsexcel模块,确定所述导入文件中的目标访问地址以及接口参数。In response to the import instruction, use the ejsexcel module to determine the target access address and interface parameters in the import file.

图7是本发明实施例提供的一种电子设备的结构示意图。在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. At the hardware level, the electronic device includes a processor and optionally an internal bus, a network interface, and a memory. The memory may include memory, such as high-speed random access memory (Random-Access Memory, RAM), or may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic equipment may also include other hardware required by the business.

处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(PeripheralComponent Interconnect,外设部件互连标准)总线或EISA(Extended Industry StandardArchitecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect, a peripheral component interconnect standard) bus or an EISA (Extended Industry StandardArchitecture, extended industry standard architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one bidirectional arrow is used in Figure 7, but it does not mean that there is only one bus or one type of bus.

存储器,用于存放执行指令。具体地,执行指令即可被执行的计算机程序。存储器可以包括内存和非易失性存储器,并向处理器提供执行指令和数据。Memory, used to store execution instructions. Specifically, execution instructions are a computer program that is executed. Memory may include internal memory and non-volatile memory and provides execution instructions and data to the processor.

在一种可能实现的方式中,处理器从非易失性存储器中读取对应的执行指令到内存中然后运行,也可从其它设备上获取相应的执行指令,以在逻辑层面上形成基于Web应用的页面数据获取装置。处理器执行存储器所存放的执行指令,以通过执行的执行指令实现本发明任一实施例中提供的基于Web应用的页面数据获取方法。In one possible implementation method, the processor reads the corresponding execution instructions from the non-volatile memory into the memory and then runs them. The processor can also obtain the corresponding execution instructions from other devices to form a Web-based system at the logical level. The application's page data acquisition device. The processor executes the execution instructions stored in the memory to implement the web application-based page data acquisition method provided in any embodiment of the present invention through the executed execution instructions.

上述如本发明图2所示实施例提供的基于Web应用的页面数据获取装置执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(CentralProcessing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific IntegratedCircuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The above method performed by the web application-based page data acquisition device provided by the embodiment shown in FIG. 2 of the present invention can be applied to a processor, or implemented by the processor. The processor may be an integrated circuit chip that has signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. Each method, step and logical block diagram disclosed in the embodiment of the present invention can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

本发明实施例还提出了一种可读介质,该可读存储介质存储有执行指令,存储的执行指令被电子设备的处理器执行时,能够使该电子设备执行本发明任一实施例中提供的基于Web应用的页面数据获取方法,并具体用于执行上述基于Web应用的页面数据获取所述的方法。Embodiments of the present invention also provide a readable medium that stores execution instructions. When the stored execution instructions are executed by a processor of an electronic device, the electronic device can execute the steps provided in any embodiment of the present invention. A method for obtaining page data based on a Web application, and is specifically used to perform the method described above for obtaining page data based on a Web application.

前述各个实施例中所述的电子设备可以为计算机。The electronic device described in the foregoing embodiments may be a computer.

本领域内的技术人员应明白,本发明的实施例可提供为方法或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例,或软件和硬件相结合的形式。Those skilled in the art will appreciate that embodiments of the invention may be provided as methods or computer program products. Accordingly, the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.

本发明中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment of the present invention is described in a progressive manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or device that includes the stated element.

以上所述仅为本发明的实施例而已,并不用于限制本发明。对于本领域技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。The above descriptions are only examples of the present invention and are not intended to limit the present invention. Various modifications and variations will occur to the present invention to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the claims of the present invention.

Claims (12)

1.一种基于Web应用的页面数据获取方法,其特征在于,所述方法应用于Web应用系统中的数据挡板服务,所述方法包括:1. A page data acquisition method based on Web application, characterized in that the method is applied to the data baffle service in the Web application system, and the method includes: 响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;Respond to a data acquisition request for the target page, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page; 根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;Determine the target access address corresponding to the resource locator identifier according to the resource locator identifier; 访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值;Access the target access address and obtain the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page; 所述根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址,包括:Determining the target access address corresponding to the resource locator identifier according to the resource locator identifier includes: 根据所述资源定位符标识,确定所述资源定位符标识对应的环境类型;According to the resource locator identifier, determine the environment type corresponding to the resource locator identifier; 根据所述资源定位符标识和所述资源定位符标识对应的环境类型,确定所述资源定位符标识对应的目标访问地址;Determine the target access address corresponding to the resource locator identifier according to the resource locator identifier and the environment type corresponding to the resource locator identifier; 所述访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值,包括:The method of accessing the target access address and obtaining the page display value corresponding to the interface parameter so as to display the page display value in the area corresponding to the interface parameter of the target page includes: 根据所述接口参数,确定所述接口参数对应的运行参数;According to the interface parameters, determine the operating parameters corresponding to the interface parameters; 访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值;Access the target access address, load the operating parameters corresponding to the interface parameters into the target access address, and obtain the page display value corresponding to the interface parameters, so that the interface parameters corresponding to the target page can be displayed. The page display value is displayed in the area; 所述根据所述接口参数,确定所述接口参数对应的运行参数,包括:Determining the operating parameters corresponding to the interface parameters according to the interface parameters includes: 根据所述接口参数,确定所述接口参数对应的预设代码模板;According to the interface parameters, determine a preset code template corresponding to the interface parameters; 根据所述接口参数和所述接口参数对应的预设代码模板,生成所述接口参数对应的运行参数,其中,所述运行参数包括可运行代码。Operating parameters corresponding to the interface parameters are generated according to the interface parameters and the preset code template corresponding to the interface parameters, where the operating parameters include executable code. 2.根据权利要求1所述的方法,其特征在于,所述访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值,包括:2. The method according to claim 1, characterized in that: accessing the target access address, loading operating parameters corresponding to the interface parameters into the target access address, and obtaining the operation parameters corresponding to the interface parameters. The page display value is used to display the page display value in the area corresponding to the interface parameter of the target page, including: 访问所述目标访问地址,并将所述接口参数对应的运行参数热加载或热重载至所述目标访问地址中;Access the target access address, and hot load or hot reload the operating parameters corresponding to the interface parameters into the target access address; 获取所述目标访问地址返回的所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值。Obtain the page display value corresponding to the interface parameter returned by the target access address, so as to display the page display value in the area corresponding to the interface parameter of the target page. 3.根据权利要求1所述的方法,其特征在于,若所述环境类型为开发环境变量,则所述访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,包括:3. The method according to claim 1, characterized in that, if the environment type is a development environment variable, then the target access address is accessed, and the running parameters corresponding to the interface parameters are loaded into the target. In the access address, obtain the page display value corresponding to the interface parameter, including: 根据所述目标访问地址,访问后端服务器;Access the backend server according to the target access address; 将所述接口参数对应的运行参数加载至所述后端服务器中的所述目标访问地址中;Load the operating parameters corresponding to the interface parameters into the target access address in the back-end server; 接收所述后端服务器返回的所述接口参数对应的页面显示值。Receive the page display value corresponding to the interface parameter returned by the back-end server. 4.根据权利要求1所述的方法,其特征在于,若所述环境类型为调试环境,则所述访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,包括:4. The method according to claim 1, characterized in that, if the environment type is a debugging environment, the target access address is accessed, and the operating parameters corresponding to the interface parameters are loaded into the target access address. In the address, obtain the page display value corresponding to the interface parameter, including: 根据所述目标访问地址,访问预设模拟数据代码库;Access the preset simulation data code library according to the target access address; 将所述接口参数对应的运行参数加载至所述预设模拟数据代码库中的所述目标访问地址中;Load the operating parameters corresponding to the interface parameters into the target access address in the preset simulation data code library; 接收所述预设模拟数据代码库返回的所述接口参数对应的页面显示值。Receive the page display value corresponding to the interface parameter returned by the preset simulation data code library. 5.根据权利要求1-4中任一所述的方法,其特征在于,所述方法还包括:5. The method according to any one of claims 1-4, characterized in that the method further includes: 获取导出指令,其中,所述导出指令包括导出文件类型;Obtain an export instruction, wherein the export instruction includes an export file type; 响应于所述导出指令,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, obtain an export file template according to the export file type; 将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template. 6.根据权利要求5所述的方法,其特征在于,所述导出文件类型为word文档;所述响应于所述导出指令,根据所述导出文件类型,获取导出文件模板,包括:6. The method of claim 5, wherein the export file type is a word document; and in response to the export instruction, obtaining an export file template according to the export file type includes: 响应于所述导出指令,利用docx-templates模块,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, use the docx-templates module to obtain an export file template according to the export file type; 相应地,所述将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板,包括:Correspondingly, filling the historical target access address and historical interface parameters into the export file template, and outputting the filled export file template includes: 利用docx-templates模块,将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Use the docx-templates module to fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template. 7.根据权利要求5所述的方法,其特征在于,所述导出文件类型为excel文档;所述响应于所述导出指令,根据所述导出文件类型,获取导出文件模板,包括:7. The method according to claim 5, wherein the export file type is an excel document; and in response to the export instruction, obtaining an export file template according to the export file type includes: 响应于所述导出指令,利用ejsexcel模块,根据所述导出文件类型,获取导出文件模板;In response to the export instruction, use the ejsexcel module to obtain an export file template according to the export file type; 相应地,所述将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板,包括:Correspondingly, filling the historical target access address and historical interface parameters into the export file template, and outputting the filled export file template includes: 利用ejsexcel模块,将历史目标访问地址以及历史接口参数,填充至所述导出文件模板,并输出填充后的导出文件模板。Use the ejsexcel module to fill the historical target access address and historical interface parameters into the export file template, and output the filled export file template. 8.根据权利要求1-4中任一所述的方法,其特征在于,所述方法还包括:8. The method according to any one of claims 1-4, characterized in that the method further includes: 获取导入指令,其中,所述导入指令包括导入文件;Obtain an import instruction, wherein the import instruction includes an import file; 响应于所述导入指令,确定所述导入文件中的目标访问地址以及接口参数;In response to the import instruction, determine the target access address and interface parameters in the import file; 保存所述目标访问地址以及所述接口参数。Save the target access address and the interface parameters. 9.根据权利要求7所述的方法,其特征在于,所述响应于所述导入指令,确定所述导入文件中的目标访问地址以及接口参数,包括:9. The method according to claim 7, characterized in that, in response to the import instruction, determining the target access address and interface parameters in the import file includes: 响应于所述导入指令,利用ejsexcel模块,确定所述导入文件中的目标访问地址以及接口参数。In response to the import instruction, use the ejsexcel module to determine the target access address and interface parameters in the import file. 10.一种基于Web应用的页面数据获取装置,其特征在于,所述装置应用于Web应用系统中的数据挡板服务,所述装置包括:10. A page data acquisition device based on Web application, characterized in that the device is applied to the data baffle service in the Web application system, and the device includes: 响应模块,用于响应于针对目标页面的数据获取请求,其中,所述数据获取请求包括所述目标页面对应的资源定位符标识和接口参数;A response module, configured to respond to a data acquisition request for the target page, wherein the data acquisition request includes the resource locator identifier and interface parameters corresponding to the target page; 确定模块,用于根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址;所述根据所述资源定位符标识,确定所述资源定位符标识对应的目标访问地址,包括:根据所述资源定位符标识,确定所述资源定位符标识对应的环境类型;根据所述资源定位符标识和所述资源定位符标识对应的环境类型,确定所述资源定位符标识对应的目标访问地址;a determining module, configured to determine the target access address corresponding to the resource locator identifier according to the resource locator identifier; and determine the target access address corresponding to the resource locator identifier according to the resource locator identifier, including : Determine the environment type corresponding to the resource locator identifier according to the resource locator identifier; determine the target corresponding to the resource locator identifier according to the resource locator identifier and the environment type corresponding to the resource locator identifier. address; 获取模块,用于访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值;所述访问所述目标访问地址,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值,包括:根据所述接口参数,确定所述接口参数对应的运行参数;访问所述目标访问地址,并将所述接口参数对应的运行参数加载至所述目标访问地址中,获取所述接口参数对应的页面显示值,以便在所述目标页面的所述接口参数对应的区域中显示所述页面显示值;An acquisition module is used to access the target access address and obtain the page display value corresponding to the interface parameter, so as to display the page display value in the area corresponding to the interface parameter of the target page; the accessing method The target access address obtains the page display value corresponding to the interface parameter so as to display the page display value in the area corresponding to the interface parameter of the target page, including: determining the interface parameter according to the interface parameter Corresponding operating parameters; access the target access address, load the operating parameters corresponding to the interface parameters into the target access address, and obtain the page display values corresponding to the interface parameters, so that in all parts of the target page The page display value is displayed in the area corresponding to the interface parameter; 其中,所述根据所述接口参数,确定所述接口参数对应的运行参数,包括:Wherein, determining the operating parameters corresponding to the interface parameters according to the interface parameters includes: 根据所述接口参数,确定所述接口参数对应的预设代码模板;According to the interface parameters, determine a preset code template corresponding to the interface parameters; 根据所述接口参数和所述接口参数对应的预设代码模板,生成所述接口参数对应的运行参数,其中,所述运行参数包括可运行代码。Operating parameters corresponding to the interface parameters are generated according to the interface parameters and the preset code template corresponding to the interface parameters, where the operating parameters include executable code. 11.一种可读介质,其特征在于,包括执行指令,当电子设备的处理器执行所述执行指令时,所述电子设备执行如权利要求1-9中任一所述的方法。11. A readable medium, characterized in that it includes execution instructions. When a processor of an electronic device executes the execution instructions, the electronic device performs the method according to any one of claims 1-9. 12.一种电子设备,其特征在于,包括处理器以及存储有执行指令的存储器,当所述处理器执行所述存储器存储的所述执行指令时,所述处理器执行如权利要求1-9中任一所述的方法。12. An electronic device, characterized by comprising a processor and a memory storing execution instructions. When the processor executes the execution instructions stored in the memory, the processor executes claims 1-9 any of the methods described.
CN202010644011.9A 2020-07-07 2020-07-07 Page data acquisition method, device and equipment based on Web application Active CN111782330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010644011.9A CN111782330B (en) 2020-07-07 2020-07-07 Page data acquisition method, device and equipment based on Web application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010644011.9A CN111782330B (en) 2020-07-07 2020-07-07 Page data acquisition method, device and equipment based on Web application

Publications (2)

Publication Number Publication Date
CN111782330A CN111782330A (en) 2020-10-16
CN111782330B true CN111782330B (en) 2024-01-26

Family

ID=72759069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010644011.9A Active CN111782330B (en) 2020-07-07 2020-07-07 Page data acquisition method, device and equipment based on Web application

Country Status (1)

Country Link
CN (1) CN111782330B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422643B (en) * 2020-11-02 2022-04-01 中关村科学城城市大脑股份有限公司 Third-party interface protection request forwarding method and device
CN112306881B (en) * 2020-11-02 2023-11-24 金联兴电子(深圳)有限公司 Analog data generation method, device, equipment and storage medium
CN112464595A (en) * 2020-12-14 2021-03-09 中国电子科技集团公司第十四研究所 Cross-platform communication middleware visual modeling method
CN113010411B (en) * 2020-12-15 2024-07-05 云智慧(北京)科技有限公司 Method and system for returning data based on mock service and simulation test method
CN112527280B (en) * 2020-12-16 2023-11-07 平安银行股份有限公司 Interface display method, device, server and readable storage medium
CN112905512B (en) * 2021-02-05 2024-05-14 苏州源控电子科技有限公司 DIO interface configuration method, device and equipment based on Windows system and storage medium
CN113411234B (en) * 2021-06-17 2022-08-16 杭州遥望网络科技有限公司 Interface testing method, system and computer readable storage medium
CN113553519B (en) * 2021-06-23 2024-12-10 深圳平安智汇企业信息管理有限公司 Interface address display method, device, computer equipment and storage medium
CN113641923A (en) * 2021-08-26 2021-11-12 挂号网(杭州)科技有限公司 A method, device, electronic device and storage medium for generating an access page
CN113704664A (en) * 2021-08-26 2021-11-26 北京房江湖科技有限公司 Method and device for generating routing address for accessing page
CN114201241B (en) * 2021-09-28 2025-01-14 北京京东拓先科技有限公司 Business processing method, device, equipment, storage medium and program
CN113934498B (en) * 2021-10-22 2024-11-26 盐城天眼察微科技有限公司 Application data acquisition method, device, equipment and computer storage medium
CN114936104A (en) * 2022-07-19 2022-08-23 杭州玖玖盾信息科技有限公司 Analog data processing method, device, equipment and storage medium
CN118034954A (en) * 2024-01-31 2024-05-14 中电云计算技术有限公司 Dynamic configurable interface service arrangement method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199725A (en) * 2014-09-27 2014-12-10 上海瀚之友信息技术服务有限公司 Service interface data simulation method and system
KR20150040483A (en) * 2013-10-07 2015-04-15 에스케이플래닛 주식회사 Apparatus, method and computer-readable medium for development web application
CN107908432A (en) * 2017-11-17 2018-04-13 深圳泉眼体育运营管理有限公司 Collocation method and device, the terminal device and readable storage medium storing program for executing of application program
CN108268570A (en) * 2017-01-04 2018-07-10 武汉斗鱼网络科技有限公司 A kind of method and device of development interface
US10089219B1 (en) * 2017-01-20 2018-10-02 Intuit Inc. Mock server for testing
WO2019003252A1 (en) * 2017-06-30 2019-01-03 Ashish Belagali System for creating one or more deployable applications and source code thereof using reusable components and method therefor
CN109165009A (en) * 2018-08-14 2019-01-08 安徽云才信息技术有限公司 The project development method that a kind of web project front and back end is kept completely separate
CN109491905A (en) * 2018-11-02 2019-03-19 北京金山云网络技术有限公司 Head end test method, apparatus and electronic equipment
CN110569159A (en) * 2019-09-05 2019-12-13 深圳前海微众银行股份有限公司 Baffle generation method, device, equipment and computer storage medium
CN110727580A (en) * 2019-09-03 2020-01-24 深圳壹账通智能科技有限公司 Response data generation method, full-flow interface data processing method and related equipment
CN111078539A (en) * 2019-11-29 2020-04-28 江苏苏宁物流有限公司 Test method, device, system and computer readable storage medium
CN111078477A (en) * 2019-11-13 2020-04-28 航天信息股份有限公司 Interface test method and device, storage medium and electronic equipment
CN111142871A (en) * 2019-12-24 2020-05-12 杭州安恒信息技术股份有限公司 Front-end page development system, method, equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9792203B2 (en) * 2013-11-14 2017-10-17 Sap Se Isolated testing of distributed development projects

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150040483A (en) * 2013-10-07 2015-04-15 에스케이플래닛 주식회사 Apparatus, method and computer-readable medium for development web application
CN104199725A (en) * 2014-09-27 2014-12-10 上海瀚之友信息技术服务有限公司 Service interface data simulation method and system
CN108268570A (en) * 2017-01-04 2018-07-10 武汉斗鱼网络科技有限公司 A kind of method and device of development interface
US10089219B1 (en) * 2017-01-20 2018-10-02 Intuit Inc. Mock server for testing
WO2019003252A1 (en) * 2017-06-30 2019-01-03 Ashish Belagali System for creating one or more deployable applications and source code thereof using reusable components and method therefor
CN107908432A (en) * 2017-11-17 2018-04-13 深圳泉眼体育运营管理有限公司 Collocation method and device, the terminal device and readable storage medium storing program for executing of application program
CN109165009A (en) * 2018-08-14 2019-01-08 安徽云才信息技术有限公司 The project development method that a kind of web project front and back end is kept completely separate
CN109491905A (en) * 2018-11-02 2019-03-19 北京金山云网络技术有限公司 Head end test method, apparatus and electronic equipment
CN110727580A (en) * 2019-09-03 2020-01-24 深圳壹账通智能科技有限公司 Response data generation method, full-flow interface data processing method and related equipment
CN110569159A (en) * 2019-09-05 2019-12-13 深圳前海微众银行股份有限公司 Baffle generation method, device, equipment and computer storage medium
CN111078477A (en) * 2019-11-13 2020-04-28 航天信息股份有限公司 Interface test method and device, storage medium and electronic equipment
CN111078539A (en) * 2019-11-29 2020-04-28 江苏苏宁物流有限公司 Test method, device, system and computer readable storage medium
CN111142871A (en) * 2019-12-24 2020-05-12 杭州安恒信息技术股份有限公司 Front-end page development system, method, equipment and medium

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
Java unit testing tool competition-seventh round.;Kifetew, F 等;2019 IEEE/ACM 12th International Workshop on Search-Based Software Testing;15-20 *
MockRest—A Generic Approach for Automated Mock Framework for REST APIs Generation;Anshu Soni 等;2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering;1-4 *
Noury Bouraqadi 等.Mocks, Proxies, and Transpilation as Development Strategies for Web Developme.IWST'16: Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies.2016,1-6. *
Server interface descriptions for automated testing of JavaScript web applications;Casper S. Jensen 等;ESEC/FSE 2013: Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering;510–520 *
传统银行敏捷自动化测试探索;万芳;金融电子化(第01期);90-91 *
关于软件设计可靠性自动化测试仿真研究;陈晔;计算机仿真;第34卷(第06期);281-284 *
基于JMeter的Web Service自动化测试集成框架;边耐政 等;计算机应用与软件;第33卷(第5期);8-16 *
基于MOCK平台模拟第三方数据源测试方法研究;周云梅;科学大众(第3期);58-59 *
基于NodeJS进行自动化单元测试中mock平台的设计与研究;潘诗瑶;中国优秀硕士学位论文信息科技辑(第3期);1-57 *
软件测试中的Mock辅助生成技术研究;冯俊池 等;电子测量技术;第42卷(第6期);48-51 *

Also Published As

Publication number Publication date
CN111782330A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN111782330B (en) Page data acquisition method, device and equipment based on Web application
JP6740373B2 (en) Page component dynamic layout
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
CN110147402A (en) Excel file introduction method and equipment, deriving method and equipment
CN110221968A (en) Method for testing software and Related product
CN111813385B (en) A web application-based page plug-in method, device and equipment
CN110955409B (en) Method and device for creating resources on cloud platform
CN110888794B (en) Interface testing method and device
US20230229406A1 (en) Page rendering method, apparatus, electronic device, computer-readable storage medium, and computer program product
CN107391182B (en) A method, device, server and storage medium for generating a theme installation package
CN111079048A (en) Page loading method and device
CN110059278A (en) Web page configuration method, server and computer readable storage medium
CN114564203A (en) Service operation method and device, electronic equipment and readable medium
CN110727429A (en) Front-end page generation method, device and equipment
CN109739655A (en) A kind of parameter setting method and device of gRPC request
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN108491232B (en) Method and system for loading control on voice conversation platform
CN118259906A (en) Multi-terminal page adaptation method, equipment and medium based on PaaS framework
CN117873858A (en) Simulation data generation method and computing device for front-end page test
CN114816385B (en) Integration method, device and equipment of heterogeneous system and storage medium
CN110989978A (en) Page packaging method and device, electronic equipment and storage medium
CN116301845A (en) Form generation method and device and electronic equipment
CN115659085A (en) Interactive resource processing method and device and teaching method and device
CN111639030A (en) Page testing method, device, equipment and storage medium
CN115062255B (en) Website adaptation method and device, electronic equipment and computer readable storage medium

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
CB03 Change of inventor or designer information

Inventor after: Li Yuxiang

Inventor after: Li Jiancheng

Inventor before: Li Yuxiang

Inventor before: Li Jiancheng

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant