Disclosure of Invention
In view of this, the embodiment of the invention provides a method and a device for testing a service system, which can test a first service system by taking service data of a second service type corresponding to a first service type operated by a second service system as test data according to a service mapping relation after determining the first service type corresponding to the first service system to be tested, so that a technician does not need to write the test data manually, and the service data obtained by the operation of the second service system is taken as the test data, and can also cover more real use scenes, thereby testing the first service system more completely and improving the accuracy and efficiency of the test.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, a method for testing a service system is provided.
The testing method of the service system in the embodiment of the invention comprises the following steps:
determining a first service type corresponding to a first service system to be tested;
determining a second service type corresponding to the first service type according to the service mapping relation;
Determining service data of a second service type running in a second service system, and taking the service data as test data;
and testing the first service system by using the test data.
Alternatively, the process may be carried out in a single-stage,
Determining service data of a second service type operating on a second service system, comprising:
determining message data of a second service system;
And extracting service data corresponding to the second service type from the message data.
Alternatively, the process may be carried out in a single-stage,
The service data comprises a data tag and a service value, and the service data is used as test data and comprises the following steps:
for each first traffic type, performing:
determining a first data tag corresponding to the first service type and extracting target service data corresponding to the first service type;
Determining a second data tag corresponding to the first data tag and a second service value corresponding to the second data tag from the target service data according to the first data tag;
and taking the second service value as test data corresponding to the first data tag.
Alternatively, the process may be carried out in a single-stage,
Determining a first data tag to be tested according to a preset error range table, wherein the allowable error range of the first data tag to be tested is larger than a preset threshold value;
And determining a second data tag corresponding to the first data tag to be tested and a second service value corresponding to the second data tag from the target service data.
Alternatively, the process may be carried out in a single-stage,
Determining a second data tag corresponding to the first data tag from the target service data, including:
Determining a plurality of second data tags included in the target service data;
traversing the plurality of second data tags to find a second data tag corresponding to the first data tag.
Alternatively, the process may be carried out in a single-stage,
When the character string corresponding to the second data tag is included in the character string corresponding to the first data tag, determining that the second data tag corresponds to the first data tag.
Alternatively, the process may be carried out in a single-stage,
And determining a second data tag corresponding to the first data tag from the target service data according to a preset tag corresponding table.
Alternatively, the process may be carried out in a single-stage,
Taking the service data as test data, comprising:
determining a first data type required by a first service system;
Determining a second data type of the service data;
And determining whether the first data type and the second data type are the same, if not, converting the service data according to the first data type, and taking the converted service data as test data.
Alternatively, the process may be carried out in a single-stage,
Converting the service data according to the first data type, including:
Constructing a decoding mapping table, wherein the decoding mapping table comprises a plurality of data types, a plurality of characters contained in each data type in the plurality of data types and character correspondence among different data types;
and converting the service data according to the decoding mapping table.
Alternatively, the process may be carried out in a single-stage,
Converting the service data according to the decoding mapping table, including:
Determining a second data type corresponding to the service data from the decoding mapping table, and determining a plurality of characters to be converted included in the service data from a plurality of characters corresponding to the second data type;
Determining a plurality of characters corresponding to the first data type in a decoding mapping table;
And respectively determining a target character corresponding to each character to be converted in a plurality of characters corresponding to the first data type according to the character corresponding relation between the first data type and the second data type in the decoding mapping table so as to convert the service data.
Alternatively, the process may be carried out in a single-stage,
The first business system and the second business system are financial transaction systems;
the first business type includes any one or more of contract-level accounting, channel-out accounting, cash flow accounting, and detail accounting.
Alternatively, the process may be carried out in a single-stage,
In the case where the first business type is contract-level accounting,
And testing the foreign exchange transaction and the borrowing transaction by using the test data.
Alternatively, the process may be carried out in a single-stage,
The first data label corresponding to the foreign exchange transaction comprises any one or more of a product type corresponding to the foreign exchange transaction, a transaction date, an expiration date, a transaction opponent short name, a transaction currency pair, a transaction direction, a currency, an amount corresponding to the currency, a payment date, a pricing exchange rate and a no-principal-exchange long-term foreign exchange transaction fixed interest days;
And/or the number of the groups of groups,
The first data label corresponding to the borrowing transaction comprises any one or more of a product type, a transaction date, a start date, an expiration date, a transaction opponent abbreviation, a currency code, a transaction amount, an expired repayment amount, interest, an interest rate type, a fixed interest rate value, a fixed interest rate rule, a floating interest rate standard, a difference of interest, a floating interest rule, an interest calculation mode, a reset frequency, a reset holiday, a reset period, a payment holiday rule, an interest frequency, an interest adjustment mode, an interest calendar and an interest setting mode corresponding to the borrowing transaction.
Alternatively, the process may be carried out in a single-stage,
In the case where the first traffic type is out-of-channel accounting,
The first data tag includes any one or more of a clearing currency code, an actual clearing amount, a report line number, a payer name, a payer account number, a payer account opening line name, a payee line number, a payee account name, a payee address, a payee account number, a payee account opening line name.
Alternatively, the process may be carried out in a single-stage,
In the case where the first service type is cash flow accounting,
The first data tag comprises any one or more of a business type corresponding to cash flow, a transaction opponent short name, a clearing currency code, a sink custom name and a clearing path category code.
Alternatively, the process may be carried out in a single-stage,
In the case where the first traffic type is detail accounting,
The first data tag includes any one or more of accounting date, product contract number, transaction facility number, account facility number, multi-entity identification, currency code, subject generation direction code, natural subject number, list subject flag, detail record transaction generation amount, account responsibility center number, public client type code, business to business organization number, general account deadline code.
In order to achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a testing apparatus for a service system.
The testing device of the service system comprises a first type confirming module, a second type confirming module, a testing data determining module and a testing module, wherein the testing device comprises:
The first type confirmation module is used for determining a first service type corresponding to a first service system to be tested;
The second type confirming module is used for determining a second service type corresponding to the first service type according to the service mapping relation;
The test data determining module is used for determining service data of a second service type running in a second service system and taking the service data as test data;
And the test module is used for testing the first service system by using the test data.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a test electronic device for a service system.
The test electronic equipment of the business system comprises one or more processors and a storage device, wherein the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the test method of the business system.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium.
A computer readable storage medium of an embodiment of the present invention stores a computer program thereon, which when executed by a processor implements a method for testing a service system of the embodiment of the present invention.
The embodiment of the invention has the advantages that after the first service type corresponding to the first service system to be tested is determined, the service data of the second service type corresponding to the first service type operated by the second service system can be used as test data to test the first service system according to the service mapping relation, so that a technician does not need to write the test data manually, the service data obtained by the operation of the second service system can be used as the test data, more real use scenes can be covered, the first service system can be tested more completely, and the accuracy and the efficiency of the test are improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features in the embodiments may be combined with each other without collision.
Fig. 1 is a schematic diagram of main steps of a testing method of a service system according to an embodiment of the present invention.
As shown in fig. 1, a testing method of a service system according to an embodiment of the present invention mainly includes the following steps:
step S101, determining a first service type corresponding to a first service system to be tested.
In an embodiment of the present invention, the first business system is a financial transaction system. In a preferred embodiment of the invention, the first business system is a funds transaction operator platform system.
In an embodiment of the invention, the first business type comprises any one or more of contract-level accounting, channel-out accounting, cash flow accounting and detail accounting. The objective of testing the first business type is to automatically compare and analyze the total transaction of one or more days in background processing links such as transaction confirmation, transaction clearing and settlement, transaction accounting and the like of the first business system at a contract level (small account), an external channel message level (large account), a cash flow level and an accounting level (accounting account) and check whether the processing results of the first business system at the four levels meet expectations.
Step S102, according to the service mapping relation, determining a second service type corresponding to the first service type.
In the embodiment of the invention, the service mapping relation between the first service type of the first service system and the second service type of the second service system can be preconfigured, so that after the first service type corresponding to the first service system to be tested is determined, the second service type corresponding to the first service type to be tested can be determined according to the service mapping relation. In a preferred embodiment of the present invention, the service mapping relationship is stored in a service number mapping table.
Step S103, determining service data of a second service type running in a second service system, and taking the service data as test data.
In the embodiment of the invention, the first service system and the second service system are financial transaction systems. In a preferred embodiment of the present invention, the first business system is a funds transaction operator platform system and the second business system is a Opics operator platform system.
In the embodiment of the present invention, the service data may include a data tag and a service value, and a method for using the service data as test data is shown in fig. 2, where the method performs the following steps for each first service type:
Step S201, determining a first data tag corresponding to a first service type and extracted target service data corresponding to the first service type;
step S202, determining a second data label corresponding to the first data label and a second service value corresponding to the second data label from target service data according to the first data label;
and step 203, taking the second service value as the test data corresponding to the first data label.
In the embodiment of the invention, when the second data tag corresponding to the first data tag is determined from the target service data, a plurality of second data tags included in the target service data can be determined first, and then the plurality of second data tags are traversed to find the second data tag corresponding to the first data tag. Specifically, when the character string corresponding to the second data tag is included in the character string corresponding to the first data tag, the second data tag may be determined to correspond to the first data tag, or the second data tag corresponding to the first data tag may be determined from the target service data according to a preset tag correspondence table.
In the embodiment of the invention, the first data label and the second data label which need to be compared in the test can be distinguished and identified according to the dimension of the major class and the minor class of the product.
In an embodiment of the invention, the first business type comprises any one or more of contract-level accounting, channel-out accounting, cash flow accounting and detail accounting.
In the embodiment of the invention, under the condition that the first business type is contract level account following, the test data can be utilized to test the foreign exchange transaction and the borrowing transaction.
When the test data is used for testing the foreign exchange transaction, the first data label corresponding to the foreign exchange transaction can comprise any one or more of a product type corresponding to the foreign exchange transaction, a transaction date, an expiration date, a transaction opponent abbreviation, a transaction currency pair, a transaction direction, a currency, an amount corresponding to the currency, a payment date, a pricing exchange rate and a no-principal-exchange long-term foreign exchange transaction fixed interest days.
For example, as shown in fig. 3, fig. 3 is an exemplary diagram of a first data tag corresponding to a foreign exchange transaction of a first business system (i.e., the "blue core" system in fig. 3). The first data tag is a field name under a column of 'blue core system data', and the second data tag is a field under a column of 'Opics system data', and it can be seen that the first data tag and the second data tag corresponding to the foreign exchange transaction in fig. 3 each include a product type (including a background major product and a background minor product) corresponding to the foreign exchange transaction, a transaction date, an expired transaction, a opponent abbreviation, a transaction currency pair, a transaction direction, a currency (including a currency one code and a currency two code), a currency corresponding amount (including a currency one near end amount, a currency one far end amount, a currency two near end amount, a currency two far end amount), a payment date (including a near end payment date and a far end payment date), a pricing exchange rate, and a no-principal-exchange long-term foreign exchange transaction NDF fixed interest days.
When the lending transaction is tested by using the test data, the first data tag corresponding to the lending transaction can include, but is not limited to, any one or more of a product type, a transaction date, an interest date, an expiration date, a opponent abbreviation, a currency code, a transaction amount, an expired payback amount, an interest type, a fixed interest value, a fixed interest rule, a floating interest criterion, an interest difference, a floating interest rule, an interest calculation mode, a reset frequency, a reset holiday, a reset period, a payment holiday rule, an interest frequency, an interest adjustment mode, an interest calendar, and an interest calculation mode corresponding to the lending transaction.
For example, as shown in fig. 4, fig. 4 is an exemplary diagram of a first data tag corresponding to a borrowing transaction of a first business system (i.e., the "blue core" system in fig. 4). The first data tag, i.e. the field Chinese and/or field name under the column of "blue core system data", and the second data tag, i.e. the field under the column of "Opics system data", can be seen that the first data tag and the second data tag corresponding to the loan transaction in fig. 4 each include a product type corresponding to the loan transaction (including a background major product and a background minor product), a transaction date, an interest date, an expiration date, a transaction opponent abbreviation, a currency code, a transaction amount, an expired payment amount, interest, an interest rate type, a fixed interest rate value, a fixed interest rate rule, a floating interest rate reference, an interest difference, a floating interest rule, an interest calculation mode, a reset frequency, a reset holiday, a reset period, a payment holiday rule, an interest frequency, an interest adjustment mode, an interest calendar and an interest settlement mode.
In fig. 3 and 4, it can be seen that under the column of "alignment", there are "direct alignment", "decoding alignment" and "complex alignment". The method comprises the steps of judging whether a first service system is required to be used for a first service, wherein the first data type required by the first service system is consistent with a second data type of the service data, and the first service system is required to be used for a second service system, wherein the first data type required by the first service system is consistent with the second data type of the service data, the comparison test can be directly carried out, the decoding comparison shows that the first data type is inconsistent with the second data type, the service data needs to be converted so that the service data can be identified by the first service system, and the complex logic is extremely special and needs to be used for respectively processing the service data of different second service types in a targeted mode so that the processed service data can be used as test data of the first service system.
Therefore, in the embodiment of the invention, before the service data of non-complex logic is used as test data, the first data type required by the first service system and the second data type of the service data are required to be determined, and then whether the first data type and the second data type are the same or not is determined.
In the embodiment of the present invention, a method for converting service data is shown in fig. 5, and the method mainly includes the following steps:
step S501, constructing a decoding mapping table, wherein the decoding mapping table comprises a plurality of data types, a plurality of characters contained in each data type in the plurality of data types and character correspondence among different data types;
step S502, determining a second data type corresponding to the service data from the decoding mapping table, and determining a plurality of characters to be converted included in the service data from a plurality of characters corresponding to the second data type;
Step S503, determining a plurality of characters corresponding to the first data type in a decoding mapping table;
Step S504, according to the character corresponding relation between the first data type and the second data type in the decoding mapping table, respectively determining a target character corresponding to each character to be converted in a plurality of characters corresponding to the first data type so as to convert the service data.
In the embodiment of the invention, under the condition that the first service type is the channel external connection account following, the first service system needs to send out the message. The messages sent outwards by the first service system can be divided into a confirmation message and a payment message according to the function classification. The confirmation message of the SWIFT channel is divided into MT300 and MT320 messages due to different foreign exchange and borrowing products, and the payment message of the SWIFT channel is divided into MT202 and MT210 messages due to different receiving and payment directions. The payment message can also comprise CNAPS channels besides the SWIFT channel, which is specially used for the large-amount collection and payment message of the RMB, wherein only the payment message of CNAPS channels is sent outwards.
In the embodiment of the invention, when determining the service data, the message data of the second service system can be determined first, and then the service data corresponding to the second service type is extracted from the message data.
Specifically, for the SWIFT channel, the rule of extracting the message data is shown in fig. 6, and the rule of matching the message data of the second service system with the first service system is shown in fig. 7. After matching, service data corresponding to the second service type can be extracted from the message data to test the first service system.
For example, as shown in fig. 8, fig. 8 is a screenshot of acquiring test data from message data to perform a comparison test on the first service system. The service value corresponding to the first data tag 32A circled in the Opics system M202 packet is used as test data to perform a comparison test on the second data tag tagKey a circled in the "blue core" system M202 packet, and the service value corresponding to the first data tag 22C circled in the 15A field in the Opics system M300 packet is used as test data to perform a comparison test on the second data tag tagkey15a.22c circled in the "blue core" system M300 packet.
For CNAPS channels, the extraction rule of the message data is shown in fig. 9. The first data tag may include any one or more of, but not limited to, a clearing currency code, an actual clearing amount, a report line number, a payer name, a payer account number, a payer account name, a payee account number, a payee address, a payee account number, a payee account name.
For example, as shown in fig. 10, fig. 10 is an exemplary diagram of a first data tag corresponding to a first service system (i.e., the "blue core" system in fig. 10). The first data tag, namely, the field under the column of "blue core system data" and/or the new generation definition, and the second data tag, namely, the field under the column of "fund transaction background data", can be seen that the first data tag and the second data tag in fig. 10 each comprise a clearing currency code, an actual clearing amount, a sending line number, a receiving line number, a payer account opening line name, a receiving line number, a payee account name, a payee address, a payee account number, a payee account opening line number and a payee account opening line name.
In the embodiment of the invention, in the case that the first service type is cash flow accounting, the first data tag can comprise any one or more of, but is not limited to, a service type corresponding to the cash flow, a transaction opponent short name, a clearing currency code, a sink custom name and a clearing path category code.
For example, as shown in fig. 11, fig. 11 is an exemplary diagram of a first data tag corresponding to another first service system. The first data tag, i.e. the blue core plan cash flow comparison field and/or the cash flow comparison field Chinese description, and the second data tag, i.e. the Opics or the corresponding system comparison field and/or the Opics or the corresponding system comparison field Chinese description, are not consistent, and it can be seen that the first data tag and the second data tag in fig. 11 each include a transaction number, a cash flow number, a business type (including a business major class and a business minor class) corresponding to the cash flow, a payment date, a transaction opponent number, a transaction opponent short name, a clearing currency code, a clearing path category code, a clearing account short name, a sink custom name and a cash flow interval type.
In the embodiment of the present invention, in the case that the first service type is detail accounting, a rule of acquiring service data is shown in fig. 12. The first data tag may include any one or more of, but not limited to, accounting date, product contract number, transaction facility number, account facility number, multi-entity identification, currency code, subject generation direction code, natural subject number, list subject flag, detail entry transaction generation amount, account responsibility center number, public customer type code, business to business facility number, general ledger deadline code.
The method and the device for testing the first data label comprise the steps of determining the first data label to be tested according to a preset error range table, wherein the allowable error range of the first data label to be tested is larger than a preset threshold value, the error range table comprises one or more data labels and the allowable error range corresponding to each data label, and determining a second data label corresponding to the first data label to be tested and a second service value corresponding to the second data label from target service data.
For example, as shown in fig. 13, fig. 13 is an exemplary diagram of a first data tag corresponding to a first service system (i.e., the "blue core" system in fig. 13). The first data tag, namely, the field under the column of "blue core system data" and/or the new generation definition, and the second data tag, namely, the field under the column of "Opics system data providing file", can be seen that the first data tag and the second data tag in fig. 13 each comprise accounting date, product contract number, transaction facility number, account facility number, multi-entity identification, currency code, subject generation direction code, natural subject number, list subject mark, detail list transaction generation amount, account responsibility center number, public client type code, in-group past institution number and general account term code.
And step S104, testing the first service system by using the test data.
In the embodiment of the invention, after the test data is determined, the test data can be used for testing the first service system. In a preferred embodiment of the invention, the test sequence is:
Firstly, performing contract level account following test, wherein the expected starting time is when the second round of application assembly test starts, and the function of the FTB platform is relatively stable;
secondly, performing channel external connection account following test, wherein the estimated starting time is the middle and later period of the contract level account following test, and the cooperative payment settlement component and the external connection are relatively stable;
then, carrying out cash flow account following test on the transaction, wherein the estimated starting time is the middle and later period of the contract level account following test, and can be carried out simultaneously with the out-of-channel account following test;
and finally, performing accounting general accounting detail accounting test, wherein the estimated starting time is the second round of user test, and the middle and later stages of the accounting special test are the middle and later stages of the accounting function test.
For example, during the testing process, the first service system may be subjected to the comparison test using the test data according to the "comparison logic" in fig. 3,4, 10, 11, or 13.
In the embodiment of the invention, when the first service system is tested by using the test data, the problems in the test process, the tracking and circulation of the problems can be uniformly managed, and the test problems can be distributed to personnel in the next link. In the execution process, if a tester finds a test problem, the tester should register the test problem in time, track the problem, analyze and solve the process, retest in time, set the problem state as a final state, and a developer should analyze and process the defect in time and record analysis and processing information of the defect according to the requirement.
According to the testing method of the service system, after the first service type corresponding to the first service system to be tested is determined, service data of the second service type corresponding to the first service type and operated by the second service system can be used as testing data to test the first service system according to the service mapping relation, so that a technician does not need to write the testing data manually, service data obtained by operation of the second service system can be used as the testing data, more real use scenes can be covered, the first service system can be tested more completely, and testing accuracy and efficiency are improved.
Fig. 14 is a schematic diagram of main modules of a test apparatus of a service system according to an embodiment of the present invention.
As shown in fig. 14, a test apparatus 1400 of a service system according to an embodiment of the present invention includes a first type confirmation module 1401, a second type confirmation module 1402, a test data determination module 1403, and a test module 1404, wherein:
a first type confirmation module 1401, configured to determine a first service type corresponding to a first service system to be tested;
A second type confirmation module 1402, configured to determine a second service type corresponding to the first service type according to the service mapping relationship;
a test data determining module 1403, configured to determine service data of a second service type running in a second service system, and take the service data as test data;
A test module 1404 for testing the first service system using the test data.
In the embodiment of the present invention, the test data determining module 1403 is further configured to determine the message data of the second service system, and extract the service data corresponding to the second service type from the message data.
In the embodiment of the present invention, the service data includes a data tag and a service value, and the test data determining module 1403 is further configured to determine, for each first service type, a first data tag corresponding to the first service type and extracted target service data corresponding to the first service type, determine, according to the first data tag, a second data tag corresponding to the first data tag and a second service value corresponding to the second data tag from the target service data, and use the second service value as test data corresponding to the first data tag.
In the embodiment of the present invention, the test data determining module 1403 is further configured to determine a first data tag to be tested according to a preset error range table, where an allowable error range of the first data tag to be tested is greater than a preset threshold, the error range table includes one or more data tags and an allowable error range corresponding to each data tag, and determine a second data tag corresponding to the first data tag to be tested and a second service value corresponding to the second data tag from the target service data.
In an embodiment of the present invention, the test data determining module 1403 is further configured to determine a plurality of second data tags included in the target service data, and traverse the plurality of second data tags to find a second data tag corresponding to the first data tag.
In the embodiment of the present invention, the test data determining module 1403 is further configured to determine that the second data tag corresponds to the first data tag when the character string corresponding to the second data tag is included in the character string corresponding to the first data tag.
In the embodiment of the present invention, the test data determining module 1403 is further configured to determine, from the target service data, a second data tag corresponding to the first data tag according to a preset tag correspondence table.
In the embodiment of the present invention, the test data determining module 1403 is further configured to determine a first data type required by the first service system, determine a second data type of the service data, determine whether the first data type and the second data type are the same, and if not, convert the service data according to the first data type, and use the converted service data as the test data.
In the embodiment of the present invention, the test data determining module 1403 is further configured to construct a decoding mapping table, where the decoding mapping table includes a plurality of data types, a plurality of characters included in each of the plurality of data types, and a character correspondence between different data types, and convert the service data according to the decoding mapping table.
In the embodiment of the present invention, the test data determining module 1403 is further configured to determine a second data type corresponding to the service data from the decoding mapping table, determine a plurality of characters to be converted included in the service data from among a plurality of characters corresponding to the second data type, determine a plurality of characters corresponding to the first data type in the decoding mapping table, and determine a target character corresponding to each character to be converted from among the plurality of characters corresponding to the first data type according to a character correspondence between the first data type and the second data type in the decoding mapping table, so as to convert the service data.
In the embodiment of the invention, the first business system and the second business system are financial transaction systems, and the first business type comprises any one or more of contract-level account following, channel external account following, cash flow account following and detail accounting.
In an embodiment of the present invention, the test module 1404 is further configured to test the foreign exchange transaction and the lending transaction using the test data in the case where the first business type is contract-level accounting.
In an embodiment of the invention, the first data tag corresponding to the foreign exchange transaction includes any one or more of a product type corresponding to the foreign exchange transaction, a transaction date, an expiration date, a transaction opponent abbreviation, a transaction currency pair, a transaction direction, a currency corresponding amount, a payment date, a pricing exchange rate, and a no-principal-exchange long-term foreign exchange transaction fixed interest days, and/or,
The first data label corresponding to the borrowing transaction comprises any one or more of a product type, a transaction date, a start date, an expiration date, a transaction opponent abbreviation, a currency code, a transaction amount, an expired repayment amount, interest, an interest rate type, a fixed interest rate value, a fixed interest rate rule, a floating interest rate standard, a difference of interest, a floating interest rule, an interest calculation mode, a reset frequency, a reset holiday, a reset period, a payment holiday rule, an interest frequency, an interest adjustment mode, an interest calendar and an interest setting mode corresponding to the borrowing transaction.
In the embodiment of the invention, when the first service type is channel external connection account following, the first data label comprises any one or more of a clearing currency code, an actual clearing amount, an issuing bank number, a receiving bank number, a payer account opening bank number, a payer account opening name, a receiving bank number, a payee account name, a payee address, a payee account number, a payee account opening bank number and a payee account opening bank name.
In the embodiment of the invention, when the first service type is cash flow account following, the first data tag comprises any one or more of a service type corresponding to the cash flow, a transaction opponent short name, a clearing currency code, a sink custom name and a clearing path category code.
In the embodiment of the invention, when the first business type is detail account following, the first data label comprises any one or more of accounting date, product contract number, transaction mechanism number, account mechanism number, multi-entity identification, currency code, subject generation direction code, natural subject number, list subject mark, detail record transaction generation amount, account responsibility center number, public client type code, business mechanism number and general account deadline code.
According to the testing device of the service system, after the first service type corresponding to the first service system to be tested is determined, service data of the second service type corresponding to the first service type and operated by the second service system can be used as testing data according to the service mapping relation, and the first service system is tested, so that a technician does not need to write the testing data manually, service data obtained by the operation of the second service system is used as the testing data, more real use scenes can be covered, the first service system can be tested more completely, and testing accuracy and efficiency are improved.
Fig. 15 shows an exemplary system architecture 1500 to which a test method of a service system or a test apparatus of a service system of an embodiment of the present invention can be applied.
As shown in fig. 15, system architecture 1500 may include terminal devices 1501, 1502, 1503, a network 1504, and an electronic device 1505. The network 1504 is used to provide a medium for communication links between the terminal devices 1501, 1502, 1503 and the electronic device 1505. The network 1504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the electronic device 1505 through the network 1504 using the terminal devices 1501, 1502, 1503 to receive or transmit messages, etc. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, and the like may be installed on the terminal devices 1501, 1502, 1503.
The terminal devices 1501, 1502, 1503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
Electronic device 1505 may be a server that provides various services, such as a background management server that provides support for shopping-type websites that users browse using terminal devices 1501, 1502, 1503. The background management server can analyze and other processing on the received data such as the product information inquiry request and the like, and feed back processing results (such as target push information and product information) to the terminal equipment.
It should be noted that, the testing method of a service system provided by the embodiment of the present invention is generally executed by the electronic device 1505, and accordingly, the testing device of a service system is generally disposed in the electronic device 1505.
It should be understood that the number of terminal devices, networks and electronic devices in fig. 15 is merely illustrative. There may be any number of terminal devices, networks, and electronic devices, as desired for implementation.
Referring now to FIG. 16, there is illustrated a schematic diagram of a computer system 1600 suitable for use in implementing a terminal device of an embodiment of the present invention. The terminal device shown in fig. 16 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 16, the computer system 1600 includes a Central Processing Unit (CPU) 1601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1602 or a program loaded from a storage section 1608 into a Random Access Memory (RAM) 1603. In RAM 1603, various programs and data required for the operation of system 1600 are also stored. The CPU 1601, ROM 1602, and RAM 1603 are connected to each other by a bus 1604. An input/output (I/O) interface 1605 is also connected to the bus 1604.
Connected to the I/O interface 1605 are an input portion 1606 including a keyboard, a mouse, and the like, an output portion 1607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like, a storage portion 1608 including a hard disk, and the like, and a communication portion 1609 including a network interface card such as a LAN card, a modem, and the like. The communication section 1609 performs communication processing via a network such as the internet. The drive 1610 is also connected to the I/O interface 1605 as needed. A removable medium 1611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 1610 so that a computer program read out therefrom is installed into the storage section 1608 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1609, and/or installed from the removable media 1611. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 1601.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable 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.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, a processor may be described as including a first type of validation module, a second type of validation module, a test data determination module, and a test module. The names of these modules do not in any way constitute a limitation of the module itself, for example a test module may also be described as "a module for testing a first service system with test data".
As a further aspect, the invention also provides a computer readable medium which may be comprised in the device described in the above embodiments or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to include determining a first service type corresponding to a first service system to be tested, determining a second service type corresponding to the first service type according to a service mapping relationship, determining service data of the second service type running on the second service system, and using the service data as test data, and testing the first service system using the test data.
According to the technical scheme of the embodiment of the invention, after the first service type corresponding to the first service system to be tested is determined, the service data of the second service type corresponding to the first service type and operated by the second service system can be used as test data, and the first service system can be tested, so that a technician does not need to write the test data manually, the service data obtained by the operation of the second service system can be used as the test data, more real use scenes can be covered, the first service system can be tested more completely, and the accuracy and efficiency of the test can be improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.