CN111782330A - Web application-based page data acquisition method, device and equipment - Google Patents

Web application-based page data acquisition method, device and equipment Download PDF

Info

Publication number
CN111782330A
CN111782330A CN202010644011.9A CN202010644011A CN111782330A CN 111782330 A CN111782330 A CN 111782330A CN 202010644011 A CN202010644011 A CN 202010644011A CN 111782330 A CN111782330 A CN 111782330A
Authority
CN
China
Prior art keywords
access address
target access
interface parameter
interface
page
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.)
Granted
Application number
CN202010644011.9A
Other languages
Chinese (zh)
Other versions
CN111782330B (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

Images

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)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage data acquisition method based on Web application, which is applied to data baffle service and comprises the following steps: responding to a data acquisition request aiming at a target page; determining a target access address corresponding to the resource locator identifier according to the resource locator identifier; and accessing the target access address and acquiring a page display value corresponding to the interface parameter. Therefore, the method and the device have the advantages that the user can determine the target access address by directly and quickly switching different resource locator identifiers in the graphical interface (target page) of the web application, and can obtain the page display value corresponding to the interface parameter by accessing the target access address, and program developers do not need to manually change or write codes to obtain the page display value corresponding to the interface parameter, so that the development efficiency of the service is improved.

Description

Web application-based page data acquisition method, device and equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and equipment for acquiring page data based on Web application.
Background
With the development of software technology and the continuous improvement of user requirements, web applications are more and more complex, and the user requirements are more and more high.
In the prior art, the front end and the back end of the web application are usually and completely separated, so that a set of interfaces at the back end can be supported and provided for the web, ios and android to use, and the development efficiency is greatly improved. However, the problem that the front-end UI of the web application depends on the backend data is also brought, and before the interface at the backend is not developed, the front end needs to simulate the interface data according to the specification defined by the interface and determine the page data in the web application page, so as to determine the page data display condition in the current web application page. In the process of the visual development of the front-end project of the web application, when the front end is not connected with the back end, the conventional page data acquisition mode of the web application usually requires a developer to manually write the page data of the web application, that is, the page data of the web application is completely coded by a program developer, but if the page data of each web application is completely coded by hands, the development efficiency of the service is low.
Therefore, how to improve the efficiency of the front-end project visualization development of the web application is a technical difficulty to be solved urgently at present.
Disclosure of Invention
The invention provides a method and a device for acquiring page data based on Web application, which are used for acquiring a page display value corresponding to an interface parameter without requiring a program developer to manually change or manually write a code, and can also avoid the problem of program writing errors caused by manually writing a program, thereby improving the development efficiency of services.
In a first aspect, the present invention provides a method for acquiring page data based on a Web application, where the method is applied to a data baffle service in a Web application system, and the method includes:
responding to a data acquisition request aiming at a target page, wherein the data acquisition request comprises a resource locator identifier and an interface parameter corresponding to the target page;
determining a target access address corresponding to the resource locator identifier according to the resource locator identifier;
and accessing the target access address, and acquiring a page display value corresponding to the interface parameter so as to display the page display value in an area corresponding to the interface parameter of the target page.
In a second aspect, the present invention provides a Web application-based page data obtaining apparatus, where the apparatus is applied to a data blocking service in a Web application system, and the apparatus includes:
the response module is used for responding to a data acquisition request aiming at a target page, wherein the data acquisition request comprises a resource locator identifier and an interface parameter corresponding to the target page;
a determining module, configured to determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier;
and the acquisition module is used for accessing the target access address and acquiring 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 invention provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, perform the method according to any of the first aspect.
In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
According to the technical scheme, the method is applied to the data baffle service in the Web application system, and particularly, after the data baffle service acquires the data acquisition request aiming at the target page, the data baffle service can respond to the data acquisition request aiming at the target page, wherein the data acquisition request comprises the resource locator identifier and the interface parameter corresponding to the target page; then, the data baffle service can determine a target access address corresponding to the resource locator identifier according to the resource locator identifier; then, the data barrier service may access the target access address, and obtain a page display value corresponding to the interface parameter, so as to display the page display value in an area corresponding to the interface parameter of the Web application target page. Therefore, the method and the device can determine and access the target access address corresponding to the resource locator identification according to the resource locator identification and the interface parameter in the data acquisition request aiming at the target page so as to acquire the page display value corresponding to the interface parameter; that is to say, the target access address corresponding to the resource locator identifier may be determined according to the resource locator identifier, and then, the page display value corresponding to the interface parameter may be obtained by accessing the target access address. Therefore, a user can determine a target access address by directly and quickly switching different resource locator identifications in a graphical interface (namely a target page) of a web application, and can obtain a page display value corresponding to an interface parameter by accessing the target access address, without requiring a program developer to manually change or manually write a code so as to obtain the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing the program can be avoided, thereby improving the development efficiency of services.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a block diagram of an exemplary application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for acquiring page data based on a Web application according to an embodiment of the present invention;
FIG. 3 is a block diagram of another exemplary application scenario provided by an embodiment of the present invention;
fig. 4 is an interface schematic diagram of an interface modification configuration page based on visualization according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a export key interface according to an embodiment of the present invention
Fig. 6 is a schematic structural diagram of a Web application-based page data acquisition apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problem that before the existing interface at the back end is not developed, the front end needs to simulate interface data according to the specification defined by the interface and determine page data in a web application page so as to determine the page data display condition in the current web application page; in the process of visual development of a front-end project of a web application, when the front end is not connected with the back end, the conventional page data acquisition mode of the web application usually requires a developer to manually write page data of the web application, namely the page data of the web application is completely coded by a program developer, for example, for mock. js, a user needs to write a URL (uniform resource locator) route by himself; easy-mock, the user still needs to write codes by himself to form simulated page data, and to realize the functions, the user needs to compare the data JS codes; however, if the page data of each web application needs to be completely encoded manually, the problem of low development efficiency of the service is caused.
The invention provides a Web application-based page data acquisition method, which is applied to a data baffle service in a Web application system, and particularly can respond to a data acquisition request for a target page after the data baffle service acquires the data acquisition request for the target page, wherein the data acquisition request comprises a resource locator identifier and an interface parameter corresponding to the target page; then, the data baffle service can determine a target access address corresponding to the resource locator identifier according to the resource locator identifier; then, the data barrier service may access the target access address, and obtain a page display value corresponding to the interface parameter, so as to display the page display value in an area corresponding to the interface parameter of the Web application target page. Therefore, the method and the device can determine and access the target access address corresponding to the resource locator identification according to the resource locator identification and the interface parameter in the data acquisition request aiming at the target page so as to acquire the page display value corresponding to the interface parameter; that is to say, the target access address corresponding to the resource locator identifier may be determined according to the resource locator identifier, and then, the page display value corresponding to the interface parameter may be obtained by accessing the target access address. Therefore, a user can determine a target access address corresponding to a resource locator identifier by directly and quickly switching different resource locator identifiers in a graphical interface (namely a target page) of a web application, and can obtain a page display value corresponding to an interface parameter by accessing the target access address, without requiring a program developer to manually change or manually write a code to obtain the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing the program can be avoided, so that the development efficiency of the service is improved.
For example, the embodiment of the present invention may be applied to the scenario shown in fig. 1, where fig. 1 is a schematic diagram of a system architecture of a Web application system. In this scenario, a front end 101 (which may be a web client, for example), a data baffle service 102, and a back end (which may be a backend server, for example)/preset analog data code library 103 are included. After the data baffle service 102 acquires a data acquisition request for a target page sent by the front end 101, where the data acquisition request includes a resource locator identifier and an interface parameter corresponding to the target page, the data baffle service 102 may respond to the data acquisition request; then, the data baffle service 102 may determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier; then, the data barrier service 102 may obtain a page display value corresponding to the interface parameter from the back end or the preset analog data code base 103 by accessing the target access address, and return the page display value to the front 101, so that the front end 101 may display the page display value in an area corresponding to the interface parameter of the target page, so that a user may adjust a display area corresponding to the interface parameter in the target page according to a display condition of the displayed page display value, so that the display condition of the page display value meets an actual requirement, for example, the display is normal and complete. In this way, according to the technical scheme corresponding to the scene, a target access address corresponding to the resource locator identification can be determined and accessed according to the resource locator identification and the interface parameter in the data acquisition request aiming at the target page, so as to acquire a page display value corresponding to the interface parameter; that is to say, the target access address corresponding to the resource locator identifier may be determined according to the resource locator identifier, and then, the page display value corresponding to the interface parameter may be obtained by accessing the target access address. Therefore, a user can determine a target access address by directly and quickly switching different resource locator identifications in a graphical interface (namely a target page) of a web application, and can obtain a page display value corresponding to an interface parameter by accessing the target access address, without requiring a program developer to manually change or manually write a code so as to obtain the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing the program can be avoided, thereby improving the development efficiency of services.
It should be noted that the above application scenarios are only shown for the convenience of understanding the present application, and the embodiments of the present application are not limited in any way in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a method for acquiring page data based on a Web application in an embodiment of the present invention is shown, where the method is applied to a data baffle service in a Web application system, and it should be noted that the Web application system may include a front end, the data baffle service, and a back end/preset virtual database, where the data baffle service may be understood as a service that, in a process of developing a project visualization at the front end, when the front end is not really connected to the back end, may function to acquire simulation data corresponding to some interface parameters and implement a function of filling page content using the simulation data, that is, when the front end is not really connected to the back end, the data baffle service may not acquire real data corresponding to the interface parameters through the back end, but may acquire simulation data corresponding to the interface parameters through the preset virtual database, and replacing real data corresponding to the interface parameters acquired through the back end with the simulation data to serve as a page display value. In this embodiment, the method may include, for example, the steps of:
s201: the data baffle service responds to a data fetch request for a target page.
In this embodiment, when a user needs to acquire a page display value corresponding to an interface in a page of a web application, the page may be referred to as a target page, that is, the target page may be understood as a page where the interface corresponding to the page display value that needs to be acquired is located. When a user needs to acquire a page display value corresponding to an interface in a target page, a data acquisition request for the target page may be generated by the front end of the web application, and then the data acquisition request is sent to the data barrier service by the front end of the web application, so that the data barrier service acquires the data acquisition request and performs subsequent operations in response to the data acquisition request. The data obtaining request may include a resource locator identifier and an interface parameter corresponding to the target page.
It should be noted that the Resource Locator id corresponding to the target page may be understood as a Uniform Resource Locator (URL) alias, and it should be emphasized that the URL alias may correspond to an address; it should be noted that the resource locator identifier may reflect the operation environment type of the interface, for example, when the resource locator identifier is "/afa", it indicates that the operation environment type of the interface is a production environment, that is, the front end is connected to the back end through the interface, and for example, when the resource locator identifier is "/test", it indicates that the operation environment of the interface is a debugging environment, that is, the front end is not connected to the back end through the interface; the interface parameter may be understood as related information of the interface, and may include, for example, a name of the interface, a chinese description of the interface, a calling method type of the interface, a type of return data corresponding to the interface, and the like.
Next, how the data baffle service acquires the data acquisition request will be exemplified in conjunction with fig. 3 and 4. Assuming that the editor is a web browser, wherein the editor may be understood as a component that may provide a visualized development page in the development platform, specifically, the editor may provide a web page, and if a user needs to obtain a page display value corresponding to an interface "user name" in the page, the user may set a page (as shown in fig. 4) through a web provided by the browser, select an alias of a URL "/AFA", which is described as "AFA test connection", and the database is mock data, and may determine the alias of the URL as "/AFA"; in addition, because the user selects the interface "/user" in the web page, the URL corresponding to the interface is "/user", the calling method type of the interface is "get", the chinese description of the interface is "obtain user information", and the type of the return data corresponding to the interface is "string"; at this time, the editor may generate a data acquisition request for a target page (i.e., a web page where an interface "user name" is located), where the data acquisition request includes a resource locator identifier "/afa" and interface parameters (i.e., the name "/user" of the interface, "acquisition user information" in chinese description of the interface, "get a calling method type" get "of the interface, and" string "of return data corresponding to the interface), and send the data acquisition request to a development platform service, where the development platform service is a service that an AWEB 7.0 visualization development platform needs to run, and a user can access and use the development platform by accessing an address provided by the service through a browser by the development platform service; then, the development platform service can determine an operation platform service corresponding to the project according to the project corresponding to the target page, and sends the data acquisition request to the operation platform service, wherein the operation platform service is a service for communicating the front-end project with the development platform service in a development stage; the runtime platform service may then 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 obtaining request may also be obtained through an operation platform, and the data obtaining request is sent to the data baffle service through the operation platform, where the operation platform is a platform on which the front-end project operates.
S202: and the data baffle service determines a target access address corresponding to the resource locator identification according to the resource locator identification.
In this embodiment, the resource locator identifier may reflect an operation environment type of the interface, and the operation environment type may reflect a connection state between the front end and the back end, so that the data barrier service may determine, according to the resource locator identifier, that the data barrier service needs to access the back end or preset an analog data code base to obtain a page display value corresponding to an interface parameter, that is, determine a target access address corresponding to the resource locator identifier.
As an example, after the data baffle service obtains the resource locator identifier, the data baffle service may determine, according to the resource locator identifier, an environment type corresponding to the resource locator identifier, for example, if the resource locator identifier is "/afa", it may determine, according to the resource locator identifier "/afa", that the operating environment type corresponding to the resource locator identifier is "/afa" is a production environment, that is, the front end is connected to the back end through the interface, and if the resource locator identifier is "/test", it is assumed that the operating environment of the interface is a debug environment, that is, the front end is not connected to the back end through the interface. Then, the data barrier service may determine, according to the resource locator identifier and the environment type corresponding to the resource locator identifier, a target access address corresponding to the resource locator identifier, for example, assuming that the resource locator identifier is "/afa" and the operating environment type corresponding to the resource locator identifier is "/afa" is a production environment, it may be determined that the target access address corresponding to the resource locator identifier "/afa" is a data source address in the back end of "/afa", and assuming that the resource locator identifier is "/test" and the operating environment type corresponding to the resource locator identifier "/test" is a test environment, it may be determined that the target access address corresponding to the resource locator identifier "/test" is a data source address in a preset simulation data code base.
S203: and the data baffle service accesses the target access address and acquires a page display value corresponding to the interface parameter so as to display the page display value in an area corresponding to the interface parameter of the target page.
In this embodiment, after the data barrier service determines the target access address corresponding to the resource locator identifier, the data barrier service may access the target access address and obtain the page display value corresponding to the interface parameter; in one implementation, assuming that the target access address is a data source address identified by the resource locator in the back end, the data barrier service may obtain a real page display value corresponding to the interface parameter by accessing the data source address identified by the resource locator in the back end, that is, a page display value obtained by the back end operating the interface parameter; in an implementation manner, assuming that the target access address is a data source address identified by the resource locator in the preset analog data code base, the data barrier service may 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 analog data code base, where it is to be noted that the preset analog data code base may randomly generate the simulated page display value corresponding to the interface according to a data type (i.e., a type of return data corresponding to the interface) in the interface parameter, for example, the preset analog data code base may be a "mockjs" open source code base. Then, the data blocking service may 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, and thus, the program developer may adjust the page layout according to the display condition of the page display value in the target page, so as to make the page layout more perfect, for example, if the area corresponding to the interface parameter of the target page is originally reserved with a display space of three characters, if the page display value returned to the front end by the data blocking service is four characters, at this time, the program developer may find that the area corresponding to the current interface parameter displays the page display value incompletely, and further may adjust the page layout, that is, the display space of the area corresponding to the interface parameter of the target page is set to be greater than or equal to four characters, thereby perfecting the page layout.
It should be noted that, in an implementation manner, the accessing the target access address to obtain a page display value corresponding to the interface parameter, so as to display the page display value in an area corresponding to the interface parameter of the target page, specifically includes the following steps:
step a: and determining the operating parameters corresponding to the interface parameters according to the interface parameters.
In this implementation manner, the preset code template corresponding to each interface parameter may be preset, for example, the interface parameter and the corresponding relationship between the preset code templates corresponding to the interface parameter may be stored in the data barrier service in advance, so that the data barrier service may determine the preset code template corresponding to the interface parameter according to the interface parameter. Then, the data baffle service may generate the operating parameter corresponding to the interface parameter according to the interface parameter and the preset code template corresponding to the interface parameter, for example, the interface parameter may replace a placeholder in the preset code template, so as to obtain the replaced preset code template, that is, the operating parameter corresponding to the interface parameter. It should be noted that the operation parameter may be understood as a code that the interface parameter can run, that is, in an implementation, the operation parameter includes a executable code.
For example, assume that the editor presents the places which need some codes through the HTML interface in the form of form table, and then analyzes the form table data filled by the user through the logic codes to generate the codes to be written originally. The user modifies the configuration based on the visualized interface on the AWEB 7.0(WebIDE) development platform, see fig. 4, and then sends the resource locator identifier and the interface parameters (such as information of interface name, interface parameter type, interface type, etc.) to the data baffle service, and then the data baffle service saves the resource locator identifier and the interface parameters to the config/mock of the project, for example, defines an interface for acquiring user information/user, and then defines the code of the return string type as:
[{
"source":"afa",
"name":"/user",
"desp": acquiring user information ",
"method":"get",
"type":"string"
}];
then, the data baffle service generates an AST code tree through the parsing engine, and generates an executable code, that is, determines an operation parameter corresponding to the interface parameter, where an interface of "obtaining user information/user" then defines an operation parameter corresponding to a return string type ", that is, an operation parameter corresponding to the interface parameter, as follows:
Figure BDA0002572450110000111
step b: and accessing the target access address, loading the operating parameters corresponding to the interface parameters into the target access address, and acquiring the page display values corresponding to the interface parameters so as to display the page display values in the area corresponding to the interface parameters of the target page.
In this embodiment, the data barrier service may access the target access address, and load the operation parameter corresponding to the interface parameter into the target access address, that is, load the operation parameter corresponding to the interface parameter into the target access address so that the operation parameter corresponding to the interface parameter operates, so as to 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 one implementation, the data barrier service may access the target access address, and load or reload the operation parameter corresponding to the interface parameter to the target access address, where the hot loading and the hot reloading may load the operation parameter corresponding to the interface parameter to the target access address so that the operation parameter corresponding to the interface parameter may be operated without restarting the server; and acquiring a page display value corresponding to the interface parameter returned by the target access address so as to display the page display value in an area corresponding to the interface parameter of the target page.
It should be emphasized that, if the environment type is a development environment variable, the accessing the target access address, loading the operation parameter corresponding to the interface parameter into the target access address, and acquiring the page display value corresponding to the interface parameter includes the following steps:
accessing a back-end server according to the target access address; loading the operation parameters corresponding to the interface parameters into the target access address in the back-end server; and receiving a page display value corresponding to the interface parameter returned by the back-end server.
For example, assuming that the resource locator is identified as "/afa" and the type of the runtime environment corresponding to the resource locator is "/afa" is the production environment, it may be confirmed that the target access address corresponding to the resource locator identification "/afa" is the data source address in the backend server of "/afa"; the data barrier service may access the backend server according to a data source address of the "/afa" in the backend server, and then may load the operation parameter corresponding to the interface parameter into the data source address of the "/afa" in the backend server, so that the backend server may operate the operation parameter corresponding to the interface parameter and obtain a page display value corresponding to the interface parameter, and the backend server may return the page display value to the data barrier service, and then the data barrier service may receive the page display value corresponding to the interface parameter returned by the backend server.
It should be further emphasized that, if the environment type is a debug environment, the accessing the target access address, loading the operating parameter corresponding to the interface parameter into the target access address, and acquiring the page display value corresponding to the interface parameter includes:
accessing a preset simulation data code base according to the target access address; loading the operating parameters corresponding to the interface parameters into the target access addresses in the preset simulation data code base; and receiving a page display value corresponding to the interface parameter returned by the preset simulation data code base.
For example, assuming that the resource locator identifier is "/test" and the type of the operating environment corresponding to the resource locator identifier "/test" is a test environment, it may be determined that the target access address corresponding to the resource locator identifier "/test" is a data source address of "/test" in the preset analog data code base; the data barrier service may first access the preset analog data code base or a server where the preset analog data code base is located according to a data source address of the "/test" in the preset analog data code base, and then may load the operation parameter corresponding to the interface parameter into the data source address in the preset analog data code base, so that the preset analog data code base may obtain the page display value corresponding to the interface parameter according to the operation parameter corresponding to the interface parameter, for example, the preset analog data code base may randomly generate the analog page display value corresponding to the interface according to a data type (i.e., a type of return data corresponding to the interface) in the operation parameter corresponding to the interface parameter; and the preset analog data code base can return the page display value to the data baffle service, and then the data baffle service can receive the page display value corresponding to the interface parameter returned by the preset analog data code base.
It can be seen that, in this embodiment, by using the data barrier service to determine the operation parameters corresponding to the interface parameters according to the interface parameters, access the target access address, load the operation parameters corresponding to the interface parameters into the target access address, and obtain the page display value corresponding to the interface parameters, the operation parameters (i.e., the operation codes) corresponding to the interface parameters are generated by using an automatic parsing of a graphical interface, so that a user does not need to learn the syntax of code writing (such as mockjs) and upload and download details of the preset code templates corresponding to the interface parameters, thereby reducing the learning cost and improving the project development efficiency.
In summary, the present invention provides a method for acquiring page data based on a Web application, where the method is applied to a data baffle service in a Web application system, and specifically, after acquiring a data acquisition request for a target page, the data baffle service may respond to the data acquisition request for the target page, where 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 a target access address corresponding to the resource locator identifier according to the resource locator identifier; then, the data barrier service may access the target access address, and obtain a page display value corresponding to the interface parameter, so as to display the page display value in an area corresponding to the interface parameter of the Web application target page. Therefore, the method and the device can determine and access the target access address corresponding to the resource locator identification according to the resource locator identification and the interface parameter in the data acquisition request aiming at the target page so as to acquire the page display value corresponding to the interface parameter; that is to say, the target access address corresponding to the resource locator identifier may be determined according to the resource locator identifier, and then, the page display value corresponding to the interface parameter may be obtained by accessing the target access address. Therefore, a user can determine a target access address corresponding to a resource locator identifier by directly and quickly switching different resource locator identifiers in a graphical interface (namely a target page) of a web application, and can obtain a page display value corresponding to an interface parameter by accessing the target access address, without requiring a program developer to manually change or manually write a code to obtain the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing the program can be avoided, so that the development efficiency of the service is improved.
Further, in an implementation manner, in order to reduce the cost of communication between program developers and the time for writing programs, i.e. improve the efficiency of project development, in an implementation manner of the embodiment, historical target access addresses and historical interface parameters in the data baffle service may be imported and exported, wherein documents in multiple formats may be exported through a preset interface and an export file template. Next, how to import and export the historical target access address and the historical interface parameter in the data baffle service will be specifically described.
Introduction of how to derive historical target access addresses and historical interface parameters in a data baffle service is achieved.
In one implementation, the method further comprises the steps of:
acquiring a derivation instruction;
responding to the export instruction, and acquiring an export file template according to the export file type;
and filling the historical target access address and the historical interface parameter into the export file template, and outputting the filled export file template.
In this embodiment, an export key (e.g., "export file" shown in fig. 5) may be provided in the web page, and when the user presses the export key, the front end may generate an export instruction and send the export instruction to the data blocking service, and the data blocking service obtains the export instruction, where the export instruction includes an export file type, and for example, the export file type may be in a format such as excel, word, pdf, and the like. It should be noted that, because the data baffle service may store export file templates corresponding to various export file types in advance, the data baffle service may respond to the export instruction, obtain an export file template according to the export file type, and fill the historical target access address and the historical interface parameter into the export file template, for example, replace a placeholder in the export file template with the historical target access address and the historical interface parameter, and output the populated export file template. It should be noted that, in an implementation manner, the formats of the historical interface parameters and the above-mentioned interface parameters may be both JSON formats. Next, the export file types will be exemplified as word and excel, respectively.
(1) When the export file type is a word document; the obtaining an export file template according to the export file type in response to the export instruction includes:
responding to the export instruction, and acquiring an export file template by using a docx-templates module according to the type of the export file;
correspondingly, the filling the historical target access address and the historical interface parameter into the export file template and outputting the filled export file template includes:
and filling the historical target access address and the historical interface parameter into the export file template by using a docx-templates module, and outputting the filled export file template.
For example, one way of code for the data baffle service to obtain an export file template based on the export file type being word in response to the export instruction may be as follows:
Figure BDA0002572450110000151
Figure BDA0002572450110000161
(2) when the export file type is an excel document; the obtaining an export file template according to the export file type in response to the export instruction includes:
responding to the export instruction, and acquiring an export file template by using an ejsexcel module according to the type of the export file;
correspondingly, the filling the historical target access address and the historical interface parameter into the export file template and outputting the filled export file template includes:
and filling the historical target access address and the historical interface parameter into the export file template by using an ejsexcel module, and outputting the filled export file template.
For example, in response to the export instruction, the data baffle service may obtain an export file template according to the export file type excel in the following manner:
const result=await ejsexcel.renderExcel(workbook,data);
const filepath=path.join(WEEKREPORT_PATH,`${content.title}.xlsx`);
await writeFileAsync(filepath,result)。
and secondly, introduction of historical target access addresses and historical interface parameters in the data baffle service is realized.
In one form of implementation, the first and second electrodes are,
the method further comprises the following steps:
acquiring an import instruction;
responding to the import instruction, and determining a target access address and an interface parameter in the import file;
and saving the target access address and the interface parameters.
In this embodiment, an import key may be provided in the web page, and after the user presses the export key, the front end may generate an import instruction and send the import instruction to the data barrier service, and the data barrier service acquires the import instruction, where the import instruction may include an import file, and the import file includes a correspondence between the target access address and the interface parameter. In one implementation, the file format of the import file may be excel. After the data barrier service acquires the import file, the import file may be parsed by the parsing engine, for example, the import file (for example, an imported excel file) may be parsed by the parsing engine according to a JSON message format defined in advance, a target access address and interface parameters (for example, a target access address and interface parameters in the JSON format) may be generated, and then, an interface file (for example, an interface file in config/mock) to the data barrier service may be generated by the parsing engine, that is, the target access address and the interface parameters may be saved. Next, the export file types are illustrated as excel, respectively.
For example, when the data baffle service receives an excel import file, the data baffle service may determine, by using the ejsexcel module, a target access address and an interface parameter in the import file in response to the import instruction, specifically, the data baffle service may parse the imported excel import file through the ejsexcel module, generate a target access address and an interface parameter in a JSON format, and then generate, by using a parsing engine, an interface file corresponding to the target access address and the interface parameter in a config/mock file in the data baffle service. It should be noted that the ejsexcel module provides a render excel interface, and the ejsexcel module can return a target access address and interface parameters in the JSON format through the render excel interface only by transmitting the content of the excel import file to the ejsexcel module.
For example, assume that the import file includes the following code:
[{
"source":"afa",
"name":"/user",
"desp": acquiring user information ",
"method":"get",
"type":"string"
}];
the data baffle service may parse the imported import file through the ejsexcel module, and generate a target access address (for example, may be a URL alias source "afa"), an interface parameter (an interface name "/user", a chinese description desp "obtains user information", a calling method type "get", a type "string" of return data), and the like.
Therefore, the historical target access address and the historical interface parameter in the data baffle service can be imported or exported, documents in various formats can be exported through the preset interface and the exported file template, and therefore the cost of communication between program developers and the time for writing the program can be reduced, and the efficiency of project development is improved.
Fig. 6 shows a specific embodiment of the apparatus for acquiring page data based on a Web application according to the present invention. The apparatus of this embodiment is a physical apparatus for executing the method of the above embodiment. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in this embodiment includes:
a response module 601, configured to respond to a data obtaining request for a target page, where the data obtaining request includes a resource locator identifier and an interface parameter corresponding to the target page;
a determining module 602, configured to determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier;
an obtaining module 603, configured to access the target access address, and obtain a page display value corresponding to the interface parameter, so as to display the page display value in an area corresponding to the interface parameter of the target page.
Optionally, the determining module 602 is specifically configured to:
determining an environment type corresponding to the resource locator identification according to the resource locator identification;
and determining a 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.
Optionally, the obtaining module 603 is specifically configured to:
determining an operation parameter corresponding to the interface parameter according to the interface parameter;
and accessing the target access address, loading the operating parameters corresponding to the interface parameters into the target access address, and acquiring the page display values corresponding to the interface parameters so as to display the page display values in the area corresponding to the interface parameters of the target page.
Optionally, the obtaining module 603 is further specifically configured to:
determining a preset code template corresponding to the interface parameter according to the interface parameter;
and generating an operating parameter corresponding to the interface parameter according to the interface parameter and a preset code template corresponding to the interface parameter, wherein the operating parameter comprises an executable code.
Optionally, the obtaining module 603 is further specifically configured to:
accessing the target access address, and carrying out hot loading or hot loading on the operation parameter corresponding to the interface parameter into the target access address;
and acquiring a page display value corresponding to the interface parameter returned by the target access address so as to display the page display value in an area corresponding to the interface parameter of the target page.
Optionally, the obtaining module 603 is further specifically configured to:
accessing a back-end server according to the target access address;
loading the operation parameters corresponding to the interface parameters into the target access address in the back-end server;
and receiving a page display value corresponding to the interface parameter returned by the back-end server.
Optionally, the obtaining module 603 is further specifically configured to:
accessing a preset simulation data code base according to the target access address;
loading the operating parameters corresponding to the interface parameters into the target access addresses in the preset simulation data code base;
and receiving a page display value corresponding to the interface parameter returned by the preset simulation data code base.
Optionally, the apparatus further includes an export module, configured to:
obtaining an export instruction, wherein the export instruction comprises an export file type;
responding to the export instruction, and acquiring an export file template according to the export file type;
and filling the historical target access address and the historical interface parameter into the export file template, and outputting the filled export file template.
Optionally, the export file type is a word document; the export module is specifically configured to:
responding to the export instruction, and acquiring an export file template by using a docx-templates module according to the type of the export file;
and filling the historical target access address and the historical interface parameter into the export file template by using a docx-templates module, and outputting the filled export file template.
Optionally, the export file type is an excel document; the export module is specifically configured to:
responding to the export instruction, and acquiring an export file template by using an ejsexcel module according to the type of the export file;
and filling the historical target access address and the historical interface parameter into the export file template by using an ejsexcel module, and outputting the filled export file template.
Optionally, the apparatus further includes an importing module, configured to:
acquiring an import instruction, wherein the import instruction comprises an import file;
responding to the import instruction, and determining a target access address and an interface parameter in the import file;
and saving the target access address and the interface parameters.
Optionally, the import module is specifically configured to:
and responding to the import instruction, and determining a target access address and an interface parameter in the import file by using an ejsexcel module.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the corresponding execution instruction, and may also obtain the corresponding execution instruction from other devices, so as to form the Web application-based page data obtaining apparatus on a logical level. The processor executes the execution instruction stored in the memory, so that the method for acquiring the page data based on the Web application provided by any embodiment of the invention is realized through the executed execution instruction.
The method executed by the Web application-based page data acquisition device according to the embodiment of the invention shown in fig. 2 can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can execute the method for acquiring page data based on a Web application provided in any embodiment of the present invention, and is specifically configured to execute the method for acquiring page data based on a Web application.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (15)

1. A method for acquiring page data based on Web application is applied to a data baffle service in a Web application system, and comprises the following steps:
responding to a data acquisition request aiming at a target page, wherein the data acquisition request comprises a resource locator identifier and an interface parameter corresponding to the target page;
determining a target access address corresponding to the resource locator identifier according to the resource locator identifier;
and accessing the target access address, and acquiring a page display value corresponding to the interface parameter so as to display the page display value in an area corresponding to the interface parameter of the target page.
2. The method of claim 1, wherein the determining, according to the resource locator identifier, a target access address corresponding to the resource locator identifier comprises:
determining an environment type corresponding to the resource locator identification according to the resource locator identification;
and determining a 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.
3. The method according to claim 2, wherein the accessing the target access address, 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, comprises:
determining an operation parameter corresponding to the interface parameter according to the interface parameter;
and accessing the target access address, loading the operating parameters corresponding to the interface parameters into the target access address, and acquiring the page display values corresponding to the interface parameters so as to display the page display values in the area corresponding to the interface parameters of the target page.
4. The method according to claim 3, wherein the determining the operation parameter corresponding to the interface parameter according to the interface parameter comprises:
determining a preset code template corresponding to the interface parameter according to the interface parameter;
and generating an operating parameter corresponding to the interface parameter according to the interface parameter and a preset code template corresponding to the interface parameter, wherein the operating parameter comprises an executable code.
5. The method according to claim 3, wherein the accessing the target access address, loading the operation parameter corresponding to the interface parameter into 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, comprises:
accessing the target access address, and carrying out hot loading or hot loading on the operation parameter corresponding to the interface parameter into the target access address;
and acquiring a page display value corresponding to the interface parameter returned by the target access address so as to display the page display value in an area corresponding to the interface parameter of the target page.
6. The method according to claim 3, wherein if the environment type is a development environment variable, the accessing the target access address, loading an operation parameter corresponding to the interface parameter into the target access address, and obtaining a page display value corresponding to the interface parameter comprises:
accessing a back-end server according to the target access address;
loading the operation parameters corresponding to the interface parameters into the target access address in the back-end server;
and receiving a page display value corresponding to the interface parameter returned by the back-end server.
7. The method according to claim 3, wherein if the environment type is a debug environment, the accessing the target access address, loading the operation parameter corresponding to the interface parameter into the target access address, and obtaining the page display value corresponding to the interface parameter comprises:
accessing a preset simulation data code base according to the target access address;
loading the operating parameters corresponding to the interface parameters into the target access addresses in the preset simulation data code base;
and receiving a page display value corresponding to the interface parameter returned by the preset simulation data code base.
8. The method according to any one of claims 1-7, further comprising:
obtaining an export instruction, wherein the export instruction comprises an export file type;
responding to the export instruction, and acquiring an export file template according to the export file type;
and filling the historical target access address and the historical interface parameter into the export file template, and outputting the filled export file template.
9. The method of claim 8, wherein the exported file type is a word document; the obtaining an export file template according to the export file type in response to the export instruction includes:
responding to the export instruction, and acquiring an export file template by using a docx-templates module according to the type of the export file;
correspondingly, the filling the historical target access address and the historical interface parameter into the export file template and outputting the filled export file template includes:
and filling the historical target access address and the historical interface parameter into the export file template by using a docx-templates module, and outputting the filled export file template.
10. The method of claim 8, wherein the export file type is an excel document; the obtaining an export file template according to the export file type in response to the export instruction includes:
responding to the export instruction, and acquiring an export file template by using an ejsexcel module according to the type of the export file;
correspondingly, the filling the historical target access address and the historical interface parameter into the export file template and outputting the filled export file template includes:
and filling the historical target access address and the historical interface parameter into the export file template by using an ejsexcel module, and outputting the filled export file template.
11. The method according to any one of claims 1-7, further comprising:
acquiring an import instruction, wherein the import instruction comprises an import file;
responding to the import instruction, and determining a target access address and an interface parameter in the import file;
and saving the target access address and the interface parameters.
12. The method of claim 10, wherein determining the target access address and the interface parameter in the import file in response to the import instruction comprises:
and responding to the import instruction, and determining a target access address and an interface parameter in the import file by using an ejsexcel module.
13. A page data acquisition device based on Web application is characterized in that the device is applied to a data baffle service in a Web application system, and the device comprises:
the response module is used for responding to a data acquisition request aiming at a target page, wherein the data acquisition request comprises a resource locator identifier and an interface parameter corresponding to the target page;
a determining module, configured to determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier;
and the acquisition module is used for accessing the target access address and acquiring 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.
14. A readable medium comprising executable instructions which, when executed by a processor of an electronic device, cause the electronic device to perform the method of any of claims 1-12.
15. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of any one of claims 1-12 when the processor executes the execution instructions stored by the memory.
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 true CN111782330A (en) 2020-10-16
CN111782330B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306881A (en) * 2020-11-02 2021-02-02 平安普惠企业管理有限公司 Simulation data generation method, device, equipment and storage medium
CN112422643A (en) * 2020-11-02 2021-02-26 中关村科学城城市大脑股份有限公司 Third-party interface protection request forwarding method and device
CN112527280A (en) * 2020-12-16 2021-03-19 平安银行股份有限公司 Interface display method and device, server and readable storage medium
CN112905512A (en) * 2021-02-05 2021-06-04 苏州源控电子科技有限公司 DIO interface configuration method, device, equipment and storage medium based on Windows system
CN113010411A (en) * 2020-12-15 2021-06-22 云智慧(北京)科技有限公司 Method and system for returning data based on mock service and simulation test method
CN113411234A (en) * 2021-06-17 2021-09-17 杭州遥望网络科技有限公司 Interface testing method, system and computer readable storage medium
CN113553519A (en) * 2021-06-23 2021-10-26 深圳平安智汇企业信息管理有限公司 Interface address display method and device, computer equipment and storage medium
CN113641923A (en) * 2021-08-26 2021-11-12 挂号网(杭州)科技有限公司 Access page generation method and device, electronic equipment and storage medium
CN113704664A (en) * 2021-08-26 2021-11-26 北京房江湖科技有限公司 Method and device for generating routing address for accessing page
CN114936104A (en) * 2022-07-19 2022-08-23 杭州玖玖盾信息科技有限公司 Analog data processing method, device, equipment and storage medium

Citations (14)

* 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
US20150135158A1 (en) * 2013-11-14 2015-05-14 Dimitar Tenev Isolated testing of distributed development projects
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
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

Patent Citations (14)

* 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
US20150135158A1 (en) * 2013-11-14 2015-05-14 Dimitar Tenev Isolated testing of distributed development projects
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 (13)

* Cited by examiner, † Cited by third party
Title
ANSHU SONI 等: "MockRest—A Generic Approach for Automated Mock Framework for REST APIs Generation", 2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING, pages 1 - 4 *
CASPER S. JENSEN 等: "Server interface descriptions for automated testing of JavaScript web applications", ESEC/FSE 2013: PROCEEDINGS OF THE 2013 9TH JOINT MEETING ON FOUNDATIONS OF SOFTWARE ENGINEERING, pages 510 *
HXJ9102: "mockjs使用", Retrieved from the Internet <URL:www.csdn.net/xiaoxiaojie12321/article/details/81301399> *
KATERO: "挡板模拟器---桩模块驱动模块", Retrieved from the Internet <URL:https://www.cnblogs.com/katero/archive/2011/08/03/2126124.html> *
KIFETEW, F 等: "Java unit testing tool competition-seventh round.", 2019 IEEE/ACM 12TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING, pages 15 - 20 *
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, pages 1 - 6 *
SALMA EID 等: "Detecting software performance problems using source code analysis techniques", EGYPTIAN INFORMATICS JOURNAL, vol. 21, no. 4, pages 219 - 229, XP086430693, DOI: 10.1016/j.eij.2020.02.002 *
万芳: "传统银行敏捷自动化测试探索", 金融电子化, no. 01, pages 90 - 91 *
冯俊池 等: "软件测试中的Mock辅助生成技术研究", 电子测量技术, vol. 42, no. 6, pages 48 - 51 *
周云梅: "基于MOCK平台模拟第三方数据源测试方法研究", 科学大众, no. 3, pages 58 - 59 *
潘诗瑶: "基于NodeJS进行自动化单元测试中mock平台的设计与研究", 中国优秀硕士学位论文信息科技辑, no. 3, pages 1 - 57 *
边耐政 等: "基于JMeter的Web Service自动化测试集成框架", 计算机应用与软件, vol. 33, no. 5, pages 8 - 16 *
陈晔: "关于软件设计可靠性自动化测试仿真研究", 计算机仿真, vol. 34, no. 06, pages 281 - 284 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306881A (en) * 2020-11-02 2021-02-02 平安普惠企业管理有限公司 Simulation data generation method, device, equipment and storage medium
CN112422643A (en) * 2020-11-02 2021-02-26 中关村科学城城市大脑股份有限公司 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
CN113010411A (en) * 2020-12-15 2021-06-22 云智慧(北京)科技有限公司 Method and system for returning data based on mock service and simulation test method
CN112527280A (en) * 2020-12-16 2021-03-19 平安银行股份有限公司 Interface display method and device, server and readable storage medium
CN112527280B (en) * 2020-12-16 2023-11-07 平安银行股份有限公司 Interface display method, device, server and readable storage medium
CN112905512A (en) * 2021-02-05 2021-06-04 苏州源控电子科技有限公司 DIO interface configuration method, device, equipment and storage medium based on Windows system
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
CN113411234A (en) * 2021-06-17 2021-09-17 杭州遥望网络科技有限公司 Interface testing method, system and computer readable storage medium
CN113553519A (en) * 2021-06-23 2021-10-26 深圳平安智汇企业信息管理有限公司 Interface address display method and device, computer equipment and storage medium
CN113704664A (en) * 2021-08-26 2021-11-26 北京房江湖科技有限公司 Method and device for generating routing address for accessing page
CN113641923A (en) * 2021-08-26 2021-11-12 挂号网(杭州)科技有限公司 Access page generation method and device, electronic equipment and storage medium
CN114936104A (en) * 2022-07-19 2022-08-23 杭州玖玖盾信息科技有限公司 Analog data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111782330B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN111782330B (en) Page data acquisition method, device and equipment based on Web application
CN109976761B (en) Software development kit generation method and device and terminal equipment
CN110955409B (en) Method and device for creating resources on cloud platform
CN109597618B (en) Program development method, program development device, computer device, and storage medium
CN111736811A (en) Form data verification method, system, server and user terminal
CN110737631A (en) data analysis method and device based on Flink engine
CN115599359A (en) Code generation method, device, equipment and medium
CN110727429B (en) Front-end page generation method, device and equipment
CN108536489B (en) Method, apparatus, and computer-readable storage medium for matching resource environments
CN113391972A (en) Interface testing method and device
CN111679828B (en) Data processing method and device, electronic equipment and storage medium
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN112181822A (en) Test method and test method for starting time consumption of application program
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN110929188A (en) Method and device for rendering server page
CN115454403A (en) Page construction method and device and storage medium
CN111831277B (en) Virtual data generation method, system, device and computer readable storage medium
WO2022099913A1 (en) Interface configuration method and apparatus, and device and medium
CN109783134B (en) Front-end page configuration method and device and electronic equipment
CN113961286A (en) Page generation method, device and equipment for application program
KR101383050B1 (en) Method and apparatus for translating application program
CN112433717B (en) Code automatic generation method and device and electronic equipment
CN112559930B (en) Webpage integration method, webpage integration device, computer equipment and storage medium
CN117312713A (en) Method and system for processing information creation environment based on browser automatic flow
CN116483365A (en) Front-end engineering construction method, device, equipment and 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