CN114595446A - Method for realizing dynamically configurable interface joint debugging sandbox - Google Patents
Method for realizing dynamically configurable interface joint debugging sandbox Download PDFInfo
- Publication number
- CN114595446A CN114595446A CN202210355969.5A CN202210355969A CN114595446A CN 114595446 A CN114595446 A CN 114595446A CN 202210355969 A CN202210355969 A CN 202210355969A CN 114595446 A CN114595446 A CN 114595446A
- Authority
- CN
- China
- Prior art keywords
- sandbox
- interface
- client
- message management
- field
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/52—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
- G06F21/53—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to the technical field of computers, in particular to a method for realizing dynamic configuration of sandbox interface joint debugging, which mainly comprises the following steps: s1, subscribing the interface; s2, selecting an interface according to the first table; s3, editing the backup of all the fields of the interface; s4, saving the sandbox after the backup editing of the field is finished; and S5, testing the saved sandbox. Through the dynamic configuration of the sandbox, the client in the sandbox can select one or more service interfaces to generate the sandbox and support the modification of the field attribute, so that the individualized requirement of sandbox debugging is met, and the sandbox testing efficiency is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method for realizing a dynamically configurable interface joint debugging sandbox.
Background
Open banking, as a business model, is being driven worldwide. The open bank is used as a platform, and data sharing, bank service and the like between the bank and a third-party organization are realized by utilizing technologies such as open API and the like. The debugging of the open API (interface) between the third-party organization and the bank is omitted, namely, the communication test of the interface is carried out before the third-party organization is formally on-line. In the existing technology, for example, a method for implementing sandbox debugging based on a shadow link judges whether a service interface accessed in the sandbox is a shadow link or a real online link according to a user identifier, and then returns a calling result to a client through link calling. In the process, a client user cannot modify fields of signed interfaces, cannot customize test combinations of the interfaces individually, cannot encrypt and decrypt detailed troubleshooting messages or add and check labels and report errors in calling tests of each interface, and can only obtain a final interface return result.
Disclosure of Invention
To overcome the above-mentioned deficiencies in the prior art, the present invention defaults to storing a copy of the interface in a sandbox after the user creates the sandbox, and the field attributes (e.g., whether to fill up) of the interface stored in the sandbox can be configured by the user. In addition, the sandbox has high configurability, a client user in the sandbox can select one or more service interfaces to generate the sandbox, the interfaces in the sandbox are isolated from the service interfaces and support modification of debugging interface fields, and personalized requirements are met; the message management of a client calling process is divided into different stages in the sandbox, and each link feeds back log information for a user, so that the user can conveniently locate a fault point in the debugging process.
In order to achieve the above object, the present invention relates to a method for implementing dynamic configuration of sandbox interface connection, which is characterized by comprising:
s1, interface subscription, the open platform receiving the service interface call request sent by the client, the client completing identity authentication on the platform and obtaining the access authority of the open platform;
s2, the client enters a configuration sandbox of the open platform, inquires the interfaces to be tested according to the first table, and selects at least one interface;
s3, acquiring the interface field, generating the backup of all the fields of the interface, and calling a second table to edit the backup of all the fields of the interface;
s4, storing the sandbox after editing is finished;
and S5, testing the saved sandbox.
Preferably, the first table selection add or subtract interface may be recalled to the saved sandbox.
Preferably, when the client exits halfway or all interfaces in the sandbox are deleted, all sandbox configuration information is deleted and the process ends.
Preferably, the first table is an interface resource table, and the second table is an interface field table.
Preferably, the stored sandboxes are tested, wherein the testing comprises sandbox filling and message management;
the sandbox filling comprises client perfect partner information and interface field information;
the message management comprises different message management of the stages of message generation, encryption, signature adding, assembly, calling, sending, signature checking and decryption.
Preferably, the message management includes checking the message management of the current stage, entering the message management of the next stage when the check is passed, and stopping entering the message management of the next stage and feeding back error information when the check is not passed.
Preferably, the attributes of the interface field include: a field name, a chinese description, a display mode, a field value, whether input is necessary, whether hidden, a display order, and a maximum length can be input.
Preferably, the step S4 further includes: the publishing platform generates a third table that stores the correspondence of the client and the saved sandbox.
A second aspect of the present invention relates to a computer-readable storage medium, wherein the storage medium has stored thereon a computer program, which when executed by a processor, implements the above-mentioned sandbox interface connection dynamically configurable.
A third aspect of the present invention relates to an electronic device, comprising a memory and a server;
the memory is used for storing a first table, a second table and a third table;
and the server is used for executing the method for dynamically configuring the sandbox interface joint debugging through calling the first table, the second table and the third table.
The invention has the beneficial effects that:
the method for realizing the dynamic configuration of the sandbox interface joint debugging breaks through the limitation of the existing sandbox test, ensures the personalized editing configuration of the sandbox interface field by isolating the sandbox interface field information from the real interface field information, and improves the efficiency of different stages of message management in the positioning debugging by the feedback visualization of the result of each calling stage of the interface.
Drawings
Fig. 1 is a schematic flow chart of a method for implementing dynamic configuration of sandbox interface joint debugging according to the present invention.
Fig. 2 is a flowchart illustrating an example of field attribute configuration according to the present invention.
Detailed Description
For a clearer understanding of the contents of the present invention, reference will be made to the accompanying drawings and examples.
It is to be understood that such description is merely illustrative and not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The words "a", "an" and "the" and the like as used herein are also intended to include the meanings of "a plurality" and "the" unless the context clearly dictates otherwise. Furthermore, the terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
The names and terms that may be involved according to the invention are explained first:
and (3) SDK: a software development kit with a bank open to the outside mainly comprises a set of paradigms and tools and the like for assisting a partner to access, wherein the paradigms show the structure of an interface message in detail, and an encryption and decryption mode, an additional signing and verification mode, a splicing mode and the like used for generating the message.
Message encryption and decryption: the message transmitted by the interface uniformly adopts encryption transmission to ensure the integrity of the information, for example, all service fields of the body need to be encrypted and assigned with a specific field value, and only the receiving party can decrypt the message.
Message signature adding and signature checking: the message transmitted by the interface uniformly contains signature information to authenticate the identity and ensure the confidentiality of the information, for example, a private key is used for signing the body text, and a public key is used by a receiver for signature verification to confirm the identity of the sender.
Interface (API): application program interfaces, each typically providing a service to a caller, such as a trusted interface.
Interface sandbox: the method refers to an online debugging environment which can carry out interface editing, interface field attribute configuration, sandbox personalized configuration and simulation of interface message full life cycle calling, and aims to simulate an online debugging process of an http request party and a receiving party for transmitting messages on the network.
The invention relates to a method for realizing dynamic configuration of sandbox interface joint debugging, which is characterized by comprising the following steps:
and S1, interface subscription, registration of an account number by a partner on a public platform, acceptance of a service interface calling request sent by a client by the public platform, completion of identity authentication by the client on the platform and acquisition of the authority of accessing the public platform.
S2, the client enters a configuration sandbox of the open platform, inquires the interfaces to be tested according to the first table, and selects at least one interface; when the client selects the interface, the server configures the corresponding called service application according to the preset relationship table of the interface and the service application in the database.
Preferably, the first table is an interface resource table.
And S3, acquiring the interface field, generating backups of all the fields of the interface, and calling a second table to edit the backups of all the fields of the interface, wherein the second table is an interface field table. After the client selects the interface, the server selects the interface field to backup and configures the attribute of the interface field backup according to the second table, wherein the field attribute of the interface comprises: the field name, chinese description, display mode (textbox/drop-down), field value, whether input is necessary, whether hidden, display order, maximum length of input, which the client can set. FIG. 2 shows the attribute configuration of a field, where "username" and "Zhang three" are the name and default assignments of the interface field when the sandbox is generated; [ text box ] is a display style; the Chinese description is displayed in a text box in a prompting manner; the "username" field is allowed to be null by the "fill" option; whether the 'username' field can be openly displayed in a sandbox joint debugging environment for modification by a user is controlled to be hidden, and some sensitive fields have default transmission values and can not allow the public joint debugging; (display order) controls the display order of the field in all fields of this interface; maximum length controls the maximum length of the value that the field can accept.
And S4, storing the sandbox after the client finishes editing, wherein the sandbox comprises at least one interface and the field attribute corresponding to the sandbox. And meanwhile, generating a third table through the public platform, wherein the third table stores the corresponding relation between the client and the saved sandbox. The third table may be used for enabling the client to perform dynamic configuration based on the existing sandbox when the client configures the sandbox next time, and the third table is a table stored in the database.
Preferably, the saved sandbox may be re-invoked with the first table to select an interface to be added or subtracted, when the client deletes the interface of the original sandbox, the server deletes configuration information in the database corresponding to the interface, when the client selects to add the interface, the server selects to add the interface by invoking the interface resource table, and the server adds the service application according to a corresponding relationship between the interface configured at the back end and the service application.
And when the client exits in the midway or all the interfaces in the sandbox are deleted, deleting all the sandbox configuration information, and the server does not store all the sandbox configuration information, so that the program is ended.
S5, testing the saved sandbox, sending debugging request by the client, and invoking debugging service application by the server, such as sandbox filling (including client perfect partner information and interface field information) and message management (including different message management at the message generation, encryption, signing, assembly, invocation, sending, signing verification and decryption stages). In the sandbox filling link, the partner perfects partner information, interface field values, passwords for encrypting and decrypting messages, private keys and public keys for signing and checking messages. In the calling process of the sandbox, different stages of message management are checked, the server configures different detection scripts for different messages, the next-stage message management can be started only when a certain stage is checked to pass in the checking process, when errors are found in the checking process, the next-stage message management cannot be started and stopped, the server feeds back error information through a display to display the message information at the stage, and therefore a client can modify the errors of the messages conveniently.
The feedback of the processing result is provided at each stage of the message processing, so that the method can help a user to correct various errors in use, and the error detection of the message is a commonly used means in the industry, and is used for solving the problems such as incomplete fields, empty field contents, failure in message encryption and the like which are often encountered in manual joint debugging.
Embodiments of the present invention also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments, the computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements all the steps of the method in the above embodiments.
The embodiment of the present invention further provides an electronic device for executing the method, as an implementation apparatus of the method, the electronic device at least includes a server and a memory, and particularly, the memory stores data and related computer programs, such as a first table, a second table, a third table, and the like, required for executing the method, and all steps of implementing the method are executed by calling the data and the programs in the memory by the server, so as to obtain corresponding technical effects.
Preferably, the electronic device may comprise a bus architecture, which may include any number of interconnected buses and bridges linking together various circuits including one or more processors and memory. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter may be the same element, i.e., a transceiver, providing a means for communicating with various other systems over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used for storing data used by the processor in performing operations.
Additionally, the electronic device may further include a communication module, an input unit, an audio processor, a display, a power source, and the like. The processor (or controller, operational controls) employed may include a microprocessor or other processor device and/or logic device that receives input and controls the operation of various components of the electronic device; the memory may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices, and may store the above-mentioned related data information, and may also store a program for executing the related information, and the processor may execute the program stored in the memory to realize information storage or processing, etc.; the input unit is used for providing input to the processor, and can be a key or a touch input device; the power supply is used for supplying power to the electronic equipment; the display is used for displaying display objects such as images and characters, and may be an LCD display, for example. The communication module is a transmitter/receiver that transmits and receives signals via an antenna. The communication module (transmitter/receiver) is coupled to the processor to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal. Based on different communication technologies, a plurality of communication modules, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be disposed in the same electronic device. The communication module (transmitter/receiver) is also coupled to a speaker and a microphone via an audio processor to provide audio output via the speaker and receive audio input from the microphone to implement the usual telecommunication functions. The audio processor may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor is also coupled to the central processor, so that recording on the local machine can be realized through the microphone, and sound stored on the local machine can be played through the loudspeaker.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A sandbox interface joint debugging implementation method capable of being configured dynamically is characterized by comprising the following steps:
s1, interface subscription, the open platform receiving the service interface call request sent by the client, the client completing identity authentication on the platform and obtaining the access authority of the open platform;
s2, the client enters a configuration sandbox of the open platform, inquires the interfaces to be tested according to the first table, and selects at least one interface;
s3, the client acquires the interface field and generates the backup of all the fields of the interface, and calls a second table to edit the backup of all the fields of the interface;
s4, storing the sandbox after editing is finished;
and S5, testing the saved sandbox.
2. A method as claimed in claim 1, wherein the first table selection add or subtract interface is recalled for the saved sandbox.
3. The method of claim 2, wherein when the client exits halfway or all the interfaces in the sandbox are deleted, all the sandbox configuration information is deleted and the process ends.
4. The method of claim 1, wherein the first table is an interface resource table and the second table is an interface field table.
5. The sandbox interface connection dynamically configurable implementation of claim 1,
the stored sandboxes are tested, and sandbox filling and message management are included;
the sandbox filling comprises client perfect partner information and interface field information;
the message management comprises different message management of the stages of message generation, encryption, signature adding, assembly, calling, sending, signature checking and decryption.
6. The method as claimed in claim 5, wherein the message management comprises checking the message management of the current stage, entering the message management of the next stage when the check is passed, and stopping entering the message management of the next stage and feeding back error information when the check is not passed.
7. The sandboxed interface lineup dynamically configurable implementation method of claim 1 wherein the attributes of the interface fields include: field name, chinese description, display mode, field value, whether input is necessary, whether hidden, display order, and maximum length can be input.
8. The method for implementing sandbox interface joint debugging as claimed in claim 1, wherein said step S4 further comprises:
the publishing platform generates a third table that stores the correspondence of the client and the saved sandbox.
9. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 8.
10. An electronic device comprising a memory and a server;
the memory is used for storing a first table, a second table and a third table;
the server for executing the method of any one of claims 1 to 8 by calling the first table, the second table, and the third table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210355969.5A CN114595446A (en) | 2022-04-06 | 2022-04-06 | Method for realizing dynamically configurable interface joint debugging sandbox |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210355969.5A CN114595446A (en) | 2022-04-06 | 2022-04-06 | Method for realizing dynamically configurable interface joint debugging sandbox |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114595446A true CN114595446A (en) | 2022-06-07 |
Family
ID=81821711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210355969.5A Pending CN114595446A (en) | 2022-04-06 | 2022-04-06 | Method for realizing dynamically configurable interface joint debugging sandbox |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114595446A (en) |
-
2022
- 2022-04-06 CN CN202210355969.5A patent/CN114595446A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112583802B (en) | Data sharing platform system and equipment based on block chain and data sharing method | |
CN108833355A (en) | Data processing method, device, computer equipment and computer readable storage medium | |
CN109672523A (en) | Information ciphering method, device, equipment and readable storage medium storing program for executing based on filter | |
CN110659206A (en) | Simulation architecture establishing method, device, medium and electronic equipment based on microservice | |
CN110362318A (en) | Using dispositions method, device, equipment and storage medium | |
CN111897738B (en) | Automatic testing method and device based on atomic service | |
CN106331003A (en) | Method and device for accessing application portal system on cloud desktop | |
CN106453263A (en) | Method and system of binding cellphone number with APP | |
CN111930617A (en) | Automatic testing method and device based on data objectification | |
CN111371695B (en) | Service flow limiting method and device | |
CN103002492B (en) | Communication test method and device for mobile terminal (MT) | |
US20220051678A1 (en) | Staged user enrollment using audio devices | |
CN112905460B (en) | Device and method for simulating three-party receipt by automatic interface test | |
CN103559430B (en) | application account management method and device based on Android system | |
CN115407981A (en) | Front-end data mock method and system based on middleware adaptation | |
CN114595446A (en) | Method for realizing dynamically configurable interface joint debugging sandbox | |
CN116244682A (en) | Database access method, device, equipment and storage medium | |
CN113381909B (en) | Full link voltage measuring method and device | |
CN115052053A (en) | Message processing method and simulator for bank system test | |
CN110737910B (en) | Android log decryption management method, device, equipment and medium | |
CN111241173B (en) | Method and system for data interaction among multiple systems | |
CN113965360A (en) | Intelligent device cloud server access method, device, medium, device and system | |
CN111240855A (en) | API debugging system, method, storage medium and computer device | |
CN111984543B (en) | Instruction testing method, device and system | |
CN115640175A (en) | Client mock testing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |