CN115858368A - Cross-border payment oriented data generation method, system, equipment and storage medium - Google Patents

Cross-border payment oriented data generation method, system, equipment and storage medium Download PDF

Info

Publication number
CN115858368A
CN115858368A CN202211606873.8A CN202211606873A CN115858368A CN 115858368 A CN115858368 A CN 115858368A CN 202211606873 A CN202211606873 A CN 202211606873A CN 115858368 A CN115858368 A CN 115858368A
Authority
CN
China
Prior art keywords
test data
generating
currency
amount
client
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
Application number
CN202211606873.8A
Other languages
Chinese (zh)
Inventor
宋洪立
王琴琴
陈宇
汪宁
芦帅
陈鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ping Pong Intelligent Technology Co ltd
Original Assignee
Hangzhou Ping Pong Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ping Pong Intelligent Technology Co ltd filed Critical Hangzhou Ping Pong Intelligent Technology Co ltd
Priority to CN202211606873.8A priority Critical patent/CN115858368A/en
Publication of CN115858368A publication Critical patent/CN115858368A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a cross-border payment oriented data generation method, which comprises the following steps: receiving a test data calling request of a client interface, wherein the test data calling request comprises a client interface identification field and a generated data parameter; acquiring a client interface identification field; generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameter and a preset test data generation system; sending a calling response carrying the virtual test data to the client; the preset test data generation system generates relevant data of modules including quick posting, promotion, channel callback, one-key shop and user registration. The virtual data generation method can reduce the difficulty of data acquisition and save the time for importing and screening data.

Description

Cross-border payment oriented data generation method, system, equipment and storage medium
Technical Field
The invention relates to the technical field of virtual data, in particular to a cross-border payment-oriented data generation method, a cross-border payment-oriented data generation system, cross-border payment-oriented data generation equipment and a storage medium.
Background
In recent years, with the development of the field of computer technology, there are more and more ways to solve real problems by computer, and there is more and more demand for computer programs. The existing computer program realization reality needs mostly adopt a mode that a front end and a back end are developed respectively and parallelly, so that the development efficiency is greatly improved. In the process of parallel development of the front end and the back end, the development process of the front end often needs to call an application program interface of the back end to obtain a data set stored in the back end. After the front-end and back-end development is completed, the developed system needs to be tested first to ensure the normal operation and effect realization of the front-end and back-end data. However, since the product is not yet put into full use, a certain amount of data is not available for testing and most of the test data has authority. Therefore, the rear end of the application is provided with a small tool of the test data generation system in advance, and when a test data calling request of the front end interface is received, corresponding test data is generated, so that the difficulty of data acquisition is reduced, and the time for importing and screening data is saved.
Disclosure of Invention
The invention provides a cross-border payment-oriented data generation method, a cross-border payment-oriented data generation system, cross-border payment-oriented data generation equipment and a storage medium. The virtual test data generation method, the system, the equipment and the storage medium realize rapid acquisition of test data by generating the virtual test data, and reduce the difficulty and the lead-in time of acquiring the data.
In order to solve the above problems, the present invention is implemented by the following technical solutions.
One aspect of the present invention provides a method for generating virtual test data, including the following steps:
receiving a test data calling request of a client interface, wherein the test data calling request comprises a client interface identification field and a generated data parameter;
acquiring a client interface identification field;
generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameter and a preset test data generation system;
sending a calling response carrying the virtual test data to the client;
the preset test data generation system generates relevant virtual test data of modules including quick posting, promotion, channel callback, one-key store and user registration.
According to an embodiment of the present invention, the generating system, before generating the virtual test data according to the field name of the interface identification field, the generated data parameter, and the preset test data, in the test data generating system, according to the requirement of the generated data parameter, further includes the following steps:
judging whether the generated data parameters conform to the data format of the generated data parameters corresponding to the interface in the preset test data generation system or not;
if not, sending a response that the generated data parameters are illegal to the client,
if yes, generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameters and a preset test data generation system.
According to an embodiment of the present invention, the fast posting specifically includes:
receiving a test data calling request of a client-side quick entry interface, wherein the quick entry test data calling request comprises a quick entry interface identification field, an entry currency type, an entry amount, an entry shop number, a rest day and a payment account number;
acquiring a client interface identification field;
judging whether the generated data parameters comprise the money type of the posting money, the posting amount, the number of the posting shops, the interest date and the account number of the debiting account number accord with the data format of the generated data parameters corresponding to the interface in the preset test data generation system;
if not, sending a response that the billed money is illegal and/or the billed amount is illegal and/or a response that the billed shop number is illegal and/or a response that the rest day is illegal and/or a response that the making account number is illegal to the client,
if so, generating virtual data required by a quick check-in test according to the field name of the interface identification field, the check-in currency type, the check-in amount, the check-in shop number, the check-in day, the make-up account number and a preset test data generation system, and generating the virtual data required by the quick check-in test in the test data generation system according to the check-in currency type, the check-in amount, the check-in shop number, the check-in day and the check-out account number;
and after virtual data required by the test is generated, sending a calling response carrying the account entry currency type, the account entry amount, the account entry shop number, the interest starting date and the account number to the client, and realizing the test of quick account entry.
According to an embodiment of the invention, the withdrawal and the generation comprise a new amount and a generation amount;
the newly added amount comprises the following steps:
receiving a test data calling request of a newly added amount interface of a client, wherein the newly added amount test data calling request comprises a newly added amount interface identification field, a generated currency type and a currency amount;
acquiring an identification field of a newly added money interface of the client;
judging whether the generated currency type and the currency amount respectively accord with the data format of the currency type and the currency amount corresponding to the newly added amount interface in the preset test data generation system;
if not, sending a response that the generated data parameters are illegal to the client,
if yes, generating a virtual currency type and a virtual currency amount required by the test according to the field name of the interface identification field, the generated currency type and the currency amount and a preset test data generation system, and generating the virtual currency type and the currency amount required by the test in the test data generation system according to the requirements of the generated currency type and the currency amount;
after generating virtual data required by the test, sending a calling response carrying the generated currency type and the currency amount to the client;
the issuing amount comprises the following steps:
receiving a test data calling request of a client issuing-instead amount interface, wherein the test data calling request of the issuing-instead amount comprises an identification field of the issuing-instead amount interface, the generation of currency types and amounts to be converted and the generation of a currency account to be received;
acquiring a client issuing amount interface identification field;
judging whether the generated currency type and the amount of the currency to be converted and the generated currency account to be received respectively accord with the currency type and the amount of the currency to be converted corresponding to the issuing amount interface in the preset test data generation system or not, and generating a data format of the currency account to be received;
if not, sending a response that the generated data parameters are illegal to the client,
if so, generating the currency type and the amount of the currency to be converted, generating the currency account to be received and a preset test data generation system according to the field name of the interface identification field, and generating a virtual currency type to be converted, the currency amount to be converted and the currency account to be received which are required by the test according to the requirements of generating the currency type and the amount of the currency to be converted and generating the currency account to be received in the test data generation system;
converting the virtual currency type and the currency amount required by the generation test into the currency type and the amount to be converted, and sending the converted currency and amount to the currency account to be received;
and sending the converted currency and the converted amount to the account of the currency to be received, and then sending a calling response carrying currency issuance to the client, and realizing the test of issuing issuance.
According to an embodiment of the present invention, the channel callback specifically includes:
receiving a test data call request of a channel callback interface of a client, wherein the channel callback test data call request comprises a channel callback interface identification field, a channel type, a channel transaction code, an order number and a transaction amount;
acquiring a client interface identification field;
judging whether the channel type, the channel transaction code, the order number and the transaction amount conform to the data format of the generated data parameter corresponding to the interface in the preset test data generation system or not;
if not, sending a response that the channel type is illegal and/or a response that the channel transaction code is illegal and/or a response that the order number is illegal and/or a response that the transaction amount is illegal to the client,
if yes, generating virtual data required by channel callback test in a test data generation system according to the field name of the interface identification field, the channel type, the channel transaction code, the order number, the transaction amount and a preset test data generation system;
and after virtual data required by the test is generated, sending a calling response carrying the channel type, the channel transaction code, the order number and the transaction amount to the client, and realizing the test of channel callback.
According to an embodiment of the present invention, the one-key binding shop specifically includes:
receiving a test data calling request of a one-key shop interface of a client, wherein the one-key shop test data calling request comprises a one-key shop interface identification field, and account numbers and the number of generated shops;
acquiring a client interface identification field;
judging whether the type of the generating shop and the number of the generating shops respectively accord with the data format of the type of the generating shop and the data format of the number of the generating shops corresponding to the interface in the preset test data generating system;
if not, sending a response that the type of the generating shop is illegal and/or the number of the generating shops is illegal to the client,
if so, generating the type of the generating shop and the number of the generating shops required for testing according to the field name of the interface identification field, the type of the generating shop, the number of the generating shops and a preset test data generation system;
and after the type of the generating shop and the number of the generating shops which are needed by the test are generated, sending a calling response carrying a generating shop identification field to the client, and realizing the test of the one-key shop.
According to an embodiment of the present invention, the user registration specifically includes:
receiving a test data calling request of a newly added user information interface of a client, wherein the test data calling request of the newly added user information comprises an identification field of the newly added user information interface and generated user information;
acquiring an identification field of a newly added user information interface of a client;
judging whether the generated user information conforms to the data format of the generated user information corresponding to the interface in the preset test data generation system;
if not, sending a response that the type of the generated user information is illegal to the client,
if yes, generating virtual user information in the test data generation system according to the field name of the identification field of the newly added user information interface, the generated user information and a preset test data generation system;
and sending a calling response carrying the virtual user information to the client, and realizing the test of user registration.
Another aspect of the present invention provides a system for generating virtual test data, which is used to implement the method for generating virtual test data as described above. The virtual test data generation system includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a test data calling request of a client interface, and the test data calling request comprises a client interface identification field and a generated data parameter;
the acquisition module is used for acquiring the client interface identification field;
the generating module is used for generating virtual test data in the test data generating system according to the field name of the interface identification field, the generated data parameter and a preset test data generating system; the preset test data generation system generates relevant data of modules including quick entry, promotion, channel callback, one-key binding store and user registration;
and the sending module is used for sending a calling response carrying the virtual test data to the client.
In still another aspect of the present invention, an apparatus for generating virtual test data is also provided. The virtual test data generation device includes:
a memory for storing executable instructions;
and the processor is used for realizing the generation method of the virtual test data in any embodiment of the invention when the processor executes the executable instructions stored in the memory.
A final aspect of the invention provides a readable storage medium. The readable storage medium stores thereon a processing program, and the processing program, when executed by a processor, implements a method of generating virtual test data according to any one of the embodiments of the present invention.
Compared with the prior art, the invention has the following beneficial effects:
therefore, the back end of the application is provided with the small tool of the test data generation system in advance, and when a test data calling request of the front-end interface is received, the corresponding test data is generated, so that the difficulty of data acquisition is reduced, and the time for importing and screening data is saved.
Drawings
FIG. 1 is a flow chart illustrating a method for generating virtual test data according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for determining a data format before generating virtual test data for generating data parameters, according to an embodiment of the present invention;
FIG. 3 illustrates a flow diagram of a method for fast posting and virtual data generation thereof, according to an embodiment of the invention;
FIG. 4a is a flow chart illustrating a method for adding money and generating virtual data thereof, according to an embodiment of the present invention;
FIG. 4b illustrates a flow diagram of a method for generating a credit and its virtual data, in accordance with embodiments of the present invention;
FIG. 5 is a flow chart illustrating a method for channel callback and virtual data generation thereof, according to an embodiment of the present invention;
FIG. 6 illustrates a flow diagram of a method for a one-bond store and its virtual data generation, according to an embodiment of the present invention;
FIG. 7 is a flow diagram illustrating a method of user registration and virtual data generation thereof, in accordance with an embodiment of the present invention;
FIG. 8 is a schematic structural diagram illustrating a system for generating virtual test data according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram illustrating a virtual test data generation device according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating a structure of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". Other explicit and implicit definitions are also possible below.
The back end of the application is provided with a small tool of the test data generation system in advance, and when a test data calling request of the front-end interface is received, corresponding test data is generated, so that the difficulty of obtaining real data is reduced, and the time for importing and screening data is saved.
An embodiment of the present invention provides a specific implementation manner of a method for generating virtual test data, and referring to fig. 1, a method for generating virtual test data is shown, where the method specifically includes the following steps:
s110: receiving a test data calling request of a client interface, wherein the test data calling request comprises a client interface identification field and a generated data parameter;
s120: acquiring a client interface identification field;
s130: generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameter and a preset test data generation system;
s140: sending a calling response carrying the virtual test data to the client;
s150: the preset test data generation system generates relevant data of modules including quick posting, promotion, channel callback, one-key shop and user registration.
Wherein the generating data parameters comprises generating: generating currency and currency amount, generating currency and amount to be converted, generating account to be received, generating account number and number of stores, and generating user information such as user name (name) and/or mobile phone number and/or mailbox and/or password.
The preset test data generation system comprises a template in which generation data parameters are stored in advance, and receives a generation instruction and generates the data parameters to generate virtual test data to be generated.
An embodiment of the present invention provides another specific implementation of a method for generating virtual test data, and referring to fig. 2, a method for determining a data format before generating virtual test data according to a requirement of a parameter of the generated data is shown, where the method for determining the data format before generating the virtual test data specifically includes the following steps:
s210: judging whether the generated data parameters conform to the data format of the generated data parameters corresponding to the interface in the preset test data generation system or not;
s211: if not, sending a response that the generated data parameters are illegal to the client,
s212: if yes, generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameters and a preset test data generation system.
An embodiment of the present invention provides another specific implementation of a method for generating virtual test data, and referring to fig. 3, a method for fast posting and virtual data generation thereof is shown, which specifically includes the following steps:
s310: receiving a test data calling request of a client-side quick entry interface, wherein the quick entry test data calling request comprises a quick entry interface identification field, an entry currency type, an entry amount, an entry shop number, a rest day and a payment account number;
s320: acquiring a client interface identification field;
s330: judging whether the generated data parameters are in the data format of the generated data parameters corresponding to the interface in the preset test data generation system or not, wherein the generated data parameters include the account-entering currency type, the account-entering amount, the account-entering shop number, the interest date and the payment account number;
s331: if not, sending a response that the billed money is illegal and/or the billed amount is illegal and/or a response that the billed shop number is illegal and/or a response that the rest day is illegal and/or a response that the making account number is illegal to the client,
s332: if so, generating virtual data required by testing according to the field name of the interface identification field, the account entry currency type, the account entry amount, the account entry shop number, the interest starting date, the payment account number and a preset testing data generation system, and generating the virtual data required by testing according to the account entry currency type, the account entry amount, the account entry shop number, the interest starting date and the payment account number in the testing data generation system;
s340: and after generating virtual data required by the test, sending a call response carrying the account entry currency type, the account entry amount, the account entry shop number, the interest-making date and the payment account number to the client, and realizing the test of quick account entry.
An embodiment of the present invention provides another specific implementation of a method for generating virtual test data, and referring to fig. 4a to 4b, a method for generating a withdrawal generation and virtual data thereof is shown, where the withdrawal generation includes a new amount and a generation amount, and specifically includes the following steps:
s400a: the newly added money comprises the following steps:
s410a: receiving a test data calling request of a newly added amount interface of a client, wherein the newly added amount test data calling request comprises a newly added amount interface identification field, a generated currency type and a currency amount;
s420a: acquiring an identification field of a newly added money interface of the client;
s430a: judging whether the generated currency type and the currency amount respectively accord with the data format of the currency type and the currency amount corresponding to the newly added amount interface in the preset test data generation system;
s431a: if not, sending a response that the generated data parameters are illegal to the client,
s432a: if yes, generating a virtual currency type and a virtual currency amount required by the test according to the field name of the interface identification field, the generated currency type and the currency amount and a preset test data generation system in the test data generation system according to the requirements of the generated currency type and the currency amount;
s440a: after generating the virtual data required by the test, sending a calling response carrying the generated currency type and the currency amount to the client;
s400b: the issuing amount comprises the following steps:
s410b: receiving a test data calling request of a client issuing-instead amount interface, wherein the test data calling request of the issuing-instead amount interface comprises an identification field of the issuing-instead amount interface, the generation of currency types and amounts to be converted and the generation of a currency account to be received;
s420b: acquiring a client issuing amount interface identification field;
s430b: judging whether the generated currency type and amount to be converted, the generated currency account to be received respectively accord with the currency type and amount to be converted corresponding to the sending-generation amount interface in a preset test data generation system, and generating a data format of the currency account to be received;
s431b: if not, sending a response that the generated data parameters are illegal to the client,
s432b: if yes, generating the currency type and the amount of the currency to be converted, generating the currency account to be received and a preset test data generation system according to the field name of the interface identification field, and generating a virtual currency type to be converted, the currency amount to be converted and the currency account to be received required by the test according to the requirements of generating the currency type and the amount of the currency to be converted and generating the currency account to be received in the test data generation system;
s440b: converting the virtual currency type and the currency amount required by the generation test into the currency type and the amount to be converted, and sending the converted currency type and the amount to the to-be-received currency account;
s450b: and sending the converted currency and the amount to the account of the currency to be received, and then sending a calling response carrying the currency for sending to the client.
Illustratively, the user inputs and/or selects the virtual currency type and currency amount to be generated, and triggers a user interface "new amount" interface to send a new amount test data call request, wherein triggering the user interface includes triggering the interface through a mouse or a keyboard or a touch screen. The virtual test data generation system receives a new amount test data calling request of a new amount, acquires a new amount interface identification field, and judges whether the data format of the carried new amount generation currency and currency amount field respectively accords with the preset data format of the currency and amount of the new amount interface in the test data generation system.
And if the data are not matched, sending a response of 'currency type input data are illegal' or a response of 'currency amount input data are illegal' or a response of 'currency type input data and currency amount input data are illegal' to the client.
If the data format of the carried 'generation currency type and currency amount' field completely accords with the preset data format of the currency and amount of the 'new amount' interface in the test data generation system, the test data generation system generates the virtual currency type and amount required by the test according to the requirements of the generation currency type and amount of the currency, encapsulates the field name of the 'new amount' interface identification field, and sends the calling response of the encapsulated data packet to the interface of the client sending the request.
The method comprises the steps that a user inputs and/or selects currency and amount of money to be converted, a currency account to be received is generated, a 'generation and transmission amount' interface of a user interface is triggered to send a generation and transmission amount test data calling request, wherein the triggering of the user interface comprises the triggering of an interface through a mouse or a keyboard or a touch screen. The generation system of the virtual test data receives a transfer amount test data calling request of transfer amount, acquires a transfer amount interface identification field, and judges whether the data formats of the carried money type and money amount to be converted and the generated money account number to be received respectively accord with the preset data formats of the money and the amount of the transfer amount interface in the test data generation system.
If the data are not qualified, a response of 'currency and currency type input data are illegal' or a response of 'currency and amount input data are illegal' or an illegal response of 'to-be-received currency account input data are illegal' or 'currency and amount input data are illegal and currency account input data are illegal' or the like is sent to the client.
If the data formats of the fields of the money type to be converted, the money amount and the generated money account to be received all accord with the money and the amount of the 'issuing amount' interface in the preset test data generation system and the data format of the shop, the test data generation system generates the virtual money type to be converted, the money amount and the money account to be received, which are required by the test according to the requirements of the money type to be converted, the money amount and the money account to be received, converts the newly added amount into the money type to be converted and the corresponding money amount, issues the money type to be received instead, encapsulates the field name of the 'issuing amount' interface identification field, and sends the calling response of the encapsulated data packet to the interface of the client sending the request.
An embodiment of the present invention provides another specific implementation manner of a method for generating virtual test data, and referring to fig. 5, a method for generating a channel callback and virtual data thereof is shown, which specifically includes the following steps:
s510: receiving a test data call request of a channel callback interface of a client, wherein the channel callback test data call request comprises a channel callback interface identification field, a channel type, a channel transaction code, an order number and a transaction amount;
s520: acquiring a client interface identification field;
s530: judging whether the channel type, the channel transaction code, the order number and the transaction amount accord with the data format of the generated data parameter corresponding to the interface in the preset test data generation system or not;
s531: if not, sending a response that the channel type is illegal and/or a response that the channel transaction code is illegal and/or a response that the order number is illegal and/or a response that the transaction amount is illegal to the client,
s532: if yes, generating virtual data required by channel callback test in a test data generation system according to the field name of the interface identification field, the channel type, the channel transaction code, the order number, the transaction amount and a preset test data generation system;
s540: and after virtual data required by the test is generated, sending a calling response carrying the channel type, the channel transaction code, the order number and the transaction amount to the client, and realizing the test of channel callback.
An embodiment of the present invention provides another specific implementation of a method for generating virtual test data, and referring to fig. 6, a method for generating a one-key store and virtual data thereof is shown, which specifically includes the following steps:
s610: receiving a test data calling request of a one-key shop interface of a client, wherein the one-key shop test data calling request comprises a one-key shop interface identification field, and account numbers and the number of generated shops;
s620: acquiring a client interface identification field;
s630: judging whether the type of the generating shop and the number of the generating shops respectively accord with a data format of the type of the generating shop and a data format of the number of the generating shops corresponding to an interface in a preset test data generating system;
s631: if not, sending a response that the type of the generation shop is illegal and/or the number of the generation shops is illegal to the client;
s632: if yes, generating the type of the generation shop and the number of the generation shops required by the test according to the field name of the interface identification field, the type and the number of the generation shops and a preset test data generation system in the test data generation system according to the request of the type and the number of the generation shops;
s640: and after the type of the generating shop and the number of the generating shops which are needed by the test are generated, sending a calling response carrying a generating shop identification field to the client.
Illustratively, the user inputs and/or selects the account and the number of stores to be generated, and triggers a user interface "one-key store" interface to send a one-key store test data call request, wherein triggering the user interface comprises triggering the interface through a mouse or a keyboard or a touch screen. The virtual test data generation system receives a one-key store test data calling request of the one-key store, acquires an interface identification field of the one-key store, and judges whether the data format of the carried field of the accounts and the quantity of the stores needing to be generated respectively accords with the preset data format of the accounts and the quantity of the stores of the interface of the one-key store in the test data generation system.
And if the data are not qualified, sending a response of 'the input data of the shop account are illegal' or a response of 'the input data of the bound shop quantity is illegal' or a response of 'the input data of the shop account and the input data of the bound shop quantity are illegal' to the client.
If the data formats of the fields of the ' generated account and the number of the stores ' completely accord with the data formats of the store accounts of the ' one-key store ' interface and the number of the bound stores ' in the preset test data generation system, the test data generation system generates virtual store accounts required for testing and the number of the stores required to be bound according to the requirements of the store accounts required to be generated and the number of the stores required to be bound, binds a plurality of virtual store accounts required for the generated testing, encapsulates the field names of the identification fields of the ' one-key store ' interface, and sends the calling response of the encapsulated data packet to the interface of the client sending the request.
An embodiment of the present invention provides another specific implementation of a method for generating virtual test data, and referring to fig. 7, a method for user registration and virtual data generation thereof is shown, which specifically includes the following steps:
s710: receiving a test data calling request of a newly added user information interface of a client, wherein the test data calling request of the newly added user information comprises an identification field of the newly added user information interface and generated user information;
s720: acquiring a newly added user information interface identification field of a client;
s730: judging whether the generated user information conforms to the data format of the generated user information corresponding to the interface in the preset test data generation system;
s731: if not, sending a response that the type of the generated user information is illegal to the client,
s732: if yes, generating virtual user information in the test data generation system according to the field name of the newly added user information interface identification field, the generated user information and a preset test data generation system;
s740: and sending a calling response carrying the virtual user information to the client.
Illustratively, the user inputs and/or selects the user information to be generated, such as the user name and the mailbox, and triggers the user interface "user registration" interface to send the user registration test data call request, wherein triggering the user interface includes triggering the interface through a mouse or a keyboard or a touch screen. The virtual test data generation system receives a user registration test data call request of user registration, acquires a user registration interface identification field, and judges whether the data formats of the carried user name and mailbox field respectively accord with the user name of a user registration interface and the data format of a mailbox in the preset test data generation system.
And if the user name input data is not legal, sending a response of 'user name input data is illegal' or a response of 'mailbox input data is illegal' or a response of 'user name input data and mailbox input data are illegal' to the client.
If the data formats of the carried user name and mailbox fields all accord with the preset data formats of the user name and the mailbox of the user registration interface in the test data generation system, the test data generation system generates the virtual user name and the mailbox required by the test according to the requirements of the user name and the mailbox required to be generated, encapsulates the field name of the user registration interface identification field, and sends the call response of the encapsulated data packet to the interface of the client sending the request.
An eighth embodiment of the present invention provides a specific implementation manner of a virtual test data generation system, and referring to fig. 8, a virtual test data generation system 500 is shown, which specifically includes the following contents:
the receiving module 510 is configured to receive a test data call request of a client interface, where the test data call request includes a client interface identification field and a generated data parameter.
An obtaining module 520, configured to obtain the client interface identification field.
A generating module 530, configured to generate, according to the field name of the interface identifier field, the generated data parameter, and a preset test data generating system, virtual test data in the test data generating system according to a requirement of the generated data parameter; the preset test data generation system generates relevant data of modules including quick posting, promotion, channel callback, one-key shop and user registration.
A sending module 540, configured to send, to the client, a call response carrying the virtual test data.
It should be understood that aspects of the disclosed technology may be implemented as a system, method or program product. Accordingly, aspects of the disclosed subject matter may be embodied in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "circuit," unit "or" platform.
Those skilled in the art will appreciate that the various elements or steps of the disclosure described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented using program code executable by a computing device, such that it may be stored on a storage medium and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit units, or multiple ones of them may be fabricated into a single integrated circuit unit.
Fig. 9 illustrates a schematic structural diagram of a virtual test data generation device, according to some embodiments of the present disclosure. The virtual test data generation device 600 implemented according to an embodiment in the present embodiment is described in detail below with reference to fig. 9. It is understood that the generation apparatus 600 of virtual test data shown in fig. 9 is only an example, and should not bring any limitation to the function and the application range of any embodiment of the technical solution of the present disclosure.
As shown in fig. 9, the generation apparatus 600 of virtual test data is represented in the form of a general-purpose computing apparatus. The building of the virtual test data generating device 600 may include, but is not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, and the like.
The storage unit stores program codes, and the program codes can be executed by the processing unit 610, so that the processing unit 610 executes implementation of each functional module in the virtual test data generation system in this embodiment.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access unit (RAM) 6201 and/or a cache memory unit 6202, which may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 630 may represent one or more of any of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an image acceleration port, a processing unit, or a local bus using any of a variety of bus architectures.
The virtual test data generation device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the virtual test data generation device 600, and/or with any device (e.g., router, modem, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in FIG. 9, other hardware and/or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
In some embodiments of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored, and the computer program, when executed by a processor, can implement the implementation of each functional unit in the virtual test data generation system in the above disclosure.
Although this embodiment does not set forth other specific embodiments in detail, in some possible embodiments, the various aspects described in the technical solution of the present disclosure may also be implemented in the form of a program product, which includes program code for causing a terminal device to execute the steps according to the embodiments in the various embodiments of the technical solution of the present disclosure described in the area of the method for generating virtual test data in the technical solution of the present disclosure when the program product runs on the terminal device.
FIG. 10 illustrates a schematic structural diagram of a computer-readable storage medium, according to some embodiments of the present disclosure. As shown in fig. 10, a program product 800 for implementing the method according to the embodiment of the present disclosure is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. Of course, the program product generated according to the embodiment is not limited thereto, and in the technical solution of the present disclosure, the readable storage medium may be any tangible medium containing or storing the program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a data signal propagating in baseband or as a region of a carrier wave, carrying readable program code therein. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computing device, regionally on the user's device, as a stand-alone software package, regionally on a remote computing device on the user's computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
In summary, according to the technical scheme provided by the present disclosure, a small tool of the test data generation system is preset at the back end during the execution of the target task, and when a test data call request of the front-end interface is received, corresponding test data is generated, so that the difficulty of data acquisition is reduced, and the time for data import and screening is saved.
The above description is only for the purpose of describing the preferred embodiments of the present disclosure, and is not intended to limit the scope of the present disclosure, and any variations and modifications made by those skilled in the art of the present disclosure based on the above disclosure are within the scope of the appended claims.

Claims (10)

1. A method for generating virtual test data, comprising:
receiving a test data calling request of a client interface, wherein the test data calling request comprises a client interface identification field and a generated data parameter;
acquiring a client interface identification field;
generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameter and a preset test data generation system;
sending a calling response carrying the virtual test data to the client;
the preset test data generation system generates relevant virtual test data of modules including quick entry, promotion, channel callback, one-key store and user registration.
2. The method according to claim 1, wherein the generating system according to the field name of the interface identification field, the generated data parameter, and the preset test data further comprises the following steps before generating the virtual test data according to the requirement of the generated data parameter in the test data generating system:
judging whether the generated data parameters conform to the data format of the generated data parameters corresponding to the interface in the preset test data generation system or not;
if not, sending a response that the generated data parameters are illegal to the client,
if yes, generating virtual test data in the test data generation system according to the field name of the interface identification field, the generated data parameters and a preset test data generation system.
3. The method for generating virtual test data according to claim 2, wherein the fast posting specifically comprises:
receiving a test data calling request of a client-side quick entry interface, wherein the quick entry test data calling request comprises a quick entry interface identification field, an entry currency type, an entry amount, an entry shop number, a rest day and a payment account number;
acquiring a client interface identification field;
judging whether the generated data parameters comprise the money type of the posting money, the posting amount, the number of the posting shops, the interest date and the account number of the debiting account number accord with the data format of the generated data parameters corresponding to the interface in the preset test data generation system;
if not, sending a response that the billed money is illegal and/or the billed amount is illegal and/or a response that the billed shop number is illegal and/or a response that the rest day is illegal and/or a response that the making account number is illegal to the client,
if so, generating virtual data required by a quick check-in test according to the field name of the interface identification field, the check-in currency type, the check-in amount, the check-in shop number, the check-in day, the make-up account number and a preset test data generation system, and generating the virtual data required by the quick check-in test in the test data generation system according to the check-in currency type, the check-in amount, the check-in shop number, the check-in day and the check-out account number;
and after generating virtual data required by the test, sending a call response carrying the account entry currency type, the account entry amount, the account entry shop number, the interest-making date and the payment account number to the client, and realizing the test of quick account entry.
4. The method for generating virtual test data according to claim 2, wherein the withdrawal generation includes a new amount and a generation amount;
the newly added amount comprises the following steps:
receiving a test data calling request of a newly added amount interface of a client, wherein the newly added amount test data calling request comprises a newly added amount interface identification field, a generated currency type and a currency amount;
acquiring an identification field of a newly added money interface of the client;
judging whether the generated currency type and the currency amount respectively accord with the data format of the currency type and the currency amount corresponding to the newly added amount interface in the preset test data generation system;
if not, sending a response that the generated data parameters are illegal to the client,
if yes, generating a virtual currency type and a virtual currency amount required by the test according to the field name of the interface identification field, the generated currency type and the currency amount and a preset test data generation system, and generating the virtual currency type and the currency amount required by the test in the test data generation system according to the requirements of the generated currency type and the currency amount;
after generating virtual data required by the test, sending a calling response carrying the generated currency type and the currency amount to the client;
the issuing amount comprises the following steps:
receiving a test data calling request of a client issuing-instead amount interface, wherein the test data calling request of the issuing-instead amount comprises an identification field of the issuing-instead amount interface, the generation of currency types and amounts to be converted and the generation of a currency account to be received;
acquiring a client issuing amount interface identification field;
judging whether the generated currency type and the amount of the currency to be converted and the generated currency account to be received respectively accord with the currency type and the amount of the currency to be converted corresponding to the issuing amount interface in the preset test data generation system or not, and generating a data format of the currency account to be received;
if not, sending a response that the generated data parameters are illegal to the client,
if so, generating the currency type and the amount of the currency to be converted, generating the currency account to be received and a preset test data generation system according to the field name of the interface identification field, and generating a virtual currency type to be converted, the currency amount to be converted and the currency account to be received which are required by the test according to the requirements of generating the currency type and the amount of the currency to be converted and generating the currency account to be received in the test data generation system;
converting the virtual currency type and the currency amount required by the generation test into the currency type and the amount to be converted, and sending the converted currency and amount to the currency account to be received;
and sending the converted currency and the converted amount to the account of the to-be-received currency, and then sending a calling response carrying currency generation to the client side, and realizing the test of promoting the generation.
5. The method for generating virtual test data according to claim 2, wherein the channel callback specifically includes:
receiving a test data call request of a channel callback interface of a client, wherein the channel callback test data call request comprises a channel callback interface identification field, a channel type, a channel transaction code, an order number and a transaction amount;
acquiring a client interface identification field;
judging whether the channel type, the channel transaction code, the order number and the transaction amount conform to the data format of the generated data parameter corresponding to the interface in the preset test data generation system or not;
if not, sending a response that the channel type is illegal and/or a response that the channel transaction code is illegal and/or a response that the order number is illegal and/or a response that the transaction amount is illegal to the client,
if yes, generating virtual data required by channel callback test in a test data generation system according to the field name of the interface identification field, the channel type, the channel transaction code, the order number, the transaction amount and a preset test data generation system;
and after virtual data required by the test is generated, sending a calling response carrying the channel type, the channel transaction code, the order number and the transaction amount to the client, and realizing the test of channel callback.
6. The method for generating virtual test data according to claim 2, wherein the one-key store specifically includes:
receiving a test data calling request of a one-key shop interface of a client, wherein the one-key shop test data calling request comprises a one-key shop interface identification field, and account numbers and the number of generated shops;
acquiring a client interface identification field;
judging whether the type of the generating shop and the number of the generating shops respectively accord with the data format of the type of the generating shop and the data format of the number of the generating shops corresponding to the interface in the preset test data generating system;
if not, sending a response that the type of the generating shop is illegal and/or the number of the generating shops is illegal to the client,
if yes, according to the field name of the interface identification field, the type and the number of the generating stores and a preset test data generation system, generating the type of the generating stores and the number of the generating stores which are required by testing according to the request of the type and the number of the generating stores in the test data generation system;
and after the type of the generating shop and the number of the generating shops which are needed by the test are generated, sending a calling response carrying a generating shop identification field to the client, and realizing the test of the one-key shop.
7. The method for generating virtual test data according to claim 1, wherein the user registration specifically includes:
receiving a test data calling request of a newly added user information interface of a client, wherein the test data calling request of the newly added user information comprises an identification field of the newly added user information interface and generated user information;
acquiring a newly added user information interface identification field of a client;
judging whether the generated user information conforms to the data format of the generated user information corresponding to the interface in the preset test data generation system;
if not, sending a response that the type of the generated user information is illegal to the client,
if yes, generating virtual user information in the test data generation system according to the field name of the identification field of the newly added user information interface, the generated user information and a preset test data generation system;
and sending a calling response carrying the virtual user information to the client, and realizing the test of user registration.
8. A system for generating virtual test data, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a test data calling request of a client interface, and the test data calling request comprises a client interface identification field and a generated data parameter;
the acquisition module is used for acquiring the client interface identification field;
the generating module is used for generating virtual test data in the test data generating system according to the field name of the interface identification field, the generated data parameter and a preset test data generating system; the preset test data generation system generates relevant data of modules including quick entry, promotion, channel callback, one-key binding store and user registration;
and the sending module is used for sending a calling response carrying the virtual test data to the client.
9. An apparatus for generating virtual test data, comprising:
a memory for storing executable instructions;
a processor for implementing the method of generating virtual test data as claimed in any one of claims 1 to 7 when executing executable instructions stored in the memory.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a processing program, which when executed by a processor, implements the method of generating virtual test data according to any one of claims 1 to 7.
CN202211606873.8A 2022-12-13 2022-12-13 Cross-border payment oriented data generation method, system, equipment and storage medium Pending CN115858368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211606873.8A CN115858368A (en) 2022-12-13 2022-12-13 Cross-border payment oriented data generation method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211606873.8A CN115858368A (en) 2022-12-13 2022-12-13 Cross-border payment oriented data generation method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115858368A true CN115858368A (en) 2023-03-28

Family

ID=85672872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211606873.8A Pending CN115858368A (en) 2022-12-13 2022-12-13 Cross-border payment oriented data generation method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115858368A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117350880A (en) * 2023-12-06 2024-01-05 杭州乒乓智能技术有限公司 Full-link account checking method, device, equipment and medium based on snowflake algorithm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117350880A (en) * 2023-12-06 2024-01-05 杭州乒乓智能技术有限公司 Full-link account checking method, device, equipment and medium based on snowflake algorithm
CN117350880B (en) * 2023-12-06 2024-02-23 杭州乒乓智能技术有限公司 Full-link account checking method, device, equipment and medium based on snowflake algorithm

Similar Documents

Publication Publication Date Title
CN109801051B (en) Resource transfer method, system, server and computer readable storage medium
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN115858368A (en) Cross-border payment oriented data generation method, system, equipment and storage medium
CN111861745A (en) Service wind control method and device
CN109087109B (en) Mobile payment confirmation method, device, system and storage medium
CN112861033B (en) Method and device for executing service
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN112598810A (en) Exhibition entrance processing method and device
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN110807679B (en) Taxi invoice generation method and device based on blockchain
CN111461798B (en) Big data-based ticket business processing method, device, medium and equipment for individual user
CN113379523A (en) Bill generation method, device, medium and electronic equipment
CN111784346A (en) User interception method and device based on unmanned selling equipment and server
CN111523872A (en) Transaction processing method and device, mobile terminal and computer readable storage medium
CN111292051B (en) Foreign exchange business processing method, device, equipment and medium
CN110992118A (en) Electronic invoice issuing method, device, storage medium, equipment and system
CN112215592B (en) Data processing method and system
CN111080379A (en) Financial data processing method and device based on block chain
CN114765562B (en) Cloud service charging method and system, storage medium and electronic terminal
CN113706045B (en) Funds payment method, apparatus, device, medium and program product
CN110827009B (en) Fund transfer method and device based on account balance limit
CN115713338A (en) Payment data processing method and device, readable storage medium and electronic equipment
CN113919829A (en) Account transaction request processing method, device and system and electronic equipment
CN115511475A (en) Method, system, device and medium for notification of collection message
CN116862605A (en) Bill generation method, device, electronic equipment and storage medium

Legal Events

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