CN107741903A - Application compatibility method of testing, device, computer equipment and storage medium - Google Patents

Application compatibility method of testing, device, computer equipment and storage medium Download PDF

Info

Publication number
CN107741903A
CN107741903A CN201710813164.XA CN201710813164A CN107741903A CN 107741903 A CN107741903 A CN 107741903A CN 201710813164 A CN201710813164 A CN 201710813164A CN 107741903 A CN107741903 A CN 107741903A
Authority
CN
China
Prior art keywords
business datum
interface
application program
version
circulation
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
Application number
CN201710813164.XA
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710813164.XA priority Critical patent/CN107741903A/en
Priority to PCT/CN2018/077002 priority patent/WO2019047482A1/en
Publication of CN107741903A publication Critical patent/CN107741903A/en
Pending legal-status Critical Current

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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application is related to a kind of application compatibility method of testing, device, computer equipment and storage medium, and methods described includes:Read business datum;The business datum includes type of service;Respective profiles are obtained according to the type of service, corresponding operation flow is have recorded in the configuration file;The interface of the application program of next version is called, circulation process of the business datum in the operation flow is simulated using the interface;Record simulation process result of the business datum during circulation;The circulation log file of a upper version corresponding to the business datum is obtained, the application program that a version is have recorded in the circulation log file carries out the history result of circulation processing according to the operation flow to the business datum;By the simulation process result compared with the history result;It is if inconsistent, it is determined that the application program of next version and the application program of a upper version are incompatible.It can be found in time before the application issued of next version using this method whether compatible with a upper version.

Description

Application compatibility method of testing, device, computer equipment and storage medium
Technical field
The application is related to communication technical field, more particularly to a kind of application compatibility method of testing, device, calculating Machine equipment and storage medium.
Background technology
Insurance is used as a kind of Social safeguard system, has incorporated at present into daily life.With the kind of insurance Increase, class of service is also more and more, and corresponding operation flow is also more and more., can be with when client handles insurance business Circulated by the configuration file business datum of application call operation flow between multiple posies, so as to complete The business handled.Operation flow can need to be adjusted at any time according to business.After operation flow adjustment, to ensure business Data are circulated according to the operation flow after adjustment, and the configuration file of operation flow needs to be adjusted correspondingly.
Application program can regularly publish redaction as a Software tool.The application program of next version should Support the configuration file of the operation flow corresponding to the application program of a version.That is, the application of next version Program should be to the application program compatibility of a upper version.
Because the operation flow of insurance is more, configuration file is also corresponding more, and configuration file can be carried out at any time Adjustment, this make it that tester is difficult the configuration file for finding all to be adjusted.In the application program of next version, if Configuration file corresponding to some operation flows is adjusted, but is the failure to be found in time so that the configuration file after adjustment Fail to be loaded, cause the application program of next version incompatible to the application program of a upper version, cause next version This application program can not circulate to business datum by the operation flow after adjustment.Therefore, how in next version Whether compatibility turns into one that needs to solve at present to application program of the discovery in time to a upper version before application issued Technical problem.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided a kind of before the application issued of next version Find that the application compatibility method of testing whether compatible with a upper version, device, computer equipment and storage are situated between in time Matter.
A kind of application compatibility method of testing, methods described include:
Read business datum;The business datum includes type of service;
Respective profiles are obtained according to the type of service, corresponding operation flow is have recorded in the configuration file;
The interface of the application program of next version is called, the business datum is simulated in the business using the interface Circulation process in flow;
Record simulation process result of the business datum during circulation;
The circulation log file of a upper version corresponding to the business datum is obtained, is recorded in the circulation log file The application program of a upper version to the business datum circulate according to the operation flow history of processing handles knot Fruit;
By the simulation process result compared with the history result;
It is if inconsistent, it is determined that the application program of next version and the application program of a upper version are incompatible.
In one of the embodiments, before the step of reading business datum, in addition to:
The target matrix in target database is obtained, the target matrix includes multiple aiming fields;
The business datum of respective field is extracted in multiple source datas storehouse using aiming field;
The business datum control aiming field for the respective field extracted is write in the target matrix.
In one of the embodiments, in the interface of the application program for calling next version, the interface is utilized After the step of simulating circulation process of the business datum in the operation flow, in addition to:
If the business datum not being consistent with business rule during circulation be present, by the business datum labeled as different Regular data;
Quality Control task is generated using the abnormal data;
Quality control rules corresponding with Quality Control task are obtained, the Quality Control is performed using Quality control rules simulation quality control terminal Task, the abnormal information is modified.
In one of the embodiments, it is described by the simulation process result compared with the history result Step, including:
Obtain field to be contrasted corresponding to field and history result to be contrasted corresponding to simulation process result;
Obtain simulation circulation file corresponding to the simulation process result;
Field to be contrasted corresponding to field and the history result to be contrasted according to corresponding to the simulation process result The circulation log file of simulation the circulation file and a upper version is contrasted line by line, exports comparing result.
In one of the embodiments, methods described also includes:
If the data inconsistent with the history result in the simulation process result be present, differ according to Interface name corresponding to the data query of cause;
Interface parameters in the application program of next version and a upper version are obtained according to the interface name Interface parameters in application program;
The interface parameters of the application program of next version is converted to the first interface parameter of Json forms;Described first The multiple parameters data of interface parameters sort by preset order;
The interface parameters of the application program of a upper version is converted to the second interface parameter of Json forms;Described first The multiple parameters data of interface parameters sort by preset order;
By the first interface parameter after sequence compared with second interface parameter, export corresponding to the interface name not Consistent supplemental characteristic, the incompatible position of the application program of next version is carried out according to the inconsistent supplemental characteristic Positioning.
A kind of application compatibility test device, described device include:
Acquisition module, for reading business datum;The business datum includes type of service;Obtained according to the type of service Respective profiles are taken, corresponding operation flow is have recorded in the configuration file;
Analog module, the interface of the application program for calling next version, the business is simulated using the interface Circulation process of the data in the operation flow;Record simulation process result of the business datum during circulation;
The acquisition module is additionally operable to obtain the circulation log file of a upper version corresponding to the business datum, described The application program that a version is have recorded in circulation log file flows according to the operation flow to the business datum Turn the history result of processing;
Contrast module, for by the simulation process result compared with the history result;If inconsistent, Determine that application program and the application program of a upper version of next version are incompatible.
In one of the embodiments, the acquisition module is additionally operable to obtain the target matrix in target database, institute Stating target matrix includes multiple aiming fields;The business of respective field is extracted in multiple source datas storehouse using aiming field Data;The business datum control aiming field for the respective field extracted is write in the target matrix.
In one of the embodiments, if the analog module is additionally operable to during circulation exist and business rule not phase The business datum of symbol, then the business datum is labeled as abnormal data;Quality Control task is generated using the abnormal data;Obtain Quality control rules corresponding with Quality Control task, the Quality Control task is performed using Quality control rules simulation quality control terminal, to described Abnormal information is modified.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, the step of realizing any of the above-described method described in the computing device during computer program.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor The step of any of the above-described method is realized during row.
Above-mentioned application compatibility method of testing, device, computer equipment and storage medium, operation flow have corresponding Configuration file, corresponding configuration file can be got according to the type of service of business datum.By calling next version Application program interface, enable to called interface analog service data according in configuration file operation flow carry out Circulation is handled.During the processing of analog service stream compression, the simulation process result of each procedure links is recorded.Will simulation Result is compared with the history result of a upper version, if unanimously, then it represents that the application journey of next version Sequence is mutually compatible with the application program of a upper version.If there is inconsistent result, then it represents that next version is answered The problem of incompatible be present with the application program of program and a upper version.Thus, it is possible to the application program hair in next version Before cloth, it can discover whether the problem of with a upper incompatible version be present in time, effectively prevent the version because of application program This incompatible the problem of causing business datum not circulate normally.
Brief description of the drawings
Fig. 1 is the application scenario diagram of application compatibility method of testing in one embodiment;
Fig. 2 is the flow chart of application compatibility method of testing in one embodiment;
Fig. 3 is the block diagram of application compatibility test device in one embodiment.
Fig. 4 is the block diagram of one embodiment Computer equipment.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
The application provides application compatibility method of testing, can apply in application environment as shown in Figure 1.Business Terminal 102 is established by network and server 104 and communicated to connect.Test terminal 106 is established with server 104 by network and communicated Connection.Staff is client's transacting business by the application program run on service terminal 102.Service terminal 102 can have Multiple, business datum goes to different service terminals 102 according to business process flow and handled.Service terminal 102 is done for client Business datum is produced during reason business, when business datum is processed, corresponding result is write circulation record by service terminal 102 File.The application program of each version can have corresponding circulation log file.Data are deployed on server 104 Storehouse, including Production database and test database.Business datum etc. is write in Production database and deposited by service terminal 102 Storage.Circulation log file corresponding to the application program of each version is also stored in Production database.
Before issue, tester is tested it next version of application program by testing terminal 106.Industry The application program run in business terminal 102 can be referred to as the application program of a upper version accordingly.Installed in test terminal 106 The application program of testing tool and next version.Test the business that terminal 106 will be generated in database by testing tool Data, business rule, operation flow, the configuration file of operation flow and circulation log file etc. are synchronized to test database. Test terminal 106 reads business datum in test database, and corresponding configuration text is obtained according to the type of service of business datum Part.Test terminal 106 calls the fortune of the thread, then driver application of the application program of next version by testing tool OK so that the configuration file that the application program loading of next version is read.Testing tool calls the application of next version The interface of program, the circulation process by called interface analog service data according to the operation flow.It is logical to test terminal 106 Cross testing tool and record simulation process result in each procedure links, simulation process result records circulates file to simulation. Terminal 106 is tested by simulation process result compared with the history result in the circulation log file of a upper version, If inconsistent data be present, it is determined that the application program of next version and the application program of a upper version are incompatible.By This can in time find the problem of incompatible before the application issued of next version.
In one embodiment, as shown in Figure 2, there is provided a kind of application compatibility method of testing, in this way should Illustrated for testing exemplified by terminal, specifically include following steps:
Step 202, business datum is read;Business datum includes type of service.
Step 204, respective profiles are obtained according to type of service, corresponding operation flow is have recorded in configuration file.
Staff is client's transacting business by the application program run on service terminal.Service terminal is handled for client Business datum is produced during business.These business datums are referred to as creation data.Creation data is stored in and produced by service terminal In database.Production database can be disposed on the server.Also stored in Production database business rule, operation flow with And the configuration file of operation flow.Operation flow includes multiple procedure links.Operation flow and each is have recorded in configuration file Business rule corresponding to individual procedure links.The corresponding service terminal of each procedure links, the application program in service terminal add After carrying configuration file, business datum can be handled according to the business rule corresponding to procedure links.So that industry Business data are circulated in multiple service terminals, complete the business that client is handled.There can be multiple configurations in Production database File.Different configuration files corresponds to different operation flows.Same type of service can have different according to business needs Operation flow.Operation flow is different, also means that the circulation process of business datum is different.
The version of application program can be periodically updated., it is necessary to which tester is under before the issue of next version The application program of one version carries out compatibility test.Correspondingly, the application program of the current version run on service terminal It is properly termed as the application program of a version.In order to ensure the accuracy for business datum caused by client's transacting business, Both test environment and actual environment (being referred to as production environment) of business handling are isolated.Testing terminal can not be in life The configuration file of business datum and operation flow is obtained into database, required business number can only be obtained in test database According to the configuration file with operation flow.
The application program of testing tool and next version is mounted with test terminal.Testing tool calls test script will Business datum, business rule, operation flow and configuration file etc. are synchronized to test database from Production database.Produce number Can there was only one according to storehouse, it is possibility to have multiple.Production database can also be referred to as source database, and test database can be corresponding Ground is referred to as target database.
In traditional mode, business datum is by manually defeated by pen according to specific business by the interface of application program Enter.In the present embodiment, in order to improve testing efficiency, test terminal calls multiple threads in test number by testing testing tool According to the business datum that more business are read in storehouse.Preferably, testing tool can read preset time period in test database The business datum of more interior business.Preset time period is usually recent a period of time, for example, in one week or in one month Deng.Business datum in preset time period would generally be circulated according to newest operation flow, contribute to tester to find Newest configuration file.
Business datum can be data that finishing service is handled or just in the data of transacting business.Business Data include type of service, for example, declaration form saves from damage or bank card etc..Different types of service can have different Business Streams Journey.Operation flow can need to be adjusted at any time according to business.After operation flow adjustment, its corresponding configuration file can also be adjusted It is whole.
Step 206, the interface of the application program of next version is called, using interface analog service data in operation flow In circulation process.
Step 208, simulation process result of the record traffic data during circulation.
Test terminal calls by testing tool the thread of the application program of next version, then driver application Operation so that the configuration file that the application program loading of next version is read.Test business of the terminal according to business datum The configuration file of operation flow corresponding to type acquisition.Test terminal calls the application program of next version by testing tool One or more interfaces, the circulation process by called interface analog service data according to operation flow.
If not including type of service in business datum, test terminal can be sent by testing tool to external server Verification request, verification request include specific field etc..External server receives verification request, is returned according to specific field corresponding Response message.The response message that test terminal returns according to external server determines the type of service of business datum.
If configuration file corresponding to the type of service only has one, corresponding operation flow only has one.Test work Tool calls one or more interfaces of the application program of next version, by called interface analog service data according to this The circulation process of operation flow.
If configuration file corresponding to the type of service has multiple, then it represents that operation flow has carried out multiple adjustment.Test Instrument is referred to aforesaid way and simulates corresponding circulation process according to corresponding operation flow successively, so as to each configuration text The compatibility of part is tested.
Newest operation flow is reflected in view of newest configuration file, would generally in the application program of next version Newest operation flow is performed, in order to improve testing efficiency, testing tool can only be read according to the type of service of business datum Newest configuration file, the interface of the application program of next version is called to simulate the stream of newest operation flow to business datum Turn over journey.
Analog service data operation flow circulation processing when, business datum each procedure links with it is corresponding Business rule is matched or verified.Test terminal records the simulation process result in each procedure links by testing tool. Simulation process result is recorded into simulation circulation file.
Step 210, the circulation log file of a upper version corresponding to business datum is obtained, is recorded in the log file that circulates The application program of a upper version to business datum circulate the history result of processing according to operation flow.
Step 212, by simulation process result compared with history result.
Step 214, it is if inconsistent, it is determined that the application program of next version and the application program of a upper version be not simultaneous Hold.
When staff is client's transacting business, each service terminal can record corresponding result.Multiple business Result is separately recorded in circulation log file by terminal.Circulating log file can be relative with the version of application program Should, the circulation log file of the application program of different editions can be different.Circulation log file can be stored in Production database In.Test terminal can utilize testing tool that circulation log file is synchronized into test database from Production database.
When carrying out the test of application program of next version, test terminal can obtain upper one by testing tool Circulation log file (the circulation log file that a version can be referred to as) corresponding to the application program of version.Test terminal The circulation log file of a upper version and simulation circulation file are compared by testing tool.If simulation circulation file In simulation process result and a upper version circulation log file in history result it is consistent, then it represents that it is next The application program of version is mutually compatible with the application program of a upper version.If there is inconsistent result, then it represents that under The problem of incompatible be present in the application program of one version and the application program of a upper version.
In the present embodiment, operation flow has corresponding configuration file, can be obtained according to the type of service of business datum To corresponding configuration file.By the interface for the application program for calling next version, called interface is enabled to simulate Business datum carries out circulation processing according to the operation flow in configuration file.During the processing of analog service stream compression, Record the simulation process result of each procedure links.Simulation process result and the history result of a upper version are compared Compared with if unanimously, then it represents that the application program of next version is mutually compatible with the application program of a upper version.If there is not Consistent result, then it represents that the application program of next version and the application program of a upper version have incompatible ask Topic.Thus, it is possible to before the application issued of next version, discover whether to exist with a upper version not in time The problem of compatible, it effectively prevent because business datum can not normally circulate caused by the incompatible version of application program the problem of.
In one embodiment, before the step of reading business datum, in addition to:Obtain the target in target database Tables of data, target matrix include multiple aiming fields;Using aiming field respective field is extracted in multiple source datas storehouse Business datum;By in the business datum control aiming field write-in target matrix for the respective field extracted.
In the present embodiment, business datum is to be synchronized to test database from multiple Production databases.Production database Source database is properly termed as, test database can correspondingly be referred to as target database.Source database and target database can be with Same server is deployed in, different servers can also be deployed in respectively.It is stored with each source database corresponding Source data table, business datum is have recorded in source data table.Multiple fields corresponding to business datum can be included in source data table.Mesh Target matrix is established in mark database, target matrix includes multiple aiming fields.Aiming field can be according to test Need to configure.
Test terminal and corresponding SQL statement is generated using aiming field by testing tool, by SQL statement in multiple sources The business datum of respective field is extracted in the source data table of database.Terminal is tested by the business datum for the respective field extracted Compare in aiming field write-in target matrix, carry out data syn-chronization.In this process, enter without extracting whole source data table Row data syn-chronization, the business datum of respective field is simply extracted in source data table according to field, effectively increases data syn-chronization Speed.
Further, compatibility test is carried out to the configuration file of newest operation flow in order to facilitate tester, surveyed Try terminal can also only extraction preset time period in aiming field corresponding to business datum, by the business datum extracted compare In aiming field write-in target matrix, data syn-chronization is carried out.
Further, in order to effectively alleviate the resource consumption of database, test terminal can be in the free time of source database Between extract corresponding business datum, carry out data syn-chronization.If the free time in multiple source datas storehouse is different, test Terminal can carry out data syn-chronization respectively according to the free time of each source database respectively.
In one embodiment, in the interface for the application program for calling next version, interface analog service data are utilized After the step of circulation process in operation flow, in addition to:If have what is be not consistent with business rule during circulation Business datum, then business datum is labeled as abnormal data;Quality Control task is generated using abnormal data;Obtain and Quality Control task pair The Quality control rules answered, Quality Control task is performed using Quality control rules simulation quality control terminal, abnormal information is modified.
In the present embodiment, during analog service data are circulated according to operation flow, test terminal passes through survey Trial work tool is matched in each procedure links using business rule to business datum.Only meet all streams in business datum Could be smoothly client's transacting business during Cheng Huanjie business rule.If there is the business datum for not meeting business rule, then Need to carry out Quality Control processing to business datum.After Quality Control processing is completed, business datum could continue to circulate.
It is that Quality Control is carried out to business datum by quality control terminal by the staff in Quality Control post in traditional mode Reason.In the present embodiment, when the business datum for needing Quality Control to handle be present, test terminal simulates quality control terminal by testing tool Quality Control processing.Specifically, the business datum for not meeting business rule is labeled as abnormal data by test terminal, abnormal number is utilized According to generation Quality Control task.Test terminal and script file is called by testing tool, obtain the Quality control rules being pre-configured with, utilize matter Regulatory control then simulates quality control terminal and performs Quality Control task, and abnormal data is repaired so that the data fit business rule after reparation Then.
For example, when business datum is " non-fixed point accreditation hospital ", then this business datum is marked as abnormal data.Test Terminal calls script file to obtain corresponding Quality control rules, and this business datum is revised as into " First People's Hospital ", makes amendment Data fit business rule afterwards.Quality Control processing is carried out by simulating quality control terminal, enables to not meet the number of business rule According to being repaired in time, it is ensured that the business datum after reparation can continue to circulate according to operation flow, then ensure that Test is smoothed out.
Further, business datum also includes status.If status represents that business datum needs other posies Staff's processing, test terminal can call the corresponding processing of script simulation, to ensure that business datum can be according to business Flow completes circulation processing.
In one embodiment, the step of by simulation process result compared with history result, including:Obtain mould Intend field to be contrasted corresponding to field and history result to be contrasted corresponding to result;Obtain simulation process result pair The simulation circulation file answered;Wait to contrast corresponding to field and the history result to be contrasted according to corresponding to simulation process result Field is contrasted the circulation log file for simulating circulate file and a upper version line by line, exports comparing result.
The page can be configured by testing tool with display comparison by testing terminal.Before being tested, tester passes through Test terminal inputs configuration information in the comparative arrangement page.Configuration information includes the essential information of file to be contrasted, including Filename to be contrasted, field name to be contrasted etc..Wherein, filename to be contrasted can be the filename of simulation circulation file And the filename of the circulation log file of a upper version.Field name to be contrasted can be simulation circulation file and upper one Whole field names either part field name in the circulation log file of individual version.Terminal is tested to keep in the comparative arrangement page The configuration information of input.
In test process, test terminal can call configuration information, the field name pair to be contrasted in configuration information The circulation log file of simulation circulation file and a upper version is contrasted line by line.After the completion of contrast, comparing result is exported. Comparing result can include total data, can also only include inconsistent data.Understand contrast knot for the ease of tester Fruit, comparing result can only show inconsistent data.By being compared line by line to corresponding field to be contrasted, thus, it is possible to incite somebody to action Simulation process result is fast and effectively contrasted with history result.
Further, terminal is tested in comparison process can also show that simulation process result contrasts with history result Progress bar, thus facilitate tester to understand Reduced extent in time.
In one of the embodiments, this method also includes:If exist in simulation process result with history result not Consistent data, the then interface name according to corresponding to inconsistent data query;Next version is obtained according to interface name Interface parameters in application program and the interface parameters in the application program of a upper version;By the application journey of next version The interface parameters of sequence is converted to the first interface parameter of Json forms;The multiple parameters data of first interface parameter press preset order Sequence;The interface parameters of the application program of a upper version is converted to the second interface parameter of Json forms;First interface is joined Several multiple parameters data sort by preset order;By the first interface parameter after sequence compared with second interface parameter, Inconsistent supplemental characteristic corresponding to output interface title, the application program according to inconsistent supplemental characteristic to next version Incompatible position positioned.
If test finds that the application program of next version and the application program of a upper version have incompatible ask Topic, modifies for the ease of developer to incompatible code, and tester can utilize and test the incompatible portion of terminal-pair Position is positioned.
Application program can have multiple interfaces, and testing tool realizes business datum in difference by calling different interfaces Processing in procedure links.The simulation process result of distinct interface output is different.Testing terminal can be according in plan result Interface name corresponding with the data query that history result is inconsistent.Test terminal obtains the interface according to interface name and existed Interface parameters in the application program of next version and the interface parameters in the application program of a upper version.Interface is joined Include multiple interface data in number.Interface data can be recorded in the form of tables of data, can also use text Form is recorded.There is which supplemental characteristic to be repaiied between next version and the interface of a upper version to learn Change, test terminal can be changed by testing tool docking port parameter.
The first interface that test terminal is converted to the interface parameters of next version by testing tool Json forms is joined Number.First interface parameter includes multiple parameters data, and multiple parameters data are shown line by line, and is sorted by preset order.Terminal is led to The interface parameters that application program obtains a upper version in the second file is crossed, the interface parameters of last revision is converted into Json lattice The second interface parameter of formula.Second interface parameter includes multiple parameters data, and multiple parameters data are shown line by line, and by default suitable Sequence sorts.Compared with testing terminal-pair first interface parameter and second interface parameter line by line, next version and upper one are exported Inconsistent supplemental characteristic in individual version.Due to the arrangement of the multiple parameters data in first interface parameter and second interface parameter Sequence consensus, therefore pass through contrast, it is easy to learn both different supplemental characteristics.Thus tester is facilitated to understand different versions There is which supplemental characteristic to be changed in interface data between this, so as to according to the supplemental characteristic changed to next version The incompatible position of this application program is positioned.
Present invention also provides a kind of application compatibility test device, the device includes multiple modules, each module It can be realized fully or partially through software, hardware or its combination.In one embodiment, as shown in figure 3, the device includes: Acquisition module 302, analog module 304 and contrast module 306, wherein:
Acquisition module 302, for reading business datum;Business datum includes type of service;Phase is obtained according to type of service Configuration file is answered, corresponding operation flow is have recorded in configuration file.
Analog module 304, the interface of the application program for calling next version, existed using interface analog service data Circulation process in operation flow;Simulation process result of the record traffic data during circulation.
Acquisition module 302 is additionally operable to obtain the circulation log file of a upper version corresponding to business datum, circulation record The application program that a version is have recorded in file carries out the history processing of circulation processing according to operation flow to business datum As a result.
Contrast module 306, for by simulation process result compared with history result;It is if inconsistent, it is determined that The application program of next version and the application program of a upper version are incompatible.
In one embodiment, acquisition module 302 is additionally operable to obtain the target matrix in target database, target data Table includes multiple aiming fields;The business datum of respective field is extracted in multiple source datas storehouse using aiming field;It will carry In the business datum control aiming field write-in target matrix for the respective field got.
In one embodiment, if analog module 304 is additionally operable to have what is be not consistent with business rule during circulation Business datum, then business datum is labeled as abnormal data;Quality Control task is generated using abnormal data;Obtain and Quality Control task pair The Quality control rules answered, Quality Control task is performed using Quality control rules simulation quality control terminal, abnormal information is modified.
In one embodiment, contrast module 306 be additionally operable to obtain simulation process result corresponding to field to be contrasted and Field to be contrasted corresponding to history result;Obtain simulation circulation file corresponding to simulation process result;According to simulation process As a result field to be contrasted corresponding to corresponding field to be contrasted and history result will simulate circulation file and a upper version This circulation log file is contrasted line by line, exports comparing result.
In one embodiment, if acquisition module 302 is additionally operable to exist with history result not in simulation process result Consistent data, the then interface name according to corresponding to inconsistent data query;Next version is obtained according to interface name Interface parameters in application program and the interface parameters in the application program of a upper version;Contrast module 306 be additionally operable to by The interface parameters of the application program of next version is converted to the first interface parameter of Json forms;First interface parameter it is multiple Supplemental characteristic sorts by preset order;The interface parameters of the application program of a upper version is converted into the second of Json forms to connect Mouth parameter;The multiple parameters data of first interface parameter sort by preset order;By the first interface parameter and second after sequence Interface parameters is compared, inconsistent supplemental characteristic corresponding to output interface title, according to inconsistent supplemental characteristic under The incompatible position of the application program of one version is positioned.
Above-mentioned application compatibility test device can be implemented as a kind of form of computer program, computer program It can be run on computer equipment as shown in Figure 4
In one embodiment, there is provided a kind of computer equipment, for example, test terminal.As shown in figure 4, the computer Equipment includes processor, memory and the network interface connected by system bus.Wherein, the processor of the computer equipment is used In offer calculating and control ability.The memory of the server includes non-volatile memory medium, built-in storage.The server Non-volatile memory medium is stored with operating system and and computer program.The built-in storage of the computer equipment is non-volatile The operation of operating system and computer program in storage medium provides environment.The network interface of the computer equipment be used for it is outer The server in portion is communicated by network connection.To realize a kind of application compatibility when the computer program is executed by processor Method of testing.It will be understood by those skilled in the art that the structure shown in Fig. 4, the only part related to application scheme The block diagram of structure, the restriction for the server being applied thereon to application scheme is not formed, specific computer equipment can With including than more or less parts shown in figure, either combining some parts or being arranged with different parts.
In one embodiment, there is provided a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, following steps are realized during computing device computer program:
Read business datum;Business datum includes type of service;
Respective profiles are obtained according to type of service, corresponding operation flow is have recorded in configuration file;
The interface of the application program of next version is called, utilizes circulation of the interface analog service data in operation flow Process;
Simulation process result of the record traffic data during circulation;
The circulation log file of a upper version corresponding to business datum is obtained, one is have recorded in the log file that circulates The application program of version carries out the history result of circulation processing according to operation flow to business datum;
By simulation process result compared with history result;
It is if inconsistent, it is determined that the application program of next version and the application program of a upper version are incompatible.
In one embodiment, following steps are also realized during computing device computer program:
The target matrix in target database is obtained, target matrix includes multiple aiming fields;
The business datum of respective field is extracted in multiple source datas storehouse using aiming field;
By in the business datum control aiming field write-in target matrix for the respective field extracted.
In one embodiment, following steps are also realized during computing device computer program:
If the business datum not being consistent with business rule during circulation be present, business datum is labeled as abnormal number According to;
Quality Control task is generated using abnormal data;
Quality control rules corresponding with Quality Control task are obtained, Quality Control task is performed using Quality control rules simulation quality control terminal, it is right Abnormal information is modified.
In one embodiment, following steps are also realized during computing device computer program:
Obtain field to be contrasted corresponding to field and history result to be contrasted corresponding to simulation process result;
Obtain simulation circulation file corresponding to simulation process result;
Field to be contrasted corresponding to field and the history result to be contrasted according to corresponding to simulation process result is by mould The circulation log file for intending circulation file and a upper version is contrasted line by line, exports comparing result.
In one embodiment, following steps are also realized during computing device computer program:
If the data inconsistent with history result in simulation process result be present, according to inconsistent data query Corresponding interface name;
The application of the interface parameters and a upper version in the application program of next version is obtained according to interface name Interface parameters in program;
The interface parameters of the application program of next version is converted to the first interface parameter of Json forms;First interface The multiple parameters data of parameter sort by preset order;
The interface parameters of the application program of a upper version is converted to the second interface parameter of Json forms;First interface The multiple parameters data of parameter sort by preset order;
It is inconsistent corresponding to output interface title by the first interface parameter after sequence compared with second interface parameter Supplemental characteristic, the incompatible position of the application program of next version is positioned according to inconsistent supplemental characteristic.
In one embodiment, there is provided a kind of computer-readable recording medium, be stored thereon with computer program, calculate Machine program realizes following steps when being executed by processor:
Read business datum;Business datum includes type of service;
Respective profiles are obtained according to type of service, corresponding operation flow is have recorded in configuration file;
The interface of the application program of next version is called, utilizes circulation of the interface analog service data in operation flow Process;
Simulation process result of the record traffic data during circulation;
The circulation log file of a upper version corresponding to business datum is obtained, one is have recorded in the log file that circulates The application program of version carries out the history result of circulation processing according to operation flow to business datum;
By simulation process result compared with history result;
It is if inconsistent, it is determined that the application program of next version and the application program of a upper version are incompatible.
In one embodiment, following steps are also realized when computer program is executed by processor:
The target matrix in target database is obtained, target matrix includes multiple aiming fields;
The business datum of respective field is extracted in multiple source datas storehouse using aiming field;
By in the business datum control aiming field write-in target matrix for the respective field extracted.
In one embodiment, following steps are also realized when computer program is executed by processor:
If the business datum not being consistent with business rule during circulation be present, business datum is labeled as abnormal number According to;
Quality Control task is generated using abnormal data;
Quality control rules corresponding with Quality Control task are obtained, Quality Control task is performed using Quality control rules simulation quality control terminal, it is right Abnormal information is modified.
In one embodiment, following steps are also realized when computer program is executed by processor:
Obtain field to be contrasted corresponding to field and history result to be contrasted corresponding to simulation process result;
Obtain simulation circulation file corresponding to simulation process result;
Field to be contrasted corresponding to field and the history result to be contrasted according to corresponding to simulation process result is by mould The circulation log file for intending circulation file and a upper version is contrasted line by line, exports comparing result.
In one embodiment, following steps are also realized when computer program is executed by processor:
If the data inconsistent with history result in simulation process result be present, according to inconsistent data query Corresponding interface name;
The application of the interface parameters and a upper version in the application program of next version is obtained according to interface name Interface parameters in program;
The interface parameters of the application program of next version is converted to the first interface parameter of Json forms;First interface The multiple parameters data of parameter sort by preset order;
The interface parameters of the application program of a upper version is converted to the second interface parameter of Json forms;First interface The multiple parameters data of parameter sort by preset order;
It is inconsistent corresponding to output interface title by the first interface parameter after sequence compared with second interface parameter Supplemental characteristic, the incompatible position of the application program of next version is positioned according to inconsistent supplemental characteristic.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, Described storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the protection of the application Scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of application compatibility method of testing, it is characterised in that methods described includes:
Read business datum;The business datum includes type of service;
Respective profiles are obtained according to the type of service, corresponding operation flow is have recorded in the configuration file;
The interface of the application program of next version is called, the business datum is simulated in the operation flow using the interface In circulation process;
Record simulation process result of the business datum during circulation;
The circulation log file of a upper version corresponding to the business datum is obtained, have recorded in the circulation log file The application program of one version carries out the history result of circulation processing according to the operation flow to the business datum;
By the simulation process result compared with the history result;
It is if inconsistent, it is determined that the application program of next version and the application program of a upper version are incompatible.
2. according to the method for claim 1, it is characterised in that before the step of reading business datum, in addition to:
The target matrix in target database is obtained, the target matrix includes multiple aiming fields;
The business datum of respective field is extracted in multiple source datas storehouse using aiming field;
The business datum control aiming field for the respective field extracted is write in the target matrix.
3. according to the method for claim 1, it is characterised in that in connecing for the application program for calling next version Mouthful, after the step of simulating the circulation process of the business datum in the operation flow using the interface, in addition to:
If the business datum not being consistent with business rule during circulation be present, the business datum is labeled as abnormal number According to;
Quality Control task is generated using the abnormal data;
Quality control rules corresponding with Quality Control task are obtained, performing the Quality Control using Quality control rules simulation quality control terminal appoints Business, is modified to the abnormal information.
4. according to the method for claim 1, it is characterised in that described to handle the simulation process result and the history As a result the step of being compared, including:
Obtain field to be contrasted corresponding to field and history result to be contrasted corresponding to simulation process result;
Obtain simulation circulation file corresponding to the simulation process result;
Field to be contrasted corresponding to field and the history result to be contrasted according to corresponding to the simulation process result is by institute The circulation log file for stating simulation circulation file and a upper version is contrasted line by line, exports comparing result.
5. according to the method described in claim any one of 1-4, it is characterised in that methods described also includes:
If the data inconsistent with the history result in the simulation process result be present, according to described inconsistent Interface name corresponding to data query;
The application of the interface parameters and a upper version in the application program of next version is obtained according to the interface name Interface parameters in program;
The interface parameters of the application program of next version is converted to the first interface parameter of Json forms;The first interface The multiple parameters data of parameter sort by preset order;
The interface parameters of the application program of a upper version is converted to the second interface parameter of Json forms;The first interface The multiple parameters data of parameter sort by preset order;
By the first interface parameter after sequence compared with second interface parameter, export inconsistent corresponding to the interface name Supplemental characteristic, the incompatible position of the application program of next version is determined according to the inconsistent supplemental characteristic Position.
6. a kind of application compatibility test device, it is characterised in that described device includes:
Acquisition module, for reading business datum;The business datum includes type of service;Phase is obtained according to the type of service Configuration file is answered, corresponding operation flow is have recorded in the configuration file;
Analog module, the interface of the application program for calling next version, the business datum is simulated using the interface Circulation process in the operation flow;Record simulation process result of the business datum during circulation;
The acquisition module is additionally operable to obtain the circulation log file of a upper version corresponding to the business datum, the circulation The application program that a version is have recorded in log file is carried out at circulation according to the operation flow to the business datum The history result of reason;
Contrast module, for by the simulation process result compared with the history result;It is if inconsistent, it is determined that The application program of next version and the application program of a upper version are incompatible.
7. device according to claim 6, it is characterised in that the acquisition module is additionally operable to obtain in target database Target matrix, the target matrix include multiple aiming fields;Extracted using aiming field in multiple source datas storehouse The business datum of respective field;The business datum control aiming field for the respective field extracted is write into the target matrix In.
8. device according to claim 6, it is characterised in that if the analog module is additionally operable to exist during circulation The business datum not being consistent with business rule, then the business datum is labeled as abnormal data;Given birth to using the abnormal data Into Quality Control task;Quality control rules corresponding with Quality Control task are obtained, using described in Quality control rules simulation quality control terminal execution Quality Control task, the abnormal information is modified.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realize any one of claim 1 to 5 institute described in the computing device during computer program The step of stating method.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of method any one of claim 1 to 5 is realized when being executed by processor.
CN201710813164.XA 2017-09-11 2017-09-11 Application compatibility method of testing, device, computer equipment and storage medium Pending CN107741903A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710813164.XA CN107741903A (en) 2017-09-11 2017-09-11 Application compatibility method of testing, device, computer equipment and storage medium
PCT/CN2018/077002 WO2019047482A1 (en) 2017-09-11 2018-02-23 Application program compatibility testing method, apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710813164.XA CN107741903A (en) 2017-09-11 2017-09-11 Application compatibility method of testing, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107741903A true CN107741903A (en) 2018-02-27

Family

ID=61235576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710813164.XA Pending CN107741903A (en) 2017-09-11 2017-09-11 Application compatibility method of testing, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN107741903A (en)
WO (1) WO2019047482A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446055A (en) * 2018-09-04 2019-03-08 中国平安人寿保险股份有限公司 Print routine test method, device, computer equipment and storage medium
CN109767110A (en) * 2019-01-04 2019-05-17 中国银行股份有限公司 A kind of risk control system optimization method, device, equipment and storage medium
CN110119480A (en) * 2019-05-23 2019-08-13 北京小米移动软件有限公司 Information processing method, device, equipment and storage medium
CN110580225A (en) * 2019-09-20 2019-12-17 中国银行股份有限公司 Simulation method and device of service system
WO2020024419A1 (en) * 2018-08-03 2020-02-06 平安科技(深圳)有限公司 Testing method for service scenario, electronic device and readable storage medium
CN111274157A (en) * 2020-02-27 2020-06-12 平安医疗健康管理股份有限公司 Test data simulation method and device, computer equipment and storage medium
CN111459492A (en) * 2020-03-19 2020-07-28 南京行而知网络科技有限公司 Method, device, storage medium and equipment for detecting compatibility of Dubbo service interface
CN111583027A (en) * 2020-05-09 2020-08-25 深圳前海微众银行股份有限公司 Business process switching method, device, equipment and computer readable storage medium
CN112463785A (en) * 2020-12-08 2021-03-09 中国人寿保险股份有限公司 Data quality monitoring method and device, electronic equipment and storage medium
CN112540919A (en) * 2020-12-08 2021-03-23 上海哔哩哔哩科技有限公司 Test equipment determination method and device
CN112631919A (en) * 2020-12-25 2021-04-09 广州品唯软件有限公司 Comparison test method and device, computer equipment and storage medium
CN112783799A (en) * 2021-03-19 2021-05-11 中国工商银行股份有限公司 Software daemon test method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778052A (en) * 2012-10-17 2014-05-07 百度在线网络技术(北京)有限公司 Method and device for front end javascript code testing
CN104144204A (en) * 2013-05-09 2014-11-12 洛克威尔自动控制技术股份有限公司 Using cloud-based data for industrial simulation
CN105468779A (en) * 2015-12-16 2016-04-06 中国科学院软件研究所 Browser compatibility detection oriented client Web application capture and playback system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685207B (en) * 2012-09-21 2018-01-19 百度在线网络技术(北京)有限公司 Data integrated system, device and method across data source
CN103631597B (en) * 2013-12-09 2017-03-08 中博信息技术研究院有限公司 WEB list engine apparatus based on XML and method
US9430228B2 (en) * 2013-12-16 2016-08-30 International Business Machines Corporation Verification of backward compatibility of software components

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778052A (en) * 2012-10-17 2014-05-07 百度在线网络技术(北京)有限公司 Method and device for front end javascript code testing
CN104144204A (en) * 2013-05-09 2014-11-12 洛克威尔自动控制技术股份有限公司 Using cloud-based data for industrial simulation
CN105468779A (en) * 2015-12-16 2016-04-06 中国科学院软件研究所 Browser compatibility detection oriented client Web application capture and playback system and method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020024419A1 (en) * 2018-08-03 2020-02-06 平安科技(深圳)有限公司 Testing method for service scenario, electronic device and readable storage medium
CN109446055B (en) * 2018-09-04 2024-02-02 中国平安人寿保险股份有限公司 Printing program testing method, device, computer equipment and storage medium
CN109446055A (en) * 2018-09-04 2019-03-08 中国平安人寿保险股份有限公司 Print routine test method, device, computer equipment and storage medium
CN109767110A (en) * 2019-01-04 2019-05-17 中国银行股份有限公司 A kind of risk control system optimization method, device, equipment and storage medium
CN110119480A (en) * 2019-05-23 2019-08-13 北京小米移动软件有限公司 Information processing method, device, equipment and storage medium
CN110580225A (en) * 2019-09-20 2019-12-17 中国银行股份有限公司 Simulation method and device of service system
CN111274157A (en) * 2020-02-27 2020-06-12 平安医疗健康管理股份有限公司 Test data simulation method and device, computer equipment and storage medium
CN111459492A (en) * 2020-03-19 2020-07-28 南京行而知网络科技有限公司 Method, device, storage medium and equipment for detecting compatibility of Dubbo service interface
CN111583027A (en) * 2020-05-09 2020-08-25 深圳前海微众银行股份有限公司 Business process switching method, device, equipment and computer readable storage medium
CN112463785A (en) * 2020-12-08 2021-03-09 中国人寿保险股份有限公司 Data quality monitoring method and device, electronic equipment and storage medium
CN112540919A (en) * 2020-12-08 2021-03-23 上海哔哩哔哩科技有限公司 Test equipment determination method and device
CN112540919B (en) * 2020-12-08 2024-02-23 上海哔哩哔哩科技有限公司 Test equipment determining method and device
CN112463785B (en) * 2020-12-08 2024-04-16 中国人寿保险股份有限公司 Data quality monitoring method and device, electronic equipment and storage medium
CN112631919A (en) * 2020-12-25 2021-04-09 广州品唯软件有限公司 Comparison test method and device, computer equipment and storage medium
CN112783799A (en) * 2021-03-19 2021-05-11 中国工商银行股份有限公司 Software daemon test method and device

Also Published As

Publication number Publication date
WO2019047482A1 (en) 2019-03-14

Similar Documents

Publication Publication Date Title
CN107741903A (en) Application compatibility method of testing, device, computer equipment and storage medium
US11030166B2 (en) Smart data transition to cloud
CN107665171B (en) Automatic regression testing method and device
US6182245B1 (en) Software test case client/server system and method
CN102831052B (en) Test exemple automation generating apparatus and method
CN107122368B (en) Data verification method and device and electronic equipment
CN109977110A (en) Data cleaning method, device and equipment
CN104050078B (en) Test script generates system
CN103761189B (en) Test case management method and system
CN104572122A (en) Software application data generating device and method
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN105760296A (en) Automation testing control method, device and terminal
CN110781231A (en) Batch import method, device, equipment and storage medium based on database
CN111813661A (en) Global service data drive automatic test method, device, equipment and medium
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN111966580A (en) Automatic testing method, device, equipment and storage medium based on artificial intelligence
CN111258881B (en) Intelligent test system for workflow test
CN103810094B (en) Execution method, device and the testing tool of a kind of test cases
CN112948473A (en) Data processing method, device and system of data warehouse and storage medium
CN107766519B (en) Method for visually configuring data structure
CN111061733B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN104933096B (en) Abnormal key recognition methods, device and the data system of database
US20070180369A1 (en) Method and apparatus for automatically formatting data based on a best match test result type
CN108984757A (en) A kind of data lead-in method and equipment
US8918763B2 (en) Marked test script creation

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180227