CN114518877A - Data processing method and device and computer storage medium - Google Patents
Data processing method and device and computer storage medium Download PDFInfo
- Publication number
- CN114518877A CN114518877A CN202210141880.9A CN202210141880A CN114518877A CN 114518877 A CN114518877 A CN 114518877A CN 202210141880 A CN202210141880 A CN 202210141880A CN 114518877 A CN114518877 A CN 114518877A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- simulation
- type
- simulation data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000004088 simulation Methods 0.000 claims abstract description 106
- 238000012360 testing method Methods 0.000 claims abstract description 75
- 238000012986 modification Methods 0.000 claims abstract description 58
- 230000004048 modification Effects 0.000 claims abstract description 58
- 238000012545 processing Methods 0.000 claims abstract description 58
- 230000008859 change Effects 0.000 claims abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 43
- 230000008569 process Effects 0.000 claims abstract description 19
- 230000015654 memory Effects 0.000 claims description 30
- 238000013507 mapping Methods 0.000 claims description 11
- 230000004075 alteration Effects 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 238000010998 test method Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application discloses a data processing method, a data processing device and a computer storage medium, wherein the method comprises the following steps: receiving a data return request sent by a client, wherein the data return request is used for acquiring simulation data to complete a process to be tested for changing an interface, and the data return request comprises change information of the changed interface; determining a level of modification of said modified interface based on said modification information; and when the change level is smaller than a preset level, generating the simulation data based on the change information and pre-stored reference data, and sending the simulation data to a client. After the data return request is received, the change level of the change interface can be determined according to the change information in the data return request, after the change level is lower than the preset level, the simulation data can be automatically generated according to the change information and the pre-stored reference data, the simulation data is sent to the client, the client is enabled to complete the test process, and the test efficiency of the client is improved.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, and a computer storage medium.
Background
The method comprises the following steps that application software of a plurality of external companies may need to be docked in service requirements, docking of a plurality of interfaces can be involved, and when the interfaces in the application software are changed, the changed interfaces need to be tested; generally, a client is tested to test an interface modified in application software, the client sends a data return request to a server, and maintenance personnel manually create real data according to the data return request and return the real data to the client through the server.
Some interfaces in the application software which are changed slightly do not affect the operation of the whole application software, and when the interfaces are tested, real data are manually created by maintenance personnel and returned to the client through the server so that the client completes a necessary test flow.
Disclosure of Invention
An object of the present application is to provide a data processing method, apparatus and computer storage medium, which can automatically generate simulation data and send the simulation data to a client after receiving a data return request, so that the client can complete a test procedure.
In a first aspect, an embodiment of the present application provides a data processing method, including:
receiving a data return request sent by a client, wherein the data return request is used for acquiring simulation data to complete a process to be tested for changing an interface, and the data return request comprises change information of the changed interface;
determining a level of modification of the modified interface based on the modification information;
and when the change level is smaller than a preset level, generating the simulation data based on the change information and pre-stored reference data, and sending the simulation data to a client.
Optionally, the modifying information at least includes a modified interface type and an associated interface type, and determining a modification level of the modified interface based on the modifying information includes:
analyzing the change information, and identifying a change interface type and an associated interface type in the change information;
and if the modification type and the associated interface type are both in a pre-specified type list, determining that the modification level is less than a preset level, and if one of the modification type and the associated interface type is not in the pre-specified type list, determining that the modification level is greater than the preset level.
Optionally, the generating the simulation data based on the alteration information and the prestored reference data includes:
determining a test scene of a flow to be tested of the modified interface based on the modification information;
screening reference data matched with the test scene from the prestored reference data based on the test scene;
and generating the simulation data based on the screened reference data matched with the test scene.
Optionally, the test scenario corresponds to a simulation data type required when the modified interface is tested, and the simulation data type and a reference data type have a mapping relationship, where the simulation data includes a simulation data type and the reference data includes a reference data type;
the screening of the reference data matched with the test scene from the prestored reference data based on the test scene comprises:
obtaining a simulation data type required when the modified interface is tested based on the test scene;
and screening out reference data with the reference data type matched with the simulation data type from prestored reference data based on the mapping relation between the simulation data type and the reference data type.
Optionally, the generating the simulation data based on the screened reference data matched with the test scenario includes:
inputting the test scene and the reference data matched with the test scene into a pre-trained simulation data generation model;
and generating the simulation data through the pre-trained simulation data generation model.
Optionally, when the change level is greater than a preset level, forwarding the data return request to a server;
sending a recording request to the server;
responding to a recording-allowed instruction sent by a server, and recording a log of the server;
and the simulation data fed back to the client by the server according to the data return request is obtained.
Optionally, the obtaining of the simulation data fed back to the client by the server according to the data return request includes:
acquiring simulation data from a recorded log of a server based on the mapping relation between the data return request and the simulation data;
saving the analog data as reference data.
In a second aspect, an embodiment of the present application provides a data processing apparatus, including:
The system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a data return request sent by a client, the data return request is used for acquiring simulation data to complete a to-be-tested process of changing an interface, and the data return request comprises change information of the changed interface;
the judging module is used for determining the modification level of the modified interface based on the modification information;
and the data processing module is used for generating the simulation data based on the change information and the prestored reference data and sending the simulation data to the client when the change level is smaller than the preset level.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a memory and a processor, where the memory is used to store computer instructions, and the processor is used to call the computer instructions to execute the method described above.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing computer instructions that, when executed by a processor, implement a method as described above.
In the embodiment provided by the application, after receiving the data return request, the data processing device can determine the change level of the changed interface according to the change information in the data return request, and after the change level is lower than the preset level, the data processing device can automatically generate the simulation data according to the change information and the pre-stored reference data, and send the simulation data to the client, so that the client completes the test process, and the test efficiency of the client is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the drawings in the embodiments of the present application.
The terms "including" and "having," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
The method comprises the following steps that application software of a plurality of external companies may need to be docked in service requirements, docking of a plurality of interfaces is involved, and when the interfaces in the application software are changed, the changed interfaces need to be tested; generally, a client is tested to test an interface modified in application software, the interface modified in the application software is tested, the client sends a data return request to a server, and maintenance personnel manually create real data according to the data return request and return the real data to the client through the server.
Some interfaces in the application software with smaller changes do not affect the operation of the whole application software, and when the interfaces are tested, real data are manually created by maintenance personnel and returned to the client through the server so that the client completes a necessary test flow.
The embodiment of the present application discloses a data processing method, which aims to automatically generate simulation data for some modified interfaces that do not affect the operation of the whole application software, and send the simulation data to a client 200, so that the modified interfaces can complete a test flow, and the method includes, but is not limited to, S1-S3, please refer to fig. 1.
And S1, receiving a data return request sent by the client, wherein the data return request is used for acquiring simulation data to complete a test process of changing the interface, and the data return request comprises the change information of the changed interface.
In the embodiment provided by the present application, the software product may be installed in the client 200, and may be maintained through the server 300;
the execution main body of the method can be the data processing device 100, the data processing device 100 can be a mobile phone, a computer and other terminal devices, and the client 200 can be a mobile phone, a computer and other terminal devices capable of installing application software, wherein the modified interface is a module for transmitting data for the application software installed in the client 200.
In the embodiment provided by the present application, the client 200 sends a data return request to the data processing apparatus 100, and correspondingly, the data service platform can receive the data return request sent by the client 200.
The change information may include some brief information of changing the interface and the changed brief information, and may include, for example, a type of changing the interface, an associated interface type with which the changing interface is associated, and a process with which the changed content in the changing interface is associated.
S2, determining the modification level of the modification interface based on the modification information.
In the embodiment provided in the present application, the data processing apparatus 100 divides the plurality of modification levels into two types, one type is greater than the preset level, and the other type is less than the preset level.
In the embodiment provided in the present application, when the data processing apparatus 100 identifies the modification level, the data processing apparatus obtains some brief information of the modification interface and the modified brief information based on the modification information, and determines the influence of some brief information of the modification interface and the modified brief information on the entire application software, thereby obtaining the modification level of the modification interface.
In the embodiment provided by the present application, after the data processing apparatus 100 receives the data return request, the modification level of the modified interface is obtained according to the modification information in the data return request, for example, when the data processing apparatus 100 obtains the modification content of the modified interface according to the modification information, the modification level of the modified interface may be determined to be less than the preset level if the modified interface is not a critical interface in the application software and does not relate to a critical interface in the application software.
And S3, if the change level is less than a preset level, generating the simulation data based on the change information and the prestored reference data, and sending the simulation data to the client.
In the embodiment provided by the application, when the data processing apparatus 100 receives a data return request sent by a client 200, the data return request is analyzed to obtain change information in the data return request, and a change level of an interface to be changed is obtained based on the change information, and the data return request is processed in two processing manners, when the change level of the interface to be changed is identified to be greater than a preset level, the changed content in the interface to be changed affects the operation in the whole application software, the data processing apparatus 100 forwards the data return request to a server 300, and an application software maintainer creates real data according to the data return request and sends the real data to the client 200 through the server 300, so that the interface to be changed completes a test flow; when it is recognized that the modification level of the modified interface is smaller than the preset level, the modified content in the modified interface does not affect the operation of the entire application software, at this time, the data processing apparatus 100 analyzes the modification information, generates simulation data based on the modification information and the prestored reference data, and sends the simulation data to the client, so that the modified interface completes the test procedure, and because the modified content in the modified interface does not affect the operation of the entire application software, when the data processing apparatus 100 generates the simulation data, it is not necessary to precisely aim at the modified content in the modified interface, and only needs to generate the simulation data according to the modification information and the prestored reference data, and then send the simulation data to the client 200, so as to complete the test procedure for modifying the interface.
When the modified interface of the client 200 needs to be tested, the client 200 sends a data return request, generally, the client 200 sends the data return request to the server 300, the user creates real data at the server 300 according to the data return request, and the server 300 sends the real data to the client 200, so as to complete the test on the client 200.
In the embodiment provided by the present application, the data processing apparatus 100 is used to receive a data return request, the data processing apparatus 100 determines a modification level for modifying an interface according to modification information in the data return request, and if the modification level is lower than a preset level, the data processing apparatus 100 may generate simulation data according to pre-stored reference data, and send the simulation data to the client 200, so that the client 200 completes a test procedure, and the test efficiency of the client 200 is improved.
In the embodiment provided by the application, for some modified interfaces which do not affect the operation of the whole application software, simulation data is generated based on the modified information of the modified interfaces and the prestored reference data, and the simulation data is sent to the client 200 to complete the test process of the modified interfaces, so that a tester does not need to create real data according to the actual condition of the modified interfaces, the test efficiency of the modified interfaces is greatly improved, and the test cost of the modified interfaces is reduced.
The modifying information at least includes a modified interface type and an associated interface type, and determining a modification level of the modified interface based on the modifying information includes:
s21, analyzing the change information, and identifying the change interface type and the associated interface type in the change information;
s22, if the modification type and the associated interface type are both in the pre-assigned type list, determining that the modification level is less than the preset level, and if one of the modification type and the associated interface type is not in the pre-assigned type list, determining that the modification level is greater than the preset level.
In the embodiment provided by the present application, the data processing apparatus 100 stores in advance a list of interface types and associated interface types that can return analog data, and when determining a modification level of a modified interface, identifies an interface type of the modified interface and an associated interface type associated with the modified interface by analyzing the modification information, and determines that the interface type of the modified interface and the associated interface type associated with the modified interface are in a list that is pre-specified and can return analog data, so as to determine whether the modification level is specifically greater than the preset level or less than the preset level.
Illustratively, if the pre-specified type list includes an interface a, an interface B, an interface C and an interface D, when the interface type of the changed interface is the interface a, and the interface types associated with the changed interface are the interface B and the interface C, it can be obtained that the interface type of the changed interface and the interface type associated with the changed interface are both in the type list, then it can be determined that the change level of the changed interface is smaller than the preset level, and if the interface type of the changed interface is the interface a, the interface of the changed interface is the interface E, and the interface E is not in the pre-specified type list, then it can be determined that the change level of the changed interface is greater than the preset level.
The generating the simulation data based on the alteration information, pre-stored reference data, including but not limited to S31-S33:
and S31, determining the test scene of the test flow of the modified interface based on the modification information.
In the embodiment provided by the present application, when the interface of the client 200 is modified, specifically based on a requirement, the requirement may be understood as a new function of the application software, the new function of the application software corresponds to a certain specific test scenario, and the data return request sent by the client 200 has modification information, where the modification information corresponds to the test scenario.
After the interface of the client 200 is modified, the modified content of the modified interface needs to be tested, and when the modified content of the modified interface is modified in a targeted manner, the modified content of the modified interface corresponds to a test scenario, and after the data processing apparatus 100 receives the data return request, the modified information in the data return request is analyzed, so that the test scenario corresponding to the modified content in the modified interface can be determined.
And S32, screening the reference data matched with the test scene from the prestored reference data based on the test scene.
In the embodiment provided by the present application, various types of pre-stored reference data respectively correspond to each test scenario, and when the data processing apparatus 100 acquires a test scenario in which the interface is changed, reference data matched with the test scenario is screened from the pre-stored reference data.
And S33, generating the simulation data based on the screened reference data matched with the test scene.
For example, for a class a test scenario, several class a reference data may be screened from the prestored reference data, a plurality of simulation data may be generated based on the several class a reference data, one reference data may be selected from the generated plurality of class a reference data and sent to the client 200, or one reference data may be selected from the several class a reference data, and simulation data may be generated based on the selected reference data and sent to the client 200.
The test scene corresponds to a simulation data type required when the modified interface is tested, and the simulation data type and a reference data type have a mapping relation, wherein the simulation data comprises a simulation data type, and the reference data comprises a reference data type;
the screening of the reference data matching with the test scenario from the prestored reference data based on the test scenario includes but is not limited to S321-S322:
and S321, obtaining the simulation data type required when the modified interface is tested based on the test scene.
In the embodiment provided by the present application, the data processing apparatus 100 may classify each test scenario in advance, so as to obtain a simulation data type required by each test scenario, the simulation data is generated by reference data, and after the simulation data type is determined, the reference data type may be determined, and when the data processing apparatus 100 stores each reference data, the data processing apparatus classifies each reference data, and stores a mapping relationship between each test scenario and each reference data.
S322, based on the mapping relation between the simulation data type and the reference data type, the reference data with the reference data type matched with the simulation data type is screened out from the prestored reference data.
Generating the simulation data based on the screened reference data matched with the test scene, including:
and inputting the test scene and the reference data matched with the test scene into a pre-trained simulation data generation model.
In the embodiment provided by the present application, the simulation data generation model may be a module in the data processing apparatus 100, the simulation data generation model has a learning capability, the simulation data generation model can generate simulation data adapted to the test scenario based on the test scenario and the reference data, and exemplarily, the data processing apparatus 100 is connected to a client and a server, the client simultaneously generates a simulation data return request to the data processing apparatus during the learning process of the simulation data generation model, the user (operation and maintenance staff) analyzes the simulation data return request, determines a test scenario corresponding to the data return request, and creates real data according to the test scenario, the user (operation and maintenance staff) sends the test scenario and the real data to the simulation data generation model through the server, the simulation data generation model includes a data return request, and a data return request, And testing the scene and the real data to learn and generate a simulation data rule.
In the learning process of the simulation data generation model, a client side sends a plurality of data return requests to a server side, if some data return requests correspond to a test scene A in the plurality of data return requests, some data return requests correspond to a test scene B, aiming at the test scene A, if real data sent to the client side by the server side are digital, when the data return requests are received by the data generation device, the data generation device analyzes the data return requests, the test scene corresponding to the data return requests is determined, if the test scene is the test scene A, the test scene A and parameter data are input into the simulation data generation model, and the simulation data generation model generates digital simulation data.
Referring to fig. 2, when the alteration level is greater than the preset level, the data return request is forwarded to the server 300.
When forwarding the data return request to the server 300:
sending a recording request to the server 300;
recording a log of the server 300 in response to an instruction for allowing recording sent by the server 300;
so as to obtain the real data fed back to the client 200 by the server 300 according to the data return request.
In the embodiment provided by the present application, the data processing apparatus 100 has a recording function, and sends the data return request to the client 200 after determining that the change level is higher than the preset level, at this time, it may select to send the recording request to the server 300, or may not send the recording request to the client 200.
After the data processing apparatus 100 sends a recording request to the server 300, and after the data processing apparatus 100 receives an instruction to allow recording, the log of the server 300 may be recorded, where the data processing apparatus 100 starts to record data sent by the server 300 when receiving the instruction to allow recording.
The obtaining of the simulation data fed back to the client 200 by the server 300 according to the data return request includes:
acquiring real data from a recorded log of a server based on the mapping relation between the data return request and the simulation data;
and saving the analog data as reference data.
In the embodiment provided by the present application, when the server 300 sends real data to the client 200, the data processing apparatus 100 stores the recorded real data as reference data.
In the embodiments provided herein, the data processing apparatus 100 has two ways to collect the reference data.
First, the data processing apparatus 100 records a log of the server 300, collects real data sent by the server 300 to the client 200, and stores the collected real data as reference data.
Second, the data processing apparatus 100 has an editable page in which the user can input reference data as a basis for generating the simulation data.
Referring to fig. 3, a data processing apparatus 100 according to an embodiment of the present application is provided, where the data processing apparatus 100 includes:
a receiving module 110, configured to receive a data return request sent by a client 200, where the data return request is used to obtain simulation data to complete a process to be tested on an altered interface, and the data return request includes alteration information of the altered interface;
a determining module 120, configured to determine a modification level of the modified interface based on the modification information;
a data processing module 130, configured to, when the modification level is smaller than a preset level, generate the simulation data based on the modification information and reference data stored in advance, and send the simulation data to the client 200.
For the concepts, explanations, and details of other steps related to the technical solutions provided by the embodiment of the present application related to the data processing apparatus 100, reference is made to the foregoing method or descriptions related to the method steps executed by the data processing apparatus 100 in other embodiments, and details are not repeated herein.
An embodiment of the present application provides an electronic device 400, where the electronic device 400 includes a memory 420 and a processor 410, the memory 420 is configured to store computer instructions, and the processor 410 is configured to call the computer instructions to execute the method described above.
Referring to fig. 4, an electronic device provided in an embodiment of the present application may include:
a processor 410, a memory 420, and a communication interface 430. The processor 410, the memory 420, and the communication interface 430 are coupled by a bus 440, the memory 420 storing instructions, and the processor 410 executing instructions stored by the memory 420.
The processor 410 is used to execute the instructions stored in the memory 420 to control the communication interface 430 to receive and transmit signals to perform the steps of the above-described method. The memory 420 may be integrated in the processor 410, or may be provided separately from the processor 410.
In one possible implementation, the function of the communication interface 430 may be implemented by a transceiver circuit or a dedicated chip for transceiving. The processor 410 may be considered to be implemented by a dedicated processing chip, processing circuit, processor, or a general purpose chip.
In another possible implementation manner, the data processing apparatus 100 provided by the embodiment of the present application may be implemented by using a general-purpose computer. Program code that implements the functions of the processor 410 and the communication interface 430 are stored in the memory 420, and a general-purpose processor implements the functions of the processor 410 and the communication interface 430 by executing the code in the memory 420.
For the concepts, explanations, details and other steps related to the technical solutions provided in the embodiments of the present application related to the data processing apparatus 100, reference is made to the description of the foregoing method or the contents of the method steps executed by the data processing apparatus 100 in other embodiments, which is not described herein again.
As another implementation manner of the present embodiment, a computer-readable storage medium is provided for storing a computer program, and the computer-readable storage medium stores instructions that, when executed on a computer, perform the method in the above embodiment.
As another implementation of the present embodiment, a computer program product is provided, which contains instructions that, when executed, perform the method in the above method embodiments.
Those skilled in the art will appreciate that in an actual terminal or server, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, and the like, which is not limited in this application.
It should be understood that, in the embodiment of the present Application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like.
It will also be appreciated that the memory referred to in the embodiments herein may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) is integrated in the processor.
It should be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The bus may include a power bus, a control bus, a status signal bus, and the like, in addition to the data bus. But for clarity of illustration the various buses are labeled as buses in the figures.
It should also be understood that reference herein to first, second, third, fourth, and various numerical designations is made only for ease of description and should not be used to limit the scope of the present application.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
In the embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various Illustrative Logical Blocks (ILBs) and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the data processing apparatus 100 embodiment described above is merely illustrative, and for example, the division of the modules is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of modules or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, e.g., from a website, computer, server, or data
The heart transmits to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optics, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A data processing method, comprising:
receiving a data return request sent by a client, wherein the data return request is used for acquiring simulation data to complete a process to be tested for changing an interface, and the data return request comprises change information of the changed interface;
Determining a level of modification of said modified interface based on said modification information;
and when the change level is smaller than a preset level, generating the simulation data based on the change information and pre-stored reference data, and sending the simulation data to a client.
2. The data processing method of claim 1, wherein said alteration information includes at least an altered interface type and an associated interface type, and said determining a level of alteration of said altered interface based on said alteration information comprises:
analyzing the change information, and identifying a change interface type and an associated interface type in the change information;
and if the modification type and the associated interface type are both in a pre-specified type list, determining that the modification level is less than a preset level, and if one of the modification type and the associated interface type is not in the pre-specified type list, determining that the modification level is greater than the preset level.
3. A data processing method according to claim 1 or 2, wherein said generating said simulation data based on said alteration information, pre-stored reference data, comprises:
determining a test scene of a flow to be tested of the modified interface based on the modification information;
Screening reference data matched with the test scene from the prestored reference data based on the test scene;
and generating the simulation data based on the screened reference data matched with the test scene.
4. The data processing method of claim 3, wherein the test scenario corresponds to a simulation data type required for testing the modified interface, and the simulation data type has a mapping relationship with a reference data type, wherein the simulation data includes the simulation data type, and the reference data includes the reference data type;
the screening of the reference data matched with the test scenario from the prestored reference data based on the test scenario includes:
obtaining a simulation data type required when the modified interface is tested based on the test scene;
and screening out reference data with the reference data type matched with the simulation data type from prestored reference data based on the mapping relation between the simulation data type and the reference data type.
5. The data processing method of claim 4, wherein generating the simulation data based on the filtered reference data that matches the test scenario comprises:
Inputting the test scene and the reference data matched with the test scene into a pre-trained simulation data generation model;
and generating the simulation data through the pre-trained simulation data generation model.
6. The data processing method according to claim 1, wherein when the change level is greater than a preset level, the data return request is forwarded to a server;
sending a recording request to the server;
responding to a recording-allowed instruction sent by a server, and recording a log of the server;
and the simulation data fed back to the client by the server according to the data return request is obtained.
7. The data processing method of claim 6, wherein the data return request has a mapping relationship with the simulation data, and the obtaining of the simulation data fed back to the client by the server according to the data return request comprises:
acquiring simulation data from a recorded log of a server based on the mapping relation between the data return request and the simulation data;
saving the analog data as reference data.
8. A data processing apparatus, comprising:
The system comprises a receiving module, a processing module and a sending module, wherein the receiving module is used for receiving a data return request sent by a client, the data return request is used for acquiring simulation data to complete a process to be tested for an interface to be changed, and the data return request comprises change information of the interface to be changed;
the judging module is used for determining the modification level of the modified interface based on the modification information;
and the data processing module is used for generating the simulation data based on the change information and the prestored reference data and sending the simulation data to a client when the change level is less than a preset level.
9. An electronic device, comprising a memory to store computer instructions and a processor to invoke the computer instructions to perform the method of any one of claims 1-7.
10. A computer storage medium storing computer instructions which, when executed by a processor, implement the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210141880.9A CN114518877A (en) | 2022-02-16 | 2022-02-16 | Data processing method and device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210141880.9A CN114518877A (en) | 2022-02-16 | 2022-02-16 | Data processing method and device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114518877A true CN114518877A (en) | 2022-05-20 |
Family
ID=81598165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210141880.9A Pending CN114518877A (en) | 2022-02-16 | 2022-02-16 | Data processing method and device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114518877A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115658552A (en) * | 2022-12-26 | 2023-01-31 | 海马云(天津)信息技术有限公司 | Test data recommendation method and device, storage medium and electronic equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727385A (en) * | 2008-10-31 | 2010-06-09 | 国际商业机器公司 | Method for processing information change of user interface and system |
CN107368405A (en) * | 2016-05-11 | 2017-11-21 | 腾讯科技(北京)有限公司 | Test system, method of testing, mock platforms, blocker and client |
CN108509337A (en) * | 2018-03-15 | 2018-09-07 | 链家网(北京)科技有限公司 | The dynamic testing method and device called based on interface |
US10305962B1 (en) * | 2015-12-30 | 2019-05-28 | EMC IP Holding Company LLC | Unit testing clients of web services |
CN111857656A (en) * | 2020-06-12 | 2020-10-30 | 北京百度网讯科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112199281A (en) * | 2020-09-30 | 2021-01-08 | 中国平安财产保险股份有限公司 | Data processing method and device, terminal equipment and readable storage medium |
CN112699023A (en) * | 2020-12-25 | 2021-04-23 | 深圳市彬讯科技有限公司 | Project interface testing method and device, computer equipment and storage medium |
CN113094255A (en) * | 2020-01-08 | 2021-07-09 | 北京密境和风科技有限公司 | Simulation test method, device and system for data interface |
CN113467780A (en) * | 2021-06-30 | 2021-10-01 | 北京达佳互联信息技术有限公司 | Data acquisition method and device, electronic equipment and storage medium |
CN113485927A (en) * | 2021-07-06 | 2021-10-08 | 西安京迅递供应链科技有限公司 | Test data generation method, device, equipment and storage medium |
-
2022
- 2022-02-16 CN CN202210141880.9A patent/CN114518877A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727385A (en) * | 2008-10-31 | 2010-06-09 | 国际商业机器公司 | Method for processing information change of user interface and system |
US10305962B1 (en) * | 2015-12-30 | 2019-05-28 | EMC IP Holding Company LLC | Unit testing clients of web services |
CN107368405A (en) * | 2016-05-11 | 2017-11-21 | 腾讯科技(北京)有限公司 | Test system, method of testing, mock platforms, blocker and client |
CN108509337A (en) * | 2018-03-15 | 2018-09-07 | 链家网(北京)科技有限公司 | The dynamic testing method and device called based on interface |
CN113094255A (en) * | 2020-01-08 | 2021-07-09 | 北京密境和风科技有限公司 | Simulation test method, device and system for data interface |
CN111857656A (en) * | 2020-06-12 | 2020-10-30 | 北京百度网讯科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112199281A (en) * | 2020-09-30 | 2021-01-08 | 中国平安财产保险股份有限公司 | Data processing method and device, terminal equipment and readable storage medium |
CN112699023A (en) * | 2020-12-25 | 2021-04-23 | 深圳市彬讯科技有限公司 | Project interface testing method and device, computer equipment and storage medium |
CN113467780A (en) * | 2021-06-30 | 2021-10-01 | 北京达佳互联信息技术有限公司 | Data acquisition method and device, electronic equipment and storage medium |
CN113485927A (en) * | 2021-07-06 | 2021-10-08 | 西安京迅递供应链科技有限公司 | Test data generation method, device, equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115658552A (en) * | 2022-12-26 | 2023-01-31 | 海马云(天津)信息技术有限公司 | Test data recommendation method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111177112A (en) | Database blocking method and device based on operation and maintenance management system and electronic equipment | |
CN104579830B (en) | service monitoring method and device | |
CN111597110B (en) | Page test method and device, electronic equipment and storage medium | |
CN108400978A (en) | Leak detection method, device, computer equipment and storage medium | |
CN112363938A (en) | Data processing method and device, electronic equipment and storage medium | |
CN112996020A (en) | Bluetooth-based automatic testing method and device and Bluetooth testing terminal | |
CN114518877A (en) | Data processing method and device and computer storage medium | |
EP4142238A1 (en) | Pico base station configuration method and apparatus, and storage medium and electronic apparatus | |
CN111046393B (en) | Vulnerability information uploading method and device, terminal equipment and storage medium | |
CN115269361A (en) | Software development kit testing method and device and readable storage medium | |
CN114697942B (en) | Self-connection method, system, terminal equipment and storage medium | |
WO2023151397A1 (en) | Application program deployment method and apparatus, device, and medium | |
CN116709389A (en) | Test method, system, device and storage medium | |
CN116541277A (en) | Interface testing method, device, equipment and medium | |
US20100120416A1 (en) | Method for generating a signal train which can be played back on a tester for testing a mobile radio | |
CN109190876A (en) | A kind of safety access method and device of service product | |
CN105512020A (en) | Method and device for test | |
CN114528213A (en) | Automatic baffle plate testing method, device, equipment and storage medium | |
CN114025014A (en) | Asset detection method and device, electronic equipment and storage medium | |
CN113157596A (en) | Automatic testing method and device | |
JP2022026109A (en) | Attendance detection system and attendance detection method | |
CN112256564A (en) | Application program running method and device and electronic equipment | |
CN111104097B (en) | Data writing and reading method and device | |
CN112261051B (en) | User registration method, device and system | |
JP2018181188A (en) | Data transmission method, determination method, data transmission apparatus, determination apparatus, data transmission program, determination program, and information processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |