CN106155906B - A kind of bank's host close beta system and method - Google Patents

A kind of bank's host close beta system and method Download PDF

Info

Publication number
CN106155906B
CN106155906B CN201610519843.1A CN201610519843A CN106155906B CN 106155906 B CN106155906 B CN 106155906B CN 201610519843 A CN201610519843 A CN 201610519843A CN 106155906 B CN106155906 B CN 106155906B
Authority
CN
China
Prior art keywords
transaction
test
data
host
bank
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.)
Active
Application number
CN201610519843.1A
Other languages
Chinese (zh)
Other versions
CN106155906A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201610519843.1A priority Critical patent/CN106155906B/en
Publication of CN106155906A publication Critical patent/CN106155906A/en
Application granted granted Critical
Publication of CN106155906B publication Critical patent/CN106155906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/3684Test management for test design, e.g. generating new test cases

Abstract

The present invention provides a kind of bank's host close beta system and method, including bank's host and test machine, and bank's host includes: the receiving module for receiving the transaction test data that test machine is sent;The transaction modules that transaction generates transaction test result are carried out according to transaction test data;Transaction test result is sent to the sending module of test machine;Test machine includes: the Test data generation module for generating transaction test data;By transaction test transcoded data at data format needed for bank's host, transaction test result is transcoded into test machine needed for data format transcoding module;Connect bank's host by TCP/IP with test machine, send transaction test data, receiving the CICS transaction gateway CTG of transaction test result;The test result display module of transaction test result after showing transcoding.It can not have to connect host by front end gateway using present system, it is not necessary to set up gateway, deployment is easy, and will not influence the efficiency and reliability of test.

Description

A kind of bank's host close beta system and method
Technical field
The present invention relates to software testing technology field, in particular to a kind of bank's host close beta system and method.
Background technique
Existing bank's host system is based on Z/OS host operating system, and the large size in bank's host system is answered Often there is the survival phase of more than ten years with system.Duration, bank's host system are encountered by daily more than one hundred million on-line transaction amount, Need to carry out a large amount of maintenance work, but bank's host system framework, especially on-line transaction interface structure are relatively stable , big variation will not substantially occur, online main-inlet program will not also change substantially.But with banking Development, peripheral demand constantly extend, and the maintenance workload of bank's host system can also become heavier, internal operation The workload of pressure test can also become greater.But the test method of the existing operating pressure to bank's host system It is very single, and testing tool in the market is also very poor.For example, what the outside firms such as LOAD RUNNER in the market provided Test product uses LOADRUNNER configuration script, writes script using VS, connects host by front end gateway;Configuration clothes Business device connects host using EE (Enterprise Extender).The test product has the drawback that excessive before depending on Gateway is held, if can only use using EE connection host and set up server as intermediate transfer gateway mode, such that The deployment of bank host operation pressure test system becomes complicated, has also affected the efficiency and reliability of test, Er Qiexian For some testing tools for ordinary internal tester, the difficulty of grasp is bigger.
Summary of the invention
The embodiment of the invention provides a kind of bank's host close beta systems, are passed through using CICS transaction gateway CTG TCP/IP connection bank host does not have to connect host system by front end gateway, it is not necessary to set up gateway, become the deployment of the system It must be easy, will not influence the efficiency and reliability of test, for ordinary internal tester, the difficulty of grasp is smaller.Silver Row host close beta system includes:
Bank's host and test machine;
Bank's host includes:
Receiving module, for receiving the transaction test data of test machine transmission;
Transaction modules generate transaction test result for trading according to transaction test data;
Sending module, for transaction test result to be sent to test machine;
The test machine includes:
Test data generation module, for generating transaction test data;
Transcoding module, for by transaction test transcoded data at data format needed for bank's host;By the transaction of return Data format needed for test result is transcoded into test machine;
CICS transaction gateway CTG, for connecting bank's host by TCP/IP with test machine;Transaction after transcoding is surveyed Examination data are sent to bank's host;Transaction test result is back to transcoding module;
Test result display module, for the transaction test result after transcoding to be shown.
In one embodiment, the test machine further includes transaction case template library;
The transaction case template library is used for store transaction case template;
The transaction case template is stored by the way of ID, transaction keyword and transaction data;
The Test data generation module is specifically used for obtaining corresponding transaction case template from transaction case template library, Transaction test data are generated using the transaction data in corresponding transaction case template.
In one embodiment, the Test data generation module includes test data input unit and group packet unit;
The test data input unit, for the ID or transaction key using Microsoft Excel input transaction case template Word obtains corresponding transaction case template from transaction case template library;
Group packet unit, for the transaction data in corresponding transaction case template to be formed transaction test data packet;
Bank's host further includes unpacking module;
The unpacking module obtains transaction test data for unpacking received transaction test data packet.
In one embodiment, the test machine further includes parameter configuration module;
The parameter configuration module is used for configuration of transaction parameter and/or user preference parameters;
The test data input unit is specifically used for being modified according to parameter transaction and/or user preference parameters from transaction The transaction data in corresponding transaction case template that case template library obtains;
Group packet unit, for the transaction data in modified transaction case template to be formed transaction test data packet.
In one embodiment, the parameter configuration module is also used to generate host parameter;
The CICS transaction gateway CTG is also used to for host parameter being sent to bank's host, and bank's host is according to master The different bank's hosted environment of machine parameter switching.
In one embodiment, the test machine further includes data format setup module and data resolution module;
The data format setup module, for the biography format down of test transaction data to be arranged;
The data resolution module, for passing format down for the transaction test result after transcoding according to test transaction data It is parsed;
The test result display module is specifically used for for the transaction test result after parsing being shown.
In one embodiment, the data resolution module specifically uses EXCEL VBA by the transaction test knot after transcoding Fruit is parsed.
In one embodiment, the test result display module uses the form of Microsoft Excel by the transaction after parsing Test result is shown.
In one embodiment, the Test data generation module is specifically used for: when All Activity test data all makes It is uploaded with E code or part transaction test data is uploaded using E code, when part transaction test data are uploaded using UNICODE code, Need the transaction test data conversion uploaded using E code at ASCII character All Activity test data or part using EXCEL;
The transcoding module is specifically used for ASCII character being converted into E code.
In one embodiment, the test data input unit is specifically used for, when needing to submit multiple transaction test numbers When according to packet, the ID of multiple transaction case templates is inputted using Microsoft Excel, and arrange the ID of multiple transaction case templates Sequence successively obtains corresponding multiple transaction case moulds according to the ID sequence of multiple transaction case templates from transaction case template library Plate;
Described group of packet unit is specifically used for, successively will corresponding multiple transaction according to the ID sequence of multiple transaction case templates Transaction data in case template forms corresponding multiple transaction test data packets;
The CICS transaction gateway CTG is specifically used for, successively will be corresponding according to the ID sequence of multiple transaction case templates Multiple transaction test data packets are sent to bank's host.
The embodiment of the invention also provides a kind of bank's host internal test method, make to become the test inside bank's host It must be easy, will not influence the efficiency and reliability of test, for ordinary internal tester, the difficulty of grasp is smaller.It should Bank's host internal test method includes:
Test machine passes through TCP/IP connection bank host using CICS transaction gateway CTG;
Test machine generates transaction test data;
Test machine is by transaction test transcoded data at data format needed for bank's host;
Transaction test data after transcoding are sent to bank's host using CICS transaction gateway CTG by test machine;
The transaction that generates after what test machine received that bank's host returns traded according to the transaction test data after transcoding Test result;
Transaction test result is carried out transcoding and shown by test machine.
In one embodiment, the test machine generates transaction test data, comprising:
ID or trade keyword of the test machine using Microsoft Excel input transaction case template, from transaction case template library The middle corresponding transaction case template of acquisition, and transaction test number is generated using the transaction data in corresponding transaction case template According to;
The transaction case template is stored by the way of ID, transaction keyword and transaction data.
In one embodiment, the test machine generates transaction test data, comprising:
Test machine modifies the phase obtained from transaction case template library according to the parameter transaction and/or user preference parameters of configuration The transaction data in transaction case template answered, and generate transaction using the transaction data in modified transaction case template and survey Try data.
In one embodiment, further includes:
The biography format down of test machine setting test transaction data;
Test machine parses the transaction test result after transcoding according to the format that passes down of test transaction data, and will solution Test transaction result after analysis is shown.
In one embodiment, transaction test result is carried out transcoding as follows by the test machine:
When All Activity test data all uses, E code is uploaded or part transaction test data use the upload of E code, part When transaction test data are uploaded using UNICODE code, All Activity test data or part are needed using E code using EXCEL The transaction test data conversion of upload is converted into E code at ASCII character, then by ASCII character.
In one embodiment, further includes:
When needing to submit multiple transaction test data packets, test machine inputs multiple transaction case moulds using Microsoft Excel The ID of plate, and the ID of multiple transaction case templates is ranked up, according to the ID sequence of multiple transaction case templates successively from friendship Corresponding multiple transaction case templates are obtained in easy case template library;
Test machine is according to the ID sequence of multiple transaction case templates successively by the friendship in corresponding multiple transaction case templates Easy data form corresponding multiple transaction test data packets;
Test machine successively will be corresponding multiple according to the ID sequence of multiple transaction case templates using CICS transaction gateway CTG Transaction test data packet is sent to bank's host.
In embodiments of the present invention, it is configured with CICS transaction gateway CTG on a testing machine, utilizes CICS transaction gateway CTG Bank's host and test machine can be attached by TCP/IP, not have to connect host system by front end gateway, it is not necessary to frame If gateway, the deployment of bank's host close beta system is become easy, will not influence the efficiency and reliability of test, for general For logical close beta personnel, the difficulty of grasp is smaller.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is a kind of structural schematic diagram of bank's host close beta system provided in an embodiment of the present invention;
Fig. 2 is a kind of specific bank's host close beta system architecture diagram provided by the invention;
Fig. 3 is a kind of bank's host close beta test method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of specific bank's host close beta test method flow chart provided by the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right below with reference to embodiment and attached drawing The present invention is described in further details.Here, exemplary embodiment and its explanation of the invention is used to explain the present invention, but simultaneously It is not as a limitation of the invention.
It is existing that host can be connected by front end gateway to the tool tested inside bank's host, in this way can be excessive Dependent on front end gateway, and configuration server will use EE connection host, can be used as centre using server is set up in this way Transfer gateway mode has also affected the efficiency and reliability of test, Er Qiexian so that the deployment of test macro becomes complicated For some testing tools for ordinary internal tester, the difficulty of grasp is bigger.If not having to connect by front end gateway Connect host, do not have to set up gateway, then can solve above-mentioned existing system there are the problem of.Based on this, the present invention proposes a kind of silver Row host close beta system.
The framework principle of bank's host close beta system proposed by the present invention is:
1) ease for use: the framework of test macro must have ease for use, and user is extremely easy to get started, not need to train too much.
2) specific aim: can have great specific aim, and for stable core banking system, test macro can needle To the core banking system, such test macro many parameter configurations work to be omitted.
3) data parse: analysis is known about in the parsing to test data packet, could simulate final assembling test as a result, making Tester it is easy to see that test result correctness.
4) automate: a degree of automation, such as input data are automaticly inspected, are supplemented, the memory of case, sieve Choosing, batch are submitted, and scene is worked out and repeated.
5) transparent connection: the transparent connection of test lead and host not allow user to intervene indigestion and memory too much Host configuration detail, the in fact very professional personage of this need of work, and be not much people and be ready as contact Test environment.
6) be easy to dispose: such as carrying out complicated, huge environment installation first, either need to build first gateway or in Turn server, is all not easy deployment.Server and gateway are especially built, because of the environment maintenance of these equipment, parameter It configures, the influence between the people of different testing requirements will become problem.
Fig. 1 is the structural schematic diagram of the framework bank host close beta system the present invention is based on mentioned above principle, such as Fig. 1 institute Show, which includes: bank's host 1 and test machine 2;
Wherein, bank's host 1 includes:
Receiving module 101, for receiving the transaction test data of test machine transmission;
Transaction modules 102 generate transaction test result for trading according to transaction test data;
Sending module 103, for transaction test result to be sent to test machine;
Test machine 2 includes:
Test data generation module 201, for generating transaction test data;
Transcoding module 202, for by transaction test transcoded data at data format needed for bank's host;By the friendship of return Data format needed for Easy Test result is transcoded into test machine;
CICS transaction gateway CTG203, for connecting bank's host by TCP/IP with test machine;By the friendship after transcoding Easy Test data are sent to bank's host;Transaction test result is back to transcoding module;
Test result display module 204, for the transaction test result after transcoding to be shown.
When it is implemented, connecting from PC to host can be connected by EE, but when configuration, each connection is only used for one Platform equipment PC.It, can only be using erection server as intermediate transfer gateway mode if developed using EE connection.In order to solve It is easy to the problem of disposing, the present invention is connected to host using TCP/IP, which just facilitates for close beta It is more.TCP/IP connection can be directly connected to host from each client, it is not necessary to set up gateway, be easy to dispose.Tester needs When wanting Test driver, it is only necessary to which environmental structure can be completed in oneself deployment system on the PC (i.e. test machine) of oneself.For The configuration of TCP/IP connection, host side is also extremely simple, this is primarily due to the generally included TCP/IP of host system, only generally It does not use.Client of the CTG (CICS transaction gateway) that the present invention uses IBM to provide as host C ICS (i.e. test machine), after configuring connection host by TCP/IP, PC can connect host, realize the transparent company of bank's host It connects.
When it is implemented, the present invention is provided with transaction case template library, store transaction case template in a tester.It is surveying Before examination, the test data that host is sent on needs can be write into case, be stored in transaction case template library.Test cases tool There is a large amount of repeated characteristic, such case can be saved and be managed by the way that keyword is arranged.Described keyword can be Such as " login ", " opening an account ", " cancellation ", " inquiry " etc..Case is saved by the way of ID+ keyword+case data, passes through pass Keyword may search for all cases saved.Can also by the information such as transaction code, teller number, account in case data into Row screening and extraction.
In test, Test data generation module can obtain corresponding transaction case mould from transaction case template library Plate generates transaction test data using the transaction data in corresponding transaction case template.For example, when needing to log in again, Keyword " login " only need to be inputted, so that it may which Automatic sieve selects the transaction case that keyword is " login " in transaction case template library Example template, after submission, can start follow-up test.For example, private case of opening an account can be write by one first correctly enters data, And it is stored in case library with " opening an account to private " for keyword.When needing to open an account to private again, directly inputs keyword and " private is opened Family ", may bring up the input of last time, and make a small amount of change, this case can be completed.
When it is implemented, existing, configuration server uses EE connection host when testing bank inside, then leads to It crosses IE picture and fills in test data, but the interface IE is unfriendly, ease for use is poor;Due to needing VS configuration script, configuration work amount It is very big.For this problem, the present invention uses basic platform of the EXCEL as front end system (test machine) in OFFICE.Institute In the office system for relating to data input, OFFICE series, especially EXCEL and WORD use the most extensively, and use Experience excellent office platform in family.The present invention is based on EXCEL layers, and EXCEL not only has excellent table input, and there are also strong Big easy-to-use VBA is also relatively easy grasp as support, the exploitation of VBA, and does not need huge exploitation environment installation. Custom function or cell modification event are write using VBA, suitable exploitation is done to EXCEL, after the completion of exploitation, in EXCEL When the input data of interface, it can automaticly inspect, parse, polishing input data by the methods of event, formula.Multiple EXCEL SHEET can be used as different interfaces.Most of type in the scene that the present invention uses testing tool (i.e. Microsoft Excel) Automatically formatting has been carried out, input efficiency and ease for use are greatly improved.
But bank's host is connected from EXCEL, centre also needs to dispose data switch component (i.e. transcoding module 202). CTG provides JAVA, the interfaces such as C, and the present invention uses C interface, formation data switch component (the transcoding mould developed using C language Block 202).EXCEL can be connected easily with the dynamic link library of C exploitation, realize the transparent connection for arriving bank's host.Mirror All there is the environment of host in host test, also will be installed OFFICE external member, as long as so CTG and data adapter assembly are installed To test machine, EXCEL test job client is opened, the test can be started.
Specifically, being based on this, Test data generation since test machine completes the input of data using Microsoft Excel Module can be obtained from transaction case template library using the ID or transaction keyword of Microsoft Excel input transaction case template Corresponding transaction case template, the effect is by test data input unit 2011 that Test data generation module 201 includes real It is existing.Test data generation module 201 further includes a group packet unit 2012, for by the transaction data in corresponding transaction case template Form transaction test data packet.Implement when, transcoding module 202 by the transaction test transcoded data in transaction test data packet at Data format needed for bank's host, then transaction test data packet is sent to bank's host 1 by CICS transaction gateway CTG203 Receiving module 101.At this point, bank's host 1 further includes unpacking module 104, for carrying out received transaction test data packet It unpacks, obtains transaction test data, transaction modules 102 are traded according to the transaction test data obtained are unpacked, and generate transaction Test result.
When actually being tested, case of trading is submitted sometimes for combination or repeatedly, when transaction case combines, tests number It is used in special configuration interface (Microsoft Excel) according to input unit 2011, the multiple transaction cases needed to configure is set The sequence of ID and the ID of multiple transaction case templates, according to the ID sequence of multiple transaction case templates successively from transaction case template Corresponding multiple transaction case templates are obtained in library.Group packet unit 2012 can according to it is multiple transaction case templates ID sequence successively Transaction data in corresponding multiple transaction case templates is formed into corresponding multiple transaction test data packets, CICS transaction gateway Corresponding multiple transaction test data packets successively can be sent to bank master according to the ID sequence of multiple transaction case templates by CTG Machine carries out the submission of repeatedly transaction case.Unpacking module 104 in bank's host 1 can be according to multiple transaction case templates ID sequence successively unpacks corresponding multiple transaction test data packets, obtains multiple transaction test data, transaction modules 102 It can successively be traded according to multiple transaction test data, generate multiple transaction tests as a result, sending module 103 can be by multiple friendships Easy Test result is sent to test machine.For example, 100 deposits+inquiry test, can be stored into and inquire case and all extract, Together, then input repeats to submit number 100, clicks and submits for layout, can be automatically performed repetition and submit 100 times.
Fig. 2 is a kind of specific bank host operation pressure test system architecture diagram provided by the invention;As shown in Fig. 2, Wherein, test generator terminal includes CTG, data transformation components, the EXCEL based on VBA exploitation, the host packet based on Z/OS operating system DB2 database is included for being managed to file system, file system is used for store transaction data, and CICS (TOR) is for handling End user's network and needs and CICS (AOR) are for being responsible for user's business and program.
When it is implemented, since every transaction has specific characteristic, these characteristics (parameter transaction) can be stored in Transaction code is in the table of index.Certain user understands preference some teller to handle various transaction to the user, these are not easily The user preference parameters of variation can also be stored with individual SHEET, and preference parameter can such as be channel type, authorize cabinet Member etc..When test transaction data are submitted, the special column that packet is sent in these parameter (parameter transaction, preference parameter etc.) supplements is used Position.For example, two user A and B open a bank account simultaneously, select keyword for the transaction case template of " opening a bank account ", it will It is related to the open an account field of particular transaction parameter of transaction of user A and B in transaction case template to modify, after modification The upload of test transaction case case can.Furthermore user A compares some teller of preference, can also will trade involved in case template Information field to authorization teller is modified.Based on this, test machine can also include parameter configuration module 205, for configuring Parameter transaction and/or user preference parameters.Test data input unit 2011 is joined according to parameter transaction and/or user preference at this time Number modifies the transaction data from the corresponding transaction case template that transaction case template library obtains;Group packet unit 2012 can will be repaired Transaction data in transaction case template after changing forms transaction test data packet.
In addition, parameter configuration module is also used to generate host parameter, this part actually changes very little, in hosted environment Shen Please after, can be only fitted in configuration file, later in handoff environment, CICS transaction gateway CTG sends host parameter To bank's host, bank's host switches different bank's hosted environments according to host parameter.Hosted environment mentioned here, refers to For different operating batch, it includes database, CICS (TOR, AOR), the main computer boxes in program version library that a whole set of, which is arranged, in host Running environment.
When it is implemented, test machine can also include data format setup module 206 and data resolution module 207.Data Format setup module 206, for the biography format down of test transaction data to be arranged;Data resolution module 207, for being handed over according to test The format that passes down of easy data is parsed the transaction test result after transcoding using EXCEL VBA;Test result display module 204 are specifically used for being shown the transaction test result after parsing using the form of Microsoft Excel.In addition, in reality, number It is also possible to a module according to parsing module 207 and test result display module 204, test result display module 204 uses EXCEL VBA parses the transaction test result after transcoding, then shows transaction test in the form of Microsoft Excel again As a result.
Transaction results data return when, need according to down pass format transaction results data are parsed, and show and It saves.Some scenes need to carry out the transaction results data of return confirmation and secondary upload, or need that teller is authorized to carry out Uploaded after authorization, these authorizations movement generally will not as a part of case, need at this time according to the return of transaction automatically into Row confirmation or authorization upload.Only this is automated, and the workload saved is very objective.
In addition, data format setup module 206 can also include uploaded format (the new interface upload lattice of test transaction data Formula), when storing case, according to sending format to be stored in test transaction data.
On send the format to be that fixed, each variation is considerably less.Format is sent in each data, data down transmission format all needs It is managed.For above send format and under pass format, all use a set of administrative mechanism, safeguard and be stored in format library, It after inputting transaction code, recalls and send format on corresponding, used for tester.When receiving returned data packet, return is used The corresponding resolve packet data of code.
Interface (above send format and under pass format) between an enterprises, different product has existed a socket Format library, import feature of the present invention parse the interface format of designated position, are stored in spare in format library.
When it is implemented, using the data inputted in VBA parsing EXCEL, splicing packet header letter after client trading submission Breath requires according to the transcoding of each field, data is submitted.There are two types of situations for transcoded data:
1, All Activity test data all uses E code to upload, and at this moment can unify transcoding, because OFFICE default is UNICODE, before upload, All Activity test data conversion is ASCII character using EXCEL by Test data generation module 201, Then ASCII character is converted to by E code by transcoding module 202.
2, some scenes need to distinguish transcoding to each field, for example certain fields need to be uploaded using UNICODE, Other fields use E code, and before upload, Test data generation module 201 will need the transaction using the upload of E code using EXCEL Test data conversion recalls transcoding module 202 and carries out transcoding, then upload at ASCII character.
For system structure of the invention, be most difficult to be while it should be understood that the characteristic of the CICS of host, host interface and Processing mode, PC (test machine) and the connection type of host, the connection method of CTG, the connection method and life of C language to CTG The use skill of the VBA of dynamic link library method and EXCEL exploitation knowledge and EXCEL is called at the method for dynamic link libraries, VBA Ingeniously.
Based on the same inventive concept, a kind of bank's host internal test method is additionally provided in the embodiment of the present invention, it is as follows Described in the embodiment in face.The principle and bank's host close beta system phase solved the problems, such as due to bank's host internal test method Seemingly, therefore the implementation of bank's host internal test method may refer to the implementation of bank's host close beta system, repeat place It repeats no more.Used below, the group of the software and/or hardware of predetermined function may be implemented in term " unit " or " module " It closes.Although device described in following embodiment is preferably realized with software, the combination of hardware or software and hardware Realization be also that may and be contemplated.
Fig. 3 is bank's host internal test method flow chart of the embodiment of the present invention, since the system does not change host Dynamic, changing maximum is test machine side, and institute is write from test machine side in this way.As shown in figure 3, this method comprises:
Step 301: test machine passes through TCP/IP connection bank host using CICS transaction gateway CTG;
Step 302: test machine generates transaction test data;
Step 303: test machine is by transaction test transcoded data at data format needed for bank's host;
Step 304: the transaction test data after transcoding are sent to bank master using CICS transaction gateway CTG by test machine Machine;
Step 305: raw after what test machine received that bank's host returns traded according to the transaction test data after transcoding At transaction test result;
Step 306: transaction test result is carried out transcoding and shown by test machine.
When it is implemented, step 302 test machine generates transaction test number when test machine includes transaction case template library According to specifically including:
ID or trade keyword of the test machine using Microsoft Excel input transaction case template, from transaction case template library The middle corresponding transaction case template of acquisition, and transaction test number is generated using the transaction data in corresponding transaction case template According to;
Transaction case template is stored by the way of ID, transaction keyword and transaction data.
When it is implemented, step 302 test machine is raw when parameter transaction and/or user preference parameters change At transaction test data, specifically include:
Test machine modifies the phase obtained from transaction case template library according to the parameter transaction and/or user preference parameters of configuration The transaction data in transaction case template answered, and generate transaction using the transaction data in modified transaction case template and survey Try data.
When it is implemented, this method further include:
The biography format down of test machine setting test transaction data;
Test machine parses the transaction test result after transcoding according to the format that passes down of test transaction data, and will solution Test transaction result after analysis is shown.
When it is implemented, transaction test result is carried out transcoding as follows by test machine:
When All Activity test data all uses, E code is uploaded or part transaction test data use the upload of E code, part When transaction test data are uploaded using UNICODE code, All Activity test data or part are needed using E code using EXCEL The transaction test data conversion of upload is converted into E code at ASCII character, then by ASCII character.
When it is implemented, this method further include:
When needing to submit multiple transaction test data packets, test machine inputs multiple transaction case moulds using Microsoft Excel The ID of plate, and the ID of multiple transaction case templates is ranked up, according to the ID sequence of multiple transaction case templates successively from friendship Corresponding multiple transaction case templates are obtained in easy case template library;
Test machine is according to the ID sequence of multiple transaction case templates successively by the friendship in corresponding multiple transaction case templates Easy data form corresponding multiple transaction test data packets;
Test machine successively will be corresponding multiple according to the ID sequence of multiple transaction case templates using CICS transaction gateway CTG Transaction test data packet is sent to bank's host.
Step 301-306 is basic testing procedure, is needed to configure when relevant parameter changes, just can be to above-mentioned step Suddenly it is modified accordingly, the modification of above-mentioned steps, the not local optimization of framework strategy, whole erection.This Structure makes test environment be easy to build to the full extent, and test interface is extremely friendly, and scalability becomes strong.
Fig. 4 is specific test method flow chart of steps of the invention, as shown in figure 4, the case storing process of test generator terminal: When using a New Transaction, transaction attribute is safeguarded first;Then it safeguards and send format in a new interface;Then using Some XML interface formats pass format by hand to safeguard down;It, can be by variation for uploading the case where data change Data are uploaded to be saved in case library.
Case submits process: extracting from the case library of test generator terminal and uploads data, then will upload data and be submitted to silver In row host, when needing repeatedly to submit, need to extract multiple upload data from case library, then by multiple upload numbers According to being successively submitted in bank's host, bank's host is traded accordingly according to data are uploaded, and obtains corresponding transaction results, Pass through test machine by return information storage to returning in history lists back to test generator terminal using transaction results as return information The data resolution module at end parses historical return information, the information that is finally shown.Number can also be directly inputted According to rear, submission at once, it is not necessary to the process for undergoing case library to extract.After submission, host returned data, test machine parses test knot Fruit.
Technical solution of the present invention bring the utility model has the advantages that
1) be easy to build: the testing tool of completion is easily disposed, and whole installation process is no more than 5 minutes, it is not necessary to be needed multiple Miscellaneous configuration, so that it may so that tester starts close beta.
2) it is used for asynchronous test:, can be only for the peripheral system of core bank, front-end operations interface all without dependence The module or even test in exploitation that vertical test host has been completed, really realize unit testing.
3) easy to use: the present invention can be with thing using the interface directed entirely to core banking system, constant part First configuration completion does not show that main interface only retains least element, and such user would not have those in main interface Targetedly option fascination can't bear.
4) be easy to extend: VBA code be it is open, can edit at any time, the function of oneself needs be added, in EXCEL Data, copy are pasted, and it is all extremely easy that conversion, which is shared,.
For a close beta tool, be easy to build, can be used for it is asynchronous test, it is easy to use be most important spy Sign.Testing tool is built using system structure of the invention, has all accomplished excellent degree at above-mentioned aspect.From using the framework complete At the actual use situation of testing tool see that it has effectively reached above-mentioned target, online testing user actively selects the work Have and use, subsequent technical support and training amount are also considerably less.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the embodiment of the present invention can have various modifications and variations.All within the spirits and principles of the present invention, made Any modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of bank's host close beta system characterized by comprising bank's host and test machine;
Bank's host includes:
Receiving module, for receiving the transaction test data of test machine transmission;
Transaction modules generate transaction test result for trading according to transaction test data;
Sending module, for transaction test result to be sent to test machine;
The test machine includes:
Test data generation module, for generating transaction test data;
Transcoding module, for by transaction test transcoded data at data format needed for bank's host;By the transaction test of return As a result data format needed for being transcoded into test machine;
CICS transaction gateway CTG, for connecting bank's host by TCP/IP with test machine;By the transaction test number after transcoding According to being sent to bank's host;Transaction test result is back to transcoding module;
Test result display module, for the transaction test result after transcoding to be shown;
The test machine further includes parameter configuration module;
The parameter configuration module is used for configuration of transaction parameter and/or user preference parameters;
The test data input unit that the Test data generation module includes, for according to parameter transaction and/or user preference Parameter modifies the transaction data from the corresponding transaction case template that transaction case template library obtains;
Group packet unit, for the transaction data in modified transaction case template to be formed transaction test data packet;
The parameter configuration module is also used to generate host parameter;
The CICS transaction gateway CTG is also used to for host parameter being sent to bank's host, and bank's host is joined according to host Number switches different bank's hosted environments.
2. bank's host close beta system as described in claim 1, which is characterized in that the test machine further includes transaction case Example template library;
The transaction case template library is used for store transaction case template;
The transaction case template is stored by the way of ID, transaction keyword and transaction data;
The Test data generation module is specifically used for obtaining corresponding transaction case template from transaction case template library, utilizes Transaction data in corresponding transaction case template generates transaction test data.
3. bank's host close beta system as claimed in claim 2, which is characterized in that the Test data generation module packet The test data input unit included, for the ID or transaction keyword using Microsoft Excel input transaction case template, from transaction Corresponding transaction case template is obtained in case template library;
The Test data generation module further includes a group packet unit, for by the transaction data group in corresponding transaction case template At transaction test data packet;
Bank's host further includes unpacking module;
The unpacking module obtains transaction test data for unpacking received transaction test data packet.
4. bank's host close beta system as described in claim 1, which is characterized in that the test machine further includes data lattice Formula setup module and data resolution module;
The data format setup module, for the biography format down of test transaction data to be arranged;
The data resolution module, for carrying out the transaction test result after transcoding according to the format that passes down of test transaction data Parsing;
The test result display module is specifically used for for the transaction test result after parsing being shown.
5. bank's host close beta system as claimed in claim 4, which is characterized in that the data resolution module is specifically adopted The transaction test result after transcoding is parsed with EXCEL VBA.
6. bank's host close beta system as claimed in claim 4, which is characterized in that the test result display module is adopted The transaction test result after parsing is shown with the form of Microsoft Excel.
7. bank's host close beta system as claimed in claim 3, which is characterized in that the Test data generation module tool Body is used for: when All Activity test data all uses, E code is uploaded or part transaction test data use E code to upload, and part is handed over When Easy Test data are uploaded using UNICODE code, All Activity test data or part are needed using on E code using EXCEL The transaction test data conversion of biography is at ASCII character;
The transcoding module is specifically used for ASCII character being converted into E code.
8. bank's host close beta system as claimed in claim 3, which is characterized in that the test data input unit tool Body is used for, and when needing to submit multiple transaction test data packets, the ID of multiple transaction case templates is inputted using Microsoft Excel, And the ID of multiple transaction case templates is ranked up, according to the ID sequence of multiple transaction case templates successively from transaction case mould Corresponding multiple transaction case templates are obtained in plate library;
Described group of packet unit is specifically used for, successively will corresponding multiple transaction cases according to the ID sequence of multiple transaction case templates Transaction data in template forms corresponding multiple transaction test data packets;
The CICS transaction gateway CTG is specifically used for, successively will be corresponding multiple according to the ID sequence of multiple transaction case templates Transaction test data packet is sent to bank's host.
9. a kind of bank's host internal test method characterized by comprising
Test machine passes through TCP/IP connection bank host using CICS transaction gateway CTG;
Test machine generates transaction test data;
Test machine is by transaction test transcoded data at data format needed for bank's host;
Transaction test data after transcoding are sent to bank's host using CICS transaction gateway CTG by test machine;
The transaction test that generates after what test machine received that bank's host returns traded according to the transaction test data after transcoding As a result;
Transaction test result is carried out transcoding and shown by test machine;
The test machine generates transaction test data, comprising:
Test machine is modified according to the parameter transaction and/or user preference parameters of configuration from the corresponding of transaction case template library acquisition Transaction data in case template of trading, and transaction test number is generated using the transaction data in modified transaction case template According to;
Test machine generates host parameter;
Host parameter is sent to bank's host using CICS transaction gateway CTG by test machine, and the host parameter is used to make bank The different bank's hosted environment of mian engine changeover.
10. bank's host internal test method as claimed in claim 9, which is characterized in that the test machine generates transaction and surveys Try data, comprising:
Test machine is obtained from transaction case template library using the ID or transaction keyword of Microsoft Excel input transaction case template Corresponding transaction case template is taken, and generates transaction test data using the transaction data in corresponding transaction case template;
The transaction case template is stored by the way of ID, transaction keyword and transaction data.
11. bank's host internal test method as claimed in claim 10, which is characterized in that further include:
The biography format down of test machine setting test transaction data;
Test machine parses the transaction test result after transcoding according to the format that passes down of test transaction data, and will be after parsing Test transaction result be shown.
12. bank's host internal test method as claimed in claim 10, which is characterized in that the test machine is according to such as lower section Transaction test result is carried out transcoding by formula:
When All Activity test data all uses, E code is uploaded or part transaction test data use E code to upload, and part is traded When test data is uploaded using UNICODE code, All Activity test data or part are needed to upload using E code using EXCEL Transaction test data conversion be converted into E code at ASCII character, then by ASCII character.
13. bank's host internal test method as claimed in claim 10, which is characterized in that further include:
When needing to submit multiple transaction test data packets, test machine inputs multiple transaction case templates using Microsoft Excel ID, and the ID of multiple transaction case templates is ranked up, according to the ID sequence of multiple transaction case templates successively from transaction case Corresponding multiple transaction case templates are obtained in example template library;
Test machine is according to the ID sequence of multiple transaction case templates successively by the number of deals in corresponding multiple transaction case templates According to the corresponding multiple transaction test data packets of composition;
Test machine successively will corresponding multiple transaction according to the ID sequence of multiple transaction case templates using CICS transaction gateway CTG Test data packet is sent to bank's host.
CN201610519843.1A 2016-07-05 2016-07-05 A kind of bank's host close beta system and method Active CN106155906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610519843.1A CN106155906B (en) 2016-07-05 2016-07-05 A kind of bank's host close beta system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610519843.1A CN106155906B (en) 2016-07-05 2016-07-05 A kind of bank's host close beta system and method

