CN109522211B - Interface parameter transmission method and device, electronic equipment and storage medium - Google Patents
Interface parameter transmission method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109522211B CN109522211B CN201811152511.XA CN201811152511A CN109522211B CN 109522211 B CN109522211 B CN 109522211B CN 201811152511 A CN201811152511 A CN 201811152511A CN 109522211 B CN109522211 B CN 109522211B
- Authority
- CN
- China
- Prior art keywords
- interface
- attribute data
- parameters
- service attribute
- parameter
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000005540 biological transmission Effects 0.000 title claims abstract description 10
- 238000012546 transfer Methods 0.000 claims abstract description 32
- 230000014509 gene expression Effects 0.000 claims description 16
- 238000000605 extraction Methods 0.000 claims description 7
- 238000002716 delivery method Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 abstract description 8
- 238000012360 testing method Methods 0.000 abstract description 6
- 230000008569 process Effects 0.000 abstract description 4
- 238000004590 computer program Methods 0.000 description 16
- 239000000284 extract Substances 0.000 description 15
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 238000013473 artificial intelligence Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 235000019800 disodium phosphate Nutrition 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000006386 memory function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal 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)
- Computer And Data Communications (AREA)
Abstract
The invention provides an interface parameter transfer method, an interface parameter transfer device, electronic equipment and a storage medium. The interface parameter transfer method comprises the following steps: when a parameter transfer instruction is received, acquiring first service attribute data of a first interface; extracting parameters of the first interface according to the first service attribute data; saving parameters of the first interface; after the parameters of the first interface are stored, second business attribute data of a second interface are obtained; comparing the second service attribute data with the first service attribute data; when the second service attribute data is consistent with the first service attribute data, retrieving the stored parameters; and transmitting the saved parameters to the second interface. The invention can realize the mutual utilization of parameters among different interfaces in the interface test process, avoid the inconvenience of repeated filling of the parameters to the operation of the user and realize the automatic processing of parameter transmission.
Description
Technical Field
The present invention relates to the field of interface testing technologies, and in particular, to a method and apparatus for transmitting interface parameters, an electronic device, and a storage medium.
Background
In the prior art, when the interface test is performed, related parameters of the interface test are usually required to be manually filled, and repeated utilization of the parameters cannot be realized, that is, for the same parameters, the test personnel also need to be repeatedly filled, so that not only is the redundant time consumed, but also a large amount of labor cost is consumed, and inconvenience is caused to the test personnel.
Disclosure of Invention
In view of the foregoing, it is necessary to provide an interface parameter transferring method, an apparatus, an electronic device, and a storage medium, which can realize the mutual utilization of parameters between different interfaces, and avoid the inconvenience of repeated parameter filling to the user, thereby meeting the requirements of the artificial intelligence field and realizing the automatic processing of parameter transfer.
An interface parameter delivery method, the method comprising:
when a parameter transfer instruction is received, acquiring first service attribute data of a first interface;
extracting parameters of the first interface according to the first service attribute data;
saving parameters of the first interface;
after the parameters of the first interface are stored, second business attribute data of a second interface are obtained;
comparing the second service attribute data with the first service attribute data;
When the second service attribute data is consistent with the first service attribute data, retrieving the stored parameters;
and transmitting the saved parameters to the second interface.
According to a preferred embodiment of the present invention, the first service attribute data includes a service type provided by the first interface, and an operating environment of the first interface; the second service attribute data includes a service type provided by the second interface and an operating environment of the second interface.
According to a preferred embodiment of the present invention, the extracting parameters of the first interface according to the first service attribute data includes:
acquiring an index expression according to the first service attribute data by adopting a JsonPath rule;
and extracting parameters of the first interface according to the index expression.
According to a preferred embodiment of the present invention, the saving the parameters of the first interface includes any one of the following ways:
saving the parameters of the first interface to a memory of the electronic equipment; or alternatively
And saving the parameters of the first interface to a specified database.
According to a preferred embodiment of the present invention, after saving the parameters of the first interface, the method further comprises:
And naming parameters of the first interface according to the first service attribute data.
According to a preferred embodiment of the present invention, after saving the parameters of the first interface, the method further comprises:
acquiring a mark corresponding to the first service attribute data;
adding the tag to a parameter of the first interface.
According to a preferred embodiment of the present invention, when the second service attribute data is consistent with the first service attribute data, the retrieving the saved parameters includes one or more of the following combinations:
retrieving the stored parameters according to the first service attribute data; and/or
Acquiring the name of the parameter of the first interface according to the first service attribute data, and calling the stored parameter according to the name; and/or
And acquiring the marks of the parameters of the first interface according to the first service attribute data, and calling the stored parameters according to the marks.
An interface parameter transfer apparatus, the apparatus comprising:
the acquisition unit is used for acquiring first service attribute data of the first interface when receiving the parameter transfer instruction;
the extraction unit is used for extracting parameters of the first interface according to the first service attribute data;
A storage unit, configured to store parameters of the first interface;
the obtaining unit is further configured to obtain second service attribute data of a second interface after the parameters of the first interface are saved;
the comparison unit is used for comparing the second service attribute data with the first service attribute data;
the calling unit is used for calling the stored parameters when the second service attribute data are consistent with the first service attribute data;
and the transmission unit is used for transmitting the saved parameters to the second interface.
According to a preferred embodiment of the present invention, the first service attribute data includes a service type provided by the first interface, and an operating environment of the first interface; the second service attribute data includes a service type provided by the second interface and an operating environment of the second interface.
According to a preferred embodiment of the invention, the extraction unit is specifically adapted to:
acquiring an index expression according to the first service attribute data by adopting a JsonPath rule;
and extracting parameters of the first interface according to the index expression.
According to a preferred embodiment of the present invention, the saving of the parameter of the first interface by the saving unit includes any one of the following ways:
Saving the parameters of the first interface to a memory of the electronic equipment; or alternatively
And saving the parameters of the first interface to a specified database.
According to a preferred embodiment of the invention, the device further comprises:
and the naming unit is used for naming the parameters of the first interface according to the first service attribute data after the parameters of the first interface are stored.
According to a preferred embodiment of the present invention, the obtaining unit is further configured to obtain a flag corresponding to the first service attribute data after saving the parameter of the first interface;
the apparatus further comprises:
and the adding unit is used for adding the mark to the parameter of the first interface.
According to a preferred embodiment of the present invention, when the second service attribute data is consistent with the first service attribute data, the retrieving unit retrieves the saved parameters includes one or more of the following combinations:
retrieving the stored parameters according to the first service attribute data; and/or
Acquiring the name of the parameter of the first interface according to the first service attribute data, and calling the stored parameter according to the name; and/or
And acquiring the marks of the parameters of the first interface according to the first service attribute data, and calling the stored parameters according to the marks.
An electronic device, the electronic device comprising:
a memory storing at least one instruction; and
And the processor executes the instructions stored in the memory to realize the interface parameter transfer method.
A computer-readable storage medium having stored therein at least one instruction for execution by a processor in an electronic device to implement the interface parameter delivery method.
According to the technical scheme, the parameters of the first interface can be extracted in a targeted manner according to the first service attribute data, the parameters of the first interface are stored, the retrieval and the utilization are convenient, the second service attribute data and the first service attribute data are further compared, when the second service attribute data are consistent with the first service attribute data, the stored parameters are retrieved, the phenomenon of retrieval errors is avoided, the parameters are further transferred to the second interface for the second interface to directly utilize, the mutual utilization of the parameters among different interfaces is realized, the inconvenience of repeated filling of the parameters to a user is avoided, the requirements of the artificial intelligence field are met, the automatic processing of parameter transfer is realized, the operation efficiency is improved, and better experience is brought to the user.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the interface parameter transfer method of the present invention.
FIG. 2 is a functional block diagram of a preferred embodiment of the interface parameter transferring apparatus of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the present invention for implementing the interface parameter transfer method.
Description of the main reference signs
Electronic equipment | 1 |
Memory device | 12 |
Processor and method for controlling the same | 13 |
Interface parameter transmission device | 11 |
Acquisition unit | 110 |
Extraction unit | 111 |
Storage unit | 112 |
Contrast unit | 113 |
Calling unit | 114 |
Transfer unit | 115 |
Naming unit | 116 |
Adding unit | 117 |
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a preferred embodiment of the interface parameter transfer method of the present invention. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
The interface parameter transferring method is applied to one or more electronic devices, wherein the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware of the electronic devices comprises, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (Field-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices and the like.
The electronic device may be any electronic product that can interact with a user in a human-computer manner, such as a personal computer, tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), game console, interactive internet protocol television (Internet Protocol Television, IPTV), smart wearable device, etc.
The electronic device may also include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group composed of a plurality of network servers, or a Cloud based Cloud Computing (Cloud Computing) composed of a large number of hosts or network servers.
The network in which the electronic device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
And S10, when a parameter transfer instruction is received, the electronic equipment acquires first service attribute data of the first interface.
In at least one embodiment of the present invention, in order to implement a reference to the functionality of a given operation in software (e.g., login, link to a given web page, etc.), different interfaces are required to support, and typically, when an interface is successfully invoked, its parameters are not retained for subsequent use. That is, when the electronic device is to call the next interface, parameters need to be refilled, and repeated operations cause inconvenience to the user.
In at least one embodiment of the present invention, in order to achieve the mutual utilization of parameters between interfaces, avoid operational inconvenience caused by repeated parameter filling to a user, and when the electronic device receives a parameter transfer instruction, acquire the first service attribute data of the first interface.
In particular, the first interface may comprise an interface that the electronic device successfully invokes, that is to say that the parameters of the first interface have proven to be available and correct, so that the parameters of the first interface are available for use by other interfaces.
For example: the first interface may be a successfully invoked login interface or the like.
Further, the electronic device may obtain the first service attribute data from the corresponding database, or the electronic device may directly read the first service attribute data from the data of the first interface, which is not limited in the present invention.
Preferably, the first service attribute data includes a service type provided by the first interface and an operating environment of the first interface.
For example: and the electronic equipment acquires that the service type provided by one interface is login and the running environment is in one piece of software, and the electronic equipment determines that the first business attribute data is login link.
It can be understood that if the electronic device uses the parameters of the first interface for other interfaces, the electronic device first ensures that other interfaces and the first interface operate in the same operating environment, and the service types provided by the other interfaces and the first interface are consistent, so that the electronic device obtains the first service attribute data of the first interface, and is convenient for determining whether the second interface can utilize the parameters of the first interface according to the first service attribute data, and extracting the parameters according to the first service attribute data.
S11, the electronic equipment extracts parameters of the first interface according to the first service attribute data.
In at least one embodiment of the invention, the parameters of the first interface are determined from the first service attribute data. For example: when the electronic device logs in by calling the first interface, parameters of the first interface may include a user name, a password, and the like.
Preferably, the extracting, by the electronic device, the parameter of the first interface according to the first service attribute data includes:
the electronic equipment acquires an index expression according to the first service attribute data by adopting a JsonPath (JavaScript Object Notation Path) rule, and extracts the parameters of the first interface according to the index expression.
For example: after the electronic device obtains the first service attribute data, it determines that the first service attribute is a login link, and the electronic device obtains index expressions of Name () and Password () by adopting a JsonPath rule, so that the electronic device may obtain corresponding sentences of Name (Tom) and Password (123456) according to the index expressions of Name () and Password (), that is, the parameters extracted by the electronic device to the first interface are Tom and 123456.
In at least one embodiment of the present invention, JSON (JavaScript Object Notation) is a lightweight data exchange format that is both easy to read and write, and convenient for the machine to parse and generate. The JSON is suitable for scenes for data interaction, such as data interaction between a website foreground and a website background.
Further, the JSON path is an information extraction class library, specifically, the JSON path is a tool for extracting specified information from JSON documents, and provides multiple language implementation versions, including: javaScript, python, PHP, java, etc.
Of course, in other embodiments, the electronic device may extract the parameters of the first interface in other manners, which is not limited by the present invention.
Through the embodiment, the electronic device can extract the parameters of the first interface, so that the parameters of the first interface can be conveniently applied to other interfaces in the follow-up process.
S12, the electronic equipment stores parameters of the first interface.
In at least one embodiment of the present invention, the electronic device saves the parameters of the first interface for subsequent retrieval and utilization by other interfaces.
Preferably, the electronic device stores parameters of the first interface, including, but not limited to, any one of the following ways:
(1) And the electronic equipment stores the parameters of the first interface into a memory of the electronic equipment.
For example: after the electronic device extracts the parameters Name Tom and the Password 123456 of the first interface, the electronic device directly stores the parameters Name Tom and the Password 123456 of the first interface in the memory of the electronic device.
It can be understood that the storage mode does not need to be connected with other databases, so that the operation is more convenient, and the requirement of a user on parameter storage can be met.
(2) And the electronic equipment stores the parameters of the first interface into a specified database.
For example: after the electronic device extracts the parameters Name Tom and the Password 123456 of the first interface, the electronic device stores the parameters Name Tom and the Password 123456 of the first interface in a designated database communicated with the electronic device.
It will be appreciated that since the specified database is an external database, the operating speed of the electronic device will not be affected no matter how large the storage amount in the specified database is, that is, if the electronic device stores the parameters of the first interface to the specified database, the performance of the electronic device will not be affected, but will be slightly slower in the reading speed than in the above-described mode (1).
In at least one embodiment of the present invention, the manner in which the electronic device stores the parameters of the first interface may be determined according to the actual situation. For example: when the electronic device is more required to have a fast reading speed, the mode (2) is adopted, and when the electronic device is more required to have a fast running speed, the mode (1) is adopted, and the invention is not limited.
In at least one embodiment of the present invention, after the electronic device stores the parameters of the first interface, the parameters of the first interface may be named according to the first service attribute data, so as to store the parameters of the first interface more orderly, and meanwhile, facilitate the user's viewing and searching, and avoid the occurrence of the phenomenon of disorder, which will be described in detail later.
Preferably, after saving the parameters of the first interface, the method further comprises:
and the electronic equipment names the parameters of the first interface according to the first service attribute data.
For example: after the electronic device stores the parameters Name Tom and the Password 123456 of the first interface, the electronic device names the parameters Name Tom and the Password 123456 of the first interface as "login parameters" according to the first service attribute data as login links.
In at least one embodiment of the present invention, the electronic device may further tag the parameters of the first interface after saving the parameters of the first interface.
Preferably, after saving the parameters of the first interface, the method further comprises:
the electronic equipment acquires a mark corresponding to the first service attribute data and adds the mark to the parameter of the first interface.
For example: after the electronic device stores the parameters Name Tom and the Password 123456 of the first interface, the electronic device obtains the mark corresponding to the first service attribute data as "x", and adds the mark to the parameters Name Tom and the Password 123456 of the first interface.
Through the embodiment, the electronic device can store the parameters of the first interface and add the mark corresponding to the first service attribute data to the parameters of the first interface, so that the parameters of the first interface can be accurately called according to the mark.
S13, after the parameters of the first interface are stored, the electronic equipment acquires second service attribute data of a second interface.
In at least one embodiment of the present invention, in order to implement the mutual utilization of the parameters between interfaces, the electronic device further obtains the second service attribute data of the second interface, so as to avoid operational inconvenience caused by the repeated filling of the parameters to the user.
In particular, the second interface may comprise an interface to be invoked by the electronic device, that is to say that the parameters of the second interface will utilize the stored parameters of the first interface.
For example: the second interface may be a login interface to be called, etc.
Further, the electronic device may obtain the second service attribute data from the corresponding database, or the electronic device may directly read the second service attribute data from the data of the second interface, which is not limited in the present invention.
In at least one embodiment of the present invention, the second service attribute data includes a service type provided by the second interface, and an operating environment of the second interface.
For example: and if the electronic equipment acquires that the service type provided by one interface is linked to the appointed webpage and the running environment is in software A, the electronic equipment determines that the second service attribute is the linked webpage.
It can be understood that if the electronic device uses the parameters of the first interface for the second interface, the electronic device first ensures that the second interface and the first interface operate in the same operating environment, and the service types provided by the second interface and the first interface are consistent, so that the electronic device obtains second service attribute data of the second interface, so as to facilitate a subsequent determination, according to the first service attribute data, whether the second interface can utilize the parameters of the first interface.
S14, the electronic equipment compares the second service attribute data with the first service attribute data.
In at least one embodiment of the present invention, the electronic device compares the second service attribute data with the first service attribute data, so as to determine whether to apply the parameter of the first interface to the second interface according to the comparison result.
Specifically, the electronic device may compare the data content included in the second service attribute data with the data content included in the first service attribute data one by one, so as to determine whether the parameter of the first interface is adapted to the second interface.
S15, when the second service attribute data is consistent with the first service attribute data, the electronic equipment invokes the stored parameters.
In at least one embodiment of the present invention, when the second service attribute data is inconsistent with the first service attribute data, the parameter indicating the first interface is not adapted to the second interface, and therefore, the electronic device does not retrieve the saved parameter.
And when the second service attribute data is consistent with the first service attribute data, the parameter indicating the first interface is adapted to the second interface, so that the electronic device will retrieve the saved parameter, and a specific retrieving manner will be described later.
Preferably, when the second service attribute data is consistent with the first service attribute data, the electronic device invokes stored parameters including, but not limited to, one or more of the following combinations:
(1) And the electronic equipment invokes the stored parameters according to the first service attribute data.
It can be appreciated that, because the parameter corresponds to the first service attribute data, the electronic device may retrieve the corresponding saved parameter according to the first service attribute data.
(2) And the electronic equipment acquires the name of the parameter of the first interface according to the first service attribute data, and retrieves the saved parameter according to the name.
It can be understood that, because the names of the parameters of the first interface are named according to the first service attribute data, the electronic device can accurately call the parameters with the names according to the names.
(3) And the electronic equipment acquires the marks of the parameters of the first interface according to the first service attribute data, and retrieves the stored parameters according to the marks.
It can be appreciated that, because the marking of the parameter of the first interface is added according to the first service attribute data, the electronic device can accurately locate the parameter according to the marking and further retrieve the saved parameter.
Through the implementation mode, the electronic equipment can complete the parameter adjustment, and errors can be effectively avoided because the operation process is targeted.
S16, the electronic equipment transmits the saved parameters to the second interface.
In at least one embodiment of the present invention, because the parameters of the first interface are adapted to the second interface, the electronic device may transmit the stored parameters to the second interface for the second interface to directly use, so that the occurrence of a higher error rate in manual operation can be avoided, the labor cost can be reduced, the operation efficiency can be improved, and better experience can be brought to the user.
In summary, the method and the device can extract the parameters of the first interface in a targeted manner according to the first service attribute data, store the parameters of the first interface, facilitate the retrieval and the utilization, further compare the second service attribute data with the first service attribute data, retrieve the stored parameters when the second service attribute data is consistent with the first service attribute data, avoid the phenomenon of retrieval errors, and then transmit the parameters to the second interface for the second interface to directly utilize, realize the mutual utilization of the parameters between different interfaces, avoid the inconvenience of repeated filling of the parameters to the user, thereby more meeting the requirements of the artificial intelligence field, realizing the automatic processing of parameter transmission, improving the operation efficiency and bringing better experience to the user.
FIG. 2 is a functional block diagram of a preferred embodiment of the interface parameter transferring apparatus of the present invention. The interface parameter transferring device 11 includes an obtaining unit 110, an extracting unit 111, a saving unit 112, a comparing unit 113, a retrieving unit 114, a transferring unit 115, a naming unit 116, and an adding unit 117. The module/unit referred to in the present invention refers to a series of computer program segments capable of being executed by the processor 13 and of performing a fixed function, which are stored in the memory 12. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
Upon receiving the parameter transfer instruction, the acquisition unit 110 acquires first service attribute data of the first interface.
In at least one embodiment of the present invention, in order to implement a reference to the functionality of a given operation in software (e.g., login, link to a given web page, etc.), different interfaces are required to support, and typically, when an interface is successfully invoked, its parameters are not retained for subsequent use. That is, when the electronic device is to call the next interface, parameters need to be refilled, and repeated operations cause inconvenience to the user.
In at least one embodiment of the present invention, in order to achieve the mutual utilization of the parameters between interfaces, so as to avoid the operational inconvenience caused by the repeated filling of the parameters to the user, the obtaining unit 110 obtains the first service attribute data of the first interface when receiving the parameter transfer instruction.
In particular, the first interface may comprise an interface that the electronic device successfully invokes, that is to say that the parameters of the first interface have proven to be available and correct, so that the parameters of the first interface are available for use by other interfaces.
For example: the first interface may be a successfully invoked login interface or the like.
Further, the acquiring unit 110 may acquire the first service attribute data from the corresponding database, or the acquiring unit 110 may directly read the first service attribute data from the data of the first interface, which is not limited in the present invention.
Preferably, the first service attribute data includes a service type provided by the first interface and an operating environment of the first interface.
For example: the obtaining unit 110 obtains that the service type provided by one interface is login, and the running environment is in one software, and the obtaining unit 110 determines that the first service attribute data is a login link.
It may be understood that, if the acquiring unit 110 uses the parameters of the first interface for other interfaces, the acquiring unit 110 first ensures that other interfaces operate in the same operating environment as the first interface, and the service types provided by the other interfaces and the first interface are consistent, so that the acquiring unit 110 acquires the first service attribute data of the first interface, so as to facilitate the subsequent determination of whether the second interface can use the parameters of the first interface according to the first service attribute data, and also extract the parameters according to the first service attribute data.
The extracting unit 111 extracts parameters of the first interface according to the first service attribute data.
In at least one embodiment of the invention, the parameters of the first interface are determined from the first service attribute data. For example: when the electronic device logs in by calling the first interface, parameters of the first interface may include a user name, a password, and the like.
Preferably, the extracting unit 111 extracts parameters of the first interface according to the first service attribute data, including:
the extracting unit 111 obtains an index expression according to the first service attribute data by adopting a JsonPath rule, and the extracting unit 111 extracts parameters of the first interface according to the index expression.
For example: after the obtaining unit 110 obtains the first service attribute data, it determines that the first service attribute is a login link, the extracting unit 111 obtains index expressions Name () and Password () by adopting a JsonPath rule, and the extracting unit 111 may obtain corresponding sentences Name (Tom) and Password (123456) according to the index expressions Name () and Password (), that is, the parameters extracted by the extracting unit 111 to the first interface are Tom and 123456.
In at least one embodiment of the present invention, the JSON is a lightweight data exchange format that is both easy to read and write, and convenient for the machine to parse and generate. The JSON is suitable for scenes for data interaction, such as data interaction between a website foreground and a website background.
Further, the JSON path is an information extraction class library, specifically, the JSON path is a tool for extracting specified information from JSON documents, and provides multiple language implementation versions, including: javaScript, python, PHP, java, etc.
Of course, in other embodiments, the extracting unit 111 may extract the parameters of the first interface in other manners, which is not limited by the present invention.
Through the above embodiment, the extracting unit 111 may extract the parameters of the first interface, so as to facilitate the subsequent application of the parameters of the first interface to other interfaces.
The saving unit 112 saves the parameters of the first interface.
In at least one embodiment of the present invention, the saving unit 112 saves the parameters of the first interface for later retrieval and utilization by other interfaces.
Preferably, the saving unit 112 saves parameters of the first interface, including, but not limited to, any one of the following ways:
(1) The storage unit 112 stores the parameters of the first interface in the memory of the electronic device.
For example: after the extracting unit 111 extracts the parameters Name Tom and the Password 123456 of the first interface, the saving unit 112 directly saves the parameters Name Tom and the Password 123456 of the first interface in the memory of the electronic device.
It can be understood that the storage mode does not need to be connected with other databases, so that the operation is more convenient, and the requirement of a user on parameter storage can be met.
(2) The saving unit 112 saves the parameters of the first interface to a specified database.
For example: after extracting the parameters Name Tom and the Password 123456 of the first interface, the extracting unit 111 stores the parameters Name Tom and the Password 123456 of the first interface in a specified database in communication with the electronic device.
It will be appreciated that since the specified database is an external database, the operation speed of the electronic device will not be affected no matter how large the storage amount in the specified database is, that is, if the saving unit 112 stores the parameters of the first interface to the specified database, the performance of the electronic device will not be affected, but will be slightly slower in the reading speed than in the above-described (1) th mode.
In at least one embodiment of the present invention, the manner in which the saving unit 112 saves the parameters of the first interface may be determined according to the actual situation. For example: when the electronic device further needs to have a fast reading speed, the storage unit 112 adopts the above (2) mode, and when the electronic device further needs to have a fast operation speed, the storage unit 112 adopts the above (1) mode, which is not limited by the present invention.
In at least one embodiment of the present invention, after the storage unit 112 stores the parameters of the first interface, the parameters of the first interface may be named according to the first service attribute data, so as to store the parameters of the first interface more orderly, and meanwhile, facilitate the user's checking and searching, and avoid the occurrence of the irregular phenomenon, which will be described in detail later.
Preferably, after the saving unit 112 saves the parameters of the first interface, the method further includes:
naming unit 116 names parameters of the first interface according to the first service attribute data.
For example: after the saving unit 112 saves the parameters Name Tom and Password 123456 of the first interface, the naming unit 116 names the parameters Name Tom and Password 123456 of the first interface as "login parameters" according to the first service attribute data as login links.
In at least one embodiment of the present invention, the saving unit 112 may further flag the parameter of the first interface after saving the parameter of the first interface.
Preferably, after the saving unit 112 saves the parameters of the first interface, the method further includes:
the acquiring unit 110 acquires a flag corresponding to the first service attribute data, and the adding unit 117 adds the flag to the parameter of the first interface.
For example: after the saving unit 112 saves the parameters Name Tom and Password 123456 of the first interface, the adding unit 117 adds the flag "x" to the parameters Name Tom and Password 123456 of the first interface when the flag corresponding to the first service attribute data is obtained as "x".
Through the embodiment, the electronic device can store the parameters of the first interface and add the mark corresponding to the first service attribute data to the parameters of the first interface, so that the parameters of the first interface can be accurately called according to the mark.
After saving the parameters of the first interface, the obtaining unit 110 obtains second service attribute data of the second interface.
In at least one embodiment of the present invention, in order to implement the inter-interface parameter mutual utilization, to avoid the operational inconvenience caused by the repeated parameter filling to the user, the obtaining unit 110 further obtains the second service attribute data of the second interface.
In particular, the second interface may comprise an interface to be invoked by the electronic device, that is to say that the parameters of the second interface will utilize the stored parameters of the first interface.
For example: the second interface may be a login interface to be called, etc.
Further, the acquiring unit 110 may acquire the second service attribute data from the corresponding database, or the acquiring unit 110 may directly read the second service attribute data from the data of the second interface, which is not limited in the present invention.
In at least one embodiment of the present invention, the second service attribute data includes a service type provided by the second interface, and an operating environment of the second interface.
For example: the obtaining unit 110 obtains that the service type provided by one interface is linked to a specified web page, and the running environment is in software a, and the obtaining unit 110 determines that the second service attribute is a linked web page.
It may be understood that, if the acquiring unit 110 uses the parameters of the first interface for the second interface, the acquiring unit 110 first ensures that the second interface and the first interface operate in the same operating environment, and the service types provided by the second interface and the first interface are consistent, so that the acquiring unit 110 acquires the second service attribute data of the second interface, so as to facilitate the subsequent determination, according to the first service attribute data, whether the second interface can utilize the parameters of the first interface.
The comparing unit 113 compares the second service attribute data with the first service attribute data.
In at least one embodiment of the present invention, the comparing unit 113 compares the second service attribute data with the first service attribute data, so as to determine whether to apply the parameter of the first interface to the second interface according to the comparison result.
Specifically, the comparing unit 113 may compare the data content included in the second service attribute data with the data content included in the first service attribute data one by one, so as to determine whether the parameter of the first interface is adapted to the second interface.
When the second service attribute data is consistent with the first service attribute data, the retrieving unit 114 retrieves the saved parameters.
In at least one embodiment of the present invention, when the second service attribute data is inconsistent with the first service attribute data, the parameter indicating the first interface is not adapted to the second interface, and therefore, the retrieving unit 114 does not retrieve the saved parameter.
And when the second service attribute data is consistent with the first service attribute data, it is indicated that the parameters of the first interface are adapted to the second interface, so that the retrieving unit 114 will retrieve the saved parameters, and a specific retrieving manner will be described later.
Preferably, when the second service attribute data is consistent with the first service attribute data, the retrieving unit 114 retrieves the saved parameters including, but not limited to, one or more of the following:
(1) The retrieving unit 114 retrieves the saved parameters according to the first service attribute data.
It may be appreciated that, since the parameter corresponds to the first service attribute data, the retrieving unit 114 may retrieve the corresponding saved parameter according to the first service attribute data.
(2) The retrieving unit 114 obtains the name of the parameter of the first interface according to the first service attribute data, and retrieves the saved parameter according to the name.
It may be appreciated that, since the names of the parameters of the first interface are named according to the first service attribute data, the retrieving unit 114 may accurately retrieve the parameters having the names according to the names.
(3) The retrieving unit 114 obtains a flag of the parameter of the first interface according to the first service attribute data, and retrieves the saved parameter according to the flag.
It will be appreciated that, since the flag of the parameter of the first interface is added according to the first service attribute data, the retrieving unit 114 may accurately locate the parameter according to the flag and further retrieve the saved parameter.
Through the above embodiment, the retrieving unit 114 may complete the parameter retrieving, and since the operation process is targeted, errors may be effectively avoided.
The transfer unit 115 transfers the saved parameters to the second interface.
In at least one embodiment of the present invention, because the parameters of the first interface are adapted to the second interface, the transfer unit 115 may transfer the stored parameters to the second interface for the second interface to directly use, so that the occurrence of a higher error rate in manual operation can be avoided, the labor cost can be reduced, the operation efficiency can be improved, and better experience can be brought to the user.
In summary, the method and the device can extract the parameters of the first interface in a targeted manner according to the first service attribute data, store the parameters of the first interface, facilitate the retrieval and the utilization, further compare the second service attribute data with the first service attribute data, retrieve the stored parameters when the second service attribute data is consistent with the first service attribute data, avoid the phenomenon of retrieval errors, and then transmit the parameters to the second interface for the second interface to directly utilize, realize the mutual utilization of the parameters between different interfaces, avoid the inconvenience of repeated filling of the parameters to the user, thereby more meeting the requirements of the artificial intelligence field, realizing the automatic processing of parameter transmission, improving the operation efficiency and bringing better experience to the user.
Fig. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the present invention for implementing the interface parameter transfer method.
The electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and its hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device, and the like.
The electronic device 1 may also be, but is not limited to, any electronic product that can interact with a user by means of a keyboard, a mouse, a remote control, a touch pad, or a voice control device, such as a personal computer, a tablet, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), a game console, an interactive internet protocol television (Internet Protocol Television, IPTV), a smart wearable device, etc.
The electronic device 1 may also be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc.
The network in which the electronic device 1 is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), etc.
In one embodiment of the invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and a computer program, such as a parameter transfer program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and may include more or less components than illustrated, or may combine certain components, or different components, e.g. the electronic device 1 may further include input-output devices, network access devices, buses, etc.
The processor 13 may be a central processing unit (Central Processing Unit, CPU), but may also be 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. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 13 is an operation core and a control center of the electronic device 1, connects various parts of the entire electronic device 1 using various interfaces and lines, and executes an operating system of the electronic device 1 and various installed applications, program codes, etc.
The processor 13 executes the operating system of the electronic device 1 and various types of applications installed. The processor 13 executes the application program to implement the steps in the above-described respective interface parameter transfer method embodiments, such as steps S10, S11, S12, S13, S14, S15, S16 shown in fig. 1.
Alternatively, the processor 13 may implement the functions of the modules/units in the above-described device embodiments when executing the computer program, for example: when a parameter transfer instruction is received, acquiring first service attribute data of a first interface; extracting parameters of the first interface according to the first service attribute data; saving parameters of the first interface; after the parameters of the first interface are stored, second business attribute data of a second interface are obtained; comparing the second service attribute data with the first service attribute data; when the second service attribute data is consistent with the first service attribute data, retrieving the stored parameters; and transmitting the saved parameters to the second interface.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules/units may be a series of instruction segments of a computer program capable of performing a specific function for describing the execution of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition unit 110, an extraction unit 111, a saving unit 112, a comparison unit 113, a retrieval unit 114, a transfer unit 115, a naming unit 116 and an adding unit 117.
The memory 12 may be used to store the computer program and/or module, and the processor 13 may implement various functions of the electronic device 1 by running or executing the computer program and/or module stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory 12 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the Memory 12 may be a circuit having a Memory function, such as a RAM (Random-Access Memory), a FIFO (First In First Out), etc., which is not in a physical form in the integrated circuit. Alternatively, the memory 12 may be a physical memory, such as a memory bank, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above.
Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
In connection with fig. 1, the memory 12 in the electronic device 1 stores a plurality of instructions to implement an interface parameter transfer method, the processor 13 being executable to implement: when a parameter transfer instruction is received, acquiring first service attribute data of a first interface; extracting parameters of the first interface according to the first service attribute data; saving parameters of the first interface; after the parameters of the first interface are stored, second business attribute data of a second interface are obtained; comparing the second service attribute data with the first service attribute data; when the second service attribute data is consistent with the first service attribute data, retrieving the stored parameters; and transmitting the saved parameters to the second interface.
According to a preferred embodiment of the present invention, the first service attribute data includes a service type provided by the first interface, and an operating environment of the first interface; the second service attribute data includes a service type provided by the second interface and an operating environment of the second interface.
According to a preferred embodiment of the invention, the processor 13 further executes a plurality of instructions including:
Acquiring an index expression according to the first service attribute data by adopting a JsonPath rule;
and extracting parameters of the first interface according to the index expression.
According to a preferred embodiment of the invention, the processor 13 further executes a plurality of instructions including:
saving the parameters of the first interface to a memory of the electronic equipment; or alternatively
And saving the parameters of the first interface to a specified database.
According to a preferred embodiment of the invention, the processor 13 further executes a plurality of instructions including:
and naming parameters of the first interface according to the first service attribute data.
According to a preferred embodiment of the invention, the processor 13 further executes a plurality of instructions including:
acquiring a mark corresponding to the first service attribute data;
adding the tag to a parameter of the first interface.
According to a preferred embodiment of the invention, the processor 13 further executes a plurality of instructions including:
retrieving the stored parameters according to the first service attribute data; and/or
Acquiring the name of the parameter of the first interface according to the first service attribute data, and calling the stored parameter according to the name; and/or
And acquiring the marks of the parameters of the first interface according to the first service attribute data, and calling the stored parameters according to the marks.
Specifically, the specific implementation method of the above instructions by the processor 13 may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module 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 can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.
Claims (9)
1. An interface parameter delivery method, the method comprising:
when a parameter transfer instruction is received, first business attribute data of a first interface are read from data of the first interface, wherein the first business attribute data comprise service types provided by the first interface and an operation environment of the first interface;
extracting parameters of the first interface according to the first service attribute data;
saving parameters of the first interface;
after the parameters of the first interface are stored, second business attribute data of a second interface are obtained, wherein the second business attribute data comprise the service type provided by the second interface and the running environment of the second interface;
comparing the second service attribute data with the first service attribute data;
when the second service attribute data is consistent with the first service attribute data, retrieving the stored parameters;
and transmitting the saved parameters to the second interface.
2. The interface parameter delivery method of claim 1, wherein the extracting parameters of the first interface according to the first service attribute data comprises:
Acquiring an index expression according to the first service attribute data by adopting a JsonPath rule;
and extracting parameters of the first interface according to the index expression.
3. The interface parameter transferring method as claimed in claim 1, wherein said saving the parameter of the first interface comprises any one of the following modes:
saving the parameters of the first interface to a memory of the electronic equipment; or alternatively
And saving the parameters of the first interface to a specified database.
4. The interface parameter transferring method according to claim 1, wherein after saving the parameters of the first interface, the method further comprises:
and naming parameters of the first interface according to the first service attribute data.
5. The interface parameter transferring method according to claim 1, wherein after saving the parameters of the first interface, the method further comprises:
acquiring a mark corresponding to the first service attribute data;
adding the tag to a parameter of the first interface.
6. The interface parameter delivery method of claim 1, wherein retrieving the saved parameters when the second service attribute data is consistent with the first service attribute data comprises a combination of one or more of:
Retrieving the stored parameters according to the first service attribute data; and/or
Acquiring the name of the parameter of the first interface according to the first service attribute data, and calling the stored parameter according to the name; and/or
And acquiring the marks of the parameters of the first interface according to the first service attribute data, and calling the stored parameters according to the marks.
7. An interface parameter transfer apparatus, the apparatus comprising:
the device comprises an acquisition unit, a parameter transmission unit and a control unit, wherein the acquisition unit is used for reading first service attribute data of a first interface from data of the first interface when receiving a parameter transmission instruction, wherein the first service attribute data comprises a service type provided by the first interface and an operation environment of the first interface;
the extraction unit is used for extracting parameters of the first interface according to the first service attribute data;
a storage unit, configured to store parameters of the first interface;
the obtaining unit is further configured to obtain second service attribute data of a second interface after the parameters of the first interface are saved;
the comparison unit is used for comparing the second service attribute data with the first service attribute data, wherein the second service attribute data comprises a service type provided by the second interface and an operation environment of the second interface;
The calling unit is used for calling the stored parameters when the second service attribute data are consistent with the first service attribute data;
and the transmission unit is used for transmitting the saved parameters to the second interface.
8. An electronic device, the electronic device comprising:
a memory storing at least one instruction; and
A processor executing instructions stored in the memory to implement the interface parameter transfer method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized by: the computer-readable storage medium has stored therein at least one instruction that is executed by a processor in an electronic device to implement the interface parameter transfer method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811152511.XA CN109522211B (en) | 2018-09-29 | 2018-09-29 | Interface parameter transmission method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811152511.XA CN109522211B (en) | 2018-09-29 | 2018-09-29 | Interface parameter transmission method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109522211A CN109522211A (en) | 2019-03-26 |
CN109522211B true CN109522211B (en) | 2023-07-18 |
Family
ID=65771587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811152511.XA Active CN109522211B (en) | 2018-09-29 | 2018-09-29 | Interface parameter transmission method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109522211B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114189508B (en) * | 2021-04-14 | 2024-04-26 | 郑州华润燃气股份有限公司 | Week checking system and method for gas meter |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107301122A (en) * | 2017-05-10 | 2017-10-27 | 深圳市小牛在线互联网信息咨询有限公司 | interface test method, device, storage medium and computer equipment |
CN107391379A (en) * | 2017-07-28 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Interface automatic test approach and device |
CN107832227A (en) * | 2017-11-24 | 2018-03-23 | 平安科技(深圳)有限公司 | Interface parameters method of testing, device, equipment and the storage medium of operation system |
CN107908485A (en) * | 2017-10-26 | 2018-04-13 | 中国平安人寿保险股份有限公司 | Interface parameters transmission method, device, equipment and computer-readable recording medium |
CN108153670A (en) * | 2017-11-30 | 2018-06-12 | 北京奇艺世纪科技有限公司 | A kind of interface test method, device and electronic equipment |
CN108427631A (en) * | 2017-02-14 | 2018-08-21 | 北京京东尚科信息技术有限公司 | A kind of application test systems, method, electronic equipment and readable storage medium storing program for executing |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7779036B2 (en) * | 2004-02-19 | 2010-08-17 | Oracle International Corporation | Integration functionality for a test tool for application programming interfaces |
US9021443B1 (en) * | 2013-04-12 | 2015-04-28 | Google Inc. | Test automation API for host devices |
CN105302709B (en) * | 2014-07-03 | 2019-01-22 | 阿里巴巴集团控股有限公司 | Test data generating method and equipment |
CN105138461B (en) * | 2015-09-23 | 2018-01-26 | 网易(杭州)网络有限公司 | The interface test method and device of a kind of application program |
CN105224461B (en) * | 2015-10-23 | 2018-01-26 | 网易(杭州)网络有限公司 | A kind of generation method and device of integration testing use-case |
CN107102941B (en) * | 2017-03-30 | 2021-01-08 | 腾讯科技(深圳)有限公司 | Test case generation method and device |
CN107861870B (en) * | 2017-11-02 | 2020-07-24 | 平安科技(深圳)有限公司 | Interface test and test data generation method, device, terminal and storage medium |
-
2018
- 2018-09-29 CN CN201811152511.XA patent/CN109522211B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427631A (en) * | 2017-02-14 | 2018-08-21 | 北京京东尚科信息技术有限公司 | A kind of application test systems, method, electronic equipment and readable storage medium storing program for executing |
CN107301122A (en) * | 2017-05-10 | 2017-10-27 | 深圳市小牛在线互联网信息咨询有限公司 | interface test method, device, storage medium and computer equipment |
CN107391379A (en) * | 2017-07-28 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Interface automatic test approach and device |
CN107908485A (en) * | 2017-10-26 | 2018-04-13 | 中国平安人寿保险股份有限公司 | Interface parameters transmission method, device, equipment and computer-readable recording medium |
CN107832227A (en) * | 2017-11-24 | 2018-03-23 | 平安科技(深圳)有限公司 | Interface parameters method of testing, device, equipment and the storage medium of operation system |
CN108153670A (en) * | 2017-11-30 | 2018-06-12 | 北京奇艺世纪科技有限公司 | A kind of interface test method, device and electronic equipment |
Non-Patent Citations (2)
Title |
---|
Automatic parameter recommendation for practical API usage;Z Cheng等;2012 34th International Conference on Software Engineering (ICSE);第826-836页 * |
基于 Testng 的 Web 接口测试的自动化框架设计与实现;蒋灵仙;中国优秀硕士学位论文全文数据库 信息科技辑;I138-807 * |
Also Published As
Publication number | Publication date |
---|---|
CN109522211A (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362372B (en) | Page translation method, device, medium and electronic equipment | |
CN110597595B (en) | Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium | |
CN111352902A (en) | Log processing method and device, terminal equipment and storage medium | |
CN110825731B (en) | Data storage method, device, electronic equipment and storage medium | |
CN110705271B (en) | System and method for providing natural language processing service | |
CN112769802B (en) | Access verification method and device based on server, electronic equipment and storage medium | |
CN112434015B (en) | Data storage method and device, electronic equipment and medium | |
CN111797351A (en) | Page data management method and device, electronic equipment and medium | |
JP2023036681A (en) | Task processing method, processing device, electronic equipment, storage medium, and computer program | |
CN112307122A (en) | Data lake-based data management system and method | |
CN110781183A (en) | Method and device for processing incremental data in Hive database and computer equipment | |
CN110851136A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN107391622A (en) | A kind of data access method and equipment | |
CN113343312A (en) | Page tamper-proofing method and system based on front-end point burying technology | |
CN110888972A (en) | Sensitive content identification method and device based on Spark Streaming | |
CN109347899B (en) | Method for writing log data in distributed storage system | |
CN109522211B (en) | Interface parameter transmission method and device, electronic equipment and storage medium | |
CN108055594B (en) | Edge slicing implementation method and device, computer equipment and storage medium | |
CN110852057A (en) | Method and device for calculating text similarity | |
CN112965943A (en) | Data processing method and device, electronic equipment and storage medium | |
CN113792232B (en) | Page feature calculation method, page feature calculation device, electronic equipment, page feature calculation medium and page feature calculation program product | |
US10601892B2 (en) | Collaborative bookmarks | |
US11277300B2 (en) | Method and apparatus for outputting information | |
CN113032820B (en) | File storage method, access method, device, equipment and storage medium | |
CN109783134B (en) | Front-end page configuration method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |