CN107341109A - The generation method and system of a kind of test data - Google Patents

The generation method and system of a kind of test data Download PDF

Info

Publication number
CN107341109A
CN107341109A CN201710549256.1A CN201710549256A CN107341109A CN 107341109 A CN107341109 A CN 107341109A CN 201710549256 A CN201710549256 A CN 201710549256A CN 107341109 A CN107341109 A CN 107341109A
Authority
CN
China
Prior art keywords
account
test
user
information
preset control
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
CN201710549256.1A
Other languages
Chinese (zh)
Other versions
CN107341109B (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 CN201710549256.1A priority Critical patent/CN107341109B/en
Publication of CN107341109A publication Critical patent/CN107341109A/en
Application granted granted Critical
Publication of CN107341109B publication Critical patent/CN107341109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of generation method of test data and system, methods described responds operation of the user to the preset control of office software first, signs in the test server for perform function test;The test information that user inputs in the input block of the display interface is received, the test information comprises at least the quantity to open an account and the relevant information to open an account;Respond operation of the user to the preset control of office software second, according to the quantity for opening account and the relevant information to open an account, the test data bag for the number that matches with the quantity is automatically generated, and is sent to the test server, the test server is established test data.Due to not needing staff's cross-system manually operated, it is possible to obtain multiple test preamble datas automatically, therefore, the efficiency for establishing test data greatly improves, and improves the progress and efficiency of function upgrading transformation.

Description

The generation method and system of a kind of test data
Technical field
The present invention relates to technical field of software development, more particularly to the generation method and system of a kind of test data.
Background technology
Existing banking system, supports diversified business function, such as Net silver, transfers accounts, deposits.Work as business function When being transformed, in order to be tested the function of transformation, it is necessary to carry out data shop fixtures in the substantial amounts of test data of early-stage preparations. Such as the function after deposit is improved as contracted, then the account for needing to open the substantial amounts of record that has money on deposit in advance is as survey Try data.
The method of existing setup test data mainly carries out data using artificial mode and opened.I.e. tester is in cabinet Effective username and password is logged in member's machine and logs in banking system, is opened flow according to data and is opened data, establishes several Test data, such as establish the account of record of having money on deposit according to the flow opened New Account and deposited.
But because test product is numerous, test assignment amount is big, it is very huge to the quantity required of test data, manually Establishing the mode of test data wastes time and energy, the cycle length that test data prepares, so as to carry out functional test in time so that The function upgrading transformation progress of banking system is slow, and efficiency is low.
The content of the invention
In view of this, it is existing to solve it is an object of the invention to propose the generation method and system of a kind of test data The problem of function upgrading transformation progress of banking system is slow in technology, efficiency is low.
The invention provides a kind of generation method of test data, including:
Default collection of programs is run, exports the display interface of office software, described program set is used in the display The first preset control and the second preset control are added in interface;
Operation of the user to first preset control is responded, signs in the test server for perform function test;
The test information that user inputs in the input block of the display interface is received, the test information comprises at least The quantity to open an account and the relevant information to open an account;
Operation of the user to second preset control is responded, according to the quantity for opening account and described is opened an account Relevant information, generation and the quantity match the test data bag of number, and are sent to the test server, make described Test server establishes test data.
Preferably, operation of the response user to first preset control, signing in test server includes:
Selection operation of the user to first preset control is responded, ejects allocation window;
Receive the configuration data that is inputted in the allocation window of user, the configuration data be used for configuration registry information with And test server address;
User is responded to the clicking operation of confirming button in first preset control, is signed according to the log-on message The test server.
Preferably, the test information that the reception user inputs in the input block of the display interface includes:
Receive the quantity to open an account that user inputs in the input block;
The clicking operation of user's pre-set programs plug-in unit in the display interface is responded, calls the pre-set programs plug-in unit institute Corresponding predetermined input rule;
According to the predetermined input rule relevant information that automatic input opens an account in the input block.
Preferably, the operation of the response user to second preset control, according to the quantity for opening account and The relevant information to open an account, generate includes with the match test data bag of number of the quantity:
User is responded to the selection operation of second preset control, parses the report in the transaction data package prestored Text, obtain transaction related information;
The transaction related information is replaced with into the relevant information for opening account;
Message comprising the relevant information to open an account is recombinated, obtains test data bag;
Repeat the transaction related information replacing with described the step of opening the relevant information of account, until generation and institute State quantity match number test data bag untill.
Preferably, in addition to:
The packet that opens an account that the test server returns is received, open an account packet described in parsing, is opened The relevant information of vertical data;
The relevant information is screened using default script;
The information after preset format display screening is used in the predeterminated position of the display interface.
Another aspect of the present invention provides a kind of generation system of test data, including:
Program module, for running default collection of programs, the display interface of office software is exported, described program collection shares In adding the first preset control and the second preset control in the display interface;
First execution module, for responding operation of the user to first preset control, sign in for perform function The test server of test;
First input module, the test information inputted for receiving user in the input block of the display interface, institute State test information and comprise at least the quantity to open an account and the relevant information to open an account;
Second execution module, for responding operation of the user to second preset control, according to the account of opening Quantity and the relevant information to open an account, generate the test data bag for the number that matches with the quantity, and are sent to institute Test server is stated, the test server is established test data.
Preferably, first execution module includes:
First choice unit, for responding selection operation of the user to first preset control, eject allocation window;
Dispensing unit, the configuration data inputted for receiving user in the allocation window, the configuration data are used for Configuration registry information and test server address;
Execution unit, for responding clicking operation of the user to confirming button in first preset control, according to described in Log-on message signs in the test server.
Preferably, first input module includes:
Account dispensing unit, the quantity to open an account inputted for receiving user in the input block;
First response unit, for responding the clicking operation of user's pre-set programs plug-in unit in the display interface, call Predetermined input rule corresponding to the pre-set programs plug-in unit;
Account typing unit, for automatic input to open an account in the input block according to the predetermined input rule Relevant information.
Preferably, second execution module includes:
Second response unit, for responding selection operation of the user to second preset control, parse what is prestored Message in transaction data package, obtains transaction related information;
Replacement unit, for the transaction related information to be replaced with into the relevant information for opening account;
Recomposition unit, for the message comprising the relevant information to open an account to be recombinated, obtain test data Bag;
Repeat the transaction related information replacing with described the step of opening the relevant information of account, until generation and institute State quantity match number test data bag untill.
Preferably, in addition to display module:
The display module is specifically used for receiving the packet that opens an account that the test server returns, and is opened described in parsing User data of opening an account with bag, obtain opening the relevant information of data;The relevant information is screened using default script;Institute The predeterminated position for stating display interface uses the information after preset format display screening.
Understand that compared with prior art, the invention discloses a kind of generation of test data via above-mentioned technical scheme Method and system, methods described respond operation of the user to the preset control of office software first, sign in and surveyed for perform function The test server of examination;Receive the test information that user inputs in the input block of the display interface, the test information Including at least the quantity to open an account and the relevant information to open an account;Respond behaviour of the user to the preset control of office software second Make, according to the quantity for opening account and the relevant information to open an account, automatically generate and match with the quantity Several test data bags, and the test server is sent to, the test server is established test data.Due to not needing Staff's cross-system is manually operated, it is possible to obtains multiple test preamble datas automatically, therefore, establishes the efficiency of test data Greatly improve, improve the progress and efficiency of function upgrading transformation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described.It should be evident that drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of test data generating method schematic flow sheet provided in an embodiment of the present invention;
Fig. 2 is that the flow that test server is signed in in a kind of test data generating method provided in an embodiment of the present invention is shown It is intended to;
Fig. 3 is that relevant information is inputted in input block in a kind of test data generating method provided in an embodiment of the present invention Schematic flow sheet;
Fig. 4 is the flow signal that test data bag is generated in a kind of test data generating method provided in an embodiment of the present invention Figure;
Fig. 5 is a kind of structural representation of the generation system of test data in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Accompanying drawing 1 is referred to, Fig. 1 is a kind of test data generating method schematic flow sheet provided in an embodiment of the present invention.Such as Shown in Fig. 1, the invention discloses a kind of generation method of test data.
In this method, capture in advance and store transaction data package, transaction data package includes user in real trade The caused message when automatic teller machine accesses server.
Specifically, preparing message gripping tool first, in the embodiment of the present invention, preferentially Fildder instruments are used.The instrument It is mature technology of the prior art, the software is not repeated herein.Afterwards, in automatic teller machine according to the environment logon used In server into banking system.It should be noted that the server and specific environmental correclation that log in, such as:http:// 192.168.0.1:8080/index.aspx, first half are server path, and latter half is fixed as server.aspx.Need It is noted that the store path of message is provided with software, such as *:\DateRunnerTool\Source.For preserving The message captured.
After the mode of crawl message is specifically, sign in front-end interface, Fildder instruments are opened by user first, afterwards Any one transaction is submitted in front end, such as opens customer ID, opens an account, deposits, is then captured using the packet catcher Message and store arrive default position.
Before execution, be pre-stored in default storage location has a variety of messages, every kind of message pair to the solution of the present invention It is corresponding with respective transaction.
The generation method specific steps of the test data include as follows:
S101, the default collection of programs of operation, export the display interface of office software, and described program set is used for described The first preset control and the second preset control are added in display interface;
In the embodiment of the present invention, AFE(analog front end) automatic teller machine sends the mechanism of message, the generation test data of automation.
In the embodiment of the present invention, collection of programs is previously provided with, default collection of programs uses Visual Studio instruments Built, stored using .sln form.In actual use, user opens the file of the .sln forms, responds user The operation of pre-set programs set is opened, the default collection of programs is run, the first preset control is added from trend office software With the second preset control.
In the embodiment of the present invention, office software preferably uses Excel, certain Wps and other doing with similar functions Public software can realize similar function, and corresponding modification is carried out in bottom code.Herein without repeating.
After running default collection of programs, the display interface of meeting automatic spring office software, retain the display interface, respond User selects the operation of template, opens the template for needing to generate test data, exports display interface corresponding to the template.Need It is bright, in the embodiment of the present invention, polytype template is previously provided with, such as deposits, provide a loan, Net silver.
It should be noted that the collection of programs in the embodiment of the present invention, which is realized, includes following function.
1st, parameter transaction configures:For receiving and setting dynamic and static parameter in transaction
2nd, Message processing:It is main to include to input, the processing function of outgoing message
3rd, html file matches:Matched according to the transaction code of reception with local html file, complete to manually enter the Chinese The process that word key element matches with XML file label.
4th, group report:Corresponding trading information data in XML file is replaced using parameter and the value manually entered.
5th, returned packet is parsed:Key message in the returned packet that receives is parsed by form.
6th, common mechanism is handled:Specially treated is carried out to information such as the identification card number in message, cell-phone numbers.
7th, server interaction:By being interacted with BOCTS-D-APP (bank core) server, report is sent and received Text.
8th, error handle:Mistake in implementation procedure is handled, including error message is returned into EXCEL and held disconnected It is continuous to make mechanism.
The operation of S102, response user to first preset control, sign in the test clothes for perform function test Business device;
In the embodiment of the present invention, according to operation of the user to the first preset control, sign in for perform function test In test server.
S103, the test information that user inputs in the input block of the display interface is received, the test information is extremely Few quantity for including opening an account and the relevant information to open an account;
After logining successfully, user inputs the quantity for opening account in display interface and needs open an account correlation Information, such as quantity 100 is inputted, identification card number, address in the relevant information of account etc..
S104, operation of the response user to second preset control, according to the quantity for opening account and described open To open an account with the relevant information at family, generation and the quantity match the test data bag of number, and are sent to the test server, The test server is set to establish test data.
Operation of the user to the second preset control is responded afterwards, finds the message corresponding to the template, and the correlation is believed Cease and the information of corresponding position in the message is replaced, generation includes the test data that user opens the relevant information of account Bag.Wherein, when quantity has it is multiple when, user be also required to it is corresponding is filled with multirow, or the data filled according to user add automatically Add the relevant information from marks different before, then record is replaced line by line, so as to generate multiple test data bags.
It should be noted that filling in the process of relevant information can be completed by the way of grand control, according to default rule Then automatic addition, to save the time of manual typing.
After generating test data bag, the address of the server inputted using user in inputting interface, the survey is sent to Try in server.If the test server has been successfully established test data, such as has successfully opened customer ID, then can return " ok " Message etc. prompt message and comprising the customer ID.
It should be noted that the Establishing process of each test data includes multiple steps, using relative in actual use The set meal answered, for example, a complete deposit flow include opening customer ID, open an account, a family is logical, to it is public/private account is deposited Multiple steps such as money, each step can carry out data interaction with server between these steps, and return to subsequent step The necessary data of required calling.
In the embodiment of the present invention, multiple sub-interfaces, such as Excel are corresponding with according to different flows in each template In table, realized by the way of multiple Sheet.Also, the necessary data returned every time is can to enter automatically between Sheet What row transmitted, specifically performed using Visual Studio plug-in units or grand control.Mainly realize functional unit and EXCEL The data interaction function of inter-module, and parameter, the calling function of functional unit.
In actual use, operating process corresponding to set meal and what can be used grand can include shown in table 1.
Table 1
Pass through above-mentioned technical proposal can be seen that the embodiment of the present invention and use passes through Visual Studio using C# technologies Simulate to hold in face of cabinet and data are carried out by EXCEL with front-end server interaction mechanism automated execution core transaction, VBA technologies Input, compiles and exports, to realize at high speed, large batch of data generation.
Understand that compared with prior art, the invention discloses a kind of generation of test data via above-mentioned technical scheme Method methods described responds operation of the user to the preset control of office software first, signs in the test for perform function test Server;The test information that user inputs in the input block of the display interface is received, the test information comprises at least The quantity to open an account and the relevant information to open an account;Operation of the user to the preset control of office software second is responded, according to The quantity for opening account and the relevant information to open an account, automatically generate the test for the number that matches with the quantity Packet, and the test server is sent to, the test server is established test data.Due to not needing staff Cross-system is manually operated, it is possible to obtains multiple test preamble datas automatically, therefore, the efficiency for establishing test data carries significantly Height, improve the progress and efficiency of function upgrading transformation.
In above-described embodiment, it is noted that operation of the response user to first preset control, sign in test server Process, step S102 is described in detail below.Fig. 2 is a kind of test data generating method provided in an embodiment of the present invention In sign in the schematic flow sheet of test server.
Operation of the response user to first preset control, signing in test server includes:
S201, response user eject allocation window to the selection operation of first preset control;
S202, the configuration data that user inputs in the allocation window is received, the configuration data is used for configuration registry Information and test server address;
In the embodiment of the present invention, response user ejects allocation window to the clicking operation of the first preset control.It is wherein described Include multiple input blocks and multiple buttons, such as confirmation, application, cancellation etc. in allocation window, wherein, input block is used To receive the input of user, button is used for realizing corresponding preset function.
In actual use, the first preset control is configured as " configuring " button, after clicking on configuration button, ejection configuration window Mouthful, packet route, server address, page path, teller number, approval teller, mechanism number, approval can be included in allocation window The necessary information of the login service device such as password, terminal, system data.
S203, clicking operation of the user to confirming button in first preset control is responded, according to the log-on message Sign in the test server.
In the embodiment of the present invention, after confirming button is pressed, the operation is responded, institute is defeated in input block based on user The information registration entered is to test server.
Also, after logining successfully, test server can return to the information logined successfully, now, ejection prompting logins successfully Information, such as " logining successfully ", " ok " etc., in order to prompt user to log in situation.There is mistake it is understood that working as When, it can also eject miscue.
After test server is signed in, the test letter that user inputs in the input block of the display interface is received Breath.Fig. 3 is the stream for inputting relevant information in a kind of test data generating method provided in an embodiment of the present invention in input block Journey schematic diagram.
Step S103 is specifically included:
S301, receive the quantity to open an account that user inputs in the input block;
It should be noted that also including multiple input blocks in display interface, this input block is using cell Form is shown, or is shown by the way of text box.
User after logining successfully, it is necessary to input the quantity to be opened an account, such as 3.
S302, the clicking operation for responding user's pre-set programs plug-in unit in the display interface, call the pre-set programs Predetermined input rule corresponding to plug-in unit;
S303, according to the predetermined input rule relevant information that automatic input opens an account in the input block.
In order to improve operating efficiency, the relevant information of account can be opened come typing by the way of automatic input data. Such as click on pre-set programs plug-in unit.Now, can call and the predetermined input rule corresponding to the template, such as random data, default Address, default identification card number etc., according to the predetermined input rule, add the relevant information in the input block automatically.
It should be noted that the preferred embodiment of an only page described herein, corresponding other sub-interfaces, Such as Sheet, all it is corresponding with the grand button of oneself, user's pre-set programs plug-in unit according to corresponding to being actually needed and perform.
In actual use, pre-set programs plug-in unit can be multiple controls, and the title and function of each control are with reference to table 2 below.
Table 2
After the completion of relevant information typing at that time, then the process that group report is sent to server is carried out.Fig. 4 is the embodiment of the present invention The schematic flow sheet of test data bag is provided in a kind of test data generating method provided.
Step S104 is described in detail below.
The operation of the response user to second preset control, according to the quantity for opening account and described open The relevant information of account, generate includes with the match test data bag of number of the quantity:
S401, response user are parsed in the transaction data package prestored to the selection operation of second preset control Message, obtain transaction related information;
S402, the transaction related information replaced with into the relevant information for opening account;
S403, the message comprising the relevant information to open an account recombinated, obtain test data bag;
S404, repeat the transaction related information replacing with described the step of opening the relevant information of account, Zhi Daosheng Into the number that matches with the quantity test data bag untill.
In the embodiment of the present invention, test data bag is sent to before test server, it is necessary to carry out group again to message Dress, in order to form new message.
In actual use, the second preset control is configured as " generation data " button, when user clicks on the second preset control When, the clicking operation of user is responded, the message of transaction data package corresponding with the masterplate is searched, obtains transaction related information, will After user inputs relevant information replacement Transaction Information therein, the message is recombinated, obtains test data bag.The test Packet includes the relevant information.Thus, a new transaction data package is generated, front end is simulated and is communicated with backstage Process.
It should be noted that test data establishes operating process of the process in table 1 to perform, last is gone to During step, what server was established is only test data.Before the process that wherein each step establishes transaction data package is referred to State step S401 to S404.
It should be noted that due to field all in message be all English field without Chinese Fields, and in EXCEL In field generally all use Chinese Fields, therefore, also include before the recording message that prestores of parsing:By in EXCEL Chinese Fields match English field in message.Specific method is automatically saved in this when being and loading Chinese Fields and environment The html file on ground is matched.
In the embodiment of the present invention, after server establishes test data, in addition to:
S501, the packet that opens an account that the test server returns is received, open an account packet described in parsing, obtains To the relevant information for opening data;
S502, using default script the relevant information is screened;
S503, the information after the predeterminated position of the display interface is screened using preset format display.
In the embodiment of the present invention, after test server, which returns, opens account data bag, it is parsed, using default Script screened, be organized into tester and understand and the form that uses, and shown according to the form.
Wherein, default script can be as grand control in the interface of office software.When S501, which is performed, to be completed, can show Show prompt message, such as " ok ", then the relevant information of return is screened using the grand control, and is entered using preset format Row display.
It should be noted that in the embodiment of the present invention, management and control can also be carried out to life cycle.When functional test is completed Afterwards, the test data of correlation is deleted, specifically realizes the life cycle management to account data using database.
According to such scheme, the present invention can realize following beneficial effect:
Visual Studio are applied to functional test first, the response of big data rapid batch is adapted to, embodies instrument High efficiency;
The conventional automation tools in the form of simulating hand are substituted by emulating server interactive form;
Possess the separate customer end of AFE(analog front end) system operatio, without store transaction level script, save local storage space And script management expends;
Field attribute is adaptively adjusted according to test environment version file, without more new environment version by hand;
Lifecycle management is carried out to account data using database;
Scattered account demand is substituted in the form of customizable integrated account data set meal, parameterisable defines set meal and covered Product category, quantity and data granularity.Instead of artificial script, account demand is directly defined by mission requirements, is embodied The flexibility of instrument;
Achievable debit card is opened automatically.
And also there are following features:
Product coverage is high:It is widely used in each system of middle row to use, covers 67 kinds of core product, peripheral 14 kinds of product. Abstract service key element, merchandised using combination, meet each product line data call requirement.Also have for other banking systems applicable Feasibility;
Execution efficiency is high:Greatly reduce the duplication of labour of manpower, tester directly request for data can use, rather than flower Expense plenty of time progress account is opened and attribute establishes work.For deployment system opens data tool, its single server Interaction time is 1S or so, and execution efficiency is 10 times or so performed by hand;
It is high to perform flexibility:It can not only be opened using general test data, apply also for special screne and special data, Such as data partition checking, interface checking etc..
On the basis of a kind of above-mentioned generation method of test data, corresponding, another aspect of the present invention provides one kind The generation system of test data.
It is a kind of structural representation of the generation system of test data in the embodiment of the present invention with reference to the Fig. 5 of figure 5;The system Including:
Program module 1, for running default collection of programs, export the display interface of office software, described program set For adding the first preset control and the second preset control in the display interface;
First execution module 2, for responding operation of the user to first preset control, sign in for perform function The test server of test;
First input module 3, the test information inputted for receiving user in the input block of the display interface, institute State test information and comprise at least the quantity to open an account and the relevant information to open an account;
Second execution module 4, for responding operation of the user to second preset control, according to the account of opening Quantity and the relevant information to open an account, generate the test data bag for the number that matches with the quantity, and are sent to institute Test server is stated, the test server is established test data.
Preferably, first execution module includes:
First choice unit, for responding selection operation of the user to first preset control, eject allocation window;
Dispensing unit, the configuration data inputted for receiving user in the allocation window, the configuration data are used for Configuration registry information and test server address;
Execution unit, for responding clicking operation of the user to confirming button in first preset control, according to described in Log-on message signs in the test server.
Preferably, first input module includes:
Account dispensing unit, the quantity to open an account inputted for receiving user in the input block;
First response unit, for responding the clicking operation of user's pre-set programs plug-in unit in the display interface, call Predetermined input rule corresponding to the pre-set programs plug-in unit;
Account typing unit, for automatic input to open an account in the input block according to the predetermined input rule Relevant information.
Preferably, second execution module includes:
Second response unit, for responding selection operation of the user to second preset control, parse the number of deals According to the message in bag, transaction related information is obtained;
Replacement unit, for the transaction related information to be replaced with into the relevant information for opening account;
Recomposition unit, for the message comprising the relevant information to open an account to be recombinated, obtain test data Bag;
Repeat the transaction related information replacing with described the step of opening the relevant information of account, until generation and institute State quantity match number test data bag untill.
Preferably, in addition to display module:
The display module is specifically used for receiving the packet that opens an account that the test server returns, and is opened described in parsing User data of opening an account with bag, obtain opening the relevant information of data;The relevant information is screened using default script;Institute The predeterminated position for stating display interface uses the information after preset format display screening.
It should be noted that a kind of generation system of the test data provided in the present invention can be used in above-described embodiment A kind of test data generation method, it is mutually corresponding to be referred to each step in implementation method embodiment, Herein without repeating.
Understand that compared with prior art, the invention discloses a kind of generation of test data via above-mentioned technical scheme System, operation of the system response user to the preset control of office software first, signs in the survey for perform function test Try server;The test information that user inputs in the input block of the display interface is received, the test information is at least wrapped Include the quantity to open an account and the relevant information to open an account;Respond operation of the user to the preset control of office software second, root According to the quantity for opening account and the relevant information to open an account, the survey for the number that matches with the quantity is automatically generated Packet is tried, and is sent to the test server, the test server is established test data.Due to due to not needing work It is manually operated to make personnel's cross-system, it is possible to obtain multiple test preamble datas automatically, therefore, the efficiency for establishing test data is big It is big to improve, improve the progress and efficiency of function upgrading transformation.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
In the description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", " on ", " under ", The orientation or position relationship of the instruction such as "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", " outer " are Based on orientation shown in the drawings or position relationship, it is for only for ease of the description present invention and simplifies description, rather than instruction or dark Show that the device of meaning or element there must be specific orientation, with specific azimuth configuration and operation, thus it is it is not intended that right The limitation of the present invention.
In the description of the invention, it is necessary to illustrate, unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can To be mechanical connection or electrical connection;Can be joined directly together, can also be indirectly connected by intermediary, Ke Yishi The connection of two element internals.For the ordinary skill in the art, with concrete condition above-mentioned term can be understood at this Concrete meaning in invention.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation Any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that article or equipment including a series of elements not only include those key elements, but also Including the other element being not expressly set out, or also include for this article or the intrinsic key element of equipment.Do not having In the case of more limitations, the key element that is limited by sentence "including a ...", it is not excluded that including the article of above-mentioned key element Or other identical element in equipment also be present.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. generation method of test data, it is characterised in that including:
    Default collection of programs is run, exports the display interface of office software, described program set is used in the display interface The first preset control of middle addition and the second preset control;
    Operation of the user to first preset control is responded, signs in the test server for perform function test;
    The test information that user inputs in the input block of the display interface is received, the test information, which comprises at least, to be opened The quantity of account and the relevant information to open an account;
    Operation of the user to second preset control is responded, according to the quantity for opening account and the phase to open an account Information is closed, generates the test data bag for the number that matches with the quantity, and is sent to the test server, makes the test Server establishes test data.
  2. 2. generation method according to claim 1, it is characterised in that the response user is to first preset control Operation, signing in test server includes:
    Selection operation of the user to first preset control is responded, ejects allocation window;
    The configuration data that user inputs in the allocation window is received, the configuration data is used for configuration registry information and survey Try server address;
    Clicking operation of the user to confirming button in first preset control is responded, is signed according to the log-on message described Test server.
  3. 3. generation method according to claim 1, it is characterised in that the input for receiving user in the display interface The test information inputted in unit includes:
    Receive the quantity to open an account that user inputs in the input block;
    The clicking operation of user's pre-set programs plug-in unit in the display interface is responded, is called corresponding to the pre-set programs plug-in unit Predetermined input rule;
    According to the predetermined input rule relevant information that automatic input opens an account in the input block.
  4. 4. generation method according to claim 3, it is characterised in that the response user is to second preset control Operation, according to the quantity for opening account and the relevant information to open an account, generation and the quantity match number Test data bag include:
    User is responded to the selection operation of second preset control, the message in the transaction data package prestored is parsed, obtains To transaction related information;
    The transaction related information is replaced with into the relevant information for opening account;
    Message comprising the relevant information to open an account is recombinated, obtains test data bag;
    Repeat the transaction related information replacing with described the step of opening the relevant information of account, until generation and the number Untill the test data bag for measuring the number that matches.
  5. 5. according to the generation method described in claim 1-4 any one, it is characterised in that also include:
    The packet that opens an account that the test server returns is received, open an account packet described in parsing, obtains opening number According to relevant information;
    The relevant information is screened using default script;
    The information after preset format display screening is used in the predeterminated position of the display interface.
  6. A kind of 6. generation system of test data, it is characterised in that including:
    Program module, for running default collection of programs, the display interface of office software is exported, described program set is used for The first preset control and the second preset control are added in the display interface;
    First execution module, for responding operation of the user to first preset control, sign in and tested for perform function Test server;
    First input module, the test information inputted for receiving user in the input block of the display interface, the survey Examination information comprises at least the quantity to open an account and the relevant information to open an account;
    Second execution module, for responding operation of the user to second preset control, according to the quantity for opening account With the relevant information to open an account, the test data bag for the number that matches with the quantity is generated, and is sent to the survey Server is tried, the test server is established test data.
  7. 7. generation system according to claim 6, it is characterised in that first execution module includes:
    First choice unit, for responding selection operation of the user to first preset control, eject allocation window;
    Dispensing unit, the configuration data inputted for receiving user in the allocation window, the configuration data are used to configure Log-on message and test server address;
    Execution unit, for responding clicking operation of the user to confirming button in first preset control, according to the login Information registration is to the test server.
  8. 8. generation system according to claim 6, it is characterised in that first input module includes:
    Account dispensing unit, the quantity to open an account inputted for receiving user in the input block;
    First response unit, for responding the clicking operation of user's pre-set programs plug-in unit in the display interface, described in calling Predetermined input rule corresponding to pre-set programs plug-in unit;
    Account typing unit, for according to the predetermined input rule phase that automatic input opens an account in the input block Close information.
  9. 9. generation system according to claim 8, it is characterised in that second execution module includes:
    Second response unit, for responding selection operation of the user to second preset control, parse the transaction prestored Message in packet, obtains transaction related information;
    Replacement unit, for the transaction related information to be replaced with into the relevant information for opening account;
    Recomposition unit, for the message comprising the relevant information to open an account to be recombinated, obtain test data bag;
    Repeat the transaction related information replacing with described the step of opening the relevant information of account, until generation and the number Untill the test data bag for measuring the number that matches.
  10. 10. according to the generation system described in claim 6-9 any one, it is characterised in that also including display module:
    The display module is specifically used for receiving the packet that opens an account that the test server returns, and account is opened described in parsing User data bag, obtain opening the relevant information of data;The relevant information is screened using default script;Described aobvious Show that the predeterminated position at interface uses the information after preset format display screening.
CN201710549256.1A 2017-07-07 2017-07-07 Test data generation method and system Active CN107341109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710549256.1A CN107341109B (en) 2017-07-07 2017-07-07 Test data generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710549256.1A CN107341109B (en) 2017-07-07 2017-07-07 Test data generation method and system

Publications (2)

Publication Number Publication Date
CN107341109A true CN107341109A (en) 2017-11-10
CN107341109B CN107341109B (en) 2021-07-16

Family

ID=60218484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710549256.1A Active CN107341109B (en) 2017-07-07 2017-07-07 Test data generation method and system

Country Status (1)

Country Link
CN (1) CN107341109B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388515A (en) * 2018-03-06 2018-08-10 平安科技(深圳)有限公司 Test data generating method, device, equipment and computer readable storage medium
CN108427614A (en) * 2018-05-11 2018-08-21 中国银行股份有限公司 A kind of interface test method and device based on Admitester tools
CN110297754A (en) * 2018-03-23 2019-10-01 优信拍(北京)信息科技有限公司 A kind of test information feedback method and system
CN111177005A (en) * 2019-12-31 2020-05-19 中国银行股份有限公司 Service application testing method, device, server and storage medium
CN111494960A (en) * 2019-01-31 2020-08-07 游戏橘子数位科技股份有限公司 Establishment method and system for cloned game account
WO2020259141A1 (en) * 2019-06-27 2020-12-30 深圳前海微众银行股份有限公司 File processing method and apparatus, and computer device
CN112328466A (en) * 2020-09-16 2021-02-05 长沙市到家悠享家政服务有限公司 Test order generation method, equipment and storage medium
CN112463577A (en) * 2019-09-09 2021-03-09 北京达佳互联信息技术有限公司 Sample data processing method and device and electronic equipment
CN112817858A (en) * 2021-02-05 2021-05-18 深圳市世强元件网络有限公司 Method and computer equipment for batch generation of test data based on Jmeter
CN113535574A (en) * 2021-07-26 2021-10-22 工银科技有限公司 Automatic generation method, device, equipment and medium for test user data
CN114371676A (en) * 2022-01-04 2022-04-19 苏州华兴源创科技股份有限公司 Multi-station detection equipment control method and device, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935A (en) * 2008-07-09 2009-04-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
US20120167059A1 (en) * 2010-12-24 2012-06-28 International Business Machines Corporation Evaluating Coverage of a Software Test
CN103164323A (en) * 2011-12-09 2013-06-19 深圳市腾讯计算机系统有限公司 Data automatic generation method and data automatic generation system
CN103699478A (en) * 2012-09-27 2014-04-02 中国银联股份有限公司 Test case generation system and test case generation method
CN103870381A (en) * 2012-12-10 2014-06-18 百度在线网络技术(北京)有限公司 Test data generating method and device
CN103902456A (en) * 2014-04-09 2014-07-02 中国工商银行股份有限公司 Test script processing device, system and method
CN105488014A (en) * 2015-11-27 2016-04-13 中国民生银行股份有限公司 Generating method and device of interface test case message in XML format
CN106293740A (en) * 2016-08-10 2017-01-04 桐乡华锐自控技术装备有限公司 A kind of report form developing method being applied to PLC, DCS device data
US20170124333A1 (en) * 2015-10-28 2017-05-04 Ajou University Industry-Academic Cooperation Foundation Method and system for detecting vulnerabilities of communication protocol software
CN106897205A (en) * 2015-12-18 2017-06-27 阿里巴巴集团控股有限公司 A kind of test data generating method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935A (en) * 2008-07-09 2009-04-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
US20120167059A1 (en) * 2010-12-24 2012-06-28 International Business Machines Corporation Evaluating Coverage of a Software Test
CN103164323A (en) * 2011-12-09 2013-06-19 深圳市腾讯计算机系统有限公司 Data automatic generation method and data automatic generation system
CN103699478A (en) * 2012-09-27 2014-04-02 中国银联股份有限公司 Test case generation system and test case generation method
CN103870381A (en) * 2012-12-10 2014-06-18 百度在线网络技术(北京)有限公司 Test data generating method and device
CN103902456A (en) * 2014-04-09 2014-07-02 中国工商银行股份有限公司 Test script processing device, system and method
US20170124333A1 (en) * 2015-10-28 2017-05-04 Ajou University Industry-Academic Cooperation Foundation Method and system for detecting vulnerabilities of communication protocol software
CN105488014A (en) * 2015-11-27 2016-04-13 中国民生银行股份有限公司 Generating method and device of interface test case message in XML format
CN106897205A (en) * 2015-12-18 2017-06-27 阿里巴巴集团控股有限公司 A kind of test data generating method and device
CN106293740A (en) * 2016-08-10 2017-01-04 桐乡华锐自控技术装备有限公司 A kind of report form developing method being applied to PLC, DCS device data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
仇冰雪: "网络渗透测试数据集抓取与查询平台设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
蒋乃乾 等: "一种基于扩展WSDL的Web服务测试数据自动生成方法", 《2011年震动与噪声测试峰会论文集》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019169725A1 (en) * 2018-03-06 2019-09-12 平安科技(深圳)有限公司 Test data generation method, device, and apparatus, and computer readable storage medium
CN108388515A (en) * 2018-03-06 2018-08-10 平安科技(深圳)有限公司 Test data generating method, device, equipment and computer readable storage medium
CN110297754A (en) * 2018-03-23 2019-10-01 优信拍(北京)信息科技有限公司 A kind of test information feedback method and system
CN108427614B (en) * 2018-05-11 2021-05-18 中国银行股份有限公司 Interface testing method and device based on adaptor tool
CN108427614A (en) * 2018-05-11 2018-08-21 中国银行股份有限公司 A kind of interface test method and device based on Admitester tools
CN111494960A (en) * 2019-01-31 2020-08-07 游戏橘子数位科技股份有限公司 Establishment method and system for cloned game account
CN111494960B (en) * 2019-01-31 2023-06-27 游戏橘子数位科技股份有限公司 Clone game account number establishing method and system
WO2020259141A1 (en) * 2019-06-27 2020-12-30 深圳前海微众银行股份有限公司 File processing method and apparatus, and computer device
CN112463577A (en) * 2019-09-09 2021-03-09 北京达佳互联信息技术有限公司 Sample data processing method and device and electronic equipment
CN111177005A (en) * 2019-12-31 2020-05-19 中国银行股份有限公司 Service application testing method, device, server and storage medium
CN111177005B (en) * 2019-12-31 2024-04-16 中国银行股份有限公司 Service application testing method, device, server and storage medium
CN112328466A (en) * 2020-09-16 2021-02-05 长沙市到家悠享家政服务有限公司 Test order generation method, equipment and storage medium
CN112817858A (en) * 2021-02-05 2021-05-18 深圳市世强元件网络有限公司 Method and computer equipment for batch generation of test data based on Jmeter
CN112817858B (en) * 2021-02-05 2024-04-19 深圳市世强元件网络有限公司 Method and computer equipment for batch generation of test data based on Jmeter
CN113535574A (en) * 2021-07-26 2021-10-22 工银科技有限公司 Automatic generation method, device, equipment and medium for test user data
CN114371676A (en) * 2022-01-04 2022-04-19 苏州华兴源创科技股份有限公司 Multi-station detection equipment control method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107341109B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN107341109A (en) The generation method and system of a kind of test data
CN106484622B (en) Test method, apparatus and system
CN109857667A (en) Automatic interface testing method, test device, test equipment and storage medium
CN104065528B (en) For analyzing and examining functional method and apparatus of multiple network equipments
CN109857668A (en) UI automated function test method, test device, test equipment and storage medium
CN106095673A (en) Automated testing method based on WEB interface and system
CN107835121A (en) A kind of offline upper service platform of property line based on wechat public number and its implementation
CN107643981A (en) A kind of automatic test platform and operation method of polynary operation flow
CN109582301A (en) Method for processing business, device, equipment and the medium of task based access control scheduling system
CN109829296A (en) The sandbox implementation method of intelligent contract based on alliance's chain
CN107102947A (en) ATM transaction flows test device and method
CN107402880A (en) A kind of method of testing and electronic equipment
CN106815148A (en) A kind of transaction test method and device
Steffen et al. Hierarchical service definition
CN107301074A (en) Method and system of automatic packing APK installation kits on the server
CN101309177B (en) Network resource data management method and system
CN109150636A (en) A kind of intelligent substation of full link information stream is assisted to experimental tests method and system
CN109871309A (en) A kind of charge system test cases generation method and system
CN102184135A (en) Instruction script based test method and system in bank system
CN107395601A (en) A kind of mobile office system and method based on the safe Intranets of VPN
CN109246201A (en) cloud resource delivery method, processor and storage medium
CN107360117A (en) The method, apparatus and system of data processing
CN109347866A (en) Login method, device, system and computer readable storage medium
CN101482960A (en) Method and system for marketing in bank hall
CN106960348A (en) Pay docking calculation and pay docking system

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