Publications (2)

Publication Number Publication Date
CN106155906A CN106155906A (en) 2016-11-23
CN106155906B true CN106155906B (en) 2019-01-15

Family

ID=58061947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610519843.1A Active CN106155906B (en) 2016-07-05 2016-07-05 A kind of bank's host close beta system and method

Country Status (1)

Country Link
CN (1) CN106155906B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679051B (en) * 2016-12-14 2019-02-01 平安科技(深圳)有限公司 Transaction system error-detecting method and device
CN106598870B (en) * 2016-12-26 2019-07-09 中国建设银行股份有限公司 Across the component trade identity test method of one kind and system
CN106649121B (en) * 2016-12-28 2019-08-13 中国银联股份有限公司 A kind of test result analysis method and device
CN106961478B (en) * 2017-03-27 2019-11-19 中国农业银行股份有限公司 A kind of message processing method and device
CN107229481A (en) * 2017-07-19 2017-10-03 中国银行股份有限公司 A kind of testing method and tool based on Excel
CN108111368B (en) * 2017-12-19 2021-01-26 中国银联股份有限公司 Function test method and device of transaction system
CN109067611B (en) * 2018-07-13 2021-01-26 中国银行股份有限公司 Method, device, storage medium and processor for detecting communication state between systems
CN110287097A (en) * 2019-05-20 2019-09-27 深圳壹账通智能科技有限公司 Batch testing method, device and computer readable storage medium
CN110837470B (en) * 2019-11-06 2024-01-23 中国银行股份有限公司 Bank card network transaction testing method and device
CN111679967B (en) * 2020-04-27 2023-04-21 贝壳技术有限公司 Method and device for displaying transaction list for testing
CN111813679B (en) * 2020-07-10 2023-06-30 北京思特奇信息技术股份有限公司 Method and device for executing test case based on python, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648874A (en) * 2005-03-18 2005-08-03 中国工商银行 Bank host operation pressure test system
CN1975694A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Bank main machine pressure testing method and tester
CN101604436A (en) * 2009-07-29 2009-12-16 中国建设银行股份有限公司 The method of bank short message financial operations

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8359580B2 (en) * 2007-12-26 2013-01-22 Visa U.S.A. Inc. System and method for tracking testing of software modification projects

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648874A (en) * 2005-03-18 2005-08-03 中国工商银行 Bank host operation pressure test system
CN1975694A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Bank main machine pressure testing method and tester
CN101604436A (en) * 2009-07-29 2009-12-16 中国建设银行股份有限公司 The method of bank short message financial operations

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CICS CTG;MILOIT;《http://blog.163.com/ibm_mainframe/blog/static/22451213620137220437714》;20130822;正文第1-17页

Also Published As

Publication number Publication date
CN106155906A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106155906B (en) A kind of bank's host close beta system and method
CN110309071B (en) Test code generation method and module, and test method and system
CN102141962B (en) Safety distributed test framework system and test method thereof
Perrone et al. SAFE: Simulation automation framework for experiments
CN108345532A (en) A kind of automatic test cases generation method and device
CN101086760A (en) Selective functional group simulation of automation control and information systems
Cha et al. A roadmap for implementing new manufacturing technology based on STEP-NC
TW200412495A (en) A generic software testing system and mechanism
CN107944193A (en) Avionics semi-matter simulating system
CN113505082B (en) Application program testing method and device
CN110377283A (en) The realization of front end valid data and synchronous method when the separation exploitation of the front and back end Web
CN109426611A (en) A kind of method for testing software and device
CN109903180A (en) A kind of substation secondary peace arranges Information Management System
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN109710513B (en) Engine for automatic test of CBTC (communication based train control) system
CN108829383A (en) A kind of data processing method and device of interface separation
CN108132802B (en) Application method of configuration model in system development
CN116167222A (en) Digital prototype loading and virtual fault maintenance test method and system
CN105843602A (en) Method and system for software development
CN104361773A (en) Virtual experiment system and implementation method thereof
CN107215479B (en) General data processing framework of flight simulator and construction method thereof
CN108416023B (en) Method for simulating user operation to write back system data
US20060247911A1 (en) Systems and methods for learning and mimicking the communications of intelligent electronic devices
Lindsay et al. Automation of test case generation from behavior tree requirements models
CN108305520A (en) Stock analogue testing system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant