CN109726108B - Front-end code testing method, device, system and medium based on analog data - Google Patents

Front-end code testing method, device, system and medium based on analog data Download PDF

Info

Publication number
CN109726108B
CN109726108B CN201810566807.XA CN201810566807A CN109726108B CN 109726108 B CN109726108 B CN 109726108B CN 201810566807 A CN201810566807 A CN 201810566807A CN 109726108 B CN109726108 B CN 109726108B
Authority
CN
China
Prior art keywords
data
simulation
access
platform
end code
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
CN201810566807.XA
Other languages
Chinese (zh)
Other versions
CN109726108A (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.)
Meiman Technology Chengdu Group Co ltd
Original Assignee
Chengdu Meiman 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 Chengdu Meiman Technology Co ltd filed Critical Chengdu Meiman Technology Co ltd
Priority to CN201810566807.XA priority Critical patent/CN109726108B/en
Publication of CN109726108A publication Critical patent/CN109726108A/en
Application granted granted Critical
Publication of CN109726108B publication Critical patent/CN109726108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a front-end code testing method based on analog data, which comprises the following steps: receiving a data access request triggered based on a front-end code in a front-end test platform, acquiring an environment tag of the front-end code, and determining whether the current running environment of the front-end code is a development environment according to the environment tag; if the current running environment of the front-end code is a development environment, sending the data access request to a data simulation platform so as to simulate and generate simulated access data on the data simulation platform; and receiving the simulation access data sent by the data simulation platform, and displaying the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data. The invention also discloses a front-end code testing device, a system and a computer storage medium based on the analog data. The invention improves the authenticity of the front-end code test.

Description

