CN111045928B - Interface data testing method, device, terminal and storage medium - Google Patents

Interface data testing method, device, terminal and storage medium Download PDF

Info

Publication number
CN111045928B
CN111045928B CN201911113903.XA CN201911113903A CN111045928B CN 111045928 B CN111045928 B CN 111045928B CN 201911113903 A CN201911113903 A CN 201911113903A CN 111045928 B CN111045928 B CN 111045928B
Authority
CN
China
Prior art keywords
data
interface
fixed
preset
presetting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911113903.XA
Other languages
Chinese (zh)
Other versions
CN111045928A (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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network 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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201911113903.XA priority Critical patent/CN111045928B/en
Publication of CN111045928A publication Critical patent/CN111045928A/en
Application granted granted Critical
Publication of CN111045928B publication Critical patent/CN111045928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to an interface data testing method, a device, a terminal and a storage medium, wherein the method comprises the following steps: basic data presetting, data query, service program request and data clearing, and deleting newly-added data when the basic data presetting is performed; the interface test method solves the problems that the interface use cases cannot be randomly changed and cannot be effectively tested when the multiple tenants in the mixed cloud environment are switched at any time, and provides a set of interface use case test method for testing the multiple tenants in the multiple environments, so that the test efficiency is improved, the maintenance cost is reduced, and the purposes of multiple purposes are achieved without repeated writing and recording.

Description

Interface data testing method, device, terminal and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to an interface data testing method, an interface data testing device, a terminal and a storage medium.
Background
Interface testing is a test that tests interfaces between components of a system. Interface testing is mainly used for detecting interaction points between external systems and between internal subsystems. The key point of the test is to check the exchange of data, the transfer and control management process, and the mutual logic dependency between systems.
Interface testing is broadly divided into two types:
1. the method comprises the steps of defining a general command interface structure, recording interface related structure information by using a text file, converting description in the file into a unified structure linked list by carrying out syntax analysis on the text file line by line, verifying whether data from an outer layer are correct or not, and verifying whether data sent to other layers are correct or not according to prompt user input information, similar to an interface test method disclosed in a Chinese patent document with application number ZL 01126755.0.
2. Making a system graphic interface or a platform for operation, such as a software interface testing method and a software interface testing device disclosed in Chinese patent document with application number 200610057811.0, describing each software interface to be tested according to a preset grammar format, dynamically generating a graphic interface for testing the software interface according to each described software interface, performing software testing according to description information corresponding to the penalized graphic interface, and sublimating the method into a system according to the description information corresponding to the penalized graphic interface, and opening a corresponding test case interface according to the accepted test case; and calling a uniform resource locator URL of the test case interface in the template file, sending a test request to the server through the URL, calling a pre-registered interface function after the server responds, analyzing a corresponding result of the server of the test request which is not empty, obtaining an actual check value, and comparing expected check values of the actual check value to obtain a test result of the test case.
In the above technical solution, the 1 st method has two drawbacks, namely, the maintenance personnel need to pay extra effort and time to maintain the text file, and each change needs to be manually updated. Second, the interface parameters and all information are not possible to be static data, are all dynamic transformation data, and need to be acquired from information returned by another interface. The 2 nd method still has the following problems: (1) Basic data are required for all requests of the hybrid cloud, the basic data cannot be automatically preset in a centralized mode, and response time of all requests and comparison of returned results can be influenced due to the fact that the basic data are not fixed; (2) Under the mixed cloud multi-tenant situation, one tenant uses one set of cases, and then one tenant in the next environment, more tenants can not meet the changing requirements at any time, only can re-describe or record, the maintenance cost is very high, and the efficiency is very slow: (3) The mixed cloud iteration is updated frequently, an interface is defined once, the mixed cloud is very likely to be transformed immediately, and daily iteration cannot be met according to the method; (4) All basic data of the hybrid cloud are bound under the tenant, all common staff inherit the basic data under the current tenant, the tenant is replaced, all basic data cannot be reused, and the environment is changed at any time.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the invention provides a method for testing interfaces of multiple tenants in multiple environments by using a set of interface cases, which improves the testing efficiency, reduces the maintenance cost, achieves the purposes of multiple purposes, does not repeatedly write and record, and realizes the method for testing the interfaces of multiple tenants by using a set of cases in common by the hybrid cloud. How to perform the software interface test is not within the scope of the embodiments of the present invention as to the specific interface test form and method.
The technical scheme adopted for solving the technical problems is as follows:
in a first aspect, an embodiment of the present invention provides an interface data testing method, including:
the method comprises the steps of presetting basic data, namely, constructing a fixed list of unified program codes and a database, performing use case operation of a single environment and a user to form first preset data, and presetting the basic data according to the first preset data and the fixed list;
the data query is specifically to construct a fixed rule, query first preset data according to the fixed rule to obtain test data required by the interface, and parameterize the test data and transmit the test data to the interface;
the service program request is specifically that request data at the interface is received, parameter values are returned to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains the needed parameterized test data, and the data are reassembled through the interface;
and (3) data clearing and deleting newly-added data when the basic data are preset.
Further, the fixed rules include fixed data, fixed formats, and fixed data items.
Further, the process of the basic data presetting step is more specifically as follows:
selecting an environment, a tenant and a Web end for operation, and grabbing data presets to form use cases to obtain first preset data;
taking the use case as a base class packet, presetting all data for packet grabbing operation, providing a list of all data, fixing each data item in the data, and obtaining a fixed list;
and presetting basic data of all data according to the first preset data and the fixed list so as to newly add data when the preset data operation is performed, and decoupling and releasing the interface dependent data.
Further, the specific process of obtaining the request data is that the interface dynamically obtains the data packet, obtains the parameterized test data and performs service assembly.
Still further, the obtaining of the request data further includes: and dynamically acquiring the data of the last step when the repeated execution is performed.
Further, when the data clearing step is performed, specifically, newly added data obtained in the basic data presetting is dynamically obtained, the returned data is subjected to context transfer, and the fixed basic data is deleted.
In a second aspect, an embodiment of the present invention further provides an interface data testing apparatus, where the apparatus includes:
the base data presetting module is used for constructing a fixed list of unified program codes and a database, carrying out use case operation of a single environment and a user to form first preset data, and presetting the base data according to the first preset data and the fixed list;
the data query module is used for constructing a fixed rule, querying first preset data according to the fixed rule to obtain test data required by the interface, performing parameterization on the test data and transmitting the parameterized test data to the interface;
the service program request module is used for receiving request data at the interface, and returning parameter values to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains the needed parameterized test data and are reassembled through the interface;
and the data clearing module is used for deleting the newly-added data when the basic data is preset.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the following steps are implemented:
the method comprises the steps of presetting basic data, namely, constructing a fixed list of unified program codes and a database, performing use case operation of a single environment and a user to form first preset data, and presetting the basic data according to the first preset data and the fixed list;
the data query is specifically to construct a fixed rule, query first preset data according to the fixed rule to obtain test data required by the interface, and parameterize the test data and transmit the test data to the interface;
the service program request is specifically that request data at the interface is received, parameter values are returned to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains the needed parameterized test data, and the data are reassembled through the interface;
and (3) data clearing and deleting newly-added data when the basic data are preset.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the interface test method according to any of the embodiments of the present invention.
Compared with the prior art, the invention has the beneficial effects that:
the interface test method solves the problems that the interface use cases cannot be randomly changed and cannot be effectively tested when the multiple tenants in the mixed cloud environment are switched at any time, and provides a set of interface use case test method for testing the multiple tenants in the multiple environments, so that the test efficiency is improved, the maintenance cost is reduced, and the purposes of multiple purposes are achieved without repeated writing and recording.
Drawings
FIG. 1 is a flow chart of an interface data testing method according to a first embodiment of the invention;
FIG. 2 is a flowchart illustrating a basic data presetting step in accordance with a first embodiment of the present invention;
FIG. 3 is a flow chart of a data query step in accordance with a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a business process request step according to a first embodiment of the present invention;
FIG. 5 is a flowchart illustrating a data clearing step according to a first embodiment of the present invention;
fig. 6 is a schematic block diagram of an interface data testing device according to a second embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention is applied to the mixed cloud multi-tenant scene. The hybrid cloud merges public cloud and private cloud, and is a main mode and development direction of cloud computing in recent years. Private clouds are mainly for enterprise users, and for safety reasons, enterprises prefer to store data in the private clouds, but at the same time wish to obtain computing resources of public clouds, in which case hybrid clouds are increasingly adopted, and mix and match the public clouds and the private clouds to obtain the best effect.
The multi-tenant technology (english: multi-tenancy technology) is a software architecture technology that is used to investigate and implement how to share the same system or program components in a multi-user environment, and still ensure data isolation between users. Multi-tenant simply means that a single instance can serve multiple organizations. Multi-tenant technology provides the same or even customizable services as most clients with a single system architecture and services within a common data center, and still can guarantee data isolation for the clients. A system supporting multi-tenant technology requires virtual partitioning of its data and configuration in design, so that each tenant or organization of the system can use a single system instance, and each tenant can individually configure the rented system instance according to its own needs. The multi-tenant technology can realize sharing of system instances among multiple tenants, and meanwhile, personalized customization of the system instances of the tenants can be realized. By using the multi-tenant technology, the sharing of the common part of the system and the individual part of the personality can be ensured. Through multiplexing the resources among a plurality of tenants, the operation management maintains the resources, and the cost of developing the application is effectively saved. Moreover, sharing a single instance of an application between tenants may enable all tenants to upgrade at the same time as the application upgrades. Meanwhile, because a plurality of tenants share the core code of one system, when the system is upgraded, only the same core code needs to be upgraded.
Example 1
The technical scheme of the embodiment can be suitable for the situation of mixed cloud multi-tenant. The method can be executed by the interface data testing device provided by the embodiment of the invention, and the device can be realized in a software and/or hardware mode and is configured in a terminal, such as a computer, a mobile phone or a tablet personal computer, and an intelligent sound box.
The interface testing method in the embodiment of the invention has the precondition that the codes of the multi-tenant service programs in the mixed cloud multi-environment are consistent, and the database structures are consistent. The mixed cloud has multiple environments and multiple tenants, one environment is selected on the premise that the codes of the multi-tenant service programs of the mixed cloud are consistent, the database structure is consistent, the use case writing is carried out on one tenant, the interfaces of the multiple environments and the multiple tenants are tested by the set, and only the URL, the tenant user name and the tenant password are required to be changed.
As shown in fig. 1, the method specifically includes the following operations:
s101, presetting basic data, namely constructing a fixed list of unified program codes and a database, performing case operation of a single environment and a user to form first preset data, and presetting the basic data according to the first preset data and the fixed list;
in this step, more specifically:
selecting an environment, a tenant and a Web end for operation, and grabbing data presets to form use cases to obtain first preset data;
taking the use case as a base class packet, presetting all data for packet grabbing operation, providing a list of all data, fixing each data item in the data, and obtaining a fixed list;
and presetting basic data of all data according to the first preset data and the fixed list so as to newly add data when the preset data operation is performed, and decoupling and releasing the interface dependent data.
As shown in fig. 2, the mixed cloud environment is composed of multiple tenants, the selected environment 1, the tenant 1 and the web terminal operate, the data presets are subjected to packet capturing operation to form a use case, as a base class packet, all the data presets are subjected to packet capturing operation to ensure that all the data are newly added data, all the data are required to be provided with a list, each data item in the data is fixed, the consistency is ensured, all the other tenants are subjected to the process of maintaining the consistency, thus the newly added data are ensured to be decoupled and released when the repeated execution is performed before the service flow interface, and the consistency of the data presets can be maintained when the multiple tenants are in the multiple environment.
S102, data query, namely, constructing a fixed rule, querying first preset data according to the fixed rule to obtain test data required by an interface, performing parameterization on the test data and transmitting the parameterized test data to the interface;
in this step, the fixed rules include fixed data, fixed formats, and fixed data items. As shown in fig. 3, according to the fixed format, the fixed data item performs preset data query, so as to ensure that the queried data is the data newly added in the last step, and the query is performed according to the specific business key data, where note that the queried data must be unique. The query results are well analyzed, which are needed by the service interface. And when multiple environments and multiple tenants exist, the consistency of query after data presetting is ensured.
S103, a service program request is specifically that request data at an interface is received, parameter values are returned to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains required parameterized test data, and the data are reassembled through the interface;
in this step, the specific process of obtaining the request data is that the interface dynamically obtains the data packet, obtains the parameterized test data and assembles the service, and further includes: when the repeated execution is performed, the data of the last step is dynamically acquired, as shown in fig. 4, the service operation is performed, the data packet is grabbed, the current fixed data is dynamically acquired, the data queried in the last step is acquired, the service assembly is performed, the data of the last step is dynamically acquired from time to time when the repeated execution is ensured, thus, when multiple tenants are in multiple environments, the re-execution forms a closed loop, the data is newly added, the data is queried, and the service interface acquires the query data to request.
S104, data are cleared, and newly-added data when the basic data are preset are deleted.
In this step, newly added data obtained in the basic data presetting is dynamically obtained, the returned data is subjected to context transfer, the fixed basic data is deleted, as shown in fig. 5, a deletion operation is performed, which basic data is not fixedly deleted after the packet is grasped, the newly added data is changed into the dynamic obtaining, and the data returned after the newly added data is subjected to context transfer in the first step, and the fixed basic data is deleted.
When the method provided by the embodiment is applied, the rule of case writing is adopted according to the method:
first: all data are fixed and preset according to the list which is planned in advance, all tenants in all environments carry out the business process according to the fixed and preset list, and the mutual exclusion principle of the business process needs to be ensured to be followed.
Second,: and inquiring the first preset data, wherein the inquiring conditions are used for inquiring according to fixed rules, and inquiring the fixed data, the fixed format and the fixed data items.
Third,: all the queried data are parameterized, associated with context, combined type, random number type, time stamp type and the like, so that the data parameters required by the service are ensured to be acquired and transmitted to the service interface.
Fourth,: and the service interface receives the parameter transmission, and assembles the parameter transmission according to the required data parameters to be acquired by the specific interface.
Fifth,: and after the service interface is reassembled, service request is carried out, and the return value is checked.
Sixth: all the newly added data are deleted, so that the repeated execution of the use cases is ensured, and garbage data are not generated.
Example two
Fig. 6 is a block diagram of an interface data testing device according to a second embodiment of the present invention. The device is used for executing the interface data testing method provided by any embodiment. The device comprises:
the basic data presetting module 11 is used for constructing a fixed list of unified program codes and databases, performing use case operation of a single environment and a user to form first preset data, and presetting basic data according to the first preset data and the fixed list;
the data query module 12 is configured to construct a fixed rule, query the first preset data according to the fixed rule, obtain test data required by the interface, set parameters of the test data, and transmit the test data to the interface;
the service program request module 13 is configured to receive request data at the interface, and return a parameter value to the interface for verification, where the request data is data obtained by reassembling the interface after the interface obtains the required parameterized test data;
the data clearing module 14 is configured to delete the newly added data when the basic data is preset.
The interface data testing device provided by the embodiment of the invention can execute the interface data testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
As shown in fig. 7, the terminal 2 may be a computing device such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The terminal 2 may include, but is not limited to, a processor 20, a memory 21. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the terminal device 2 and does not constitute a limitation of the terminal device 2, and may include more or less components than those illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 20 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 21 may be an internal storage unit of the terminal 2, such as a hard disk or a memory of the terminal 2. The memory 21 may be an external storage device of the terminal 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal 2. Further, the memory 21 may also include both an internal storage unit and an external storage device of the terminal 2. The memory 21 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 21 may also be used for temporarily storing data that has been output or is to be output.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units is illustrated, and in practical application, the above-mentioned functional allocation may be performed by different functional units, that is, the internal structure of the terminal device is divided into different functional units, so as to perform all or part of the above-mentioned functions. The functional units in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present application. The specific working process of the units in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm 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 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 invention.
In the embodiments provided in the present invention, it should be understood that the disclosed terminal device and method may be implemented in other manners. For example, the above-described terminal device embodiments are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Example IV
The fourth embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program implements the steps of the interface testing method according to any embodiment of the present invention when the computer program is executed by a processor.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the interface data testing method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (4)

1. An interface data testing method, comprising:
the method comprises the steps of presetting basic data, namely, constructing a fixed list of unified program codes and a database, performing use case operation of a single environment and a user to form first preset data, and presetting the basic data according to the first preset data and the fixed list;
the data query is specifically to construct a fixed rule, query first preset data according to the fixed rule to obtain test data required by the interface, and parameterize the test data and transmit the test data to the interface;
the service program request is specifically that request data at the interface is received, parameter values are returned to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains the needed parameterized test data, and the data are reassembled through the interface;
data clearing, namely deleting newly-added data when basic data are preset; the fixed rules comprise fixed data, fixed formats and fixed data items; the process of the basic data presetting step is more specifically as follows:
selecting an environment, a tenant and a Web end for operation, and grabbing data presets to form use cases to obtain first preset data;
taking the use case as a base class packet, presetting all data for packet grabbing operation, providing a list of all data, fixing each data item in the data, and obtaining a fixed list;
presetting basic data of all data according to the first preset data and the fixed list, so as to newly add data when the preset data operation is performed, and decoupling and releasing interface dependent data; the specific process of obtaining the request data is that an interface dynamically obtains a data packet to obtain parameterized test data and performs service assembly; the obtaining of the request data further includes: dynamically acquiring the data of the previous step when the repeated execution is performed; and when the data clearing step is carried out, the newly added data obtained in the basic data presetting is dynamically obtained, the returned data is subjected to context transmission, and the fixed basic data is deleted.
2. An interface data testing apparatus implementing the interface data testing method according to claim 1, comprising:
the base data presetting module is used for constructing a fixed list of unified program codes and a database, carrying out use case operation of a single environment and a user to form first preset data, and presetting the base data according to the first preset data and the fixed list;
the data query module is used for constructing a fixed rule, querying first preset data according to the fixed rule to obtain test data required by the interface, performing parameterization on the test data and transmitting the parameterized test data to the interface;
the service program request module is used for receiving request data at the interface, and returning parameter values to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains the needed parameterized test data and are reassembled through the interface;
and the data clearing module is used for deleting the newly-added data when the basic data is preset.
3. A terminal device implementing the interface data testing method of claim 1, wherein the terminal device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
the method comprises the steps of presetting basic data, namely, constructing a fixed list of unified program codes and a database, performing use case operation of a single environment and a user to form first preset data, and presetting the basic data according to the first preset data and the fixed list;
the data query is specifically to construct a fixed rule, query first preset data according to the fixed rule to obtain test data required by the interface, and parameterize the test data and transmit the test data to the interface;
the service program request is specifically that request data at the interface is received, parameter values are returned to the interface for verification, wherein the request data are data which are obtained by the interface after the interface obtains the needed parameterized test data, and the data are reassembled through the interface;
and (3) data clearing and deleting newly-added data when the basic data are preset.
4. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed is adapted to carry out the steps of the interface data testing method according to claim 1.
CN201911113903.XA 2019-11-14 2019-11-14 Interface data testing method, device, terminal and storage medium Active CN111045928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911113903.XA CN111045928B (en) 2019-11-14 2019-11-14 Interface data testing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911113903.XA CN111045928B (en) 2019-11-14 2019-11-14 Interface data testing method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111045928A CN111045928A (en) 2020-04-21
CN111045928B true CN111045928B (en) 2024-03-26

Family

ID=70232016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911113903.XA Active CN111045928B (en) 2019-11-14 2019-11-14 Interface data testing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111045928B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783791A (en) * 2021-02-08 2021-05-11 中国工商银行股份有限公司 Interface test case generation method and device
CN114461516B (en) * 2021-12-23 2024-03-29 连邦网络科技服务南通有限公司 Software graphic interface test method capable of automatically deleting data and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183658A (en) * 2015-10-12 2015-12-23 用友网络科技股份有限公司 Software code testing method and device
CN107729243A (en) * 2017-10-12 2018-02-23 上海携程金融信息服务有限公司 API automated testing method, system, equipment and storage medium
CN107832230A (en) * 2017-12-04 2018-03-23 中国工商银行股份有限公司 Method of testing, equipment and system based on data tuning
US10127145B1 (en) * 2016-03-22 2018-11-13 EMC IP Holding Company LLC Automated testing system and method
CN109271326A (en) * 2018-11-28 2019-01-25 优刻得科技股份有限公司 Test method and its device, the equipment and storage medium of cloud database
CN110232016A (en) * 2019-03-08 2019-09-13 上海蔚来汽车有限公司 Interface testing case generation method, device and controller and medium
CN110287093A (en) * 2019-05-20 2019-09-27 平安普惠企业管理有限公司 Mobile terminal, data-interface test method and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446872B (en) * 2014-08-29 2018-04-10 国际商业机器公司 Test manager, test agent device and the method for Mobile solution

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183658A (en) * 2015-10-12 2015-12-23 用友网络科技股份有限公司 Software code testing method and device
US10127145B1 (en) * 2016-03-22 2018-11-13 EMC IP Holding Company LLC Automated testing system and method
CN107729243A (en) * 2017-10-12 2018-02-23 上海携程金融信息服务有限公司 API automated testing method, system, equipment and storage medium
CN107832230A (en) * 2017-12-04 2018-03-23 中国工商银行股份有限公司 Method of testing, equipment and system based on data tuning
CN109271326A (en) * 2018-11-28 2019-01-25 优刻得科技股份有限公司 Test method and its device, the equipment and storage medium of cloud database
CN110232016A (en) * 2019-03-08 2019-09-13 上海蔚来汽车有限公司 Interface testing case generation method, device and controller and medium
CN110287093A (en) * 2019-05-20 2019-09-27 平安普惠企业管理有限公司 Mobile terminal, data-interface test method and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Testing-as-a-Service Approach for Cloud Applications;Gleb Radchenko等;《2016 IEEE/ACM 9th International Conference on Utility and Cloud Computing (UCC)》;20161109;第1-2页 *
基于云的接口自动化测试平台的设计与实现;徐旼之;《中国优秀硕士学位论文全文数据库信息科技辑》;20170315;I138-2518 *

Also Published As

Publication number Publication date
CN111045928A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
US20070011291A1 (en) Grid automation bus to integrate management frameworks for dynamic grid management
CN112925647A (en) Cloud edge coordination system, and control method and device of cluster resources
CN110740057B (en) Service deployment method and block chain platform
CN109906597A (en) To with data set that restricted data set and untethered system are stored and fetched from cloud network
CN111045928B (en) Interface data testing method, device, terminal and storage medium
US11665247B2 (en) Resource discovery agent computing device, software application, and method
US20220179711A1 (en) Method For Platform-Based Scheduling Of Job Flow
CN112017007A (en) User behavior data processing method and device, computer equipment and storage medium
CN113190513A (en) Data integration system and method
CN111221511A (en) Development system of plug-in type micro-service interface
US20200302350A1 (en) Natural language processing based business domain modeling
CN112363997B (en) Data version management method, device and storage medium
CN109299173A (en) Data transmission method, device and storage medium
CN108989406A (en) Software shelf realization method and system based on micro services
WO2019043462A1 (en) Systems and methods for creating automated interface transmission between heterogeneous systems in an enterprise ecosystem
CN111291045A (en) Service isolation data transmission method and device, computer equipment and storage medium
US11113339B2 (en) System and method for federated content management using a federated library and federated metadata propagation
CN112448909A (en) Electronic lock management method, device, system and storage medium
CN115485677A (en) Secure data replication in a distributed data storage environment
CN112650598A (en) Multi-application access method for workflow system
KR20110070767A (en) Remote forensics system based on network
CN112667441A (en) Service module scheduling method, system and storage medium based on fault-tolerant function
CN113641966B (en) Application integration method, system, equipment and medium
CN117472617B (en) Message processing method and device, electronic equipment and readable storage medium
CN116804949B (en) Block chain-based data processing method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant