CN109359149B - Simulation test method and related device - Google Patents

Simulation test method and related device Download PDF

Info

Publication number
CN109359149B
CN109359149B CN201811169155.2A CN201811169155A CN109359149B CN 109359149 B CN109359149 B CN 109359149B CN 201811169155 A CN201811169155 A CN 201811169155A CN 109359149 B CN109359149 B CN 109359149B
Authority
CN
China
Prior art keywords
data
tested
data format
return
generating
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.)
Expired - Fee Related
Application number
CN201811169155.2A
Other languages
Chinese (zh)
Other versions
CN109359149A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201811169155.2A priority Critical patent/CN109359149B/en
Publication of CN109359149A publication Critical patent/CN109359149A/en
Application granted granted Critical
Publication of CN109359149B publication Critical patent/CN109359149B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to the technical field of unit testing, and discloses a simulation testing method and a related device. The simulation test method is applied to a data management platform and comprises the following steps: acquiring data information for generating an object to be tested; wherein, the data information at least comprises a data format, a conversion function and a parameter entering rule; generating the object to be tested based on a preset generation template and data information; transmitting the object to be tested to corresponding user side equipment; and the object to be tested comprises the preset generation template. According to the invention, the generation process of the object to be tested is simplified in the process of testing the simulation object, and the object to be tested can be ensured to accord with the reference rule.

Description

Simulation test method and related device
Technical Field
The embodiment of the invention relates to the technical field of unit testing, in particular to a simulation testing method and a related device.
Background
With the continuous development of test technology, the requirement on test coverage is higher and higher, however, some test objects which are not easy to construct or obtain often exist in the test process, so that the test work is difficult to continue. In addition, the real test object has indeterminate behaviors, and unpredictable effects (such as stock quotes, weather forecasts, etc.) are generated, so that the real object is difficult to create, some behaviors of the real object are difficult to trigger, or the real object does not exist actually in the test process, and the like. The Mock test (virtual test) is a method for creating a virtual object for some test objects which are not easy to construct or are not easy to obtain in the test process so as to perform the test.
The inventor finds that at least the following problems exist in the prior art: at present, the requirement on users is high when a Mock (virtual) platform and a Mock tool in Mock testing are used for testing, and the existing Mock platform requires that the users need to know and be familiar with matching rules and compiling specifications of the Mock interface reference data when the users maintain the reference data of the Mock interface. If the matching rules and the writing specifications of the parameter input data are not known, the correct parameter input matching rules cannot be maintained, and when the parameter input mock is expected, the expected result cannot be matched. Therefore, users need to spend time learning and understanding various data format specifications of the MOCK, and in the actual using process, most of the users basically cannot fully understand or are very familiar with the writing specification of the parameter matching rule or the escape character is not used properly, so that the writing error is mistakenly entered into the parameter, thereby affecting the MOCK request and return value during testing and affecting the testing success rate.
Disclosure of Invention
The embodiment of the invention aims to provide a simulation test method and a related device, which simplify the generation process of an object to be tested in the process of testing a simulation object and can ensure that the object to be tested conforms to a reference rule.
In order to solve the above technical problem, an embodiment of the present invention provides a simulation test method applied to a data management platform, including:
acquiring data information for generating an object to be tested; wherein, the data information at least comprises a data format, a conversion function and a parameter entering rule;
generating an object to be tested based on a preset generation template and data information;
transmitting the object to be tested to corresponding user side equipment; the object to be tested comprises a preset generation template.
The embodiment of the invention also provides a simulation test method, which is applied to user end equipment and comprises the following steps:
acquiring an object to be tested transmitted by a data management platform, wherein the object to be tested comprises a preset generation template;
generating test data according to a preset generation template in an object to be tested;
acquiring a return data request transmitted by a request terminal, wherein the return data request comprises a return data format;
generating corresponding return data according to the return data format and the test data;
and transmitting the return data to the request end.
An embodiment of the present invention further provides a data management platform, including: the device comprises an acquisition module, a generation module and a transmission module;
the acquisition module is used for acquiring data information used for generating an object to be tested; wherein, the data information at least comprises a data format, a conversion function and a parameter entering rule;
the generating module is used for generating an object to be tested based on a preset generating template and data information;
the transmission module is used for transmitting the object to be tested to the corresponding user side equipment.
An embodiment of the present invention further provides a user end device, including: the device comprises a first acquisition module, a generation module, a second acquisition module, a return module and a transmission module;
the first acquisition module is used for acquiring an object to be tested transmitted by the data management platform, wherein the object to be tested comprises a preset generation template;
the generating module is used for generating test data according to a preset generating template in the object to be tested;
the second acquisition module is used for acquiring a return data request transmitted by the request terminal, wherein the return data request comprises a return data format;
the return module is used for generating second return data according to the return data format and the test data;
and the transmission module is used for transmitting the second return data format to the corresponding request end.
An embodiment of the present invention further provides a server, including:
at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the simulation testing method applied to the data management platform.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the simulation test method applied to the customer premise equipment.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the simulation testing method described above.
Compared with the prior art, the method and the device for generating the return data have the advantages that the format of the object to be tested is unified by generating the object to be tested based on the preset generation template, the time for using personnel to learn the data format is reduced, the operation difficulty of the data management platform is reduced, the probability of error of the data format of the object to be tested caused by the fact that the using personnel are not familiar with the access rules is also reduced, and the situation that the generated object to be tested is not matched with the access rules is avoided.
In addition, after the object to be tested is transmitted to the corresponding customer premise equipment, the simulation testing method further comprises the following steps: generating a first return data format according to a preset generation template; and transmitting the preset return data format to the customer premise equipment.
In the embodiment, the first returned data format is determined according to the preset generation template, so that the returned data conform to the preset rule, the interference of a user on the data management platform is reduced, and the intelligence degree of the data management platform is further improved.
In addition, after the preset return data format is transmitted to the customer premise equipment, the simulation testing method further includes: acquiring a second return data format transmitted by the user terminal equipment; and replacing the first preset return data format with a second preset return data format.
In this embodiment, if the format of the return data sent by the client device is changed, the client device transmits the changed format of the return data to the data management platform, so as to update the preset format of the return data.
In addition, generating the object to be tested based on the preset generation template and the data information includes: determining a preset generation template corresponding to the data format according to the data format in the data information; determining the parameter entering data in a preset generating template according to the conversion function and the parameter entering rule in the data information; and determining the object to be tested according to the parameter data in the preset generating template.
In addition, the preset generated template is a tree-structured template.
In addition, after the object to be tested transmitted by the data management platform is obtained and before the test data is generated according to the object to be tested, the simulation test method further comprises the following steps: and acquiring a first return data format transmitted by the data management platform.
In addition, after the return data is transmitted to the corresponding request end, the simulation testing method further includes: and if the first returned data format is different from the second returned data format, transmitting the second returned data format to the data management platform.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flow chart of a simulation test method in a first embodiment of the present invention;
FIG. 2 is a flow chart of a simulation test method in a second embodiment of the present invention;
FIG. 3 is a flow chart of a simulation test method in a third embodiment of the present invention;
FIG. 4 is a flow chart of a simulation test method in a fourth embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a data management platform according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a user equipment in a sixth embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a server according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an eighth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a simulation test method. The specific process applied to the data management platform is shown in fig. 1, and includes the following implementation steps:
step 101: data information for generating an object to be tested is acquired.
Wherein the data information at least comprises a data format, a conversion function and a parameter rule.
Specifically, the simulation test method simulates an object which is difficult to obtain to generate a simulation test object. The data information of the object to be tested represents the relevant information of the object to be tested, the object to be tested is generated to be an object which is difficult to obtain, the object to be tested can be also called a mock object, and the object to be tested needs to be determined from multiple aspects such as a data format, a conversion function, a parameter entering rule and the like.
It should be noted that the data information may also include information such as a data type and a constraint rule, and the content in the data information is only an example and is not limited to a data format, a conversion function and an entry rule in practice.
Step 102: and generating an object to be tested based on a preset generation template and data information.
Specifically, one specific implementation of step 102 is: determining a preset generation template corresponding to the data format according to the data format in the data information; determining the parameter entering data in a preset generating template according to the conversion function and the parameter entering rule in the data information; and determining the object to be tested according to the parameter data in the preset generating template. The data management platform is provided with a plurality of generation templates, and the corresponding generation templates need to be determined in the process of generating the object to be tested according to the preset generation templates. It should be noted that the data management platform may determine the generated template according to the data type of the object to be tested, and may also determine the generated template according to other information such as the data format, and the embodiment does not specifically limit the manner of determining the corresponding generated template.
Preferably, the preset generating template is a tree-structured template. The tree structure has a plurality of branches, and each branch also has a sub-branch, that is, the data in the object to be detected is required to be arranged layer by layer and finally determined. For example, the data management platform selects a corresponding template according to the data format, sets data, a conversion function and the like in the template layer by layer, and finally generates data in the generated template, which is the data of the object to be detected. Data need to be maintained in the row information of each layer of tree structure, for example, the data type, key value name (key name), value corresponding to the key value name and conversion function of the layer need to be maintained, the conversion function is, for example, toByte (meaning: converting data content into binary byte stream), and the @ toByte (content to be converted xxxxxx) is automatically generated and displayed on the right side of the tree structure, so that the view is convenient, the problem of messy codes after conversion or data which cannot be viewed is avoided, and a user can check whether the generated data is correct or not.
In one specific implementation, the process of generating the object to be tested by using the tree structure is that a data format is selected first, wherein the data format comprises: determining a corresponding generated template according to a selected corresponding data format, and then filling in data of each layer according to the data format required in the generated template, wherein values of the data can be obtained by selecting various conversion functions, constraint conditions and the like in the generated template, and the constraint conditions represent the range of numerical values, and if the selected constraint conditions are as follows: and if the test result is greater than ">, equal to" ═ or ", equal to or less than" ≦ ", and the like, the selection of each branch in the tree structure finally generates the objects to be tested with unified format specifications.
It should be noted that the generation template of the tree structure is only an exemplary illustration, so as to clearly illustrate the process of generating the object to be tested, and this is merely an example and is not limited in particular.
Step 103: and transmitting the object to be tested to the corresponding user terminal equipment.
The object to be tested comprises a preset generation template. The client device can determine that the object to be tested generates test data based on the generated template.
Specifically, after the object to be tested is generated, the object to be tested is stored, and the object to be tested is transmitted to the corresponding client device as required, and the number of the specific client devices and the types of the clients are not particularly limited.
Specifically, after receiving the object to be tested, the user end device operates the object to be tested and generates test data, and transmits the test data to the request end according to the obtained data request. The request end sends the data request for acquiring the returned data on the user end device, which may be sending the data request through a third-party webpage, and this is not particularly limited. If the interface and the access rule of the request end are agreed, the returned data type can be directly determined by the data management platform. If the test data is unconventional, the user end equipment determines the type of the test data according to the data request of the request end. One specific implementation is that, after step 103, the data management platform generates a first return data format according to a preset generation template; and transmitting the first return data format to the customer premise equipment.
It should be noted that, after the object to be tested is generated, the data management platform may further determine a first return data format according to a preset generation template, and send the object to be tested and the first return data format to the customer premise equipment together. The data management platform can also determine a test result according to a return data format transmitted by the user end equipment.
Specifically, the data management platform is used for generating data to be tested and also for acquiring returned test data, and the data management platform can be divided into a mock numbering platform and a mock testing platform. And the user generates an object to be tested by logging in the mock numbering platform, and the mock testing platform acquires returned testing data for testing. For example, a mock numbering platform is logged in, a user inputs data information such as a data format and an interface according to the information of the interface, a data management platform determines a preset generation template according to the data information, determines a tree structure of the generation template according to the data type of an Object to be tested, selects a corresponding conversion function and a data format, matches with a parameter entry rule to generate the Object to be tested, and continuously selects a first return data format, such as file or json (Java Script Object Notation). After the first return data format is determined, the data generation condition can be checked, whether the data meet the requirements or not is checked, no problem is confirmed, and the object to be tested and the first return data format are stored for later maintenance.
Specifically, the client device is designated to determine a first return data format from the object to be tested. In specific implementation, a first return data format of a tested object is specified according to an interface and input parameters of user end equipment. Wherein, one of the interface and the input parameter of the user end equipment is changed, and the object to be tested is also changed. If the interfaces are the same and the input parameters are changed, the data format of the object to be tested also needs to be adaptively adjusted.
It should be noted that the to-be-tested objects generated on the data management platform are stored in the data management platform in a distributed deployment manner, so that data sharing is supported by multiple clients, and repeated data maintenance and data migration are not required.
Compared with the prior art, the simulation test method provided by the embodiment generates the to-be-tested object based on the preset generation template, unifies the format of the to-be-tested object, reduces the time for a user to learn the data format, reduces the operation difficulty of the data management platform, also reduces the probability of error of the data format of the to-be-tested object caused by the fact that the user is not familiar with the parameter entering rule, avoids the situation that the generated to-be-tested object is not matched with the parameter entering rule, and improves the intelligence degree of the data management platform.
A second embodiment of the invention relates to a simulation test method. The second embodiment is substantially the same as the first embodiment, and mainly differs therefrom in that: in the second embodiment of the present invention, a specific implementation process for updating the first return data format is further described. The method flow is shown in fig. 2, and includes steps 201 to 207, where steps 201 to 203 are respectively the same as steps 101 to 103 in the first embodiment, and are not repeated here.
Step 201 to step 203 are executed.
Step 204: and generating a first return data format according to a preset generation template.
Step 205: and transmitting the first return data format to the customer premise equipment.
It should be noted that, although the specific implementation procedures of step 204 and step 205 have been described in the first embodiment, this embodiment mainly describes a manner of updating the first return data format.
Step 206: and acquiring a second return data format transmitted by the user end equipment.
The second returned data format is different from the first returned data format, specifically, in the unit testing process, other request terminals request to acquire the test data of the user terminal device, the interfaces and the access parameters of the request terminals may not be the same, in order to ensure that the returned data transmitted from the user terminal device to the request terminals meets the data requirements of the request terminals, the returned data format needs to be determined according to the ports and the access parameters rules of the request terminals, because the first returned data format is stored in the user terminal device, if the interfaces and the access parameters rules of the request terminals are different from the first returned data format, the user terminal device generates the second returned data format according to a preset generation template, transmits the second returned data format to the data management platform, and updates the returned data format of the data management platform.
It should be noted that the customer premise equipment needs to determine whether to update the first returned data format on the data management platform according to the generated second returned data format, and only when the first returned data format is different from the second returned data format, the customer premise equipment transmits the second returned data format to the data management platform.
Step 207: the first return data format is replaced with the second return data format.
Specifically, after the return data format in the data management platform is updated, if the test object needs to be transmitted to other customer premise equipment again, the generated test object and the updated second return data format are transmitted to the corresponding customer premise equipment.
It should be noted that, a large amount of data exists in the test object, and a change to the data format may change the value in the data, so that the updated second data format is transmitted to the data management platform, so that the data management platform can update the data in the test object in time.
A third embodiment of the present invention relates to a simulation test method, which is applied to a user end device, and the specific flow is shown in fig. 3, including the following steps:
step 301: and acquiring the object to be tested transmitted by the data management platform.
The object to be tested comprises a preset generation template.
It should be noted that, in the process of performing the test, the data management platform cooperates with the user end device to perform the test, and the data management platform generates the object to be tested according to the preset generation template and transmits the object to the user end device.
Specifically, a plurality of conversion functions are arranged in a preset generation template in the data management platform, when an object to be tested is generated, corresponding information such as the conversion functions can be selected according to data information of the object to be tested, and when the object to be tested is transmitted to the user end equipment, the preset generation template can also be transmitted to the user end equipment, so that the user end equipment can adjust data in the object to be tested according to the conversion functions, and the intelligence degree of the test system is improved.
Step 302: and generating test data according to a preset generation template in the object to be tested.
Specifically, the conversion function in the preset generation template can generate corresponding test data according to conditions, and the user side equipment can generate the test data according to the preset generation template, so that the participation of operators in the automatic test process is reduced, and the intelligence degree of the test system is improved.
Step 303: and acquiring a return data request transmitted by a request end.
Specifically, when acquiring a return data request transmitted by a request end, a user end device may generate corresponding return data according to the return data request, where the return request includes a format of the return data and a type of the return data, for example, a data request in the same reference data on the same interface may also require to return different data, where the data request of the request end may require to change a certain data and then return to the request end, and may also require to return different data formats for the same data request.
Step 304: and generating corresponding return data according to the return data format and the test data.
It should be noted that the interface here is an access address provided by the ue to the outside, and the ue may not be an independent device, or may be a system or software installed on a certain device, and is not a physical device.
The data management platform receives the changed input parameter data and then stores the changed input parameter data so as to support the situation that the same interface in the subsequent test is the same, enters parameters and returns.
The method and the device support the change of the matched parameter data through the interface, avoid the problem that the parameter data cannot be changed in the automatic test after data maintenance, reduce the manual intervention degree of a test data management platform, increase the test coverage rate and enable the test to be more complete and comprehensive.
If the return data corresponding to the access parameter data is acquired in the data request of the request end acquired by the user end equipment in the automatic test process, if the return data corresponding to the access parameter data 1 is 1, the user end equipment changes the return data into the required return data according to the requirement of the request end, transmits the changed return data to the request end, sends a notice to the data management platform, and requests the data management platform to change the return data into the required return data.
It should be noted that, when the request end transmits the request for returning data to the client device, the request end may first transmit the data format to the client device, that is, inform the client device of the format of the returned data required by the request end, and when the request end needs to return data, send a command for returning data to the client device. Therefore, the return data request may include only the return data format, and may also include the return data format and the return data command, and the content of the return data request is not limited herein.
Step 305: and transmitting the return data to the request end.
Specifically, the return data requests in the corresponding formats are transmitted to the user end device through the same interface, so that the same access request to the same interface and the same access request, that is, when the same access data is requested through the same interface, the expected return data can be changed through changing the interface, different required returns, for example, a data dictionary during starting, are obtained, and after switching, the user end device for mock test also returns different values when the data dictionary is different from a data dictionary returned in a real environment. In the automatic test process, the interface change return request can be directly used in the automatic test script without manual intervention, so that the simulation test method in the embodiment supports the realization that the same interface is the same and participates in different returns during automatic test.
Compared with the prior art, after the user end equipment acquires the return data request of the request end, the return data in the corresponding format can be generated according to the return data format of the request end, so that the user end equipment can provide the return data for different request ends, and the intelligence degree of the data management platform is improved.
A fourth embodiment of the present application relates to a simulation test method, and is substantially the same as the third embodiment, and mainly differs therefrom in that: in the fourth embodiment of the present invention, a process including a format change of update return data is specifically described, and a specific flow is shown in fig. 4, and includes the following implementation steps:
step 401: and acquiring the object to be tested transmitted by the data management platform.
Step 402: and acquiring a first return data format transmitted by the data management platform.
Step 403: and generating test data according to a preset generation template in the object to be tested.
Step 404: and acquiring a return data request transmitted by a request end.
Step 405: and generating corresponding return data according to the return data format and the test data.
Step 406: and transmitting the return data to the request end.
Step 407: and judging whether the first returned data format is the same as the second returned data format, if so, executing step 408, otherwise, executing step 408.
Step 408: the second return data format is prohibited from being transmitted to the data management platform.
Step 409: and transmitting the second return data format to the data management platform.
Specifically, the implementation process is a simulation test process of the customer premise equipment, where the customer premise equipment needs to perform data interaction with the data management platform or the request end to implement a simulation test, or implement an automatic test according to a user requirement.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to a data management platform, as shown in fig. 5, including: an acquisition module 501, a generation module 502 and a transmission module 503.
The obtaining module 501 is configured to obtain data information used for generating an object to be tested; wherein the data information at least comprises a data format, a conversion function and a parameter rule.
The generating module 502 is configured to generate an object to be tested based on a preset generating template and data information.
The transmission module 503 is configured to transmit the object to be tested to the corresponding customer premise equipment.
Specifically, the generating module 502 is configured to determine a preset generating template corresponding to a data format according to the data format in the data information; determining the parameter entering data in a preset generating template according to the conversion function and the parameter entering rule in the data information; and determining the object to be tested according to the parameter data in the preset generating template.
It should be understood that this embodiment is an example of the apparatus corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A sixth embodiment of the present invention relates to a customer premises equipment. As shown in fig. 6, includes: a first obtaining module 601, a first generating module 602, a second obtaining module 603, a second generating module 604, and a transmitting module 605.
The first obtaining module 601 is configured to obtain an object to be tested transmitted by the data management platform, where the object to be tested includes a preset generating template.
The first generating module 602 is configured to generate test data according to a preset generating template in the object to be tested.
The second obtaining module 603 is configured to obtain a return data request transmitted by a request end, where the return data request includes a return data format.
The second generating module 604 is configured to generate corresponding return data according to the return data format and the test data.
The transmission module 605 is configured to transmit the return data to the request end.
Since the third embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and the technical effects that can be achieved in the third embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the third embodiment.
The seventh embodiment of the present invention relates to a server, as shown in fig. 7, including at least one processor 701; and a memory 702 communicatively coupled to the at least one processor 701. The memory 702 stores instructions executable by the at least one processor 701, and the instructions are executed by the at least one processor 701, so that the at least one processor 701 can execute the simulation test method according to the first or second embodiment.
In this embodiment, the processor 701 is exemplified by a Central Processing Unit (CPU), and the Memory 702 is exemplified by a Random Access Memory (RAM). The processor 701 and the memory 702 may be connected by a bus or by other means, and fig. 7 illustrates an example of a bus connection. The memory 702 is a non-volatile computer-readable storage medium, which can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the programs for implementing the simulation test method in the embodiments of the present application, stored in the memory 702. The processor 701 executes various functional applications and data processing of the device by executing nonvolatile software programs, instructions, and modules stored in the memory 702, that is, implements the above-described simulation test method.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more program modules are stored in the memory 702 and, when executed by the one or more processors 701, perform the simulation testing method of the first or second method embodiments described above.
The product can execute the simulation test method provided by the embodiment of the application, has the corresponding functional modules and beneficial effects of the execution method, does not describe the technical details in the embodiment in detail, and can refer to the simulation test method provided by the embodiment of the application.
An eighth embodiment of the present invention relates to a server, as shown in fig. 8, including at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801. The memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the simulation testing method in the third or fourth embodiment.
A ninth embodiment of the present invention relates to a computer-readable storage medium, which is a computer-readable storage medium having computer instructions stored therein, the computer instructions enabling a computer to execute the simulation test method according to the first or second method embodiment of the present application.
A tenth embodiment of the present invention relates to a computer-readable storage medium, which is a computer-readable storage medium having computer instructions stored therein, the computer instructions enabling a computer to execute the simulation test method according to the third or fourth embodiment of the present invention.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (6)

1. A simulation test method is applied to a data management platform and is characterized by comprising the following steps:
acquiring data information for generating an object to be tested; wherein, the data information at least comprises a data format, a conversion function and a parameter entering rule;
generating the object to be tested based on a preset generation template and the data information;
transmitting the object to be tested to corresponding user side equipment; wherein the object to be tested comprises the preset generation template;
generating a first return data format according to the preset generation template, and transmitting the first return data format to the customer premise equipment;
and acquiring a second return data format transmitted by the user end equipment, and replacing the first return data format with the second return data format.
2. The simulation test method of claim 1, wherein the generating the object to be tested based on the preset generation template and the data information comprises:
determining the preset generation template corresponding to the data format according to the data format in the data information;
determining the reference data in the preset generation template according to the conversion function and the reference rule in the data information;
and determining the object to be tested according to the input parameter data in the preset generating template.
3. The simulation test method according to claim 1, wherein the preset generating template is a tree-structured template.
4. A simulation test method is applied to customer premise equipment and is characterized by comprising the following steps:
acquiring an object to be tested transmitted by a data management platform, wherein the object to be tested comprises a preset generation template; the object to be tested is generated based on the preset generation template and data information used for generating the object to be tested, wherein the data information at least comprises a data format, a conversion function and a parameter entering rule;
acquiring a first return data format transmitted by the data management platform;
generating test data according to the preset generation template in the object to be tested;
acquiring a return data request transmitted by a request terminal, wherein the return data request comprises a return data format;
generating a second return data format according to the return data format and the test data;
transmitting the second return data format to the request end;
and if the first returned data format is different from the second returned data format, transmitting the second returned data format to the data management platform.
5. A data management platform, comprising: the device comprises an acquisition module, a generation module and a transmission module;
the acquisition module is used for acquiring data information used for generating an object to be tested; wherein, the data information at least comprises a data format, a conversion function and a parameter entering rule;
the generating module is used for generating the object to be tested based on a preset generating template and the data information;
the transmission module is used for transmitting the object to be tested to the corresponding user side equipment; wherein the object to be tested comprises the preset generation template;
the data management platform is further configured to generate a first return data format according to the preset generation template, and transmit the first return data format to the customer premise equipment; and acquiring a second return data format transmitted by the user end equipment, and replacing the first return data format with the second return data format.
6. A client device, comprising: the device comprises a first acquisition module, a generation module, a second acquisition module, a return module and a transmission module;
the first acquisition module is used for acquiring an object to be tested transmitted by the data management platform, wherein the object to be tested comprises a preset generation template; the object to be tested is generated based on the preset generation template and data information used for generating the object to be tested, wherein the data information at least comprises a data format, a conversion function and a parameter entering rule;
the generating module is used for generating test data according to the preset generating template in the object to be tested;
the second obtaining module is used for obtaining a return data request transmitted by a request terminal, wherein the return data request comprises a return data format;
the return module is used for generating second return data according to the return data format and the test data;
the transmission module is used for transmitting the second return data format to a corresponding request end;
the user end equipment is further used for acquiring a first return data format transmitted by the data management platform; and if the first return data format is different from the second return data format, transmitting the second return data format to the data management platform.
CN201811169155.2A 2018-10-08 2018-10-08 Simulation test method and related device Expired - Fee Related CN109359149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811169155.2A CN109359149B (en) 2018-10-08 2018-10-08 Simulation test method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811169155.2A CN109359149B (en) 2018-10-08 2018-10-08 Simulation test method and related device

