[go: up one dir, main page]

CN110188035A - A kind of interface testing data creation method, device and storage medium - Google Patents

A kind of interface testing data creation method, device and storage medium Download PDF

Info

Publication number
CN110188035A
CN110188035A CN201910387642.4A CN201910387642A CN110188035A CN 110188035 A CN110188035 A CN 110188035A CN 201910387642 A CN201910387642 A CN 201910387642A CN 110188035 A CN110188035 A CN 110188035A
Authority
CN
China
Prior art keywords
data
full dose
test
derivative
dimension
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910387642.4A
Other languages
Chinese (zh)
Other versions
CN110188035B (en
Inventor
赵月
段颖颖
吴冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201910387642.4A priority Critical patent/CN110188035B/en
Publication of CN110188035A publication Critical patent/CN110188035A/en
Application granted granted Critical
Publication of CN110188035B publication Critical patent/CN110188035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

This specification embodiment discloses a kind of interface testing data creation method, device and storage medium, suitable for interface testing technical field, wherein, the method may include: obtain full dose first data of the test object under nominative testing dimension, according to the type of service of first data, determine the full dose derivative data of first data, according to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generate the data acquisition system of the test object, according to the data acquisition system, generate the corresponding test data set of nominative testing object.Full dose test data can be obtained by this specification embodiment, improves the quality of Test data generation and the accuracy rate of test result.

Description

A kind of interface testing data creation method, device and storage medium
Technical field
This application involves interface testing technical field, in particular to a kind of interface testing data creation method, device and deposit Storage media.
Background technique
In software test procedure, most important one one work is exactly to generate test data.Generate test data Process is cumbersome, duplicate and easily malfunctions.The test data of bank's class application is often with certain product meaning, therefore The generation of the test data of Bank application is the key that bank product test.
In the prior art, typical data is mainly chosen in the generation of bank's class testing data, but this generation bank's class is surveyed The scheme of examination data does not consider business processing logic, and the banks testing data that will lead to generation are not complete, it is difficult to obtain complete The test data of amount.
To sum up, bank's class testing data that the prior art generates are not complete, cause the quality of Test data generation low, to lead Cause the accuracy rate of test result low.
Summary of the invention
Be designed to provide a kind of interface testing data creation method, device and the storage of this specification embodiment are situated between Matter improves the quality of Test data generation to obtain full dose test data.
To achieve the above object, this specification embodiment provides a kind of interface testing data creation method, the method May include:
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying institute State the different attribute data of test object;First data are for identifying the different business class under the nominative testing dimension Type data;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the survey Try the data acquisition system of object;The data set includes the number for being spliced first data and the derivative data According to;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
Further, in another embodiment of the method, the acquisition test object is under nominative testing dimension The first data of full dose may include:
Obtain the data call rule of test interface;
According to the data call rule, full dose first data of the test object under nominative testing dimension are determined.
Further, in another embodiment of the method, the type of service according to first data is determined The full dose derivative data of first data may include:
Obtain the corresponding type of service of the first data;
According to the type of service, micronization processes are carried out to the first data, obtain the full dose generaton number of first data According to.
Further, in another embodiment of the method, the business processing logic according to the derivative data, Dimension-reduction treatment is carried out to the derivative data, the data acquisition system of the test object is generated, may include:
The business processing logic of full dose derivative data is compared, judges that the business processing of the full dose derivative data is patrolled It whether identical collects;
If the business processing logic of the full dose derivative data is identical, the full dose derivative data is carried out at dimensionality reduction Reason, obtains a specified data;The specified data are any one in the full dose derivative data;
The first data of full dose and corresponding specified data are subjected to splicing, obtain the data acquisition system of test object.
Further, described according to the data acquisition system in another embodiment of the method, generate nominative testing pair As corresponding test data set, may include:
Obtain the test data and the corresponding SQL query statement of the test data of nominative testing object;
The SQL query statement is executed in batches in data acquisition system, obtains the corresponding full dose test number of the specified object According to set.
On the other hand, this specification embodiment provides a kind of interface testing data generating device, may include:
Module is obtained, can be used for obtaining full dose first data of the test object under nominative testing dimension;It is described specified Test dimension is used to identify the different attribute data of the test object;First data are for identifying in the nominative testing Different service types data under dimension;
Determining module can be used for the type of service according to first data, determine that the full dose of first data is spread out Raw data;
Generation module can be used for the business processing logic according to the derivative data, drop to the derivative data Dimension processing, generates the data acquisition system of the test object;The data set includes by first data and the derivative data The data spliced;
Query generation module can be used for generating the corresponding test data of nominative testing object according to the data acquisition system Set.
Further, in another embodiment of described device, the acquisition module may include:
Acquiring unit can be used for obtaining the data call rule of test interface;
Determination unit can be used for determining test object under nominative testing dimension according to the data call rule The first data of full dose.
Further, in another embodiment of described device, the determining module may include:
Acquiring unit can be used for obtaining the corresponding type of service of the first data;
Business refines unit, can be used for according to the type of service, carries out micronization processes to the first data, obtains described The full dose derivative data of first data.
Further, in another embodiment of described device, the generation module may include:
Comparison judgment unit can be used for for the business processing logic of full dose derivative data being compared, and judge described complete Whether the business processing logic for measuring derivative data is identical;
Dimensionality reduction unit, if the business processing logic that can be used for the full dose derivative data is identical, to the full dose Derivative data carries out dimension-reduction treatment, obtains a specified data;The specified data are any in the full dose derivative data One;
Concatenation unit can be used for the first data of full dose and corresponding specified data carrying out splicing, be tested The data acquisition system of object.
Further, in another embodiment of described device, the query generation module can also include:
Acquiring unit, the test data and the corresponding SQL of the test data that can be used for obtaining nominative testing object are looked into Ask sentence;
Query execution unit can be used for executing in batches the SQL query statement in data acquisition system, obtain described specified The corresponding full dose test data set of object.
Another aspect, this specification embodiment additionally provide a kind of interface testing data generating device, may include storage Device, processor and the computer program being stored on the memory, when the computer program is run by the processor Following steps can be executed:
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying institute State the different attribute data of test object;First data are for identifying the different business class under the nominative testing dimension Type data;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the survey Try the data acquisition system of object;The data set includes the number for being spliced first data and the derivative data According to;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
Another aspect, this specification embodiment additionally provide a kind of computer storage medium, are stored thereon with computer journey Sequence, the realization when computer program is executed by processor:
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying institute State the different attribute data of test object;First data are for identifying the different business class under the nominative testing dimension Type data;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the survey Try the data acquisition system of object;The data set includes the number for being spliced first data and the derivative data According to;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
Interface testing data creation method, device and the storage medium that this specification embodiment provides are tested by obtaining Full dose first data of the object under nominative testing dimension determine described first further according to the type of service of first data The full dose derivative data of data, and according to the business processing logic of the derivative data, the derivative data is carried out at dimensionality reduction Reason, generates the data acquisition system of the test object, finally according to the data acquisition system, so that it may it is corresponding to obtain nominative testing object Test data set.This method drops the full dose derivative data according to the business processing logic of full dose derivative data Dimension processing, available full dose data acquisition system, then script is executed in batches in the data acquisition system, so that it may obtain nominative testing The corresponding full dose test data set of object, efficiently solve generation test data it is insufficient the problems such as, to improve survey Try the accuracy rate of quality and test result that data generate.
Detailed description of the invention
It, below will be to embodiment in order to illustrate more clearly of the application embodiment or technical solution in the prior art Or attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only It is some embodiments as described in this application, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the method flow schematic diagram for the interface testing data creation method that some embodiments of this specification provide;
Fig. 2 is the schematic diagram of a scenario for the interface testing data creation method that some embodiments of this specification provide;
Fig. 3 is the modular structure schematic diagram for the interface testing data generating device that some embodiments of this specification provide;
The structural representation of module is obtained in the interface testing data generating device that Fig. 4 provides for some embodiments of this specification Figure;
The structural representation of determining module in the interface testing data generating device that Fig. 5 provides for some embodiments of this specification Figure;
The structural representation of generation module in the interface testing data generating device that Fig. 6 provides for some embodiments of this specification Figure;
The structure of query generation module in the interface testing data generating device that Fig. 7 provides for some embodiments of this specification Schematic diagram;
Fig. 8 is the structural schematic diagram for the computer storage medium that some embodiments of this specification provide.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in mode is applied, the technical solution in the application embodiment is clearly and completely described, it is clear that described Embodiment is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment party in the application Formula, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, is all answered When the range for belonging to the application protection.
In bank product test process, the test data for how coping with different bank product prepares to require to have become test An emphasis in Data Preparation.However, in the prior art, typical number is mainly chosen in the generation of bank's class testing data According to, but this scheme for generating bank's class testing data does not consider business processing logic, the bank that will lead to generation surveys Try the not congruent problem of data.To solve the above-mentioned problems, the embodiment of the present application is by obtaining test object in nominative testing dimension Under the first data of full dose determine the full dose derivative data of first data further according to the type of service of first data, Again according to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the full dose derivative data, generates the test The full dose data acquisition system of object generates the corresponding full dose of nominative testing object and tests number finally according to the full dose data acquisition system According to set, to improve the quality of Test data generation and the accuracy rate of test result.
Fig. 1 is the method flow schematic diagram for the interface testing data creation method that some embodiments of this specification provide, this The interface testing data creation method that some embodiments of specification provide may include:
S101, full dose first data of the test object under nominative testing dimension are obtained, the nominative testing dimension is used for The different attribute data of the test object are identified, first data are for identifying the difference under the nominative testing dimension Type of service data.
In some embodiments of this specification, the number of full dose first for obtaining test object under nominative testing dimension According to, it can be regular by obtaining the data call of each test interface, and according to the data call rule, determine that test object exists The first data of full dose under nominative testing dimension.Wherein, the test object can be some basic products of bank, the base Plinth product can be the type for all cards that bank is supported, such as: medical insurance card, social security card, Jingdone district card, Taobao's card, Express card, Card etc. is protected by debit card, army.The basic product can also be to private regular account, a logical main account, to public basic family etc., originally Specification is to test object and with no restriction.The nominative testing dimension can be different attribute included by the test object Data, such as: account, card, client etc., this specification to nominative testing dimension with no restriction.First data of full dose can be with It is the different business performance data under nominative testing dimension, such as: business function data under account can be with are as follows: fixed deposit, Withdraw the money, transfer accounts, this specification to specific first data with no restriction.
S102, according to the type of service of first data, determine the full dose derivative data of first data.
In some embodiments of this specification, the full dose derivative data of determination first data can pass through The corresponding type of service of the first data is obtained, and according to the type of service, micronization processes are carried out to the first data, is obtained described The full dose derivative data of first data.Such as: assuming that the first data are fixed deposit, and according to the deposit time limit of fixed deposit, The subclass data of available fixed deposit phase, i.e. derivative data, can be 3 months, 5 months, 1 year, 5 years, 10 years etc., again Such as: assuming that the first data are account status, so that it may obtain the derivative data of account status, may is that it is normal, it is motionless, to Pin, close family, do not swash, it is complete freeze, borrow and freeze, borrow and freeze etc., this specification to derivative data with no restriction.
S103, institute is generated to derivative data progress dimension-reduction treatment according to the business processing logic of the derivative data The data acquisition system of test object is stated, the data set includes being spliced first data and the derivative data Data.
In some embodiments of this specification, the data acquisition system for generating the test object can be by will be complete The business processing logic of amount derivative data is compared, and judges whether the business processing logic of the full dose derivative data is identical, If the business processing logic of the full dose derivative data is identical, to full dose derivative data progress dimension-reduction treatment, and from A specified data are determined in the full dose derivative data, aforesaid operations are repeated, until obtaining the full dose under nominative testing dimension First data of full dose and corresponding specified data are finally carried out splicing by specified data corresponding to the first data, Obtain the data acquisition system of the test object.In other embodiments of this specification, the generation test object Data acquisition system can be judged in the full dose derivative data by the way that the business processing logic of full dose derivative data to be compared With the presence or absence of the identical multiple derivative datas of business processing logic, if there are business processing logics in the full dose derivative data Identical multiple derivative datas then carry out dimension-reduction treatment to multiple derivative datas, and from multiple derivative datas really A fixed specified data, repeat aforesaid operations, until obtaining specifying corresponding to the first data of full dose under nominative testing dimension First data of full dose and corresponding specified data are finally carried out splicing, obtain the number of the test object by data According to set.
In a specific embodiment, the splicing can be according to cartesian product algorithm, by the full dose First data and corresponding specified data carry out splicing, are based on this, also available other connecting methods, this specification With no restriction to this.In a specific embodiment, as described in Figure 2, Fig. 2 is connecing for some embodiments offers of this specification The schematic diagram of a scenario of mouthful test data generating method, it is assumed that fixed deposit 3 months, 5 months, 1 year, 5 years, at 10 years business It is identical for managing logic, is all business processing logic A, when test data prepares, it is only necessary to from fixed deposit 3 months, 5 One of them is chosen as test data in the moon, 1 year, 5 years, 10 years, so that it may which the test request for meeting fixed deposit is not necessarily to Multi-group data test is carried out, so as to improve the efficiency of data test.For another example: assuming that account status is normal, it is motionless, to Pin, close family, do not swash, it is complete freeze, be identical by means of freezing, borrowing business processing logic normal, motionless in freezing, be business processing logic a, To pin, sharp business processing logic is not identical, is business processing logic b, and pass family is frozen, entirely by means of the business processing for freezing, borrowing jelly Logic is identical, is business processing logic c, when test data prepares, it is only necessary to from normal, motionless, to pin, not swash In, and close family, it is complete freeze, by means of freeze, borrow freeze in respectively choose one as test data, be used as further interface test and use The test request for meeting account status, without carrying out multi-group data test, so as to improve the efficiency of data test.
S104, according to the data acquisition system, generate the corresponding test data set of nominative testing object.
In some embodiments of this specification, the corresponding test data set of the nominative testing object can pass through The test data and the corresponding SQL query statement of the test data of nominative testing object are obtained, and the batch in data acquisition system The SQL query statement is executed to obtain.Such as: ' 5501 ' AND of SELECT*FROM T_INVM WHERE ACCT_TYPE= INT_CAT=' 0621 ' is for finding out satisfactory all pairs private regular accounts, for another example: SELECT*FROM T_INVM WHERE CURR_STATUS=' 00 ' is normal all accounts for finding out account status.In a specific embodiment party In formula, multiple SQL query statements can be connected by Union all, realize the batch query of test data.Such as: ' 0621 ' UNION ALL of ' 5501 ' AND INT_CAT=of SELECT*FROM T_INVM WHERE ACCT_TYPE= SELECT*FROM T_INVM WHERE CURR_STATUS=' 00 ' is normally to meet for finding out all account status It is required that private regular account.For another example: ' 5509 ' AND of SELECT*FROM DNF.T_INVM WHERE ACCT_TYPE= ' 5506 ' AND INT_CAT of ROWNUM≤5union all SELECT*FROM DNF.T_INVM WHERE ACCT_TYPE= =' 0611 ' ROWNUM≤5 AND lead to and for finding out satisfactory all pairs of privates one to private foreign currency wholesale account.On Embodiment is stated only to facilitate explaining technical scheme, this is based on, SELECT*FROM T_INVM can also be passed through ' 0621 ' AND CURR_STATUS=' 00 ' of ' 5501 ' AND INT_CAT=of WHERE ACCT_TYPE=finds out all accounts State is normally to private regular account.
It, can be with when not there are no satisfactory data in the data acquisition system in some embodiments of this specification It is opened manually.Such as: it is regular to the fixed book account of private 3 years in database lookup, and state is to freeze, But then database can pass through people first periodically finding within 3 years to the fixed book account of private without the account of this state Work processing, is revised as frozen state for account status.In some embodiments of this specification, the nominative testing object Corresponding test data set, can also special data automate open by way of realize, such as: a such as customer ID 100 accounts are associated with, in the scene of test interface page turning, 100 can be opened under a customer ID by automating Account meets test condition.
It is worth noting that, above embodiment only to facilitate explain the application technical solution, when it is implemented, Other embodiments can also be taken to reach identical technical effect, it is without limitation.
Based on interface testing data creation method described above, this specification one or more embodiment additionally provides one Kind interface testing data generating device.The device may include the system for having used this specification embodiment the method (including distributed system), software (application), module, component, server, client etc. simultaneously combine the necessary dress for implementing hardware It sets.Based on same innovation thinking, for example following implementation of the device in one or more embodiments that this specification embodiment provides Described in example.Since the implementation that device solves the problems, such as is similar to method, this illustrates the reality of the specific device of embodiment The mode of applying may refer to the implementation of preceding method, and overlaps will not be repeated.It is used below, term " unit " or " mould The combination of the software and/or hardware of predetermined function may be implemented in block ".Although device described in following embodiment is preferably with soft Part is realized, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Specifically, Fig. 3 is that the modular structure for the interface testing data generating device that some embodiments of this specification provide is shown It is intended to.As shown in figure 3, the interface testing data generating device provided in some embodiments of this specification may include: acquisition mould Block 301, determining module 302, generation module 303 and query generation module 304.
Module 301 is obtained, can be used for obtaining full dose first data of the test object under nominative testing dimension;The finger Surely test dimension is used to identify the different attribute data of the test object;First data are for identifying in the specified survey Try the different service types data under dimension;
Determining module 302 can be used for the type of service according to first data, determine the full dose of first data Derivative data;
Generation module 303 can be used for the business processing logic according to the derivative data, carry out to the derivative data Dimension-reduction treatment generates the data acquisition system of the test object;The data set includes by first data and the generaton number According to the data spliced;
Query generation module 304 can be used for generating the corresponding test number of nominative testing object according to the data acquisition system According to set.
Fig. 4 is the structural representation of acquisition module in the interface testing data generating device of some embodiments offers of this specification Figure, as shown in figure 4, on the basis of the above embodiments, the acquisition module 301 may include: acquiring unit 401 and determine Unit 402.
Acquiring unit 401 can be used for obtaining the data call rule of test interface;
Determination unit 402 can be used for determining test object under nominative testing dimension according to the data call rule The first data of full dose.
Fig. 5 is the structural representation of determining module in the interface testing data generating device of some embodiments offers of this specification Figure, as shown in figure 5, on the basis of the above embodiments, the determining module 302 may include: acquiring unit 501 and business Refine unit 502.
Acquiring unit 501 can be used for obtaining the corresponding type of service of the first data;
Business refines unit 502, can be used for according to the type of service, carries out micronization processes to the first data, obtains The full dose derivative data of first data.
Fig. 6 is the structural representation of generation module in the interface testing data generating device of some embodiments offers of this specification Figure, as shown in fig. 6, on the basis of the above embodiments, the generation module 303 may include: comparison judgment unit 601, drop Tie up unit 602 and concatenation unit 603.
Comparison judgment unit 601 can be used for for the business processing logic of full dose derivative data being compared, described in judgement Whether the business processing logic of full dose derivative data is identical;
Dimensionality reduction unit 602, if the business processing logic that can be used for the full dose derivative data is identical, to described complete It measures derivative data and carries out dimension-reduction treatment, obtain a specified data;The specified data are appointing in the full dose derivative data Meaning one;
Concatenation unit 603 can be used for the first data of full dose and corresponding specified data carrying out splicing, be surveyed Try the data acquisition system of object.
Fig. 7 is the structure of query generation module in the interface testing data generating device of some embodiments offers of this specification Schematic diagram, as shown in fig. 7, on the basis of the above embodiments, the query generation module 304 may include: acquiring unit 701 And query execution unit 702.
Acquiring unit 701 can be used for obtaining the test data and the corresponding SQL of the test data of nominative testing object Query statement;
Query execution unit 702 can be used for executing in batches the SQL query statement in data acquisition system, obtain described The specified corresponding full dose test data set of object.
To achieve the above object, the structural schematic diagram for the computer storage medium that some embodiments of this specification provide, such as It is described the apparatus may include memory, processor and the computer program being stored on the memory shown in Fig. 8 Computer program can execute following steps when being run by the processor:
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying institute State the different attribute data of test object;First data are for identifying the different business class under the nominative testing dimension Type data;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the survey Try the data acquisition system of object;The data set includes the number for being spliced first data and the derivative data According to;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
Interface testing data creation method, device and the storage that this specification provides are existed by obtaining multiple test objects The first data of full dose under nominative testing dimension carry out micronization processes to first data, obtain further according to the type of service It is compared to the full dose derivative data of first data, and by the business processing logic of full dose derivative data, when described complete When the business processing logic of amount derivative data is identical, dimension-reduction treatment is carried out to the full dose derivative data, obtains a specified number According to, and the first data of full dose and corresponding specified data are subjected to splicing, the full dose data acquisition system of test object is obtained, when When testing the properties of product of specified object, script is executed in batches in the data acquisition system, so that it may obtain nominative testing object Corresponding full dose test data set efficiently solves the problems, such as that the test data of generation is not congruent, to improve test data The quality of generation and the accuracy rate of test result.
The above-mentioned interface testing data creation method and device that this specification embodiment provides can connect in Admitester It realizes, can also be realized in other interface facilities, this specification is without limitation in mouth tool.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip 2.Moreover, nowadays, substitution manually makes IC chip, and this programming is also used instead mostly " logic compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development Seemingly, and the source code before compiling also handy specific programming language is write, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages In, so that it may it is readily available the hardware circuit for realizing the logical method process.
It is also known in the art that in addition to realizing client, server in a manner of pure computer readable program code In addition, completely can by by method and step carry out programming in logic come so that client, server with logic gate, switch, dedicated The form of integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. realizes identical function.Therefore this client, Server is considered a kind of hardware component, and can also be considered as to the device for realizing various functions for including in it Structure in hardware component.Or even, can will be considered as realizing the device of various functions either implementation method Software module can be the structure in hardware component again.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment of the application or embodiment Method described in certain parts.
Each embodiment in this specification is described in a progressive manner, same and similar between each embodiment Part may refer to each other, what each embodiment stressed is the difference with other embodiments.In particular, needle For the embodiment of server, client, device and computer storage medium, it is referred to the implementation of preceding method The introduction of mode, which compares, to be explained.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that there are many deformations by the application With variation without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application Spirit.

Claims (12)

1. a kind of interface testing data creation method, which is characterized in that the described method includes:
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying the survey Try the different attribute data of object;First data are for identifying the different service types number under the nominative testing dimension According to;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the test pair The data acquisition system of elephant;The data set includes the data for being spliced first data and the derivative data;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
2. the method according to claim 1, wherein the acquisition test object is complete under nominative testing dimension One data of flow control, comprising:
Obtain the data call rule of test interface;
According to the data call rule, full dose first data of the test object under nominative testing dimension are determined.
3. the method according to claim 1, wherein the type of service according to first data, determines The full dose derivative data of first data, comprising:
Obtain the corresponding type of service of the first data;
According to the type of service, micronization processes are carried out to the first data, obtain the full dose derivative data of first data.
4. the method according to claim 1, wherein the business processing logic according to the derivative data, Dimension-reduction treatment is carried out to the derivative data, generates the data acquisition system of the test object, comprising:
The business processing logic of full dose derivative data is compared, judges that the business processing logic of the full dose derivative data is It is no identical;
If the business processing logic of the full dose derivative data is identical, dimension-reduction treatment is carried out to the full dose derivative data, Obtain a specified data;The specified data are any one in the full dose derivative data;
The first data of full dose and corresponding specified data are subjected to splicing, obtain the data acquisition system of test object.
5. the method according to claim 1, wherein described according to the data acquisition system, generation nominative testing pair As corresponding test data set, comprising:
Obtain the test data and the corresponding SQL query statement of the test data of nominative testing object;
The SQL query statement is executed in batches in data acquisition system, obtains the corresponding full dose test data set of the specified object It closes.
6. a kind of interface testing data generating device, which is characterized in that described device includes:
Module is obtained, for obtaining full dose first data of the test object under nominative testing dimension;The nominative testing dimension For identifying the different attribute data of the test object;First data are for identifying under the nominative testing dimension Different service types data;
Determining module determines the full dose derivative data of first data for the type of service according to first data;
Generation module carries out dimension-reduction treatment to the derivative data for the business processing logic according to the derivative data, raw At the data acquisition system of the test object;The data set includes splice by first data and the derivative data The data arrived;
Query generation module, for generating the corresponding test data set of nominative testing object according to the data acquisition system.
7. device according to claim 6, which is characterized in that the acquisition module, comprising:
Acquiring unit, for obtaining the data call rule of test interface;
Determination unit, for determining full dose first of the test object under nominative testing dimension according to the data call rule Data.
8. device according to claim 6, which is characterized in that the determining module, comprising:
Acquiring unit, for obtaining the corresponding type of service of the first data;
Business refines unit, for carrying out micronization processes to the first data, obtaining first data according to the type of service Full dose derivative data.
9. device according to claim 6, which is characterized in that the generation module, comprising:
Comparison judgment unit judges the full dose generaton number for the business processing logic of full dose derivative data to be compared According to business processing logic it is whether identical;
Dimensionality reduction unit, if the business processing logic for the full dose derivative data is identical, to the full dose derivative data Dimension-reduction treatment is carried out, a specified data are obtained;The specified data are any one in the full dose derivative data;
Concatenation unit obtains the number of test object for the first data of full dose and corresponding specified data to be carried out splicing According to set.
10. device according to claim 6, which is characterized in that the query generation module, comprising:
Acquiring unit, for obtaining the test data and the corresponding SQL query statement of the test data of nominative testing object;
It is corresponding to obtain the specified object for executing in batches the SQL query statement in data acquisition system for query execution unit Full dose test data set.
11. a kind of interface testing data generating device, including memory, processor and the meter being stored on the memory Calculation machine program, which is characterized in that the computer program executes following steps when being run by the processor:
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying the survey Try the different attribute data of object;First data are for identifying the different service types number under the nominative testing dimension According to;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the test pair The data acquisition system of elephant;The data set includes the data for being spliced first data and the derivative data;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
12. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located Reason device performs the steps of when executing
Obtain full dose first data of the test object under nominative testing dimension;The nominative testing dimension is for identifying the survey Try the different attribute data of object;First data are for identifying the different service types number under the nominative testing dimension According to;
According to the type of service of first data, the full dose derivative data of first data is determined;
According to the business processing logic of the derivative data, dimension-reduction treatment is carried out to the derivative data, generates the test pair The data acquisition system of elephant;The data set includes the data for being spliced first data and the derivative data;
According to the data acquisition system, the corresponding test data set of nominative testing object is generated.
CN201910387642.4A 2019-05-10 2019-05-10 Interface test data generation method, device and storage medium Active CN110188035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910387642.4A CN110188035B (en) 2019-05-10 2019-05-10 Interface test data generation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910387642.4A CN110188035B (en) 2019-05-10 2019-05-10 Interface test data generation method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110188035A true CN110188035A (en) 2019-08-30
CN110188035B CN110188035B (en) 2023-10-24

Family

ID=67716029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910387642.4A Active CN110188035B (en) 2019-05-10 2019-05-10 Interface test data generation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110188035B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134541A (en) * 1997-10-31 2000-10-17 International Business Machines Corporation Searching multidimensional indexes using associated clustering and dimension reduction information
CN107943694A (en) * 2017-11-21 2018-04-20 中国农业银行股份有限公司 A kind of test data generating method and device
CN109033322A (en) * 2018-07-18 2018-12-18 中国联合网络通信集团有限公司 A kind of test method and device of multidimensional data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134541A (en) * 1997-10-31 2000-10-17 International Business Machines Corporation Searching multidimensional indexes using associated clustering and dimension reduction information
CN107943694A (en) * 2017-11-21 2018-04-20 中国农业银行股份有限公司 A kind of test data generating method and device
CN109033322A (en) * 2018-07-18 2018-12-18 中国联合网络通信集团有限公司 A kind of test method and device of multidimensional data

Also Published As

Publication number Publication date
CN110188035B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US10769009B2 (en) Root cause analysis for correlated development and operations data
WO2019192261A1 (en) Payment mode recommendation method and device and equipment
WO2019128526A1 (en) Method, apparatus, and device for training risk control model and risk control
CN107679700A (en) Business flow processing method, apparatus and server
CN107644286A (en) Workflow processing method and device
CN105930259A (en) Method and apparatus for WEB regression testing
CN110503435A (en) Transaction method for early warning, device and equipment based on block chain
CN106803799A (en) A kind of performance test methods and device
CN110347724A (en) Abnormal behaviour recognition methods, device, electronic equipment and medium
CN106528840A (en) Service data clearing method and system based on banking system
CN109166021A (en) Bookkeeping methods, device and business finance integral system
CN109033124A (en) A kind of method and device of Data Migration
US11243742B2 (en) Data merge processing based on differences between source and merged data
CN110795331A (en) Software testing method and device
CN115598505A (en) Chip detection method, device, equipment and storage medium
CN111859985B (en) AI customer service model test method and device, electronic equipment and storage medium
CN110675249A (en) Matching method, device, server and storage medium for network lending
CN119379463A (en) Customized reconciliation method, device, equipment and medium with adaptive data structure
US20190114639A1 (en) Anomaly detection in data transactions
CN113448848B (en) Conversion method and device based on use case method, electronic equipment and storage medium
CN110264213A (en) A kind of processing method of information, device and equipment
CN110188035A (en) A kind of interface testing data creation method, device and storage medium
CN110245166A (en) Verification of data method and device
CN110008252A (en) Verification of data method and device
CN113935748B (en) Screening method, device, equipment and medium for spot check objects

Legal Events

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