CN113468052A - Dynamic baffle testing method and device - Google Patents

Dynamic baffle testing method and device Download PDF

Info

Publication number
CN113468052A
CN113468052A CN202110741381.9A CN202110741381A CN113468052A CN 113468052 A CN113468052 A CN 113468052A CN 202110741381 A CN202110741381 A CN 202110741381A CN 113468052 A CN113468052 A CN 113468052A
Authority
CN
China
Prior art keywords
test
data
baffle
test point
rule
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.)
Granted
Application number
CN202110741381.9A
Other languages
Chinese (zh)
Other versions
CN113468052B (en
Inventor
韩枫慧
李耀京
赵晓明
耿其乐
周小芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202110741381.9A priority Critical patent/CN113468052B/en
Publication of CN113468052A publication Critical patent/CN113468052A/en
Application granted granted Critical
Publication of CN113468052B publication Critical patent/CN113468052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a dynamic baffle testing method and a device, wherein the method comprises the following steps: acquiring test data of a test item of the banking business to be tested; wherein, the test data comprises the test point of the test item configured by the user; according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data; and obtaining a return result of the test data according to the test data and the target baffle rule. The invention relates to the technical field of big data, because the baffle rule is operation, aiming at different test data of the same test point, different return results can be obtained according to the baffle rule corresponding to the test point, and the flexibility and the accuracy of the baffle test are improved.

Description

Dynamic baffle testing method and device
Technical Field
The invention relates to the technical field of big data, in particular to a dynamic baffle testing method and a dynamic baffle testing device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
When the automated interface test is used for testing the banking business to be tested, an interface for receiving test data sent by a banking business end to be tested needs to be simulated, and a return result is sent to the banking business end to be tested. In the test mode, the return result returned by the baffle to the banking end to be tested is fixed, when the test data of the banking end to be tested, the test item of the test data or the configuration of the banking end to be tested (namely the test point of the test item) changes, the return result returned by the baffle to the interface to be tested cannot make corresponding changes, the test logic is single, the flexibility is not enough, and the accuracy of the test result is low.
Disclosure of Invention
The embodiment of the invention provides a dynamic baffle testing method, which is used for solving the problems that in the prior art, a baffle can only return a fixed return result when a banking service to be tested is tested, the testing logic is single, the testing logic is not flexible enough, and the accuracy of the testing result is low, and comprises the following steps:
acquiring test data of a test item of the banking business to be tested; wherein, the test data comprises the test point of the test item configured by the user;
according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data;
and obtaining a return result of the test data according to the test data and the target baffle rule.
In one possible embodiment, the method further comprises:
generating at least one baffle rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested; wherein, at least one baffle rule is in one-to-one correspondence with the test points of the test item;
and aiming at each test point of each test item, establishing an association relation between the test point and the baffle rule corresponding to the test point.
In a possible implementation manner, generating at least one baffle rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested includes:
determining a return result corresponding to each test point of each test item according to a business rule of the banking business to be tested;
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point;
and aiming at each test item, obtaining at least one baffle rule corresponding to the test item according to the baffle rule corresponding to each test point of the test item.
In one possible embodiment, the baffle rule comprises: and inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance according to the test data, or obtaining the operation of an output result by taking the test data as input.
In one possible embodiment, the baffle rule comprises: when the operation of inquiring the return result of the test data from the comparison table established for the baffle rule in advance according to the test data,
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point, wherein the baffle rule comprises the following steps:
generating at least one comparison table and a query rule corresponding to each comparison table; each comparison table comprises a test item field, a test point field and a return result field; the query rule corresponding to each comparison table can traverse the comparison table and query the content of each field in the comparison table;
determining a target comparison table from at least one comparison table, writing a test item corresponding to the test point into a test item field of the target comparison table, writing the test point into a test point field of the comparison table, writing a return result of the test point into a return result field, and generating an association relation among the test item, the test point and the return result of the test point;
generating a baffle rule corresponding to the test point according to the test point and the query rule corresponding to the target comparison table; the baffle rule corresponding to the test point is an operation of obtaining a return result associated with the test point in the target comparison table according to the query rule of the test point capable of calling the target comparison table.
In one possible embodiment, determining a target look-up table from the at least one look-up table comprises:
determining the comparison table corresponding to the banking business to be tested as a target comparison table from at least one comparison table according to the business identification of the banking business to be tested corresponding to the test point;
or, from at least one comparison table, determining a comparison table with a test item field and a test point field not fully written as a target comparison table.
In one possible embodiment, the baffle rule comprises: when test data is used as input to obtain the operation of output result,
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point, wherein the baffle rule comprises the following steps:
determining the correlation information between each returned result and the test data according to the relationship between each returned result of the test point and the business rule of the banking business to be tested corresponding to the test point;
generating a baffle rule corresponding to the test point according to the association information; the baffle rule corresponding to the test point is an operation of taking test data as input to obtain an output result.
In one possible embodiment, when the target baffle rule is an operation of querying the return result of the test data from the lookup table previously established for the baffle rule based on the test data,
obtaining a return result of the test data according to the test data and the target baffle rule, wherein the return result comprises:
determining a comparison table corresponding to the test data according to the baffle rule corresponding to the test data;
and inquiring the return result of the test data from the comparison table corresponding to the test data according to the baffle rule corresponding to the test data.
In one possible embodiment, where the target baffle rule is an operation that takes test data as input, resulting in an output result,
obtaining a return result of the test data according to the test data and the target baffle rule, wherein the return result comprises:
inputting the data to be tested into a target baffle rule for calculation to obtain an output result;
and taking the output result as a return result of the test data.
In a possible embodiment, for each test point of each test item, establishing an association relationship between the test point and the baffle rule corresponding to the test point includes:
generating a corresponding data identifier for each test point; the data identification corresponding to each test point is different, and the data identification is used for distinguishing different test points in the baffle rule;
and establishing an association relation between the data identification of each test point and the baffle rule corresponding to the test point.
In a possible embodiment, determining, according to a test point, a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item includes:
and determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item according to the data identification of the test point carried in the test data and the association relationship between the data identification of each test point and the baffle rule corresponding to the test point.
In one possible embodiment, the banking service to be tested comprises at least one of: the method comprises the following steps of account information management business of a user, bank card opening management business of the user and bank card information change business of the user.
In one possible implementation manner, when the banking service to be tested is an account information management service of a user, the test item of the banking service to be tested includes: the account number is available, the account number is not registered, the account number is frozen, and the account number is sealed;
aiming at the condition that the test item is available for the account, the test point of the test item comprises the following steps: recent login data and recent transaction data of the account; the returned result comprises: allowing login;
aiming at the condition that the test item is unregistered by the account, the test points of the test item comprise: user data corresponding to the account; the returned result comprises: unregistered, or registered page;
aiming at the condition that the test item is frozen by the account, the test points of the test item comprise: recent transaction data of the account and abnormal login data of the account; the returned result comprises: the account is abnormal or login is prohibited;
aiming at the condition that the test item is an account number, the test point of the test item comprises: abnormal account login data; the returned result comprises: the account number is not available.
In one possible embodiment, when the banking business to be tested is a bank card opening management business of a user, the test items of the banking business to be tested include: new card case, activated normal card case, unactivated card case, underwriting card case;
for the case that the test item is a new card, the test points of the test item include: user data corresponding to the new card and a card type corresponding to the new card; the returned result comprises: allowing the card to be opened;
for the case that the test item is an activated normal card, the test points of the test item include: user data corresponding to the normal card and a card type corresponding to the normal card; the returned result comprises: allowing normal use;
for the case where the test item is an inactive card, the test points of the test item include: user data corresponding to the card not activated and a card type corresponding to the card not activated; the returned result comprises: allowing reactivation;
for the case that the test item is a core pin card, the test point of the test item comprises: user data corresponding to the verification and cancellation card, a card type corresponding to the verification and cancellation card and recent transaction data of the verification and cancellation card; the returned result comprises: the card is not allowed to be opened.
In one possible implementation, when the banking service to be tested is a bank card information change service of a user, the test item of the banking service to be tested includes: the condition of changing the bank card grade, the condition of opening the short message notice of the bank card and the condition of avoiding the annual charge of the bank card;
aiming at the condition that the test item is used for changing the bank card level, the test point of the test item comprises: the data of the current level of the bank card, the user data corresponding to the bank card and the data of other bank cards of users corresponding to the bank card; the returned result comprises: allow changes, or disallow changes;
aiming at the condition that the test item is the short message notice of opening the bank card, the test point of the test item comprises: user data and bank card balance data corresponding to the bank card; the returned result comprises: successful or failed provisioning;
aiming at the condition that the test item is free of the annual fee of the bank card, the test point of the test item comprises: user data corresponding to the bank card and other bank card data of the user corresponding to the bank card; the returned result comprises: allowing exemption, or not.
The embodiment of the invention also provides a dynamic baffle testing device, which is used for solving the problems that the baffle can only return a fixed return result when the banking business to be tested is tested, the testing logic is single, the testing is not flexible enough, and the accuracy of the testing result is low in the prior art, and the device comprises:
the acquisition module is used for acquiring the test data of the test items of the banking business to be tested; wherein, the test data comprises the test point of the test item configured by the user;
the first processing module is used for determining a target baffle rule corresponding to the test item from at least one baffle rule corresponding to the test item according to the test point; the baffle rule is a pre-established operation for generating a corresponding return result for the test data;
and the second processing module is used for obtaining a return result of the test data according to the test data and the target baffle rule.
In one possible embodiment, the method further comprises:
the third processing module is used for generating at least one baffle rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested; wherein, at least one baffle rule is in one-to-one correspondence with the test points of the test item;
and aiming at each test point of each test item, establishing an association relation between the test point and the baffle rule corresponding to the test point.
In a possible implementation manner, the third processing module is specifically configured to determine, according to a business rule of the banking business to be tested, a return result corresponding to each test point of each test item;
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point;
and aiming at each test item, obtaining at least one baffle rule corresponding to the test item according to the baffle rule corresponding to each test point of the test item.
In one possible embodiment, the baffle rule comprises: and inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance according to the test data, or obtaining the operation of an output result by taking the test data as input.
In one possible embodiment, the baffle rule comprises: when the operation of inquiring the return result of the test data from the comparison table established for the baffle rule in advance according to the test data,
the third processing module is specifically used for generating at least one comparison table and a query rule corresponding to each comparison table; each comparison table comprises a test item field, a test point field and a return result field; the query rule corresponding to each comparison table can traverse the comparison table and query the content of each field in the comparison table;
determining a target comparison table from at least one comparison table, writing a test item corresponding to the test point into a test item field of the target comparison table, writing the test point into a test point field of the comparison table, writing a return result of the test point into a return result field, and generating an association relation among the test item, the test point and the return result of the test point;
generating a baffle rule corresponding to the test point according to the test point and the query rule corresponding to the target comparison table; the baffle rule corresponding to the test point is an operation of obtaining a return result associated with the test point in the target comparison table according to the query rule of the test point capable of calling the target comparison table.
In one possible embodiment, the baffle rule comprises: when test data is used as input to obtain the operation of output result,
the third processing module is specifically used for determining the comparison table corresponding to the banking business to be tested as a target comparison table from at least one comparison table according to the business identifier of the banking business to be tested corresponding to the test point; or, from at least one comparison table, determining a comparison table with a test item field and a test point field not fully written as a target comparison table.
In a possible implementation manner, the third processing module is specifically configured to determine association information between each returned result and the test data according to a relationship between each returned result of the test point and a business rule of the banking business to be tested corresponding to the test point;
generating a baffle rule corresponding to the test point according to the association information; the baffle rule corresponding to the test point is an operation of taking test data as input to obtain an output result.
In one possible embodiment, when the target baffle rule is an operation of querying the return result of the test data from the lookup table previously established for the baffle rule based on the test data,
the second processing module is specifically used for determining a comparison table corresponding to the test data according to the baffle rule corresponding to the test data;
and inquiring the return result of the test data from the comparison table corresponding to the test data according to the baffle rule corresponding to the test data.
In one possible embodiment, where the target baffle rule is an operation that takes test data as input, resulting in an output result,
the second processing module is specifically used for inputting the data to be tested into the target baffle rule for calculation to obtain an output result;
and taking the output result as a return result of the test data.
In a possible implementation manner, the third processing module is specifically configured to generate a corresponding data identifier for each test point; the data identification corresponding to each test point is different, and the data identification is used for distinguishing different test points in the baffle rule;
and establishing an association relation between the data identification of each test point and the baffle rule corresponding to the test point.
In a possible implementation manner, the first processing module is specifically configured to determine, according to the data identifiers of the test points carried in the test data and the association relationship between the data identifier of each test point and the baffle rule corresponding to the test point, a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item.
In one possible embodiment, the banking service to be tested comprises at least one of: the method comprises the following steps of account information management business of a user, bank card opening management business of the user and bank card information change business of the user.
In one possible implementation manner, when the banking service to be tested is an account information management service of a user, the test item of the banking service to be tested includes: the account number is available, the account number is not registered, the account number is frozen, and the account number is sealed;
aiming at the condition that the test item is available for the account, the test point of the test item comprises the following steps: recent login data and recent transaction data of the account; the returned result comprises: allowing login;
aiming at the condition that the test item is unregistered by the account, the test points of the test item comprise: user data corresponding to the account; the returned result comprises: unregistered, or registered page;
aiming at the condition that the test item is frozen by the account, the test points of the test item comprise: recent transaction data of the account and abnormal login data of the account; the returned result comprises: the account is abnormal or login is prohibited;
aiming at the condition that the test item is an account number, the test point of the test item comprises: abnormal account login data; the returned result comprises: the account number is not available.
In one possible embodiment, when the banking business to be tested is a bank card opening management business of a user, the test items of the banking business to be tested include: new card case, activated normal card case, unactivated card case, underwriting card case;
for the case that the test item is a new card, the test points of the test item include: user data corresponding to the new card and a card type corresponding to the new card; the returned result comprises: allowing the card to be opened;
for the case that the test item is an activated normal card, the test points of the test item include: user data corresponding to the normal card and a card type corresponding to the normal card; the returned result comprises: allowing normal use;
for the case where the test item is an inactive card, the test points of the test item include: user data corresponding to the card not activated and a card type corresponding to the card not activated; the returned result comprises: allowing reactivation;
for the case that the test item is a core pin card, the test point of the test item comprises: user data corresponding to the verification and cancellation card, a card type corresponding to the verification and cancellation card and recent transaction data of the verification and cancellation card; the returned result comprises: the card is not allowed to be opened.
In one possible implementation, when the banking service to be tested is a bank card information change service of a user, the test item of the banking service to be tested includes: the condition of changing the bank card grade, the condition of opening the short message notice of the bank card and the condition of avoiding the annual charge of the bank card;
aiming at the condition that the test item is used for changing the bank card level, the test point of the test item comprises: the data of the current level of the bank card, the user data corresponding to the bank card and the data of other bank cards of users corresponding to the bank card; the returned result comprises: allow changes, or disallow changes;
aiming at the condition that the test item is the short message notice of opening the bank card, the test point of the test item comprises: user data and bank card balance data corresponding to the bank card; the returned result comprises: successful or failed provisioning;
aiming at the condition that the test item is free of the annual fee of the bank card, the test point of the test item comprises: user data corresponding to the bank card and other bank card data of the user corresponding to the bank card; the returned result comprises: allowing exemption, or not.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the dynamic baffle testing method.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the dynamic barrier testing method is stored in the computer-readable storage medium.
In the embodiment of the invention, test data of a test item of banking business to be tested is acquired; wherein, the test data comprises the test point of the test item configured by the user; according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data; according to the test data and the target baffle rule, the return result of the test data is obtained, so that different return results can be obtained according to the baffle rule corresponding to each test point for different test items of the same test item, and different return results can be obtained through different baffle rules for different test items; and because the baffle rule is an operation, different return results can be obtained according to the baffle rule corresponding to the test point aiming at different test data of the same test point, and the flexibility and the accuracy of the baffle test are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flow chart of a method for testing a dynamic baffle in an embodiment of the invention;
fig. 2 is a flowchart of a method for generating at least one barrier rule corresponding to each test item according to a test point of each test item of banking services to be tested and a business rule of the banking services to be tested, provided in an embodiment of the present invention;
FIG. 3 is an exemplary diagram of a lookup table provided in an embodiment of the present invention;
FIG. 4 is a diagram illustrating an example of a dynamic barrier testing apparatus according to an embodiment of the present invention;
fig. 5 is an exemplary diagram of a computer device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
Research shows that when the banking business to be tested is tested, each banking business to be tested comprises a plurality of test items, each test item comprises a plurality of test points, and each test point needs to be tested. When the barrier test is used for testing the banking business to be tested, a barrier (namely an interface for simulating and receiving test data sent by the banking business end to be tested) is preset, a fixed return value is set for the barrier, and after the barrier receives the test data sent by the banking business end to be tested aiming at each test data, the fixed return value can only be used as a return result for the banking business end to be tested. Therefore, the return result returned by the baffle to the banking end to be tested is fixed, when the test data of the banking end to be tested, the test item of the test data or the configuration of the banking end to be tested (namely the test point of the test item) changes, the return result returned by the baffle to the interface to be tested cannot make corresponding changes, the test logic is single, the test is not flexible enough, and the accuracy of the test result is low.
In view of the above research, an embodiment of the present invention provides a dynamic baffle testing method, as shown in fig. 1, including:
s101: acquiring test data of a test item of the banking business to be tested; wherein, the test data comprises the test point of the test item configured by the user;
s102: according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data;
s103: and obtaining a return result of the test data according to the test data and the target baffle rule.
In the embodiment of the invention, test data of a test item of banking business to be tested is acquired; wherein, the test data comprises the test point of the test item configured by the user; according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data; according to the test data and the target baffle rule, the return result of the test data is obtained, so that different return results can be obtained according to the baffle rule corresponding to each test point for different test items of the same test item, and different return results can be obtained through different baffle rules for different test items; and because the baffle rule is an operation, different return results can be obtained according to the baffle rule corresponding to the test point aiming at different test data of the same test point, and the flexibility and the accuracy of the baffle test are improved.
The following describes details of S101 to S103.
For the above S101, each banking service to be tested includes, for example, at least one test item, and each test item includes, for example, at least one test point; when testing each test item, the user can configure which test point of the test item is to be tested, and carry the configured test point in the test data.
Specifically, the banking business to be tested includes, for example: external banking business, internal banking business, sub-business of any banking business and the like; taking the external banking business as an example, the banking business to be tested includes at least one of an account information management business of the user, a bank card opening management business of the user, a bank card information change business of the user, and the like.
Wherein:
(A) when the banking business to be tested is the account information management business of the user, the test items of the banking business to be tested include: the account number is available, the account number is not registered, the account number is frozen, and the account number is sealed.
(a1) For the case that the test item is available as an account, the test points of the test item include, for example: the recent login data of the account number, the recent transaction data of the account number and the like.
(a2) For the case that the test item is unregistered by the account, the test points of the test item include, for example: and user data corresponding to the account.
(a3) For the case that the test item is account freezing, the test points of the test item include, for example: the account number recent transaction data, the account number abnormal login data and the like.
(a4) For the case that the test item is an account number, the test points of the test item include, for example: and (5) abnormal login data of the account.
(B) The method comprises the following steps When the banking business to be tested is the bank card opening management business of the user, the testing items of the banking business to be tested include: the card verification method comprises at least one of a new card condition, an activated normal card condition, an inactivated card condition, a card verification condition and the like.
(b1) For the case where the test item is a new card, the test points of the test item include, for example: and the user data corresponding to the new card, the card type corresponding to the new card and the like.
(b2) For the case that the test item is an activated normal card, the test points of the test item include, for example: user data corresponding to the normal card, card type corresponding to the normal card and the like.
(b3) For the case where the test item is an inactive card, the test points of the test item include, for example: user data corresponding to the inactivated card, card type corresponding to the inactivated card and the like.
(b4) For the case that the test item is a core pin card, the test points of the test item include, for example: and the user data corresponding to the verification and cancellation card, the card type corresponding to the verification and cancellation card, the recent transaction data of the verification and cancellation card and the like.
(C) The method comprises the following steps When the banking business to be tested is the bank card information change business of the user, the testing items of the banking business to be tested include: at least one of the condition of changing the bank card grade, the condition of opening the short message notice of the bank card, the condition of avoiding the annual fee of the bank card and the like.
(c1) For the case that the test item is to change the bank card level, the test points of the test item include, for example: the bank card data processing method comprises at least one of current grade data of the bank card, user data corresponding to the bank card, other bank card data of a user corresponding to the bank card and the like.
(c2) Aiming at the condition that the test item is a short message notice for opening a bank card, the test point of the test item comprises the following steps: at least one of user data corresponding to the bank card, balance data of the bank card and the like.
(c3) For the case that the test item is exempt from the annual fee of the bank card, the test points of the test item include, for example: user data corresponding to the bank card, other bank card data of the user corresponding to the bank card, and the like.
For the above S102, the baffle rule is an operation created in advance for generating a corresponding return result for the test data, and each test point corresponds to one baffle rule. The baffle rules include, for example: and inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance according to the test data, or obtaining the operation of an output result by taking the test data as input.
In another embodiment of the invention, at least one baffle rule corresponding to each test item is generated according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested; wherein, at least one baffle rule is in one-to-one correspondence with the test points of the test item; and aiming at each test point of each test item, establishing an association relation between the test point and the baffle rule corresponding to the test point.
Specifically, as shown in fig. 2, a flowchart of a method for generating at least one barrier rule corresponding to each test item according to a test point of each test item of banking services to be tested and a business rule of the banking services to be tested provided by the embodiment of the present invention includes:
s201: and determining a return result corresponding to each test point of each test item according to the business rule of the banking business to be tested.
Wherein each test point corresponds to at least one returned result; for the above (a1), the return result includes, for example: allowing login; the return result for the above (a2) includes, for example: unregistered or registered page and the like; the return result for the above (a3) includes, for example: at least one of abnormal account number, login prohibition and the like; the return result for the above (a4) includes, for example: the account is not available; the return result for the above (b1) includes, for example: allowing the card to be opened; the return result for the above (b2) includes, for example: allowing normal use; the return result for the above (b3) includes, for example: allowing reactivation; the return result for the above (b4) includes, for example: the card is not allowed to be opened; the return result for the above (c1) includes, for example: at least one of allowing the modification or not allowing the modification; the return result for the above (c2) includes, for example: at least one of successful opening or failed opening; the return result for the above (c3) includes, for example: allowing exemption, or disallowing exemption, etc.
S202: and aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point.
Because the baffle rule includes an operation of taking test data as input to obtain an output result; or, according to the test data, inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance; therefore, for each test point, the method for generating the baffle rule corresponding to the test point according to the returned result corresponding to the test point is also different, for example:
(1): the baffle rule includes: when the return result of the test data is inquired from a comparison table which is established for the baffle rule in advance according to the test data, for example, at least one comparison table and the inquiry rule corresponding to each comparison table are generated when the baffle rule corresponding to the test point is generated according to the return result corresponding to the test point; each comparison table comprises a test item field, a test point field and a return result field; the query rule corresponding to each comparison table can traverse the comparison table and query the content of each field in the comparison table; determining a target comparison table from at least one comparison table, writing a test item corresponding to the test point into a test item field of the target comparison table, writing the test point into a test point field of the comparison table, writing a return result of the test point into a return result field, and generating an association relation among the test item, the test point and the return result of the test point; generating a baffle rule corresponding to the test point according to the test point and the query rule corresponding to the target comparison table; the baffle rule corresponding to the test point is an operation of obtaining a return result associated with the test point in the target comparison table according to the query rule of the test point capable of calling the target comparison table.
Exemplarily, as shown in fig. 3, an exemplary diagram of a lookup table provided in the embodiment of the present invention includes a test item field, a test point field, and a return result field, where the test item field includes a case that an account is available; the test point field includes: recent login data and recent transaction data of the account; the return result field includes: allowing login; when the representative account information management service of the user is tested, aiming at the test item of the account available condition, the representative account information management service corresponds to two test points, and the return results corresponding to the two test points are both allowed to be logged in.
Here, when generating at least one comparison table, for example, a corresponding comparison table may be generated for each banking service to be tested according to the banking service to be tested, each comparison table corresponds to only one banking service to be tested, and an identifier of each comparison table is a service identifier of the corresponding banking service to be tested; when a target comparison table is determined from at least one comparison table, for example, the comparison table corresponding to the banking business to be tested is determined as the target comparison table from at least one comparison table according to the business identifier of the banking business to be tested corresponding to the test point. Or when generating at least one comparison table, directly generating at least one comparison table, wherein each comparison table can correspond to a plurality of banking businesses to be tested; when a target lookup table is determined from the at least one lookup table, for example, a lookup table with a test item field and a test point field not yet filled is determined from the at least one lookup table as the target lookup table.
(2): the baffle rule includes: when test data are used as input and the operation of an output result is obtained, aiming at each test point, determining the association information between each returned result and the test data according to the relationship between each returned result of the test point and the business rule of the banking business to be tested corresponding to the test point; generating a baffle rule corresponding to the test point according to the association information; the baffle rule corresponding to the test point is an operation of taking test data as input to obtain an output result.
S203: and aiming at each test item, obtaining at least one baffle rule corresponding to the test item according to the baffle rule corresponding to each test point of the test item.
And the baffle rule corresponding to each test point contained in the test item is the baffle rule of the test item.
In addition, for each test point of each test item, when the association relationship between the test point and the baffle rule corresponding to the test point is established, for example: generating a corresponding data identifier for each test point; the data identification corresponding to each test point is different, and the data identification is used for distinguishing different test points in the baffle rule; and establishing an association relation between the data identification of each test point and the baffle rule corresponding to the test point.
Here, the data identification includes, for example, a number, a character string, a combination of a number and a character, and the like.
Receiving the above S102, and when determining the target baffle rule corresponding to the test item from the at least one baffle rule corresponding to the test item according to the test point, for example: and determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item according to the data identification of the test point carried in the test data and the association relationship between the data identification of each test point and the baffle rule corresponding to the test point.
For the above S103, since the baffle rule includes: according to the operation of the test data, inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance, or taking the test data as input to obtain the operation of an output result; therefore, the method of obtaining the returned result of the test data according to the test data and the target baffle rule is also different:
the method comprises the following steps: the target baffle rule includes: when the return result of the test data is inquired from the comparison table which is established for the baffle rule in advance according to the test data, namely when the target baffle rule is the return result of the test data which is inquired from the comparison table which is established for the baffle rule in advance according to the test data, the comparison table corresponding to the test data is determined according to the baffle rule corresponding to the test data; and inquiring the return result of the test data from the comparison table corresponding to the test data according to the baffle rule corresponding to the test data.
Each test data corresponds to at least one returned result, and when the returned results of the test data are inquired from the comparison table corresponding to the test data, for example, the at least one returned result can be inquired.
Secondly, the step of: the target baffle rule includes: the test data is used as input to obtain the operation of an output result, namely when the target baffle rule is the operation of taking the test data as input to obtain the output result, the data to be tested is input into the target baffle rule to be calculated to obtain the output result; and taking the output result as a return result of the test data.
The embodiment of the invention also provides a dynamic baffle testing device, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to the dynamic baffle testing method, the implementation of the device can refer to the implementation of the dynamic baffle testing method, and repeated parts are not described again.
As shown in fig. 4, an exemplary diagram of a dynamic barrier testing apparatus provided in an embodiment of the present invention includes: an acquisition module 401, a first processing module 402, and a second processing module 403; wherein the content of the first and second substances,
an obtaining module 401, configured to obtain test data of a test item of a banking service to be tested; wherein, the test data comprises the test point of the test item configured by the user;
a first processing module 402, configured to determine, according to a test point, a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data;
and a second processing module 403, configured to obtain a return result of the test data according to the test data and the target baffle rule.
In one possible embodiment, the method further comprises: the third processing module is used for generating at least one baffle rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested; wherein, at least one baffle rule is in one-to-one correspondence with the test points of the test item; and aiming at each test point of each test item, establishing an association relation between the test point and the baffle rule corresponding to the test point.
In a possible implementation manner, the third processing module is specifically configured to determine, according to a business rule of the banking business to be tested, a return result corresponding to each test point of each test item; aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point; and aiming at each test item, obtaining at least one baffle rule corresponding to the test item according to the baffle rule corresponding to each test point of the test item.
In one possible embodiment, the baffle rule comprises: and inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance according to the test data, or obtaining the operation of an output result by taking the test data as input.
In one possible embodiment, the baffle rule comprises: when the operation of inquiring the return result of the test data from the comparison table which is established for the baffle rule in advance is carried out according to the test data, the third processing module is specifically used for generating at least one comparison table and the inquiry rule corresponding to each comparison table; each comparison table comprises a test item field, a test point field and a return result field; the query rule corresponding to each comparison table can traverse the comparison table and query the content of each field in the comparison table; determining a target comparison table from at least one comparison table, writing a test item corresponding to the test point into a test item field of the target comparison table, writing the test point into a test point field of the comparison table, writing a return result of the test point into a return result field, and generating an association relation among the test item, the test point and the return result of the test point; generating a baffle rule corresponding to the test point according to the test point and the query rule corresponding to the target comparison table; the baffle rule corresponding to the test point is an operation of obtaining a return result associated with the test point in the target comparison table according to the query rule of the test point capable of calling the target comparison table.
In a possible implementation manner, the third processing module is specifically configured to determine, from at least one comparison table, a comparison table corresponding to the banking service to be tested as a target comparison table according to the service identifier of the banking service to be tested corresponding to the test point; or, from at least one comparison table, determining a comparison table with a test item field and a test point field not fully written as a target comparison table.
In one possible embodiment, the baffle rule comprises: when test data are used as input and the operation of an output result is obtained, the third processing module is specifically used for determining the association information between each returned result and the test data according to the relationship between each returned result of the test point and the service rule of the banking business to be tested corresponding to the test point; generating a baffle rule corresponding to the test point according to the association information; the baffle rule corresponding to the test point is an operation of taking test data as input to obtain an output result.
In a possible implementation manner, when the target baffle rule is an operation of querying a return result of the test data from a comparison table established for the baffle rule in advance according to the test data, the second processing module is specifically configured to determine the comparison table corresponding to the test data according to the baffle rule corresponding to the test data; and inquiring the return result of the test data from the comparison table corresponding to the test data according to the baffle rule corresponding to the test data.
In a possible implementation manner, when the target baffle rule is an operation for obtaining an output result by using test data as input, the second processing module is specifically configured to input the data to be tested into the target baffle rule for calculation to obtain the output result; and taking the output result as a return result of the test data.
In a possible implementation manner, the third processing module is specifically configured to generate a corresponding data identifier for each test point; the data identification corresponding to each test point is different, and the data identification is used for distinguishing different test points in the baffle rule; and establishing an association relation between the data identification of each test point and the baffle rule corresponding to the test point.
In a possible implementation manner, the first processing module is specifically configured to determine, according to the data identifiers of the test points carried in the test data and the association relationship between the data identifier of each test point and the baffle rule corresponding to the test point, a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item.
In one possible embodiment, the banking service to be tested comprises at least one of: the method comprises the following steps of account information management business of a user, bank card opening management business of the user and bank card information change business of the user.
In one possible implementation manner, when the banking service to be tested is an account information management service of a user, the test item of the banking service to be tested includes: the account number is available, the account number is not registered, the account number is frozen, and the account number is sealed; aiming at the condition that the test item is available for the account, the test point of the test item comprises the following steps: recent login data and recent transaction data of the account; the returned result comprises: allowing login; aiming at the condition that the test item is unregistered by the account, the test points of the test item comprise: user data corresponding to the account; the returned result comprises: unregistered, or registered page; aiming at the condition that the test item is frozen by the account, the test points of the test item comprise: recent transaction data of the account and abnormal login data of the account; the returned result comprises: the account is abnormal or login is prohibited; aiming at the condition that the test item is an account number, the test point of the test item comprises: abnormal account login data; the returned result comprises: the account number is not available.
In one possible embodiment, when the banking business to be tested is a bank card opening management business of a user, the test items of the banking business to be tested include: new card case, activated normal card case, unactivated card case, underwriting card case; for the case that the test item is a new card, the test points of the test item include: user data corresponding to the new card and a card type corresponding to the new card; the returned result comprises: allowing the card to be opened; for the case that the test item is an activated normal card, the test points of the test item include: user data corresponding to the normal card and a card type corresponding to the normal card; the returned result comprises: allowing normal use; for the case where the test item is an inactive card, the test points of the test item include: user data corresponding to the card not activated and a card type corresponding to the card not activated; the returned result comprises: allowing reactivation; for the case that the test item is a core pin card, the test point of the test item comprises: user data corresponding to the verification and cancellation card, a card type corresponding to the verification and cancellation card and recent transaction data of the verification and cancellation card; the returned result comprises: the card is not allowed to be opened.
In one possible implementation, when the banking service to be tested is a bank card information change service of a user, the test item of the banking service to be tested includes: the condition of changing the bank card grade, the condition of opening the short message notice of the bank card and the condition of avoiding the annual charge of the bank card; aiming at the condition that the test item is used for changing the bank card level, the test point of the test item comprises: the data of the current level of the bank card, the user data corresponding to the bank card and the data of other bank cards of users corresponding to the bank card; the returned result comprises: allow changes, or disallow changes; aiming at the condition that the test item is the short message notice of opening the bank card, the test point of the test item comprises: user data and bank card balance data corresponding to the bank card; the returned result comprises: successful or failed provisioning; aiming at the condition that the test item is free of the annual fee of the bank card, the test point of the test item comprises: user data corresponding to the bank card and other bank card data of the user corresponding to the bank card; the returned result comprises: allowing exemption, or not.
Based on the aforementioned inventive concept, as shown in fig. 5, the present invention further provides a computer device 500, which includes a memory 510, a processor 520, and a computer program 530 stored on the memory 510 and executable on the processor 520, wherein the processor 520 executes the computer program 530 to implement the aforementioned dynamic barrier testing method.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the dynamic barrier testing method is stored in the computer-readable storage medium.
In the embodiment of the invention, test data of a test item of banking business to be tested is acquired; wherein, the test data comprises the test point of the test item configured by the user; according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data; according to the test data and the target baffle rule, a return result of the test data is obtained, and compared with the technical scheme that in the prior art, the return result of the baffle returned to the to-be-tested banking end is fixed, and when the test data of the to-be-tested banking end, the test item of the test data or the configuration of the to-be-tested banking end (namely the test point of the test item) is changed, the return result returned to the to-be-tested interface by the baffle cannot be changed correspondingly, different return results can be obtained according to the baffle rule corresponding to each test point of the same test item, and different return results are obtained through different baffle rules for different test items; and because the baffle rule is an operation, different return results can be obtained according to the baffle rule corresponding to the test point aiming at different test data of the same test point, and the flexibility and the accuracy of the baffle test are improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (25)

1. A method of dynamic barrier testing, comprising:
acquiring test data of a test item of the banking business to be tested; wherein, the test data comprises the test point of the test item configured by the user;
according to the test points, determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item; the baffle rule is a pre-established operation for generating a corresponding return result for the test data;
and obtaining a return result of the test data according to the test data and the target baffle rule.
2. The dynamic barrier testing method of claim 1, further comprising:
generating at least one baffle rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested; wherein, at least one baffle rule is in one-to-one correspondence with the test points of the test item;
and aiming at each test point of each test item, establishing an association relation between the test point and the baffle rule corresponding to the test point.
3. The dynamic barrier testing method of claim 2, wherein generating at least one barrier rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested comprises:
determining a return result corresponding to each test point of each test item according to a business rule of the banking business to be tested;
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point;
and aiming at each test item, obtaining at least one baffle rule corresponding to the test item according to the baffle rule corresponding to each test point of the test item.
4. The dynamic baffle test method of claim 3 wherein the baffle rules comprise: and inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance according to the test data, or obtaining the operation of an output result by taking the test data as input.
5. The dynamic baffle test method of claim 4 wherein the baffle rules comprise: when the operation of inquiring the return result of the test data from the comparison table established for the baffle rule in advance according to the test data,
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point, wherein the baffle rule comprises the following steps:
generating at least one comparison table and a query rule corresponding to each comparison table; each comparison table comprises a test item field, a test point field and a return result field; the query rule corresponding to each comparison table can traverse the comparison table and query the content of each field in the comparison table;
determining a target comparison table from at least one comparison table, writing a test item corresponding to the test point into a test item field of the target comparison table, writing the test point into a test point field of the comparison table, writing a return result of the test point into a return result field, and generating an association relation among the test item, the test point and the return result of the test point;
generating a baffle rule corresponding to the test point according to the test point and the query rule corresponding to the target comparison table; the baffle rule corresponding to the test point is an operation of obtaining a return result associated with the test point in the target comparison table according to the query rule of the test point capable of calling the target comparison table.
6. The dynamic baffle test method of claim 5, wherein determining a target look-up table from the at least one look-up table comprises:
determining the comparison table corresponding to the banking business to be tested as a target comparison table from at least one comparison table according to the business identification of the banking business to be tested corresponding to the test point;
or, from at least one comparison table, determining a comparison table with a test item field and a test point field not fully written as a target comparison table.
7. The dynamic baffle test method of claim 4 wherein the baffle rules comprise: when test data is used as input to obtain the operation of output result,
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point, wherein the baffle rule comprises the following steps:
determining the correlation information between each returned result and the test data according to the relationship between each returned result of the test point and the business rule of the banking business to be tested corresponding to the test point;
generating a baffle rule corresponding to the test point according to the association information; the baffle rule corresponding to the test point is an operation of taking test data as input to obtain an output result.
8. The dynamic baffle test method according to claim 4, wherein, when the target baffle rule is an operation of referring to a returned result of the test data from a lookup table previously established for the baffle rule based on the test data,
obtaining a return result of the test data according to the test data and the target baffle rule, wherein the return result comprises:
determining a comparison table corresponding to the test data according to the baffle rule corresponding to the test data;
and inquiring the return result of the test data from the comparison table corresponding to the test data according to the baffle rule corresponding to the test data.
9. The dynamic barrier testing method according to claim 4, wherein, when the target barrier rule is an operation of obtaining an output result using test data as an input,
obtaining a return result of the test data according to the test data and the target baffle rule, wherein the return result comprises:
inputting the data to be tested into a target baffle rule for calculation to obtain an output result;
and taking the output result as a return result of the test data.
10. The dynamic barrier testing method of claim 2, wherein for each test point of each test item, establishing an association relationship between the test point and the barrier rule corresponding to the test point comprises:
generating a corresponding data identifier for each test point; the data identification corresponding to each test point is different, and the data identification is used for distinguishing different test points in the baffle rule;
and establishing an association relation between the data identification of each test point and the baffle rule corresponding to the test point.
11. The dynamic baffle test method of claim 10, wherein determining a target baffle rule corresponding to the test item from the at least one baffle rule corresponding to the test item according to the test point comprises:
and determining a target baffle rule corresponding to the test point from at least one baffle rule corresponding to the test item according to the data identification of the test point carried in the test data and the association relationship between the data identification of each test point and the baffle rule corresponding to the test point.
12. The dynamic barrier testing method of claim 1, wherein the banking business to be tested comprises at least one of: the method comprises the following steps of account information management business of a user, bank card opening management business of the user and bank card information change business of the user.
13. The dynamic barrier testing method of claim 12, wherein when the banking business to be tested is an account information management business of the user, the testing items of the banking business to be tested include: the account number is available, the account number is not registered, the account number is frozen, and the account number is sealed;
aiming at the condition that the test item is available for the account, the test point of the test item comprises the following steps: recent login data and recent transaction data of the account; the returned result comprises: allowing login;
aiming at the condition that the test item is unregistered by the account, the test points of the test item comprise: user data corresponding to the account; the returned result comprises: unregistered, or registered page;
aiming at the condition that the test item is frozen by the account, the test points of the test item comprise: recent transaction data of the account and abnormal login data of the account; the returned result comprises: the account is abnormal or login is prohibited;
aiming at the condition that the test item is an account number, the test point of the test item comprises: abnormal account login data; the returned result comprises: the account number is not available.
14. The dynamic barrier testing method according to claim 12, wherein when the banking business to be tested is a bank card opening management business of a user, the banking business test items to be tested include: new card case, activated normal card case, unactivated card case, underwriting card case;
for the case that the test item is a new card, the test points of the test item include: user data corresponding to the new card and a card type corresponding to the new card; the returned result comprises: allowing the card to be opened;
for the case that the test item is an activated normal card, the test points of the test item include: user data corresponding to the normal card and a card type corresponding to the normal card; the returned result comprises: allowing normal use;
for the case where the test item is an inactive card, the test points of the test item include: user data corresponding to the card not activated and a card type corresponding to the card not activated; the returned result comprises: allowing reactivation;
for the case that the test item is a core pin card, the test point of the test item comprises: user data corresponding to the verification and cancellation card, a card type corresponding to the verification and cancellation card and recent transaction data of the verification and cancellation card; the returned result comprises: the card is not allowed to be opened.
15. The dynamic barrier testing method according to claim 12, wherein when the banking service to be tested is a bank card information change service of the user, the test items of the banking service to be tested include: the condition of changing the bank card grade, the condition of opening the short message notice of the bank card and the condition of avoiding the annual charge of the bank card;
aiming at the condition that the test item is used for changing the bank card level, the test point of the test item comprises: the data of the current level of the bank card, the user data corresponding to the bank card and the data of other bank cards of users corresponding to the bank card; the returned result comprises: allow changes, or disallow changes;
aiming at the condition that the test item is the short message notice of opening the bank card, the test point of the test item comprises: user data and bank card balance data corresponding to the bank card; the returned result comprises: successful or failed provisioning;
aiming at the condition that the test item is free of the annual fee of the bank card, the test point of the test item comprises: user data corresponding to the bank card and other bank card data of the user corresponding to the bank card; the returned result comprises: allowing exemption, or not.
16. A dynamic barrier testing apparatus, comprising:
the acquisition module is used for acquiring the test data of the test items of the banking business to be tested; wherein, the test data comprises the test point of the test item configured by the user;
the first processing module is used for determining a target baffle rule corresponding to the test item from at least one baffle rule corresponding to the test item according to the test point; the baffle rule is a pre-established operation for generating a corresponding return result for the test data;
and the second processing module is used for obtaining a return result of the test data according to the test data and the target baffle rule.
17. The dynamic barrier test device of claim 16, further comprising:
the third processing module is used for generating at least one baffle rule corresponding to each test item according to the test point of each test item of the banking business to be tested and the business rule of the banking business to be tested; wherein, at least one baffle rule is in one-to-one correspondence with the test points of the test item;
and aiming at each test point of each test item, establishing an association relation between the test point and the baffle rule corresponding to the test point.
18. The dynamic barrier testing device of claim 17, wherein the third processing module is specifically configured to determine a returned result corresponding to each testing point of each testing item according to a business rule of a banking business to be tested;
aiming at each test point, generating a baffle rule corresponding to the test point according to a return result corresponding to the test point;
and aiming at each test item, obtaining at least one baffle rule corresponding to the test item according to the baffle rule corresponding to each test point of the test item.
19. The dynamic barrier test apparatus of claim 18, wherein the barrier rules comprise: and inquiring the returned result of the test data from a comparison table which is established for the baffle rule in advance according to the test data, or obtaining the operation of an output result by taking the test data as input.
20. The dynamic barrier test apparatus of claim 19, wherein the barrier rules comprise: when the operation of inquiring the return result of the test data from the comparison table established for the baffle rule in advance according to the test data,
the third processing module is specifically used for generating at least one comparison table and a query rule corresponding to each comparison table; each comparison table comprises a test item field, a test point field and a return result field; the query rule corresponding to each comparison table can traverse the comparison table and query the content of each field in the comparison table;
determining a target comparison table from at least one comparison table, writing a test item corresponding to the test point into a test item field of the target comparison table, writing the test point into a test point field of the comparison table, writing a return result of the test point into a return result field, and generating an association relation among the test item, the test point and the return result of the test point;
generating a baffle rule corresponding to the test point according to the test point and the query rule corresponding to the target comparison table; the baffle rule corresponding to the test point is an operation of obtaining a return result associated with the test point in the target comparison table according to the query rule of the test point capable of calling the target comparison table.
21. The dynamic barrier test apparatus of claim 19, wherein the barrier rules comprise: when test data is used as input to obtain the operation of output result,
the third processing module is specifically used for determining the association information between each returned result and the test data according to the relationship between each returned result of the test point and the business rule of the banking business to be tested corresponding to the test point;
generating a baffle rule corresponding to the test point according to the association information; the baffle rule corresponding to the test point is an operation of taking test data as input to obtain an output result.
22. The dynamic barrier test apparatus according to claim 19, wherein, when the target barrier rule is an operation for referring a return result of the test data from a lookup table previously established for the barrier rule based on the test data,
the second processing module is specifically used for determining a comparison table corresponding to the test data according to the baffle rule corresponding to the test data;
and inquiring the return result of the test data from the comparison table corresponding to the test data according to the baffle rule corresponding to the test data.
23. The dynamic barrier test apparatus of claim 19, wherein, when the target barrier rule is an operation of taking test data as an input to obtain an output result,
the second processing module is specifically used for inputting the data to be tested into the target baffle rule for calculation to obtain an output result;
and taking the output result as a return result of the test data.
24. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the dynamic barrier testing method of any one of claims 1 to 15 when executing the computer program.
25. A computer-readable storage medium storing a computer program for executing the dynamic barrier testing method according to any one of claims 1 to 15.
CN202110741381.9A 2021-06-30 2021-06-30 Dynamic baffle testing method and device Active CN113468052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110741381.9A CN113468052B (en) 2021-06-30 2021-06-30 Dynamic baffle testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110741381.9A CN113468052B (en) 2021-06-30 2021-06-30 Dynamic baffle testing method and device

Publications (2)

Publication Number Publication Date
CN113468052A true CN113468052A (en) 2021-10-01
CN113468052B CN113468052B (en) 2022-07-26

Family

ID=77876955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110741381.9A Active CN113468052B (en) 2021-06-30 2021-06-30 Dynamic baffle testing method and device

Country Status (1)

Country Link
CN (1) CN113468052B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192220A1 (en) * 2008-09-08 2010-07-29 Robin Heizmann Apparatuses, methods and systems for providing a virtual development and deployment environment including real and synthetic data
US20150356001A1 (en) * 2014-06-06 2015-12-10 Ebay Inc. Unit test automation for business rules and applications
US20170270035A1 (en) * 2015-06-26 2017-09-21 EMC IP Holding Company LLC Method, device, and computer program product for testing code
CN107783901A (en) * 2017-09-26 2018-03-09 深圳市牛鼎丰科技有限公司 Method for generating test case, device, computer equipment and storage medium
US20190065221A1 (en) * 2017-08-23 2019-02-28 Bank Of America Corporation Dynamic cloud stack testing
CN109495334A (en) * 2017-09-13 2019-03-19 杭州海康威视系统技术有限公司 A kind of test method and device
CN109800165A (en) * 2019-01-14 2019-05-24 中国银行股份有限公司 A kind of front end system test method and device
CN110309047A (en) * 2019-04-16 2019-10-08 中国银行股份有限公司 A kind of test point generation method, apparatus and system
CN111177003A (en) * 2019-12-30 2020-05-19 北京同邦卓益科技有限公司 Test method, device, system, electronic equipment and storage medium
CN111444073A (en) * 2020-03-26 2020-07-24 中国信息通信研究院 Method, device and system for testing performance of financial database
CN112445461A (en) * 2020-11-13 2021-03-05 中信银行股份有限公司 Business rule generation method and device, electronic equipment and readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192220A1 (en) * 2008-09-08 2010-07-29 Robin Heizmann Apparatuses, methods and systems for providing a virtual development and deployment environment including real and synthetic data
US20150356001A1 (en) * 2014-06-06 2015-12-10 Ebay Inc. Unit test automation for business rules and applications
US20170270035A1 (en) * 2015-06-26 2017-09-21 EMC IP Holding Company LLC Method, device, and computer program product for testing code
US20190065221A1 (en) * 2017-08-23 2019-02-28 Bank Of America Corporation Dynamic cloud stack testing
CN109495334A (en) * 2017-09-13 2019-03-19 杭州海康威视系统技术有限公司 A kind of test method and device
CN107783901A (en) * 2017-09-26 2018-03-09 深圳市牛鼎丰科技有限公司 Method for generating test case, device, computer equipment and storage medium
CN109800165A (en) * 2019-01-14 2019-05-24 中国银行股份有限公司 A kind of front end system test method and device
CN110309047A (en) * 2019-04-16 2019-10-08 中国银行股份有限公司 A kind of test point generation method, apparatus and system
CN111177003A (en) * 2019-12-30 2020-05-19 北京同邦卓益科技有限公司 Test method, device, system, electronic equipment and storage medium
CN111444073A (en) * 2020-03-26 2020-07-24 中国信息通信研究院 Method, device and system for testing performance of financial database
CN112445461A (en) * 2020-11-13 2021-03-05 中信银行股份有限公司 Business rule generation method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113468052B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
CN109347787B (en) Identity information identification method and device
CN106909543B (en) Pattern matching method and device of rule engine
CN108427644A (en) Service test method, service testing system and service testing device
CN107404481B (en) User information recognition methods and device
CN105335281A (en) Method and device for automatic mock of external dependency
CN108234134A (en) Block synchronous method and system
CN112560114B (en) Method and device for calling intelligent contract
CN108615151A (en) Data processing method, block chain server and node device
CN110033302A (en) The recognition methods of malice account and device
CN109815321A (en) Question answering method, device, equipment and storage medium
CN110022315A (en) Weight management method, device and equipment in a kind of piece of chain type account book
CN112559635B (en) Service processing method, device, equipment and medium for Ethernet alliance chain node
CN110175201A (en) Business data processing method, system, device and electronic equipment
CN108776587A (en) Data capture method, device, computer equipment and storage medium
US20230418951A1 (en) Apparatus and method for analyzing vulnerabilities of smart contract code
CN110851817A (en) Terminal type identification method and device
CN113312675A (en) Attribute checking method and device, electronic equipment and storage medium
CN108228248A (en) A kind of determining method and apparatus of dependence
CN106102059A (en) For determining the possessory method and apparatus of hotspot
CN113468052B (en) Dynamic baffle testing method and device
CN103414756B (en) A kind of task distribution method, distribution node and system
CN110830492B (en) Method and system for mutually scheduling edge applications based on CoreDNS registration service
CN107180048B (en) Method and device for identifying idempotent states in database
CN115712571A (en) Interactive service test device, interactive service test device, computer equipment and storage medium
CN111930363B (en) Block interface code generation method and device

Legal Events

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

Effective date of registration: 20221026

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Patentee after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, No. 99, Yincheng Road, Shanghai pilot Free Trade Zone, 200120

Patentee before: Jianxin Financial Science and Technology Co.,Ltd.