Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Client in the embodiment of the present invention can for the special application software for test service system run in user terminal, the on-line transaction date that described client can be inputted by user or automatic test cases, inspire Data import and obtain source business datum in corresponding production environment with analysis module, the business datum pre-service of described source is test business datum and is loaded in the bank application system of test environment by described Data import and analysis module, bank application system performs business operation according to described test business datum and generates test environment business datum, test environment business datum and described test business datum compare by described Data import and analysis module, Recognition Different data also generate testing journal sheet.Wherein said user terminal can comprise PC, smart mobile phone is (as Android phone, IOS mobile phone etc.), panel computer, palm PC or mobile internet device (MID, Mobile Internet Devices) etc. internet device, described Data import and analysis module can comprise the software possessing data-handling capacity, the set of hardware, as tested with server, described production environment is the surroundings that bank application system carries out financial business transaction, the system that described test environment forms for bank application system to be tested and relevant software and hardware.
Please note, operation system method of testing described in the embodiment of the present application is applicable to online transaction system and the batch processing system of financial service system, according to the test needs of user, can test online transaction system separately, also can test batch processing system separately, and described operation system method of testing can realize test process Automatic dispatching by the parameter set in Automatic dispatching module calling rule storehouse, as with JCL, (Job Control Language is for describing the language of batch processing Job execution process, backstage is step by step needed to perform) operation is unit, to Data import and analysis module, the execution sequence of bank application system carries out automatic governing, described scheduling rule storehouse is for depositing the sequencing of each JCL Job execution, a kind of situation depositing information comprises: JCL operation group name, JCL job name, previous operations inventory, Job execution result, JCL operation input parameter, it will be apparent to one skilled in the art that the data store content in described scheduling rule storehouse can need to customize according to specific implementation.
The embodiment of the present invention provides a kind of operation system method of testing, equipment and system, the business datum generated in extraction production environment is as test business datum, test process Automatic dispatching, reduce human intervention, comprehensive, accuracy, coverage rate and the testing efficiency of operation system test data can be significantly improved.Describe in detail respectively below.
Refer to Fig. 1, the schematic flow sheet of a kind of operation system method of testing that Fig. 1 provides for the application first embodiment.Wherein, the operation system method of testing shown in Fig. 1 describes from the angle of Data import and analysis module.As shown in Figure 1, the application's operation system method of testing can comprise the following steps:
101, extract the source business datum in production environment, pre-service is carried out to described source business datum and obtains test business datum;
In the present embodiment, the online transaction business system of production environment can produce a large amount of financial transaction service process datas every day, the financial transaction service process data of every day is stored in the database in production environment, at the setting-up time of every day, batch processing operation system in production environment can keep accounts to the financial transaction service process data on the same day and settlement operations generates business result data and business transaction form, and described business result data and business transaction form are stored in the described database of production environment, the operation system method of testing that the present embodiment provides uses the business procedure data stored in production environment, business result data is as the source data of method of testing, the comprehensive of test data can be significantly improved, coverage rate and accuracy.
102, be loaded in the bank application system of test environment by described test business datum, the bank application system of described test environment performs business operation according to described test business datum and generates test environment business datum;
103, receive described test environment business datum, described test environment business datum and described test business datum are compared, Recognition Different data, and generate the testing journal sheet carrying comparing and show result according to described variance data.
Wherein, described in carry comparing and show that the testing journal sheet of result can import in EXCEL electrical form, check for tester.
In operation system method of testing described by Fig. 1, test business datum derives from production environment, test process automatic governing, reduces human intervention, can significantly improve comprehensive, accuracy, coverage rate and the testing efficiency of operation system test data.
Please refer to Fig. 2, is described source business datum in the first embodiment when comprising business procedure data, the schematic flow sheet of a kind of operation system method of testing that the application second embodiment provides.Wherein, the operation system method of testing shown in Fig. 2 describes from the angle of Data import and analysis module.As shown in Figure 2, the application's operation system method of testing can comprise the following steps:
201, receive the on-line transaction date that client sends, the described on-line transaction date corresponds to the date that test source business datum generates, and the described on-line transaction date is defined as the time of extracting described source business datum;
202, extract the business procedure data on the on-line transaction date in described production environment, each online transaction business data on on-line transaction date are added sequence number, generate online transaction business queue;
Receive the test parameter that described client sends, from described online transaction business queue, extract corresponding service queue according to described test parameter and be defined as test business datum, described test parameter comprise in test duration section, operator, type of transaction one or more;
In the present embodiment, tester can by arranging different test parameters, selects the type of service needing to carry out testing, as be access time at 9 in the morning at 11 in the morning online transaction business queue to as described in test macro test.
203, described test business datum is loaded in the bank application system of test environment, the bank application system of test environment performs on-line transaction operation according to described test business datum and generates the test environment online transaction business queue carrying sequence number, and the described test environment online transaction business queue carrying sequence number is defined as test environment business datum;
204, the test environment online transaction business queue of sequence number is carried described in reception, and the test environment online transaction business queue carrying sequence number by described and described test business datum compare, Recognition Different data, and the testing journal sheet carrying comparing and show result is generated according to described variance data.
By implementing the embodiment of the present invention, the test data of online transaction system derives from the business procedure data in production environment, test process can by Automatic dispatching module Automatic dispatching, decrease human intervention, comprehensive, accuracy, coverage rate and the testing efficiency of online transaction system test data can be significantly improved.
Please refer to Fig. 3, is described source business datum in the first embodiment when comprising business procedure data and business result data, the schematic flow sheet of a kind of operation system method of testing that the application the 3rd embodiment provides.Wherein, the operation system method of testing shown in Fig. 3 describes from the angle of Data import and analysis module.As shown in Figure 3, the application's operation system method of testing can comprise the following steps:
301, receive the automatic test cases carrying characteristic point information that client sends, described characteristic point information mates with described source business datum;
According to described characteristic point information, Auto-matching is carried out with the unique point stored in business scenario model bank, extract the batch processing date in the unique point the highest with described characteristic point information matching degree, and this batch processing date is defined as the time of extracting described source business datum, described unique point comprises the business date and time information of the source business datum in described production environment, business number information, traffic type information and number of services information;
In the present embodiment, described unique point is that the business procedure data produced from production environment carry out summarizing obtaining, and the storage format of described unique point can be YYYYMMDD (corresponding described business date and time information), unique point sequence number (corresponding described business number information), unique point mark (corresponding described traffic type information), feature point value (corresponding described number of services information).
For loan account type, described loan account type is consumptive loan, student loan, housing loan, Accumulation Fund Loan, the data bit corresponding according to the loan account type column in business procedure data obtains corresponding types value, and adds up its sum and accounting, and concrete example procedure is as follows:
OCCURS FROM(AMACTI)HEADER(‘RT-PROC-TYPE’);
ON(83,2,CH);
ON(VALCNT);
LIST(RESULT);
Wherein, program " OCCURS FROM (AMACTI) HEADER (' RT-PROC-TYPE ') " is identified at data bit corresponding in business procedure data for obtaining unique point, program ' RT-PROC-TYPE ' representation feature point identification, program " ON (83; 2; CH) " is for the particular location of feedback characteristic point identification data bit, program " ON (VALCNT) " is for the quantity of statistical nature point value, and program " LIST (RESULT) " is for generating feature point list.
Summarize from the business procedure data that the bank application system of production environment produces the unique point mark total below several:
Loan account type identification, specifically comprises consumptive loan, student loan, housing loan, Accumulation Fund Loan; Account status, specifically comprise normal, exceed the time limit, non-accrued, check and write off;
Business transaction type identification, specifically comprises account sexual transaction and non-account sexual transaction, and described account sexual transaction comprises refund, makes loans, closes, stops bearing interest, and described non-account sexual transaction comprises name/address maintenance, employee identification is safeguarded, account list inquiry;
Data mark, specifically comprises legal festivals and holidays, public festivals or holidays, working day, the last day of a month, end of the season day, doomsday in year, expiry date for interest.
As shown in Figure 7, for characteristic point information and Feature Points Matching obtain the process flow diagram on test business procedure date, specifically comprise:
S3011, extracts the characteristic point information in described automatic test cases;
Wherein, described characteristic point information is deposited in array mode, can expand according to automatic test quantity, and a kind of Store form of described characteristic point information is as follows: { unique point mark 1, feature point value 1; Unique point mark 2, feature point value 2; Unique point mark n, feature point value n}.
S3012, the value of initialization maximum Feature Points Matching number position is zero, and the value that business procedure date position is mated in initialization is most zero;
S3013, reads the Article 1 unique point record in business scenario model bank;
S3014, the value that initialization current signature Point matching numerical digit is put is zero;
S3015, the character string that matching characteristic point identification is corresponding with feature point value, obtains Feature Points Matching number, is deposited by described Feature Points Matching number to current signature Point matching numerical digit and puts;
S3016, judge the value whether value that current signature Point matching numerical digit is put is more than or equal to maximum Feature Points Matching numerical digit and puts, if, then the value that current signature Point matching numerical digit is put is deposited to maximum Feature Points Matching numerical digit and put, the business procedure date corresponding for current signature point record is deposited to mating most business procedure date position, and reads next the unique point record in business scenario model bank; If not, then next the unique point record in business scenario model bank is directly read;
S3017, judges that whether next unique point record operation of reading in business scenario model bank is successful, if so, then goes to step S3004, continue to perform step S3004 to step S3006; If not, then return the date of mating business procedure position most, and is defined as batch processing date corresponding to current signature dot information this date.
302, extract the business result data of the business procedure data on the described batch processing date in described production environment, the business result data on described batch processing date and described batch processing date proxima luce (prox. luc);
The business result data of the business procedure data on described batch processing date, the business result data on described batch processing date, described batch processing date proxima luce (prox. luc) is defined as test business datum;
303, by the business procedure data on the described batch processing date in described test business datum, the business result data of described batch processing date proxima luce (prox. luc) is loaded in the bank application system of test environment, the bank application system of described test environment is according to the business procedure data on described batch processing date, the business result data batch of described batch processing date proxima luce (prox. luc) keeps accounts process, generate test environment business result data and test environment business to keep accounts form, and the form that described test environment business result data and described test environment business kept accounts is defined as test environment business datum,
304, receive described test environment business result data and described test environment business to keep accounts form, the business result data on the batch processing date in described test environment business result data and described test business datum is compared, Recognition Different data element, and the testing journal sheet carrying comparing and show result is generated according to described variance data.
In the present embodiment, corresponding testing journal sheet or test report can be generated by configure metadata, as shown in Figure 8, for a kind of metadata configurations program example, can specific data comparison pattern be unformatted compare and have form to compare, comparing order for reading in advance, data storage location, data name information, after comparison, define according to metadata, show comparison result, generate testing journal sheet; As shown in Figure 9, for the bordereaux schematic diagram that a kind of unformatted comparison pattern is corresponding, bordereaux corresponding to described unformatted comparison pattern is for showing the comparative result outreaching transaction/data-interface, tester is without the need to until the implication of each field, directly check comparison result, be more suitable for system developer and check; As shown in Figure 10, for a kind of bordereaux schematic diagram having form comparison pattern corresponding, for showing business transaction Output rusults, tester only need check the field that the type of service of specifying is corresponding, as tester need check the output comparing result of the data that business that capital is correlated with is corresponding, only need check that in Figure 10, sequence number is the data display result of the data line of 15,17,19,21,23,25, this kind of bordereaux is more suitable for business personnel and checks.
By implementing the embodiment of the present invention, Data import and analysis module obtain test business datum from production environment, test process automatic governing, reduces human intervention, can significantly improve comprehensive, accuracy, coverage rate and the testing efficiency of batch processing system test data.
Refer to Fig. 4, Fig. 4 is the process flow diagram of a kind of operation system method of testing that the application the 4th embodiment provides.Wherein, the operation system method of testing shown in Fig. 4 describes from production environment, Data import and analysis module, the multiple angle of test environment.As shown in Figure 4, the application's operation system method of testing can comprise the following steps.
S401, Data import and analysis module obtain the time for extraction source business datum that tester is sent by client;
S402, Data import and analysis module send the request of the acquisition source business datum carrying described temporal information to production environment;
S403, production environment receives the request of described acquisition source business datum, extraction source business datum;
S404, described source business datum is sent to Data import and analysis module by production environment;
S405, Data import and analysis module receive source business datum, and are test business datum by its pre-service;
S406, test business datum is loaded in the bank application system of test environment by Data import and analysis module;
S407, the bank application system that test environment triggers in test environment performs business operation according to test business datum and generates test environment business datum;
S408, test environment business datum is sent to Data import and analysis module by test environment;
S408, Data import and analysis module are according to test environment business datum, and contrastive test business datum, Recognition Different data, generate the testing journal sheet carrying variance data and show result.
By implementing the embodiment of the present invention, Data import and analysis module obtain test business datum from production environment, test process automatic governing, reduces human intervention, can significantly improve comprehensive, accuracy, coverage rate and the testing efficiency of batch processing system test data.
Please refer to Fig. 5, be the composition schematic diagram of a kind of operation system testing apparatus that the application the 5th embodiment provides, in the present embodiment, described device comprises:
Extraction unit 501, for extracting the source business datum in production environment, carrying out pre-service to described source business datum and obtaining test business datum;
Loading unit 502, for being loaded in the bank application system of test environment by described test business datum, the bank application system of described test environment performs business operation according to described test business datum and generates test environment business datum;
Comparing unit 503, for receiving described test environment business datum, described test environment business datum and described test business datum are compared, Recognition Different data, and generate the testing journal sheet carrying comparing and show result according to described variance data.
By the description of above-described embodiment, the present invention has the following advantages:
The test source business datum produced actual in production environment of operational trials system, comprehensive, accuracy and the coverage rate of test system and test data can be significantly improved, contribute to more fully detecting the accuracy that operation system performs business operation, simultaneously, Automatic dispatching is carried out to test process, reduce human intervention, test accuracy and the testing efficiency of operational trials system can be significantly improved.
It will be apparent to those skilled in the art that combination disclosure herein and each illustrative box, module, circuit and algorithm steps of describing all can be embodied as electronic hardware, computer software or the combination of the two.In order to this interchangeability between hardware and software is clearly described, all around their function, total volume description is carried out to each illustrative parts, frame, module, circuit and step above.Be embodied as hardware as this function or be embodied as software, the design constraint depended on specific application and whole system is applied.Those of ordinary skill in the art for each application-specific, can realize described function in the mode of accommodation, but thisly realize decision-making and should not be construed as and cause deviating from the scope of present disclosure.
Utilize be designed to perform function described herein general processor, digital signal processor (DSP), special IC (ASIC), field programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components or its combination in any, can realize or perform each illustrative box, unit and the circuit described by combination disclosure herein.General processor can be microprocessor, but in replacement scheme, processor can be the processor of any routine, controller, microcontroller or state machine.Processor also can be implemented as the combination of computing equipment, such as, and the combination of the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessor and DSP kernel, or other such configuration any.
Step in conjunction with the method described by disclosure herein or algorithm can be embodied directly in the software module performed in hardware, by processor or in the combination of both.Software module can be arranged in the storage medium of RAM storer, flash memory, ROM storer, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or other form any known in the art.Exemplary storage medium is coupled to processor, thus enables processor from read information and to storage medium written information.Alternatively, storage medium can be the ingredient of processor.Processor and storage medium can be arranged in ASIC.ASIC can be arranged in user terminal, or processor and storage medium can be arranged in user terminal as discrete parts.
In one or more exemplary design, described function can realize by hardware, software, firmware or its combination in any.If by software simulating, then function can be preserved as one or more instruction or code and be transmitted on a computer-readable medium or by computer-readable medium.Computer-readable medium comprises both computer-readable storage medium and communication media, and communication media comprises promotion computer program from the three unities to any medium of the transmission in another place.Storage medium can be any usable medium can accessed by multi-purpose computer or special purpose computer.Unrestriced mode by way of example, this computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage apparatus or can be used in carrying or storing the program code unit of the expectation with instruction or data structure form and other medium any that can be conducted interviews by universal or special computing machine or universal or special processor.In addition, any connection can be properly termed computer-readable medium.Such as, if use concentric cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or such as infrared ray, radio and microwave and so on wireless technology from website, server or other remote source send software, so the wireless technology of concentric cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, radio and microwave and so on is included in the definition of medium.As used herein, disk and CD comprise compact disk (CD), laser-optical disk, CD, digital versatile disc (DVD), floppy disk and Blu-ray Disc, wherein disk magnetically copies data usually, and CD then utilizes laser to copy data optically.Above-mentioned combination also should be included in the scope of computer-readable medium.
A kind of operation system method of testing provided the embodiment of the present invention above, equipment and system are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.