Front-end code testing method, device, system and medium based on analog data
Technical Field
The present invention relates to the field of computers, and in particular, to a method, apparatus, system, and computer storage medium for testing a front end code based on analog data.
Background
The front end development and the back end development of the existing software are mutually independent, and the front end mainly performs visual display on the data of the back end, so that the front end development needs to depend on the data of the back end, specifically, the back end is provided with a data interface for the front end, and the front end acquires and displays the data information of the back end through the data interface.
In the actual development process, in order to improve the development efficiency, front-end development is usually carried out simultaneously with back-end development, and in the front-end development and test process, some back-end services and interfaces are required to be called, and at the moment, the back-end development is not completed, so in the front-end development and test process, in order to improve the efficiency, the back-end interfaces and services are usually required to be simulated to assist in development test of front-end codes, the existing simulation is mainly that a front-end developer sets a simulation data table, simulation data in the simulation data table is output during front-end code test, and because simulation data in the simulation data table is fixed, the front-end code development test cannot truly simulate the relevance between page logics.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a front-end code testing method, device, system and computer storage medium based on analog data, aiming at improving the authenticity of the front-end code test on the premise of ensuring the efficiency of the front-end code test development test.
In order to achieve the above object, the present invention provides a front end code testing method based on analog data; the front-end code testing method based on the simulation data is applied to a front-end testing platform and comprises the following steps of:
receiving a data access request triggered based on a front-end code in a front-end test platform, acquiring an environment tag of the front-end code, and determining whether the current running environment of the front-end code is a development environment according to the environment tag;
if the current running environment of the front-end code is a development environment, the data access request is sent to a data simulation platform so as to simulate and generate simulated access data corresponding to the data access request on the data simulation platform;
the simulation access data are generated according to data generation rules set in the data simulation platform and initial variables in the data access request;
And receiving the simulation access data sent by the data simulation platform, and displaying the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data.
Optionally, the step of receiving the analog access data sent by the data analog platform and displaying the analog access data for a front-end developer to adjust the front-end code according to the analog access data includes:
receiving simulation access data sent by a data simulation platform, and comparing the simulation access data with standard data in a preset standard table;
if the simulation access data are not matched with standard data in a preset standard table, judging that the front-end code does not accord with a development standard, and taking the simulation access data as abnormal simulation data;
and displaying the abnormal simulation data for front-end developers to adjust the front-end codes to be adjusted, which contain the abnormal simulation data.
Optionally, after the step of receiving the analog access data sent by the data analog platform and comparing the analog access data with standard data in a preset standard table, the method includes:
if the simulated access data are matched with standard data in a preset standard table, judging that the front-end code accords with a development standard, and acquiring an access identifier contained in the data access request;
Associating the simulation access data with the access identifier and storing the simulation access data into a preset simulation table;
the step of sending the data access request to the data simulation platform if the current running environment of the front-end code is a development environment comprises:
if the current running environment of the front-end code is a development environment, acquiring a target access identifier contained in the data access request;
comparing the target access identifier with each access identifier in the preset simulation table;
if the target access identifier is matched with the access identifier in the preset simulation table, acquiring target simulation access data corresponding to the target access identifier in the preset simulation table, and displaying the target simulation access data;
and if the target access identifier is not matched with the access identifier in the preset simulation table, sending the data access request to a data simulation platform.
In addition, in order to achieve the above purpose, the invention also provides a front end code testing method based on the simulation data; the front-end code testing method based on the simulation data is applied to a data simulation platform and comprises the following steps of:
Receiving a data access request sent by a front-end test platform, and acquiring an access identifier contained in the data access request;
according to the access identifier, calling a virtual data interface corresponding to the access identifier, and acquiring a simulation configuration list associated with the virtual data interface;
and generating simulation access data according to the data generation rule in the simulation configuration list, and sending the simulation access data to a front-end test platform.
Optionally, before the step of receiving the data access request sent by the front-end testing platform and obtaining the access identifier included in the data access request, the method includes:
creating a node environment, and constructing a web server under the node environment by using an express;
when the completion of the construction of the web server is detected, generating prompt information to prompt a front-end developer to generate a simulation configuration list according to preset simulation rule configuration;
receiving each simulation configuration list uploaded by a front-end developer, and establishing an association relation between each simulation configuration list and each virtual data interface in the web server so as to generate simulation access data through the simulation configuration list associated with the virtual data interface.
Optionally, the step of generating the simulation access data according to the data generation rule in the simulation configuration list and sending the simulation access data to the front-end test platform includes:
acquiring an initial variable carried in the data access request, and determining the variable type of the initial variable;
acquiring a data generation rule corresponding to the variable type in the simulation configuration list, processing the initial variable according to the data generation rule, and generating simulation access data corresponding to the data access request;
and sending the simulation access data to a front-end test platform.
In addition, in order to achieve the above object, the present invention also provides a front end code testing device based on analog data, the front end code testing device based on analog data comprising:
the acquisition determining module is used for receiving a data access request triggered by a front-end code in a front-end test platform, acquiring an environment tag of the front-end code, and determining whether the current running environment of the front-end code is a development environment according to the environment tag;
the interception sending module is used for sending the data access request to a data simulation platform if the current running environment of the front-end code is a development environment so as to simulate and generate simulated access data corresponding to the data access request on the data simulation platform;
The simulation access data are generated according to data generation rules set in the data simulation platform and initial variables in the data access request;
the receiving and displaying module is used for receiving the simulation access data sent by the data simulation platform and displaying the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data.
In addition, in order to achieve the above object, the present invention also provides a front end code testing device based on analog data, the front end code testing device based on analog data comprising:
the receiving and acquiring module is used for receiving a data access request sent by the front-end testing platform and acquiring an access identifier contained in the data access request;
the call acquisition module is used for calling the virtual data interface corresponding to the access identifier according to the access identifier and acquiring a simulation configuration list associated with the virtual data interface;
and the generation and transmission module is used for generating simulation access data according to the data generation rule in the simulation configuration list and transmitting the simulation access data to the front-end test platform.
In addition, in order to achieve the above purpose, the invention also provides a front-end code testing system based on simulation data, which comprises a front-end testing platform and a data simulation platform which are in communication connection;
The front-end test platform comprises: a first memory, a first processor, and a computer program stored on the first memory and executable on the first processor; the computer program, when executed by the first processor, performs the steps comprising:
receiving a data access request triggered based on a front-end code in a front-end test platform, and acquiring an environment tag of the front-end code by a first processor and determining whether the current running environment of the front-end code is a development environment according to the environment tag;
if the current running environment of the front-end code is a development environment, the first processor sends the data access request to a data simulation platform so as to simulate and generate simulated access data corresponding to the data access request on the data simulation platform;
the simulation access data are generated according to data generation rules set in the data simulation platform and initial variables in the data access request;
the first processor receives simulation access data sent by the data simulation platform and displays the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data;
The data simulation platform comprises: a second memory, a second processor, and a computer program stored on the second memory and executable on the second processor; the computer program, when executed by the first processor, performs the steps comprising:
the second processor receives a data access request sent by the front-end test platform, and the second memory acquires an access identifier contained in the data access request;
according to the access identifier, the second memory calls a virtual data interface corresponding to the access identifier, and obtains a simulation configuration list associated with the virtual data interface;
and the second memory generates simulation access data according to the data generation rule in the simulation configuration list and sends the simulation access data to the front-end test platform.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the simulation data based front end code testing method described above.
The embodiment of the invention provides a front-end code testing method, a device, a system and a computer storage medium based on simulation data, which are characterized in that a front-end developer receives a data access request triggered by a front-end code in a front-end testing platform on the front-end testing platform, acquires an environment label of the front-end code, and determines whether the current running environment of the front-end code is a development environment according to the environment label; if the current running environment of the front-end code is a development environment, the data access request is sent to a data simulation platform, and a virtual data interface corresponding to the access identifier is called on the data simulation platform according to the access identifier in the data access request so as to simulate and generate simulated access data corresponding to the data access request through a simulated configuration list in the virtual data interface; the front-end testing platform receives the simulation access data sent by the data simulation platform and displays the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data. In the embodiment, the data simulation platform is arranged, so that the simulation back-end server provides front-end access data, the development and test efficiency of the front-end code test is ensured, and the authenticity of the front-end code test is improved.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a front end code testing method based on analog data according to the present invention;
FIG. 3 is a flow chart of a third embodiment of a front end code testing method based on analog data according to the present invention;
FIG. 4 is a schematic diagram of functional modules of an embodiment of a front end code testing apparatus based on analog data according to the present invention;
fig. 5 is a schematic functional block diagram of another embodiment of a front end code testing device based on analog data according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a server (also called front-end code testing device based on analog data) of a hardware running environment according to an embodiment of the present invention, where the front-end code testing device based on analog data may be formed by a single front-end code testing device based on analog data, or may be formed by a combination of other devices and the front-end code testing device based on analog data.
The server of the embodiment of the invention refers to a computer for managing resources and providing services for users, and is generally divided into a file server, a database server and an application server. A computer or computer system running the above software is also referred to as a server. Compared with a common PC (personal computer) personal computer, the server has higher requirements on stability, safety, performance and the like; as shown in fig. 1, the server may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002, a chipset, a disk system, hardware of a network, and the like. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity, WIFI interface). The memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the server may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, and a WiFi module; the input unit is compared with the display screen and the touch screen; the network interface may be, in addition to WiFi, bluetooth, probe, 3G/4G/5G (the former numbers indicate the algebra of the cellular mobile communication network, or the network indicating the generation, english letter G indicates generation), networking base station equipment, etc. Those skilled in the art will appreciate that the server architecture shown in fig. 1 is not limiting of the server and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable storage medium, computer readable storage medium, or direct called medium, such as RAM, magnetic disk, optical disk, etc.), and includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present invention, and the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.
In the server shown in fig. 1, the network interface 1004 is mainly used for connecting to a background database and performing data communication with the background database; the user interface 1003 is mainly used for connecting a client (client, user or terminal, which can be a fixed terminal or a mobile terminal) and performing data communication with the client; and the processor 1001 may be used to call a computer program stored in the memory 1005 and execute steps in the simulation data based front end code test method provided in the following embodiment of the present invention.
Referring to fig. 2, in a first embodiment of a front end code testing method based on analog data according to the present invention, the front end code testing method based on analog data includes:
step S10, receiving a data access request triggered by a front-end code in a front-end test platform, acquiring an environment tag of the front-end code, and determining whether the current running environment of the front-end code is a development environment according to the environment tag.
In the project development process, the developed code needs to be tested in real time, that is, the front end code test in the embodiment refers to the front end code test in the front end code development process, and not the front end code test before production; in this embodiment, a user receives a data access request triggered based on a front end code in a front end test platform (the front end test platform is also called a front end development test platform, and can be understood as a test terminal in the front end development process), so as to determine whether the front end code meets the development requirement according to the returned data of the data access request, and finally complete the testing of the front end code.
Specifically, when the front-end test platform receives a data access request triggered by a user (front-end developer) based on a front-end code in the front-end test platform, the front-end test platform acquires an environment tag in the front-end code, wherein the environment tag is a tag set by a front-end code developer and is used for identifying the current running environment of the front-end code, for example, running environment information of the current code is marked in the environment tag, and development environment, test environment, production environment and the like are recorded in the environment tag; and the front-end testing platform determines whether the current running environment of the front-end code is a development environment according to the environment label in the front-end code.
And step S20, if the current running environment of the front-end code is a development environment, the data access request is sent to a data simulation platform so as to simulate and generate simulated access data corresponding to the data access request on the data simulation platform.
If the front-end test platform determines that the current running environment of the front-end code is a development environment, the front-end test platform sends the data access request to the data simulation platform, namely, when a user receives the data access request triggered by the front-end code in the front-end test platform under the production environment, the front-end test platform accesses the back-end server according to the data access request, the data interface of the back-end server returns access data corresponding to the data access request, in the embodiment, the front-end test platform intercepts the access request when determining that the current running environment of the front-end code is the development environment (the back-end server does not receive the data access request yet), and sends the data access request to the data simulation platform, and the data simulation platform generates simulated access data according to the data generation rules set in the data simulation platform and the initial variables in the data access request.
And simulating to generate simulation access data corresponding to the data access request.
Step S30, receiving simulation access data sent by a data simulation platform, and displaying the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data.
The front-end test platform receives the simulation access data sent by the data simulation platform and judges whether the received simulation access data is abnormal, wherein the step of judging whether the received simulation access data is abnormal comprises the following steps: the front-end test platform compares the simulation access data with standard data (the standard data is the access data obtained after the front-end code is correctly developed and operated), if the simulation access data is the same as the standard data, the simulation access data is normal, the front-end code accords with the development standard test, if the simulation access data is different from the standard data, the simulation access data is abnormal, the front-end code does not accord with the development standard test, the front-end test platform generates prompt information, and a front-end developer adjusts the front-end code according to the prompt information and the simulation access data.
Further, the step S30 includes:
step a1, receiving simulation access data sent by a data simulation platform, and comparing the simulation access data with standard data in a preset standard table;
Step b1, if the simulation access data is not matched with standard data in a preset standard table, judging that the front-end code does not accord with a development standard, and taking the simulation access data as abnormal simulation data;
the method comprises the steps that a preset simulation table is a table preset for storing standard data corresponding to each data access request, wherein the standard data are access data obtained after front-end codes are correctly developed and operated; the preset standard refers to a preset front-end code development standard.
And step c1, displaying the abnormal simulation data for a front-end developer to adjust the front-end code to be adjusted containing the abnormal simulation data.
In this embodiment, the front-end test platform intercepts a data access request triggered based on a front-end code in the front-end test platform, and sends the intercepted data access request to a data simulation platform, so that simulation access data corresponding to the data access request is simulated and generated on the data simulation platform; the method aims to improve the authenticity of the front-end code test on the premise of ensuring the efficiency of the front-end code test development test.
On the basis of the first embodiment of the present invention, a second embodiment of the front end code testing method based on analog data of the present invention is further provided.
The difference between the embodiment and the first embodiment of the present invention is that in the present embodiment, the simulated access data matched with the identification data in the first embodiment is saved to a preset simulation table, and when the user receives the data access request triggered by the front end code in the front end test platform again, the simulated access data can be obtained from the preset simulation table, so as to avoid repeatedly generating the simulated access data, thereby improving the test efficiency.
Specifically, the front end code testing method based on analog data in this embodiment includes:
step S31, receiving simulation access data sent by a data simulation platform, and comparing the simulation access data with standard data in a preset standard table.
The front-end testing platform receives simulation access data sent by the data simulation platform, and compares the simulation access data with standard data in a preset standard table, wherein the preset standard table is a table preset for storing standard data corresponding to each data access request, the standard data are access data obtained after the front-end code is correctly developed and operated, and the front-end testing platform determines whether the front-end code accords with the development standard according to the comparison result.
Step S32, if the simulated access data are matched with standard data in a preset standard table, judging that the front-end code accords with a development standard, and acquiring an access identifier contained in the data access request;
If the simulated access data is matched with standard data in a preset standard table, judging that the front-end code accords with a development standard (the development standard refers to a rule for judging that the front-end code is correct), and acquiring an access identifier contained in the data access request.
And step S33, associating the simulation access data with the access identifier and storing the simulation access data into a preset simulation table.
The front-end testing platform associates the simulation access data with the access identifier and stores the simulation access data into a preset simulation table, wherein the preset simulation table is a table preset by a developer and used for storing correct simulation access data, and when the front-end developer repeatedly tests the same front-end code, the front-end testing platform can acquire the simulation access data from the preset simulation table, so that repeated work in the front-end testing platform is reduced.
Specifically, in step S20 in the first embodiment, if the current running environment of the front end code is a development environment, the data access request is sent to a data simulation platform for refinement, so as to obtain the step of obtaining the simulation access data in the preset simulation table of the front end test platform, specifically:
step S21, if the current running environment of the front-end code is a development environment, the target access identifier contained in the data access request is obtained.
And the front-end testing platform acquires the target access identifier contained in the data access request if determining that the current running environment of the front-end code is a development environment.
S22, comparing the target access identifier with each access identifier in the preset simulation table;
and the front-end test platform compares the target access identifier with each access identifier in the preset simulation table to judge whether the preset simulation table contains simulation data corresponding to the target access identifier.
Step S23, if the target access identifier is matched with the access identifier in the preset simulation table, acquiring target simulation access data corresponding to the target access identifier in the preset simulation table, and displaying the target simulation access data.
If the target access identifier is matched with the access identifier in the preset simulation table, judging that the preset simulation table contains simulation data corresponding to the target access identifier, and the front-end test platform acquires the target simulation access data corresponding to the target access identifier in the preset simulation table and displays the target simulation access data for a front-end developer to check.
Step S24, if the target access identifier is not matched with the access identifier in the preset simulation table, the data access request is sent to a data simulation platform.
If the target access identifier is not matched with the access identifier in the preset simulation table, judging that the simulation data corresponding to the target access identifier is not contained in the preset simulation table, sending a data access request to a data simulation platform by a front-end test platform, and simulating and generating simulated access data corresponding to the data access request on the data simulation platform.
In this embodiment, when it is determined that the generated simulation access data matches the standard value, the generated simulation access data is added to a preset simulation table, and when the user tests the front-end code again, the front-end test platform can acquire the simulation access data from the preset simulation table, so that repeated work in the front-end test platform is reduced, and repeated acquisition of the same data from the data simulation platform is avoided.
Further, referring to fig. 3, a third embodiment of the front end code testing method based on simulation data according to the present invention is provided, where the method is applied to a data processing step on a simulation generation platform, and the method includes:
step S40, receiving a data access request sent by a front-end test platform, and acquiring an access identifier contained in the data access request.
Before step S40 of this embodiment, it includes:
step a2, creating a node environment, and constructing a web server under the node environment by using express;
step b2, when the completion of the construction of the web server is detected, generating prompt information to prompt a front-end developer to configure and generate a simulation configuration list according to preset simulation rules;
step c2, receiving each simulation configuration list uploaded by a front-end developer, and establishing an association relation between each simulation configuration list and each virtual data interface in the web server so as to generate simulation access data through the simulation configuration list associated with the virtual data interface.
In this embodiment, node.js is installed (node.js is a Javascript operating environment operating on a server side, node.js is a Javascript operating environment on a back end, a front end developer writes Javascript code on a server side in the node.js environment, and submits node.js to explain execution) to complete creation of the node environment, and an expression is installed in the node environment to build a Web project using the expression, in which the http server creation, request and file management, and Session processing functions of Web are integrated, so that the Web server thus built serves as a framework of the data simulation platform.
After the framework of the data simulation platform is installed, generating prompt information to prompt the front-end developer to generate a simulation configuration list according to preset simulation rules (the preset simulation rules refer to preset mock. Js rules), namely, when the framework of the data simulation platform is built, the front-end developer generates the simulation configuration list according to the preset simulation rules, wherein the step of generating the simulation configuration list comprises the following steps: in the development process of the back end, firstly, data interface definition is carried out (at this time, the back end is in the development process, and the data processing logic of the back end is not completed), and the defined data interface is provided for the front end, and the front end generates relevant field values by using a mock.js rule in a configuration file according to the defined data interface, specifically, a simulation configuration list (a simulation configuration list is called a mock configuration list) is configured in the configuration file, different mock configuration classes are configured in the mock configuration list in the configuration file, and different methods are set in each mock configuration class of the mock configuration class list to be used for generating different mock services.
When the configuration of the simulation configuration list of the front-end developer is completed, the front-end developer uploads the simulation configuration list, and establishes association relations between each simulation configuration list and each virtual data interface in the web server to obtain a data simulation platform.
Further, step c2, after receiving each simulation configuration list uploaded by the front-end developer and establishing the association relationship between each simulation configuration list and each virtual data interface in the web server, further includes:
and triggering a mock configuration change request at a developer, receiving the mock configuration change request, acquiring change information contained in the mock configuration change request, and updating data information in a mock configuration class list according to the change information. That is, the developer reconfigures the mock class, and can generate analog data according to the newly generated mock class, in this embodiment, the clarification-while-clarification design can be performed in the service demand clarification stage H5, so as to reduce the additional workload of the encoding stage.
When a data access request is received on the data simulation platform, the data simulation platform port can generate simulation access data through a simulation configuration list associated with the virtual data interface, and specifically, the step of generating the simulation access data by the data simulation platform comprises the following steps:
step S40, receiving a data access request sent by a front-end test platform, and acquiring an access identifier contained in the data access request.
The data simulation platform receives a data access request sent by the front-end test platform, and acquires an access identifier contained in the data access request, wherein the access identifier refers to identification information uniquely determining the data access request.
Step S50, calling a virtual data interface corresponding to the access identifier according to the access identifier, and acquiring a simulation configuration list associated with the virtual data interface.
And the data simulation platform calls a virtual data interface corresponding to the access identifier of the web server according to the access identifier, and acquires a simulation configuration list associated with the virtual data interface.
And step S60, generating simulation access data according to the data generation rule in the simulation configuration list, and transmitting the simulation access data to a front-end test platform.
The data simulation platform dynamically generates simulation access data according to the data generation rules in the simulation configuration list: for example, an insurance claim data interface, a front-end developer sets different claim rules in the insurance claim data interface in advance, the developer inputs an initial variable and triggers an access request in the development process, a data simulation platform receives the access request and acquires the initial variable and the access identifier of the access request, the data simulation platform calls a corresponding virtual data interface according to the access identifier, the data simulation platform acquires the claim rules associated with the virtual data interface, and selects the corresponding claim rules according to the types of the initial variable to simulate and generate the claim amount corresponding to the test data, namely, the initial variable carried in the insurance claim request is 100 yuan of the applied amount, the generated simulated claim amount is 10000 yuan according to the data generation rules in a simulation configuration list, the initial variable carried in the insurance claim request is 500 yuan of the applied amount, and the generated simulated claim amount is 50000 yuan of the data generation rules in the simulation configuration list; and sending the simulation access data to a front-end test platform.
Further, the step S60 includes:
step a2, acquiring an initial variable carried in the data access request, and determining the variable type of the initial variable;
step b2, obtaining a data generation rule corresponding to the variable type in the simulation configuration list, processing the initial variable according to the data generation rule, and generating simulation access data corresponding to the data access request;
and c2, sending the simulation access data to a front-end test platform.
In this embodiment, a simulation test platform sets a data generation rule in a mock configuration class list, and increases the relevance of data, that is, a developer can classify different data in a mock configuration class, so that generated mock simulation data has relevance with test data, and finally, logic is provided between generated simulation data, and the generated simulation data is more consistent with real data.
In addition, referring to fig. 4, an embodiment of the present invention further provides a front end code testing device based on analog data, where the front end code testing device based on analog data includes:
the acquisition determining module 10 is configured to receive a data access request triggered based on a front-end code in a front-end test platform, acquire an environment tag of the front-end code, and determine whether a current running environment of the front-end code is a development environment according to the environment tag;
the interception sending module 20 is configured to send the data access request to a data simulation platform if the current running environment of the front-end code is a development environment, so as to simulate and generate simulated access data corresponding to the data access request on the data simulation platform;
the simulation access data are generated according to data generation rules set in the data simulation platform and initial variables in the data access request;
the receiving display module 30 is configured to receive the analog access data sent by the data analog platform, and display the analog access data, so that a front-end developer can adjust the front-end code according to the analog access data.
Optionally, the receiving display module 30 further includes:
The receiving and comparing unit is used for receiving the simulation access data sent by the data simulation platform and comparing the simulation access data with standard data in a preset standard table;
the abnormality judging unit is used for judging that the front-end code does not accord with the development standard if the simulation access data is not matched with the standard data in the preset standard table, and taking the simulation access data as abnormal simulation data;
the abnormal display unit is used for displaying the abnormal simulation data so as to enable a front-end developer to adjust the front-end code to be adjusted, which contains the abnormal simulation data.
Optionally, the receiving display module 30 further includes:
the matching acquisition unit is used for judging that the front-end code accords with a development standard if the simulated access data is matched with standard data in a preset standard table, and acquiring an access identifier contained in the data access request;
the data storage unit is used for associating the simulation access data with the access identifier and storing the simulation access data into a preset simulation table;
the interception sending module 20 further comprises:
the acquisition unit is used for acquiring a target access identifier contained in the data access request if the current running environment of the front-end code is a development environment;
The comparison unit is used for comparing the target access identifier with each access identifier in the preset simulation table;
the matching display unit is used for acquiring target simulation access data corresponding to the target access identifier in the preset simulation table and displaying the target simulation access data if the target access identifier is matched with the access identifier in the preset simulation table;
and the request sending unit is used for sending the data access request to a data simulation platform if the target access identifier is not matched with the access identifier in the preset simulation table.
And acquiring target simulation access data corresponding to the target access identifier in the preset simulation table, and displaying the target simulation access data so that front-end developers can adjust the front-end codes according to the target simulation access data.
In addition, referring to fig. 5, an embodiment of the present invention further provides a front end code testing device based on analog data, where the front end code testing device based on analog data includes:
the receiving and acquiring module 40 is configured to receive a data access request sent by the front-end testing platform, and acquire an access identifier included in the data access request;
The call acquisition module 50 is configured to call a virtual data interface corresponding to the access identifier according to the access identifier, and acquire a simulation configuration list associated with the virtual data interface;
and the generation and transmission module 60 is configured to generate simulation access data according to the data generation rule in the simulation configuration list, and transmit the simulation access data to the front-end test platform.
Optionally, the front end code testing device based on analog data further includes:
the method comprises the steps of creating a building module, wherein the building module is used for creating a node environment and building a web server under the node environment by using an express;
the prompting configuration module is used for generating prompting information when the completion of the construction of the web server is detected, so as to prompt a front-end developer to configure and generate a simulation configuration list according to a preset simulation rule;
the receiving association module is used for receiving each simulation configuration list uploaded by a front-end developer, and establishing association relation between each simulation configuration list and each virtual data interface in the web server so as to generate simulation access data through the simulation configuration list associated with the virtual data interface.
Optionally, the generating and sending module 60 includes:
The acquisition determining unit is used for acquiring an initial variable carried in the data access request and determining the variable type of the initial variable;
the simulation generation unit is used for acquiring a data generation rule corresponding to the variable type in the simulation configuration list, processing the initial variable according to the data generation rule and generating simulation access data corresponding to the data access request;
and the data sending unit is used for sending the analog access data to the front-end test platform.
The steps implemented by each functional module of the front end code testing device based on the analog data may refer to each embodiment of the front end code testing method based on the analog data according to the present invention, which is not described herein again.
In addition, the embodiment of the invention also provides a front-end code testing system based on the simulation data, which comprises a front-end testing platform and a data simulation platform which are in communication connection;
the front-end test platform comprises: a first memory, a first processor, and a computer program stored on the first memory and executable on the first processor; the computer program, when executed by the first processor, performs the steps comprising:
Receiving a data access request triggered based on a front-end code in a front-end test platform, and acquiring an environment tag of the front-end code by a first processor and determining whether the current running environment of the front-end code is a development environment according to the environment tag;
if the current running environment of the front-end code is a development environment, the first processor sends the data access request to a data simulation platform so as to simulate and generate simulated access data corresponding to the data access request on the data simulation platform;
the first processor receives simulation access data sent by the data simulation platform and displays the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data;
the data simulation platform comprises: a second memory, a second processor, and a computer program stored on the second memory and executable on the second processor; the computer program, when executed by the first processor, performs the steps comprising:
the second processor receives a data access request sent by the front-end test platform, and the second memory acquires an access identifier contained in the data access request;
According to the access identifier, the second memory calls a virtual data interface corresponding to the access identifier, and obtains a simulation configuration list associated with the virtual data interface;
and the second memory generates simulation access data according to the data generation rule in the simulation configuration list and sends the simulation access data to the front-end test platform.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium stores a computer program which, when executed by a processor, implements the operations in the front end code testing method based on analog data provided in the above embodiment.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any actual such relationship or order between such entities/operations/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. 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 system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (7)

1. The front-end code testing method based on the simulation data is characterized by being applied to a front-end testing platform and a data simulation platform, and comprises the following steps of:
the front-end testing platform receives a data access request triggered based on a front-end code in the front-end testing platform, acquires an environment tag of the front-end code, and determines whether the current running environment of the front-end code is a development environment according to the environment tag;
if the current running environment of the front-end code is a development environment, the front-end test platform sends the data access request to a data simulation platform;
the data simulation platform receives the data access request sent by the front-end test platform and acquires an access identifier contained in the data access request;
the data simulation platform calls a virtual data interface corresponding to the access identifier according to the access identifier, and obtains a simulation configuration list associated with the virtual data interface;
the data simulation platform generates simulation access data according to the data generation rule in the simulation configuration list and sends the simulation access data to the front-end test platform;
The front-end testing platform receives the simulation access data sent by the data simulation platform and displays the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data;
the data simulation platform receives a data access request sent by a front-end test platform, and before the step of obtaining an access identifier contained in the data access request, the data simulation platform comprises the following steps:
the data simulation platform creates a node environment, and builds a web server under the node environment by using express;
when the completion of the construction of the web server is detected, the data simulation platform generates prompt information to prompt a front-end developer to configure and generate a simulation configuration list according to preset simulation rules;
the data simulation platform receives each simulation configuration list uploaded by a front-end developer, and establishes an association relation between each simulation configuration list and each virtual data interface in the web server so as to generate simulation access data through the simulation configuration list associated with the virtual data interface;
the step of generating the simulation configuration list by the front-end developer according to the preset simulation rule configuration comprises the following steps: and defining the virtual data interface in the back-end development process, and providing the defined virtual data interface for the front-end test platform so that the front-end test platform generates relevant field values in a configuration file according to the defined virtual data interface by using the preset simulation rules.
2. The method for testing a front-end code based on simulation data according to claim 1, wherein the step of the front-end testing platform receiving the simulation access data transmitted by the data simulation platform and displaying the simulation access data for a front-end developer to adjust the front-end code according to the simulation access data comprises:
the front-end test platform receives the simulation access data sent by the data simulation platform and compares the simulation access data with standard data in a preset standard table;
if the simulation access data is not matched with the standard data in the preset standard table, the front-end testing platform judges that the front-end code does not accord with the development standard, and takes the simulation access data as abnormal simulation data;
the front-end test platform displays the abnormal simulation data so that front-end developers can adjust the front-end codes to be adjusted, which contain the abnormal simulation data.
3. The front-end code testing method based on analog data according to claim 2, wherein the front-end testing platform receives the analog access data transmitted by the data analog platform, and after the step of comparing the analog access data with standard data in a preset standard table, the method comprises:
If the simulated access data are matched with standard data in a preset standard table, the front-end testing platform judges that the front-end code accords with a development standard and acquires an access identifier contained in the data access request;
the front-end test platform associates the simulation access data with the access identifier and stores the simulation access data into a preset simulation table;
and if the current running environment of the front-end code is a development environment, the step of sending the data access request to the data simulation platform by the front-end test platform comprises the following steps:
if the current running environment of the front-end code is a development environment, the front-end test platform acquires a target access identifier contained in the data access request;
the front-end test platform compares the target access identifier with each access identifier in the preset simulation table;
if the target access identifier is matched with the access identifier in the preset simulation table, the front-end test platform acquires target simulation access data corresponding to the target access identifier in the preset simulation table and displays the target simulation access data;
and if the target access identifier is not matched with the access identifier in the preset simulation table, the front-end test platform sends the data access request to a data simulation platform.
4. The method for testing front-end code based on simulation data according to claim 1, wherein the step of generating simulation access data by the data simulation platform according to the data generation rule in the simulation configuration list and transmitting the simulation access data to the front-end testing platform comprises the steps of:
the data simulation platform acquires an initial variable carried in the data access request and determines the variable type of the initial variable;
the data simulation platform acquires a data generation rule corresponding to the variable type in the simulation configuration list, processes the initial variable according to the data generation rule, and generates simulation access data corresponding to the data access request;
and the data simulation platform sends the simulation access data to a front-end test platform.
5. A front end code testing device based on analog data, the front end code testing device based on analog data comprising:
the receiving and acquiring module is used for receiving a data access request sent by the front-end testing platform by the data simulation platform and acquiring an access identifier contained in the data access request;
the call acquisition module is used for calling the virtual data interface corresponding to the access identifier according to the access identifier by the data simulation platform and acquiring a simulation configuration list associated with the virtual data interface;
The generation and transmission module is used for generating simulation access data according to the data generation rule in the simulation configuration list by the data simulation platform and transmitting the simulation access data to the front-end test platform;
the receiving and acquiring module is also used for creating a node environment by the data simulation platform and constructing a web server by using express under the node environment;
when the completion of the construction of the web server is detected, the data simulation platform generates prompt information to prompt a front-end developer to configure and generate a simulation configuration list according to preset simulation rules;
the data simulation platform receives each simulation configuration list uploaded by a front-end developer, and establishes an association relation between each simulation configuration list and each virtual data interface in the web server so as to generate simulation access data through the simulation configuration list associated with the virtual data interface;
the step of generating the simulation configuration list by the front-end developer according to the preset simulation rule configuration comprises the following steps: and defining the virtual data interface in the back-end development process, and providing the defined virtual data interface for the front-end test platform so that the front-end test platform generates relevant field values in a configuration file according to the defined virtual data interface by using the preset simulation rules.
6. The front-end code testing system based on the simulation data is characterized by comprising a front-end testing platform and a data simulation platform which are in communication connection;
the front-end test platform comprises: a first memory, a first processor, and a computer program stored on the first memory and executable on the first processor; the data simulation platform comprises: a second memory, a second processor, and a computer program stored on the second memory and executable on the second processor; the computer program, when executed by the first processor and the second processor, performs the steps comprising:
the front-end testing platform receives a data access request triggered based on a front-end code in the front-end testing platform, and the first processor acquires an environment tag of the front-end code and determines whether the current running environment of the front-end code is a development environment according to the environment tag;
if the current running environment of the front-end code is a development environment, the first processor sends the data access request to a data simulation platform;
The second processor receives the data access request sent by the front-end test platform, and the second memory acquires an access identifier contained in the data access request;
according to the access identifier, the second memory calls a virtual data interface corresponding to the access identifier, and obtains a simulation configuration list associated with the virtual data interface;
the second memory generates simulation access data according to the data generation rule in the simulation configuration list and sends the simulation access data to the front-end test platform;
the first processor receives simulation access data sent by the data simulation platform and displays the simulation access data so that front-end developers can adjust the front-end codes according to the simulation access data;
the data simulation platform receives a data access request sent by a front-end test platform, and before the step of obtaining an access identifier contained in the data access request, the data simulation platform comprises the following steps:
the data simulation platform creates a node environment, and builds a web server under the node environment by using express;
when the completion of the construction of the web server is detected, the data simulation platform generates prompt information to prompt a front-end developer to configure and generate a simulation configuration list according to preset simulation rules;
The data simulation platform receives each simulation configuration list uploaded by a front-end developer, and establishes an association relation between each simulation configuration list and each virtual data interface in the web server so as to generate simulation access data through the simulation configuration list associated with the virtual data interface;
the step of generating the simulation configuration list by the front-end developer according to the preset simulation rule configuration comprises the following steps: and defining the virtual data interface in the back-end development process, and providing the defined virtual data interface for the front-end test platform so that the front-end test platform generates relevant field values in a configuration file according to the defined virtual data interface by using the preset simulation rules.
7. A computer storage medium, wherein a computer program is stored on the computer storage medium, which when executed by a processor, implements the steps of the analog data based front end code testing method according to any one of claims 1 to 4.
CN201810566807.XA 2018-06-04 2018-06-04 Front-end code testing method, device, system and medium based on analog data Active CN109726108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810566807.XA CN109726108B (en) 2018-06-04 2018-06-04 Front-end code testing method, device, system and medium based on analog data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810566807.XA CN109726108B (en) 2018-06-04 2018-06-04 Front-end code testing method, device, system and medium based on analog data

Publications (2)

Publication Number Publication Date
CN109726108A CN109726108A (en) 2019-05-07
CN109726108B true CN109726108B (en) 2023-09-22

Family

ID=66294550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810566807.XA Active CN109726108B (en) 2018-06-04 2018-06-04 Front-end code testing method, device, system and medium based on analog data

Country Status (1)

Country Link
CN (1) CN109726108B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287096A (en) * 2019-05-20 2019-09-27 深圳壹账通智能科技有限公司 H5 front end page test method, electronic device and computer readable storage medium
CN110413526A (en) * 2019-07-30 2019-11-05 北京达佳互联信息技术有限公司 A kind of request processing method, device, server and equipment
CN111209184A (en) * 2019-12-20 2020-05-29 北京你财富计算机科技有限公司 Automatic testing method and device and electronic equipment
CN111506298A (en) * 2020-03-10 2020-08-07 南京行者易智能交通科技有限公司 Method for carrying out interface visual configuration based on JSON object
CN112083925A (en) * 2020-09-07 2020-12-15 中国平安财产保险股份有限公司 Data acquisition method, device, equipment and storage medium based on H5 page development
CN112559350A (en) * 2020-12-16 2021-03-26 杭州数梦工场科技有限公司 Debugging method, device and equipment for front-end development page and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8325880B1 (en) * 2010-07-20 2012-12-04 Convergys Customer Management Delaware Llc Automated application testing
CN104461903A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for testing client side based on browser
CN105138448A (en) * 2014-06-05 2015-12-09 北京畅游天下网络技术有限公司 Method and device for page test at front end
CN107577622A (en) * 2017-08-01 2018-01-12 广州酷狗计算机科技有限公司 Back end interface analogy method, equipment and storage medium
CN107807841A (en) * 2017-10-18 2018-03-16 中国平安人寿保险股份有限公司 Server analogy method, device, equipment and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9508267B2 (en) * 2013-06-09 2016-11-29 Cae Inc. Configurable simulator with testing capabilities

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8325880B1 (en) * 2010-07-20 2012-12-04 Convergys Customer Management Delaware Llc Automated application testing
CN105138448A (en) * 2014-06-05 2015-12-09 北京畅游天下网络技术有限公司 Method and device for page test at front end
CN104461903A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for testing client side based on browser
CN107577622A (en) * 2017-08-01 2018-01-12 广州酷狗计算机科技有限公司 Back end interface analogy method, equipment and storage medium
CN107807841A (en) * 2017-10-18 2018-03-16 中国平安人寿保险股份有限公司 Server analogy method, device, equipment and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于NodeJS进行自动化单元测试中mock平台的设计与研究;潘诗瑶;《中国优秀硕士学位论文全文数据库 (信息科技辑)》(第03期);I138-85 *

Also Published As

Publication number Publication date
CN109726108A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN109684047B (en) Event processing method, device, equipment and computer storage medium
CN107656874B (en) Interface testing method and device, simulation baffle and system
CN110221982B (en) Performance test method, device and equipment of business system and readable storage medium
CN111078539B (en) Test method, device, system and computer readable storage medium
CN112306881B (en) Analog data generation method, device, equipment and storage medium
CN110020381A (en) Method of calibration, device, equipment and computer storage medium based on configuration file
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN110933095A (en) Message parsing method and device
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN111026672A (en) Test method, terminal equipment and mock server
CN111083017A (en) Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium
CN112561690B (en) Method, system, equipment and storage medium for testing credit card staged service interface
CN114610372A (en) Processing method and device for review file, storage medium, processor and terminal
WO2022068183A1 (en) Configuration generation method and apparatus, electronic device and storage medium
CN111061637B (en) Interface testing method, interface testing device and storage medium
CN112181822A (en) Test method and test method for starting time consumption of application program
CN109951549B (en) Network page access method and device and computer readable storage medium
CN117370162A (en) Test tool management method, device, equipment and storage medium
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN113468260B (en) Data analysis method and device, electronic equipment and storage medium
CN114756183A (en) Data printing method, device, equipment and storage medium
CN114327693A (en) AB experiment method and system, terminal device and storage medium
CN110851254A (en) Equipment production method, device, server and storage medium based on microservice

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230825

Address after: 3/F, Building 2, No. 20 Jitai Road, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu City, Sichuan Province, 610000

Applicant after: Chengdu Meiman Technology Co.,Ltd.

Address before: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen LIAN intellectual property service center

Effective date of registration: 20230825

Address after: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen LIAN intellectual property service center

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 3/F, Building 2, No. 20 Jitai Road, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu City, Sichuan Province, 610000

Patentee after: Meiman Technology (Chengdu) Group Co.,Ltd.

Address before: 3/F, Building 2, No. 20 Jitai Road, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu City, Sichuan Province, 610000

Patentee before: Chengdu Meiman Technology Co.,Ltd.