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
target access
page
resource locator
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

Abstract

The invention discloses a page 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 for 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 obtaining the page display value corresponding to the interface parameter. Therefore, the method and the device realize that the user determines the target access address by directly and quickly switching different resource locator identifiers in the graphical interface (target page) of the web application, and obtains the page display value corresponding to the interface parameter by accessing the target access address, and program developers are not required to manually change or write codes to obtain the page display value corresponding to the interface parameter, so that the service development efficiency is improved.

Description

Page data acquisition method, device and equipment based on Web application
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for acquiring page data based on a Web application.
Background
With the development of software technology and the continuous improvement of user demands, web applications are more and more complex, and user demands are also higher and higher.
In the prior art, the front end and the back end of the web application are thoroughly separated, so that a set of interfaces of the back end can be supported, the web application is provided for the use of ios and android, and the development efficiency is greatly improved. However, at the same time, the problem that the front end UI of the web application depends on the back end data is also brought, and before the interface of the back end is not developed, the front end needs to simulate the interface data according to the specification defined by the interface, so as to 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 visual development process of the front-end project of the web application, when the front end is not connected with the back end, the existing page data acquisition mode of the web application generally needs a developer to manually write page data of the web application, namely, the page data of the web application is completely encoded by a program developer, but if the page data of each web application needs to be completely manually encoded, the development efficiency of the service is lower.
Therefore, how to improve the efficiency of visual development of the front-end project of the web application is a technical difficulty to be solved.
Disclosure of Invention
The invention provides a method and a device for acquiring page data based on Web application, which are used for acquiring page display values corresponding to interface parameters without manually changing or manually writing codes by program developers, and can also be used for avoiding the problem of program writing errors caused by manually writing programs, 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 acquisition device, where the device is applied to a data baffle service in a Web application system, and the device 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;
the determining module is used for determining a target access address corresponding to the resource locator identifier according to the resource locator identifier;
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 present invention provides a readable medium comprising execution instructions which, when executed by a processor of an electronic device, perform the method according to any of the first aspects.
In a fourth aspect, the present invention provides an electronic device comprising a processor and a memory storing execution instructions, the processor performing the method according to any one of the first aspects when executing the execution instructions stored in the memory.
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 a data acquisition request aiming at a target page, the data acquisition request aiming at the target page can be responded, wherein the data acquisition request comprises a resource locator identifier and interface parameters 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 baffle service can access the target access address, and acquire 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, the application can determine and access the target access address corresponding to the resource locator identifier according to the resource locator identifier 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, the present application may determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier, and then may obtain, by accessing the target access address, a page display value corresponding to the interface parameter. In this way, the user can determine the target access address by directly and quickly switching different resource locator identifiers in the graphical interface (i.e. the target page) of the web application, and can acquire the page display value corresponding to the interface parameter by accessing the target access address, without manually changing or manually writing codes by a program developer, so as to acquire the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing programs can be avoided, thereby improving the development efficiency of the service.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the prior art solutions, the drawings which are used in the description of the embodiments or the prior art will be briefly described below, it being obvious that the drawings in the description below are only some of the embodiments described in the present invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of an exemplary application scenario provided in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for acquiring page data based on a Web application according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a frame of another exemplary application scenario provided in 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 diagram of a deriving key interface according to an embodiment of the present invention
Fig. 6 is a schematic structural diagram of a Web application-based page data acquiring device 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 clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the problem that before the development of the existing interface at the back end is completed, 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 visual development process of a front-end project of the web application, when the front end is not connected with the back end, the existing page data acquisition mode of the web application generally needs a developer to manually write page data of the web application, namely, the page data of the web application is completely encoded by a program developer, for example, for mock.js, a user needs to write URL (uniform resource locator) route by himself; easy-mock, the user still needs to write the code by himself to form simulated page data, and the user needs to code the comparison data JS to realize the functions; however, if the page data of each web application needs to be completely manually encoded, a problem of relatively low development efficiency of the service may result.
The invention provides a page data acquisition method based on Web application, which is applied to a data baffle service in a Web application system, and particularly can respond to a data acquisition request aiming at a target page after the data baffle service acquires the data acquisition request aiming at 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 baffle service can access the target access address, and acquire 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, the application can determine and access the target access address corresponding to the resource locator identifier according to the resource locator identifier 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, the present application may determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier, and then may obtain, by accessing the target access address, a page display value corresponding to the interface parameter. In this way, the user can directly determine the target access address corresponding to the resource locator identifier by rapidly switching different resource locator identifiers in the graphical interface (i.e. the target page) of the web application, and can acquire the page display value corresponding to the interface parameter by accessing the target access address, without manually changing or manually writing codes by a program developer, so as to acquire the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing programs can be avoided, thereby improving the service development efficiency.
The embodiment of the invention can be applied to a scene shown in fig. 1, and the system architecture of the Web application system shown in fig. 1 can be a schematic diagram. In this scenario, a front end 101 (which may be, for example, a web client), a data baffle service 102, and a back end (which may be, for example, a back end server)/preset simulation data code library 103 are included. After the data barrier service 102 obtains a data obtaining request for a target page sent by the front end 101, where the data obtaining request includes a resource locator identifier and an interface parameter corresponding to the target page, the data barrier service 102 may respond to the data obtaining 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 baffle service 102 may obtain the page display value corresponding to the interface parameter from the back end or the preset analog data code library 103 by accessing the target access address, and return the page display value to the front end 101, so that the front end 101 may display the page display value in the area corresponding to the interface parameter of the target page, so that the user may adjust the display area corresponding to the interface parameter in the target page according to the display condition of the displayed page display value, so that the display condition of the page display value meets the actual requirement, for example, the display is normal and complete. In this way, the technical scheme corresponding to the scene can determine and access the target access address corresponding to the resource locator identifier according to the resource locator identifier 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, the present application may determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier, and then may obtain, by accessing the target access address, a page display value corresponding to the interface parameter. In this way, the user can determine the target access address by directly and quickly switching different resource locator identifiers in the graphical interface (i.e. the target page) of the web application, and can acquire the page display value corresponding to the interface parameter by accessing the target access address, without manually changing or manually writing codes by a program developer, so as to acquire the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing programs can be avoided, thereby improving the development efficiency of the service.
It should be noted that the above application scenario is only shown for the convenience of understanding the present application, and embodiments of the present application are not limited 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 attached drawing figures.
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 barrier service in a Web application system, and it should be noted that, the Web application system may include a front end, a data barrier service, and a back end/preset virtual database, where the data barrier service may be understood that, in a project visualization development process of the front end, when the front end is not actually connected to the back end, the data barrier service may perform a function of acquiring analog data corresponding to some interface parameters and implementing page content filling by using the analog data, that is, when the front end is not actually connected to the back end, the data barrier service may not acquire real data corresponding to the interface parameters through the back end, but may acquire analog data corresponding to the interface parameters through the preset virtual database, and may instead acquire real data corresponding to the interface parameters through the back end as a page display value. In this embodiment, the method may include, for example, the steps of:
S201: the data baffle service is responsive to a data acquisition 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 can be generated through the front end of the web application, and then the data acquisition request is sent to a data baffle service through the front end of the web application, so that the data baffle service acquires the data acquisition request, and subsequent operations are performed in response to the data acquisition request. The data acquisition request may include a resource locator identifier and an interface parameter corresponding to the target page.
It should be noted that, the resource locator identifier corresponding to the target page may be understood as a uniform resource locator (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 type of the running environment of the interface, for example, when the resource locator identifier is "/afa", the running environment of the interface is described as 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", the running environment of the interface is described as a debug 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, for example, may include a name of the interface, a chinese description of the interface, a type of a calling method of the interface, a type of returned data corresponding to the interface, and the like.
Next, how the data barrier service obtains the data obtaining request will be exemplified with reference to fig. 3 and 4. Assuming that the editor is a web browser, wherein the editor can be understood as a component capable of providing a visual development page in a development platform, specifically, the editor can provide a web page, if a user needs to acquire a page display value corresponding to an interface 'user name' in the page, the user can select an alias of a URL to be 'AFA', describe the alias as 'AFA test connection', and the database is mock data through a web setup page (shown in fig. 4) provided by the browser, and then the alias of the URL can be determined to be 'AFA'; in addition, as the user selects the interface of the user in the web page, the URL corresponding to the interface is the interface of the user, the calling method type of the interface is the get, the Chinese description of the interface is the acquisition of the user information, and the type of the returned data corresponding to the interface is the 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 an interface parameter (i.e., an interface name "/user", a chinese description of the interface "acquire user information", an interface call method type "get", and a type of returned data corresponding to the interface "string"), and send the data acquisition request to a development platform service, where the development platform service is a service that needs to be run by the AWEB 7.0 visual development platform, and a user can access an address provided by the service through a browser to access and use the development platform through the development platform service; then, the development platform service can determine the operation platform service corresponding to the project according to the project corresponding to the target page, and send the data acquisition request to the operation platform service, wherein the operation platform service is one service of which the front-end project communicates with the development platform service in the development stage; the running platform service may then send the data acquisition request to the data baffle service via the data dynamic proxy. In this example, the data acquisition request may also be acquired by an operation platform, and the data acquisition request is sent to the data baffle service by the operation platform, where the operation platform is a platform operated by the front-end project.
S202: and the data baffle service determines a target access address corresponding to the resource locator identifier according to the resource locator identifier.
In this embodiment, since the resource locator identifier may reflect the operation environment type of the interface, and the operation environment type may represent the connection state of the front end and the back end, the data baffle service may determine, according to the resource locator identifier, that the data baffle service needs to access the back end or preset the analog 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.
As an example, after the data barrier service obtains the identifier of the resource locator, the data barrier service may first determine an environment type corresponding to the identifier of the resource locator according to the identifier of the resource locator, for example, if the identifier of the resource locator is "/afa", and may determine that the operating environment type corresponding to the identifier of the resource locator is "/afa" according to the identifier of the resource locator is "/afa", that is, the front end is connected to the back end through the interface, and if the identifier of the resource locator 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. The data baffle service may then 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, the data baffle service may confirm that the target access address corresponding to the resource locator identifier "/afa" is a data source address in the backend, and assuming that the resource locator identifier is "/test" and the operating environment type corresponding to the resource locator identifier is "/test" is a test environment, the data source address corresponding to the resource locator identifier "/test" is "/test" in the preset analog data code library.
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 determining the target access address corresponding to the resource locator identifier, the data barrier service may access the target access address and obtain a 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 baffle service can acquire 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, namely, the page display value acquired by the back end running the interface parameter; in one implementation, assuming that the target access address is a data source address identified by the resource locator in the preset analog data code library, the data baffle service may acquire the analog 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 library, and it should be noted that the preset analog data code library may randomly generate the analog page display value corresponding to the interface according to the data type in the interface parameter (i.e. the type of the returned data corresponding to the interface), for example, the preset analog data code library may be a "mockjs" open source code library. Then, the data baffle 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, so that the program developer may adjust the page layout according to the display condition of the page display value in the target page, so that the page layout is more perfect, for example, if the area corresponding to the interface parameter of the target page originally reserves a display space of three characters, if the page display value returned to the front end by the data baffle service is four characters, the program developer may find that the area corresponding to the current interface parameter displays the incomplete page display value, and then 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, so as to perfect the page layout.
It should be noted that, in one implementation manner, the accessing the target access address obtains 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, and specifically includes the following steps:
step a: and determining the operation parameters corresponding to the interface parameters according to the interface parameters.
In this implementation manner, preset code templates corresponding to the interface parameters may be preset, for example, the interface parameters and the corresponding relations between the preset code templates may be stored in the data baffle service in advance, so that the data baffle service may determine the preset code templates corresponding to the interface parameters according to the interface parameters. Then, the data baffle service may generate an operation parameter corresponding to the interface parameter according to the interface parameter and a preset code template corresponding to the interface parameter, for example, the data baffle service may replace a placeholder in the preset code template with the interface parameter, so as to obtain a replaced preset code template, that is, the operation parameter corresponding to the interface parameter. It should be noted that the operation parameter may be understood as a code that can be executed by the interface parameter, that is, in one implementation, the operation parameter includes an executable code.
For example, assume that the editor presents the place itself requiring some code in form via the HTML interface, and then parses the form data filled in by the user via the logic code to generate the code to be written. The user modifies the configuration on the AWEB 7.0 (WebIDE) development platform based on the visualized interface, see fig. 4, then sends the resource locator identifier and the interface parameters (such as the interface name, the interface parameter type, the interface type, etc. information) to the data barrier service, and then the data barrier service saves under the config/mock of the project, for example, defines an "get user information/user interface, and then defines the code of the return string type" as follows:
[{
"source":"afa",
"name":"/user",
"desp" means "acquire user information",
"method":"get",
"type":"string"
}];
then, the data baffle service generates an AST code tree through an analysis engine, and generates an operable code, namely, determines an operation parameter corresponding to the interface parameter, wherein the operation parameter corresponding to the interface parameter is defined as follows, wherein the operation parameter corresponding to the returned character string type is obtained through the interface of the user information/user, and the operation parameter corresponding to the interface parameter is as follows:
step b: accessing the target access address, loading the operation parameters corresponding to the interface parameters into the target access address, and obtaining the page display value corresponding to the interface parameters so as to display the page display value 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 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 may access the target access address and thermally load or thermally reload the operation parameter corresponding to the interface parameter into the target access address, where the thermally load or thermally reload may load the operation parameter corresponding to the interface parameter into the target access address without restarting the server so that the operation parameter corresponding to the interface parameter operates; 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, accessing the target access address, and loading an operation parameter corresponding to the interface parameter into the target access address, to obtain a page display value corresponding to the interface parameter, including 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 operating environment to which the resource locator is identified as "/afa" corresponds to the production environment, it may be confirmed that the target access address to which the resource locator is identified as "/afa" corresponds to the data source address of "/afa" in the backend server; the data barrier service may access the back-end server according to the data source address of "/afa" in the back-end server, and then may load the operation parameter corresponding to the interface parameter into the data source address of "/afa" in the back-end server, so that the back-end server may operate the operation parameter corresponding to the interface parameter and obtain the page display value corresponding to the interface parameter, and the back-end 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 back-end server.
It should be emphasized that if the environment type is a debug environment, accessing the target access address, and loading the operation parameter corresponding to the interface parameter into the target access address, to obtain the page display value corresponding to the interface parameter, including:
accessing a preset simulation data code base according to the target access address; loading the operation parameters corresponding to the interface parameters into the target access addresses in the preset simulation data code library; and receiving a page display value corresponding to the interface parameter returned by the preset analog data code library.
For example, assuming that the resource locator identifier is "/test" and the running environment type corresponding to the resource locator identifier is "/test" is a test environment, it may be confirmed that the target access address corresponding to the resource locator identifier "/test" is the data source address of "/test" in the preset analog data code library; the data baffle service may access the preset analog data code library or a server where the preset analog data code library is located according to the data source address of "/test" in the preset analog data code library, and then may load the operation parameter corresponding to the interface parameter into the data source address in the preset analog data code library, so that the preset analog data code library 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 library may randomly generate the analog page display value corresponding to the interface according to the data type (i.e. the type of the returned data corresponding to the interface) in the operation parameter corresponding to the interface parameter; and the preset analog data code library 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 library.
It can be seen that, in this embodiment, by determining, by using a data baffle service according to the interface parameter, the operation parameter corresponding to the interface parameter, accessing the target access address, and 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, a manner of automatically analyzing and generating the operation parameter (i.e., the operation code) corresponding to the interface parameter by using a graphical interface is implemented, so that a user does not need to learn the grammar 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 invention provides a method for acquiring page data based on a Web application, which 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 can respond to 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 baffle service can access the target access address, and acquire 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, the application can determine and access the target access address corresponding to the resource locator identifier according to the resource locator identifier 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, the present application may determine, according to the resource locator identifier, a target access address corresponding to the resource locator identifier, and then may obtain, by accessing the target access address, a page display value corresponding to the interface parameter. In this way, the user can directly determine the target access address corresponding to the resource locator identifier by rapidly switching different resource locator identifiers in the graphical interface (i.e. the target page) of the web application, and can acquire the page display value corresponding to the interface parameter by accessing the target access address, without manually changing or manually writing codes by a program developer, so as to acquire the page display value corresponding to the interface parameter, and the problem of program writing errors caused by manually writing programs can be avoided, thereby improving the service development efficiency.
Further, in one implementation manner, in order to reduce the cost of communication between program developers and the time of writing programs, that is, improve the efficiency of project development, in one implementation manner of this embodiment, the historical target access address and the historical interface parameters in the data baffle service may be imported and exported, where documents in multiple formats may be exported through a preset interface and export file template. Next, how to implement import and export of the historical target access address and the historical interface parameters in the data baffle service will be specifically described.
1. An introduction to how to derive historical target access addresses and historical interface parameters in a data baffle service is implemented.
In one implementation, the method further comprises the steps of:
obtaining an export instruction;
responding to the export instruction, and acquiring an export file template according to the export file type;
and filling the history target access address and the history interface parameters into the export file template, and outputting the filled export file template.
In this embodiment, an export key (such as "export file" shown in fig. 5) may be provided in the web page, and after the user presses the export key, the front end may generate an export instruction and send the export instruction to the data barrier service, where the data barrier service obtains the export instruction, and the export instruction includes an export file type, and for example, the export file type may be excel, word, pdf. It should be noted that, because the data baffle service may store the export file templates corresponding to the export file types in advance, the data baffle service may obtain the export file template according to the export file types in response to the export instruction, fill the history target access address and the history interface parameter into the export file template, for example, replace the placeholder in the export file template with the history target access address and the history interface parameter, and output the filled export file template. It should be noted that, in one implementation, the format of the history interface parameter and the interface parameter mentioned above may be JSON format. Next, word and excel will be exemplified as export file types, respectively.
(1) When the export file type is word document; the responding to the export instruction, according to the export file type, obtains an export file template, comprising:
responding to the export instruction, and acquiring an export file template according to the export file type by utilizing a docx-templates module;
correspondingly, the filling the history target access address and the history interface parameter into the export file template and outputting the filled export file template comprises the following steps:
and filling the history target access address and the history interface parameters into the derived file template by using a docx-templates module, and outputting the filled derived file template.
For example, in response to the export instruction, the data baffle service may obtain, according to the export file type being word, a code manner of exporting the file template as follows:
(2) When the export file type is an excel document; the responding to the export instruction, according to the export file type, obtains an export file template, comprising:
responding to the export instruction, and acquiring an export file template by using an ejsexcel module according to the export file type;
Correspondingly, the filling the history target access address and the history interface parameter into the export file template and outputting the filled export file template comprises the following steps:
and filling the history target access address and the history interface parameters into the exported file template by using the ejsexcel module, and outputting the filled exported file template.
For example, in response to the export instruction, the data baffle service may obtain, according to the export file type excel, a code manner of the export file template as follows:
const result=await ejsexcel.renderExcel(workbook,data);
const filepath=path.join(WEEKREPORT_PATH,`${content.title}.xlsx`);
await writeFileAsync(filepath,result)。
2. an introduction of how to import historical target access addresses and historical interface parameters in the data baffle service is realized.
In one implementation of the method, in one implementation,
the method further comprises the steps of:
acquiring an import instruction;
responding to the import instruction, and determining a target access address and interface parameters in the import file;
and storing the target access address and the interface parameters.
In this embodiment, an import key may be provided in the web page, 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, where the data barrier service obtains the import instruction, and the import instruction may include an import file, where the import file includes a corresponding relationship between the target access address and the interface parameter. In one implementation, the import file may be in the file format excel. After the data baffle service obtains the import file, the import file can be parsed by a parsing engine, for example, the imported file (such as parsing an imported excel file) can be parsed by the parsing engine according to a predefined JSON message format to generate a target access address and interface parameters (such as a target access address and interface parameters in JSON format), and then an interface file (such as a config/mock interface file) in the data baffle service can be generated by the parsing engine, namely, the target access address and the interface parameters are saved. Next, an example will be given in which export file types are excel, respectively.
For example, when the data barrier service receives an excel import file, the data barrier 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 barrier service may parse the imported excel import file by using the ejsexcel module to generate the target access address and the interface parameter in JSON format, and then generate, by using the parsing engine, an interface file corresponding to the target access address and the interface parameter under a config/mock file in the data barrier service. It should be noted that, the ejsexcel module provides a renderExcel interface, and the ejsexcel module can return a JSON-format target access address and interface parameters through the renderExcel interface only by transmitting the content of the excel import file to the ejsexcel module.
For example, assume that an import file includes the following code:
[{
"source":"afa",
"name":"/user",
"desp" means "acquire user information",
"method":"get",
"type":"string"
}];
the data baffle service may parse the imported import file through the ejsexcel module to generate a target access address (for example, may be URL alias source "afa") and an interface parameter (interface name "/user", chinese description desp "acquire user information", call method type "get", type "string" of returned data), and so on.
Therefore, the embodiment can import or export the historical target access address and the historical interface parameters in the data baffle service, wherein documents in various formats can be exported through the preset interface and the export file template, so that the cost of communication among program developers and the time for writing programs can be reduced, and the efficiency of project development is improved.
Referring to fig. 6, a Web application-based page data acquisition device according to an embodiment of the present invention is shown. The apparatus of this embodiment is an entity apparatus for performing the method of the foregoing embodiment. The technical solution is essentially identical to 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 acquisition request for a target page, where the data acquisition 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;
the obtaining module 603 is 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 the environment type corresponding to the resource locator identifier according to the resource locator identifier;
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 operation parameters corresponding to the interface parameters according to the interface parameters;
accessing the target access address, loading the operation parameters corresponding to the interface parameters into the target access address, and obtaining the page display value corresponding to the interface parameters so as to display the page display value 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 operation parameters corresponding to the interface parameters according to the interface parameters and preset code templates corresponding to the interface parameters, wherein the operation parameters comprise operable codes.
Optionally, the obtaining module 603 is further specifically configured to:
Accessing the target access address, and thermally loading or thermally reloading the operation parameters corresponding to the interface parameters 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 operation parameters corresponding to the interface parameters into the target access addresses in the preset simulation data code library;
and receiving a page display value corresponding to the interface parameter returned by the preset analog data code library.
Optionally, the apparatus further includes a deriving 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 history target access address and the history interface parameters into the export file template, and outputting the filled export file template.
Optionally, the export file type is word document; the export module is specifically configured to:
responding to the export instruction, and acquiring an export file template according to the export file type by utilizing a docx-templates module;
and filling the history target access address and the history interface parameters into the derived file template by using a docx-templates module, and outputting the filled derived 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 export file type;
and filling the history target access address and the history interface parameters into the exported file template by using the ejsexcel module, and outputting the filled exported file template.
Optionally, the device 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 interface parameters in the import file;
and storing the target access address and the interface parameters.
Optionally, the importing module is specifically configured to:
and responding to the import instruction, and determining a target access address and interface parameters in the import file by utilizing an ejsexcel module.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. At the hardware level, the electronic device comprises a processor, optionally an internal bus, a network interface, a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (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, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 7, but not only one bus or type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that executes instructions may be executed. The memory may include memory and non-volatile storage and provide the processor with instructions and data for execution.
In one possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory into the memory and then executes the execution instruction, and may also acquire the corresponding execution instruction from other devices, so as to form the Web application-based page data acquisition device on a logic level. 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 by executing the execution instructions.
The method executed by the Web application-based page data acquisition device provided in the embodiment of fig. 2 of the present invention may be applied to a processor 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 by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks 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 embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The embodiment of the invention also provides a readable medium, wherein the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of electronic equipment, the electronic equipment can be enabled to execute the method for acquiring the page data based on the Web application provided by any embodiment of the invention, and the method is particularly used for executing the method for acquiring the page data based on the 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 a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (12)

1. A Web application-based page data acquisition method, wherein the method is applied to a data baffle service in a Web application system, the method comprising:
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;
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 a region corresponding to the interface parameter of the target page;
the determining, according to the resource locator identifier, a target access address corresponding to the resource locator identifier includes:
determining the environment type corresponding to the resource locator identifier according to the resource locator identifier;
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;
the accessing the target access address, obtaining 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, including:
Determining operation parameters corresponding to the interface parameters according to the interface parameters;
accessing the target access address, loading the operation parameters corresponding to the interface parameters into the target access address, and obtaining the page display values corresponding to the interface parameters so as to display the page display values in the areas corresponding to the interface parameters of the target page;
the determining the operation parameters corresponding to the interface parameters according to the interface parameters comprises:
determining a preset code template corresponding to the interface parameter according to the interface parameter;
and generating operation parameters corresponding to the interface parameters according to the interface parameters and preset code templates corresponding to the interface parameters, wherein the operation parameters comprise operable codes.
2. The method according to claim 1, wherein the accessing the target access address and 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, includes:
Accessing the target access address, and thermally loading or thermally reloading the operation parameters corresponding to the interface parameters 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.
3. The method of claim 1, wherein if the environment type is a development environment variable, accessing the target access address, and 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, includes:
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.
4. The method according to claim 1, wherein if the environment type is a debug environment, accessing the target access address, and 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, includes:
Accessing a preset simulation data code base according to the target access address;
loading the operation parameters corresponding to the interface parameters into the target access addresses in the preset simulation data code library;
and receiving a page display value corresponding to the interface parameter returned by the preset analog data code library.
5. The method according to any one of claims 1-4, 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 history target access address and the history interface parameters into the export file template, and outputting the filled export file template.
6. The method of claim 5, wherein the export file type is a word document; the responding to the export instruction, according to the export file type, obtains an export file template, comprising:
responding to the export instruction, and acquiring an export file template according to the export file type by utilizing a docx-templates module;
correspondingly, the filling the history target access address and the history interface parameter into the export file template and outputting the filled export file template comprises the following steps:
And filling the history target access address and the history interface parameters into the derived file template by using a docx-templates module, and outputting the filled derived file template.
7. The method of claim 5, wherein the export file type is an excel document; the responding to the export instruction, according to the export file type, obtains an export file template, comprising:
responding to the export instruction, and acquiring an export file template by using an ejsexcel module according to the export file type;
correspondingly, the filling the history target access address and the history interface parameter into the export file template and outputting the filled export file template comprises the following steps:
and filling the history target access address and the history interface parameters into the exported file template by using the ejsexcel module, and outputting the filled exported file template.
8. The method according to any one of claims 1-4, 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 interface parameters in the import file;
And storing the target access address and the interface parameters.
9. The method of claim 7, wherein the determining, in response to the import instruction, the target access address and the interface parameters in the import file comprises:
and responding to the import instruction, and determining a target access address and interface parameters in the import file by utilizing an ejsexcel module.
10. A Web application-based page data acquisition device, wherein the device is applied to a data baffle service in a Web application system, the device comprising:
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;
the determining module is used for determining a target access address corresponding to the resource locator identifier according to the resource locator identifier; the determining, according to the resource locator identifier, a target access address corresponding to the resource locator identifier includes: determining the environment type corresponding to the resource locator identifier according to the resource locator identifier; 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;
The acquisition module is used for 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; the accessing the target access address, obtaining 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, including: determining operation parameters corresponding to the interface parameters according to the interface parameters; accessing the target access address, loading the operation parameters corresponding to the interface parameters into the target access address, and obtaining the page display values corresponding to the interface parameters so as to display the page display values in the areas corresponding to the interface parameters of the target page;
wherein, the determining, according to the interface parameter, the operation parameter corresponding to the interface parameter includes:
determining a preset code template corresponding to the interface parameter according to the interface parameter;
and generating operation parameters corresponding to the interface parameters according to the interface parameters and preset code templates corresponding to the interface parameters, wherein the operation parameters comprise operable codes.
11. A readable medium comprising execution instructions which, when executed by a processor of an electronic device, perform the method of any of claims 1-9.
12. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of any of claims 1-9 when the processor executes the execution instructions stored in 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 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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306881B (en) * 2020-11-02 2023-11-24 金联兴电子(深圳)有限公司 Analog data generation method, device, equipment and storage medium
CN112422643B (en) * 2020-11-02 2022-04-01 中关村科学城城市大脑股份有限公司 Third-party interface protection request forwarding method and device
CN113010411A (en) * 2020-12-15 2021-06-22 云智慧(北京)科技有限公司 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
CN112905512A (en) * 2021-02-05 2021-06-04 苏州源控电子科技有限公司 DIO interface configuration method, device, equipment and storage medium based on Windows system
CN113411234B (en) * 2021-06-17 2022-08-16 杭州遥望网络科技有限公司 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 (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
CN110198247B (en) Interface test method and system
CN106648556B (en) Method and device for front-end and back-end integrated development test
CN108255701B (en) Scene testing method and mobile terminal
CN110955409B (en) Method and device for creating resources on cloud platform
CN111597110B (en) Page test method and device, electronic equipment and storage medium
CN109597618B (en) Program development method, program development device, computer device, and storage medium
CN110727429B (en) Front-end page generation method, device and equipment
CN113704110A (en) Automatic testing method and device for user interface
CN115061912A (en) Test case generation and test method, system and medium
CN112947900B (en) Web application development method and device, server and development terminal
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN111124924B (en) API deployment method and device, electronic equipment and storage medium
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN112181822A (en) Test method and test method for starting time consumption of application program
CN110989978A (en) Page packaging method and device, electronic equipment and storage medium
CN113961286A (en) Page generation method, device and equipment for application program
CN114297088A (en) Method, device, equipment and medium for testing front end vue frame assembly
CN113626392A (en) Method and device for updating document data, electronic equipment and storage medium
CN113971251A (en) Webpage output method, system and computer readable storage medium
CN109783134B (en) Front-end page configuration method and device and electronic equipment
CN113391972A (en) Interface testing method and device
CN114116244A (en) Data processing method, device and system, electronic equipment and storage medium
CN112559930B (en) Webpage integration method, webpage integration device, computer equipment and storage medium
CN117093800B (en) PDF batch output method and device for network asset data report and electronic equipment

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

Inventor after: Li Yuxiang

Inventor after: Li Jiancheng

Inventor before: Li Yuxiang

Inventor before: Li Jiancheng

GR01 Patent grant
GR01 Patent grant