Publications (2)

Publication Number Publication Date
CN109359149A CN109359149A (en) 2019-02-19
CN109359149B true CN109359149B (en) 2021-03-05

Family

ID=65348508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811169155.2A Expired - Fee Related CN109359149B (en) 2018-10-08 2018-10-08 Simulation test method and related device

Country Status (1)

Country Link
CN (1) CN109359149B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625442B (en) * 2019-02-28 2024-03-26 顺丰科技有限公司 Mock testing method and device
CN109933534B (en) * 2019-03-26 2023-02-24 上海上湖信息技术有限公司 Method and device for determining financial test object
CN110413519A (en) * 2019-07-19 2019-11-05 无线生活(杭州)信息科技有限公司 Template processing method and processing device
CN112181824A (en) * 2020-09-25 2021-01-05 中国建设银行股份有限公司 System development auxiliary platform and method
CN112100079B (en) * 2020-11-02 2022-04-12 北京淇瑀信息科技有限公司 Test method and system based on simulation data calling and electronic equipment
CN112306881B (en) * 2020-11-02 2023-11-24 金联兴电子(深圳)有限公司 Analog data generation method, device, equipment and storage medium
CN113204545A (en) * 2021-05-17 2021-08-03 武汉中科通达高新技术股份有限公司 Traffic management data testing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970873A (en) * 2017-01-10 2017-07-21 阿里巴巴集团控股有限公司 Mock method of testings, apparatus and system on line
CN107179984A (en) * 2016-03-10 2017-09-19 北京京东尚科信息技术有限公司 A kind of interface mock methods and interface test method
CN108268372A (en) * 2017-07-24 2018-07-10 深圳壹账通智能科技有限公司 Mock test processing methods, device, storage medium and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179984A (en) * 2016-03-10 2017-09-19 北京京东尚科信息技术有限公司 A kind of interface mock methods and interface test method
CN106970873A (en) * 2017-01-10 2017-07-21 阿里巴巴集团控股有限公司 Mock method of testings, apparatus and system on line
CN108268372A (en) * 2017-07-24 2018-07-10 深圳壹账通智能科技有限公司 Mock test processing methods, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN109359149A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN109359149B (en) Simulation test method and related device
US20190052551A1 (en) Cloud verification and test automation
CN108347356B (en) Multi-protocol unit testing method and device, electronic equipment and storage medium
CN112187558B (en) Data verification method and device and electronic equipment
CA2846581A1 (en) Data infrastructure for providing interconnectivity between platforms, devices and operating systems
CN113806037A (en) Service calling method and device, storage medium and electronic equipment
CN112422557A (en) Attack testing method and device for industrial control network
CN107015912A (en) Realize system, method, device and the electronic equipment of remote debugging
JP6992039B2 (en) Test data creation system and test data creation method
CN110737548A (en) Data request method and server
CN106708717B (en) A kind of exploitation adjustment method and device
CN111935767B (en) Network simulation system
CN109725887A (en) Data interactive method, device and terminal device based on message research and development frame
CN115883310A (en) Service deployment method, service deployment system, electronic device, and storage medium
CN113360300A (en) Interface calling link generation method, device, equipment and readable storage medium
CN109462491B (en) System, method and apparatus for testing server functionality
US20210365520A1 (en) Webpage loading method, intermediate server and webpage loading system
CN114050909B (en) Exercise method, system and electronic equipment for simulating mail
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN114461337A (en) Cloud simulation system and method, electronic equipment and storage medium
CN115599881A (en) Workflow creation method, system, electronic device, and computer-readable storage medium
CN110688623A (en) Training optimization method, device, equipment and storage medium of high-order LR model
CN115297012B (en) Offline testing method and device of SDN controller, controller and medium
CN113656268B (en) Performance test method and device for business service, electronic equipment and storage medium
CN114826867B (en) Method, device, system and storage medium for processing data

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210305