CN112765025A - Bank card test data service method and system - Google Patents
Bank card test data service method and system Download PDFInfo
- Publication number
- CN112765025A CN112765025A CN202110075878.1A CN202110075878A CN112765025A CN 112765025 A CN112765025 A CN 112765025A CN 202110075878 A CN202110075878 A CN 202110075878A CN 112765025 A CN112765025 A CN 112765025A
- Authority
- CN
- China
- Prior art keywords
- service
- card
- data
- scene
- basic information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000012360 testing method Methods 0.000 title claims abstract description 37
- 238000013515 script Methods 0.000 claims description 27
- 238000004140 cleaning Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 claims description 8
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 238000003860 storage Methods 0.000 claims description 6
- 230000006399 behavior Effects 0.000 claims description 5
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 2
- 238000005201 scrubbing Methods 0.000 claims 2
- 238000010276 construction Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000003754 machining Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a bank card test data service method and a system, wherein a server side applies for card data to obtain first card data containing basic card information; performing service processing according to the first card data to obtain second card data added with service contents; and calling the basic information and the service content of the card from the existing data or adding the basic information and the service content by using an automatic service scene. The method has the advantages that the basic card information and the card service in the existing data are integrated, the cards can be rapidly manufactured, the basic services such as registration and card binding are added for the cards, the required new test data are generated by further combining with the automatic service scene, the required time is short compared with that of the existing manual method, and the test efficiency is greatly improved.
Description
Technical Field
The invention relates to the technical field of computer software testing, in particular to a bank card test data service method and system.
Background
The construction of the middle data is more and more concerned by the industry in recent years, and the centralized management of the data can improve the efficiency of the use, processing and analysis of the data. Currently, the data center idea is used in more fields of data analysis, but as the requirements of automated testing on data are increased, the test data service is more and more concerned.
The test data is the basis of the test, and the preparation of the test data takes more time in the whole process of the test. The current common test data acquisition is manual counting or dragging by a tester. In the banking field, because of the complexity of data calling, creating suitable data required by a test requires a very large communication cost for each department person, and the reusability of the generated test data is generally poor.
In the prior art, when a bank card function test is performed, time-consuming work is required for creating corresponding test data, and the creation processes of a plurality of basic data are the same, so that repeated work causes repeated labor cost expenditure. In addition to functional testing, automated testing requires a large amount of data, and particularly, consumable data requires continuous generation of data, which is difficult to satisfy by manual construction.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a method and a system for testing data of a bank card.
In order to achieve the above purpose, the technical scheme adopted by the invention comprises the following steps:
a service method for testing data of bank card includes
Applying for card data through a server to obtain first card data containing basic information of the card;
performing service processing on the basis of the first card data to obtain second card data added with service contents;
and calling the basic information and the service content of the card from the existing data or adding the basic information and the service content by using an automatic service scene.
Further, the basic information of the card comprises a name, an identity card number, a mobile phone number, a CVV2, an expiration date and a card number; the service content comprises service items involved in card issuing and using processes.
Furthermore, the basic card information is called from the existing data, and the basic card information required by the calling is selected from the existing data of the server; the retrieval of the service content from the existing data includes selecting one or more existing service items.
Furthermore, the adding of the basic information and the service content of the card by using the automatic service scene comprises the steps of manufacturing a corresponding automatic service scene according to the request and calling an execution machine to trigger the corresponding automatic service scene to complete the scene function.
Further, the making of the corresponding automated service scenario according to the request includes:
generating jmx scripts through recording user interface operation to complete user behavior acquisition;
carrying out data cleaning on jmx scripts and converting cleaned jmx scripts into excel files;
and importing the excel file into an interface tool to complete an automatic service scene.
Further, the making of the corresponding automated service scenario according to the requirement further includes:
and debugging the automation service scene by using an interface tool to verify the usability of the automation service scene.
Further, the data cleaning of jmx script includes cleaning off jmx invalid and duplicate interfaces in script; the jmx script conversion to an excel file includes using a python script to complete the conversion process.
The invention also relates to a bank card test data service system, which is characterized by comprising the following components:
the service end comprises a basic card module and a service module, wherein the basic card module is used for storing existing data of basic information of a card and initiating a new request of the basic information of the card, and the service module is used for storing existing data of a service item and initiating the new request of the service item;
the service scene encapsulator is used for making a corresponding automatic service scene according to the requirement;
and the execution machine is used for triggering the corresponding automatic service scene to complete the scene function.
The invention also relates to a computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the above-mentioned method.
The invention also relates to an electronic device, characterized in that it comprises a processor and a memory;
the memory is used for storing the existing data;
the processor is used for executing the method by calling the existing data.
The invention has the beneficial effects that:
the bank card test data service method and the system can realize batch automatic card manufacturing, add basic services such as registration, card binding and the like to the cards, provide test data for functional test and automatic test, and greatly improve the test efficiency.
Drawings
Fig. 1 is a schematic flow chart of a data service method for bank card testing according to the present invention.
Fig. 2 is a schematic structural diagram of a bank card test data service system of the present invention.
Detailed Description
For a clearer understanding of the contents of the present invention, reference will be made to the accompanying drawings and examples.
Fig. 1 is a schematic flow chart of a preferred embodiment of the service method for testing data of a bank card according to the present invention, which includes:
obtaining first card data containing card basic information through a server side applying for card data, wherein the card basic information comprises a name, an identity card number, a mobile phone number, a CVV2, an expiration date and a card number;
and performing service processing on the basis of the first card data to obtain second card data added with service contents, wherein the service contents comprise service items involved in card issuing and using processes, such as binding, registration, integration and the like.
The basic card information is called from the existing data, and the basic card information required by the calling is selected from the existing data of the server; the retrieval of the service content from the existing data includes selecting one or more existing service items. When the card is selected, if the existing data exists, the card can be directly called, and a user can directly check basic information and service content of the card; and when the existing data does not exist, a new flow is required to be executed, wherein the new flow comprises the steps of making a corresponding automatic service scene according to the request and calling an execution machine to trigger the corresponding automatic service scene to complete a scene function. Specifically, the making of the corresponding automated service scenario according to the request includes:
generating jmx scripts through recording user interface operation to complete user behavior acquisition;
performing data cleaning on jmx scripts, wherein the data cleaning comprises cleaning and removing invalid interfaces and repeated interfaces in jmx scripts, and converting cleaned jmx scripts into excel files by using python scripts;
importing the excel file into an interface tool to complete an automatic service scene;
and debugging the automation service scene by using an interface tool to verify the usability of the automation service scene.
The present invention also relates to a bank card test data service system having a structure as shown in fig. 2, including:
the service end comprises a basic card module and a service module, wherein the basic card module is used for storing existing data of basic information of a card and initiating a new request of the basic information of the card, and the service module is used for storing existing data of a service item and initiating the new request of the service item;
the service scene encapsulator is used for making a corresponding automatic service scene according to the requirement;
and the execution machine is used for triggering the corresponding automatic service scene to complete the scene function.
The system can be used for executing the bank card test data service method, and for example, the method can include:
s1, the user applies for card data through the server, which further includes: s11, the server provides a basic card pool, and provides the most basic six-parameter card, name, ID card number, mobile phone number, CVV2, validity period and card number for the user; s12, if the user does not find the needed basic card data in the basic card pool, a new process can be added; s13, making the corresponding automatic service scene by the card making service personnel according to the new requirement, wherein the making process refers to S3; s14, if the basic card pool has the needed basic card data, the application borrowing process can be carried out, and after borrowing, the basic six parameters of the card can be seen;
s2, processing the card for data service, specifically further comprising: s21, processing data services of the card data borrowed in the step 1, such as adding binding cards, registering services and the like; s22, if the data service needing to be added does not exist, the new service flow is added; s23, making the corresponding automatic service scene by the card making service personnel according to the new requirement, wherein the making process refers to S3; s24, if the data service exists, filling corresponding parameter data according to the service requirement, and completing service addition;
s3, automating service scene encapsulation, specifically including: s31, calling a service scene automation script in step S13 and step S23, wherein the scene case is composed of a string of interfaces, and the scene case is subjected to behavior acquisition, script processing, interface script importing and debugging in order to obtain the string of interfaces; s32, collecting user behaviors, recording when the user performs interface operation, and generating jmx scripts by recording; s33, processing the script, wherein the recorded jmx script has a lot of invalid data, so that the collected data needs to be cleaned, invalid repeated interfaces are cleaned, particularly the cleaning can be carried out according to formats, for example, parts with the formats of js, png, gif and css can be cleaned, the cleaning can also be carried out through playback, if the playback fails, the parts are invalid generally, the parts can be deleted, after the cleaning is finished, the jmx script is converted into an Excel file through a python script, and the inside of the Excel file is a request message with a json format; s34, importing the processed excel file into an interface tool to complete a service scene automation, and debugging and verifying that a scene is available in the interface tool;
s4, invoking an execution machine to complete the machining, specifically further comprising: s41, in step S34 the prepared service scene, through calling the executive, initiates the trigger, completes the scene function.
Further, the present invention also relates to a readable storage medium storing a program for executing the above banking card test data service method, which can be executed by using the readable storage medium to implement the above banking card test data service method.
Further, the present invention relates to an electronic device comprising a memory for storing data necessary for executing the above banking card test data service method and a processor for executing the banking card test data service method.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A service method for testing data of bank card includes
Applying for card data through a server to obtain first card data containing basic information of the card;
performing service processing on the basis of the first card data to obtain second card data added with service contents;
and calling the basic information and the service content of the card from the existing data or adding the basic information and the service content by using an automatic service scene.
2. The method of claim 1, wherein the card basic information includes a name, an identification number, a mobile phone number, a CVV2, an expiration date, and a card number; the service content comprises service items involved in card issuing and using processes.
3. The method of claim 2, wherein the calling of the card basic information from the existing data comprises selecting the required card basic information from the existing data of the server; the retrieval of the service content from the existing data includes selecting one or more existing service items.
4. The method of claim 2, wherein the card basic information and service content using automatic service scenario addition comprises making a corresponding automatic service scenario according to a request and invoking an execution machine to trigger the corresponding automatic service scenario to complete a scenario function.
5. The method of claim 4, wherein said composing a corresponding automation business scenario upon request comprises:
generating jmx scripts through recording user interface operation to complete user behavior acquisition;
carrying out data cleaning on jmx scripts and converting cleaned jmx scripts into excel files;
and importing the excel file into an interface tool to complete an automatic service scene.
6. The method of claim 4, wherein said making corresponding automated business scenarios on demand further comprises:
and debugging the automation service scene by using an interface tool to verify the usability of the automation service scene.
7. The method of claim 4, wherein the data scrubbing jmx scripts includes scrubbing jmx scripts to remove invalid and duplicate interfaces; the jmx script conversion to an excel file includes using a python script to complete the conversion process.
8. A bank card test data service system, comprising:
the service end comprises a basic card module and a service module, wherein the basic card module is used for storing existing data of basic information of a card and initiating a new request of the basic information of the card, and the service module is used for storing existing data of a service item and initiating the new request of the service item;
the service scene encapsulator is used for making a corresponding automatic service scene according to the requirement;
and the execution machine is used for triggering the corresponding automatic service scene to complete the scene function.
9. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory;
the memory is used for storing the existing data;
the processor, configured to execute the method of any one of claims 1 to 7 by calling existing data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110075878.1A CN112765025A (en) | 2021-01-20 | 2021-01-20 | Bank card test data service method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110075878.1A CN112765025A (en) | 2021-01-20 | 2021-01-20 | Bank card test data service method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112765025A true CN112765025A (en) | 2021-05-07 |
Family
ID=75703563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110075878.1A Pending CN112765025A (en) | 2021-01-20 | 2021-01-20 | Bank card test data service method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112765025A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598553A (en) * | 2015-10-14 | 2017-04-26 | 阿里巴巴集团控股有限公司 | Information card generating method, apparatus and system |
CN108984712A (en) * | 2018-07-06 | 2018-12-11 | 深圳前海微众银行股份有限公司 | Counting method, equipment and readable storage medium storing program for executing are made based on business scenario |
CN110059002A (en) * | 2019-03-16 | 2019-07-26 | 平安普惠企业管理有限公司 | Generation method, test equipment, storage medium and the device of test data |
CN111221726A (en) * | 2019-12-25 | 2020-06-02 | 平安普惠企业管理有限公司 | Test data generation method and device, storage medium and intelligent equipment |
CN112015657A (en) * | 2020-09-02 | 2020-12-01 | 中国工商银行股份有限公司 | Automatic test data management method and system |
-
2021
- 2021-01-20 CN CN202110075878.1A patent/CN112765025A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598553A (en) * | 2015-10-14 | 2017-04-26 | 阿里巴巴集团控股有限公司 | Information card generating method, apparatus and system |
CN108984712A (en) * | 2018-07-06 | 2018-12-11 | 深圳前海微众银行股份有限公司 | Counting method, equipment and readable storage medium storing program for executing are made based on business scenario |
CN110059002A (en) * | 2019-03-16 | 2019-07-26 | 平安普惠企业管理有限公司 | Generation method, test equipment, storage medium and the device of test data |
CN111221726A (en) * | 2019-12-25 | 2020-06-02 | 平安普惠企业管理有限公司 | Test data generation method and device, storage medium and intelligent equipment |
CN112015657A (en) * | 2020-09-02 | 2020-12-01 | 中国工商银行股份有限公司 | Automatic test data management method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103631713B (en) | ERP software automatization test system and method | |
CN104156275A (en) | Method and device for exception handling of Android platform | |
CN108509392B (en) | Multi-mechanism account checking method, system, computer equipment and storage medium | |
CN109871309B (en) | Method and system for generating test case of charging system | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN112181854B (en) | Method, device, equipment and storage medium for generating process automation script | |
CN105930259A (en) | Method and apparatus for WEB regression testing | |
CN103677821A (en) | Method and device for publishing software development tool code | |
CN114003451B (en) | Interface testing method, device, system and medium | |
CN107689009A (en) | Annuity data processing method, device, server and storage medium | |
CN108664388A (en) | Dynamic field data return to test system, method, electronic equipment and the readable storage medium storing program for executing of interface | |
CN110231937A (en) | Script defects scanning method, device, computer equipment and storage medium | |
CN107357721B (en) | Method and device for testing system | |
CN114092246A (en) | Problem positioning method and device for financial transaction link | |
CN112765025A (en) | Bank card test data service method and system | |
CN112419052B (en) | Transaction testing method, device, electronic equipment and readable storage medium | |
CN113704123B (en) | Interface testing method, device, equipment and storage medium | |
CN115470139A (en) | Interface testing method and related equipment | |
CN114239296A (en) | Data processing method and device and electronic equipment | |
CN114064469A (en) | Interface automation test method and storage medium | |
CN114691768A (en) | Data processing method, accounting system and related equipment | |
Zakarija et al. | Discovering process model from incomplete log using process mining | |
CN111563183A (en) | Automatic generation method and device of visit record, computing equipment and storage medium | |
CN111931465A (en) | Method and system for automatically generating user manual based on user operation | |
CN111625458A (en) | Service system testing method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |