CN108829574A - Test data laying method, testing service device and computer readable storage medium - Google Patents

Test data laying method, testing service device and computer readable storage medium Download PDF

Info

Publication number
CN108829574A
CN108829574A CN201810332033.4A CN201810332033A CN108829574A CN 108829574 A CN108829574 A CN 108829574A CN 201810332033 A CN201810332033 A CN 201810332033A CN 108829574 A CN108829574 A CN 108829574A
Authority
CN
China
Prior art keywords
data
subelement
test
test data
service device
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
CN201810332033.4A
Other languages
Chinese (zh)
Other versions
CN108829574B (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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201810332033.4A priority Critical patent/CN108829574B/en
Publication of CN108829574A publication Critical patent/CN108829574A/en
Application granted granted Critical
Publication of CN108829574B publication Critical patent/CN108829574B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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)
  • Tests Of Electronic Circuits (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of test data laying method, this method includes:The data-interface of each subelement of test object is obtained respectively;Field in the data-interface of each subelement and preset file table is subjected to one-to-one association;It receives the corresponding test data of each subelement and the corresponding test data of each subelement is written to the field corresponding with the data-interface of each subelement in the file table;The file table is run so that the corresponding test data of each subelement is routed to corresponding subelement.The present invention also provides a kind of testing service device and computer readable storage mediums.The test data for corresponding to each subelement of test object can be written to the file table for having corresponding relationship with each subelement by test data laying method, testing service device and computer readable storage medium provided by the invention, run the file table then to which test data is routed to each subelement.

Description

Test data laying method, testing service device and computer readable storage medium
Technical field
The present invention relates to automatization testing technique field more particularly to a kind of test data laying methods, testing service device And computer readable storage medium.
Background technique
In software development process, the increase of new function or the reparation of existing version problem, so that software version Update iteration frequency is very high, then needs to test the content after update iteration after version updating iteration.Existing In test process, the test object of certain complexity, such as server, or realize the large electric appliances system of sophisticated functions, it is testing It generally requires to carry out building for test environment before testing in the process, that is, is laid with test data.The test data of laying Process needs tester before test carries out, by the part of each refinement in test object or the corresponding test of unit The part of each refinement that data are written in the test object is configured in the configurator of unit.Therefore, it surveys Test data laying during examination is very cumbersome and troublesome, and expends many human resources.
Summary of the invention
In view of this, the present invention proposes a kind of test data laying method, testing service device and computer-readable storage medium Field in the data-interface of each subelement of test object and a preset file table can be carried out one-to-one pass by matter Then the test data for corresponding to each subelement is written to the corresponding field of the file table, finally runs the text by connection The test data so that is routed to each subelement of the test object, to reach quickly, easily to test by part table Object carries out test data laying.
Firstly, to achieve the above object, the present invention proposes that a kind of testing service device, the testing service device include storage Device, processor, the test data that be stored on the memory to run on the processor are laid with program, the test number Following steps are realized according to being laid with when program is executed by the processor:
The data-interface of each subelement of test object is obtained respectively;By the data-interface of each subelement One-to-one association is carried out with the field in preset file table;Receive the corresponding test data of each subelement and will be described each The corresponding test data of subelement is written to corresponding with the data-interface of each subelement in the file table Field;The file table is run so that the corresponding test data of each subelement is routed to corresponding son list Member.
Optionally, the data-interface is the specific channel that external data directly, is quickly transferred to corresponding subelement, The external data includes test data and control instruction to be loaded or to be imported.
Optionally, the testing service device executes test and the operation text by two mutually independent processes of operation Part table.
Optionally, the testing service device execute test during, when operation modify or it is edited described in When file table, then the measured data in the test process will be laid with or be changed in real time.
In addition, to achieve the above object, the present invention also provides a kind of test data laying method, this method is applied to test Server, the method includes:
The data-interface of each subelement of test object is obtained respectively;By the data-interface of each subelement One-to-one association is carried out with the field in preset file table;Receive the corresponding test data of each subelement and will be described each The corresponding test data of subelement is written to corresponding with the data-interface of each subelement in the file table Field;The file table is run so that the corresponding test data of each subelement is routed to corresponding son list Member.
Optionally, the data-interface is the specific channel that external data directly, is quickly transferred to corresponding subelement, The external data includes test data and control instruction to be loaded or to be imported.
Optionally, the testing service device executes test and the operation text by two mutually independent processes of operation Part table.
Optionally, during the testing service device carries out execution test, when operation is modified or edited When the file table, then the measured data in the test process will be laid with or be changed in real time.
Optionally, it is described respectively obtain test object each subelement data-interface the step of before, further include Step:The test object is divided into multiple subelements according to the function of the test object.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with test data and is laid with program, and the test data is laid with program and can be held by least one processor Row, so that at least one described processor is executed such as the step of above-mentioned test data laying method.
Compared to the prior art, test data laying method proposed by the invention, testing service device and computer-readable Test object can be divided into multiple subelements by storage medium, and a data-interface then is arranged to each subelement respectively, The field in the data-interface of each subelement and a preset file table is subjected to one-to-one association again, when needing to spread If the test data for corresponding to each subelement is directly written to the corresponding field of the file table when data, institute is finally run Each subelement that the test data is routed to the test object by file table is stated, to reach quickly, easily to test Object carries out test data laying.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of testing service device one;
Fig. 2 is the program module schematic diagram that test data of the present invention is laid with program first embodiment;
Fig. 3 is the program module schematic diagram that test data of the present invention is laid with program second embodiment;
Fig. 4 is the flow diagram of one embodiment of test data laying method of the present invention.
Appended drawing reference:
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
As shown in fig.1, being the schematic diagram of the optional hardware structure of testing service device 1 one.
The testing service device 1 can be rack-mount server, blade server, tower server or cabinet-type service Device etc. calculates equipment, which can be independent server, be also possible to server composed by multiple servers Cluster.
In the present embodiment, the testing service device 1 may include, but be not limited only to, and company can be in communication with each other by system bus Connect memory 11, processor 12, network interface 13.
The testing service device 1 connects network (Fig. 1 is not marked) by network interface 13, or is connected to other electronics dress It sets, to obtain or transmit all information including the program code of software to be tested.The network interface 13 may include nothing Wired network interface or wired network interface.The network can be intranet (Intranet), internet (Internet), Global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), The wirelessly or non-wirelessly network such as Wi-Fi, speech path network.
It should be pointed out that Fig. 1 illustrates only the testing service device 1 with component 11-13, it should be understood that simultaneously All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be the survey Try the internal storage unit of server 1, such as the hard disk or memory of the testing service device 1.In further embodiments, described to deposit Reservoir 11 is also possible to the External memory equipment of the testing service device 1, such as the plug-in type that the testing service device 1 is equipped with is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the testing service device 1 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the testing service device 1 commonly used in storage Make system and types of applications software, such as the test data is laid with the program code etc. of program 200.In addition, the memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control survey The overall operation of server 1 is tried, such as executes data interaction or the relevant control of communication and processing etc..In the present embodiment, institute It states processor 12 and is used to run the program code stored in the memory 11 or processing data, such as run the test Data are laid with program 200 etc..
In the present embodiment, when being installed in the testing service device 1 and running the test data laying program 200, The testing service device 1 can obtain the data-interface of each subelement of test object respectively, by each subelement Field in the data-interface and preset file table carries out one-to-one association;Then the corresponding test of each subelement is received The corresponding test data of each subelement is simultaneously written to the institute with each subelement in the file table by data State the corresponding field of data-interface;The file table is finally run so that the corresponding test data of each subelement It is routed to corresponding subelement.Test data laying quickly and conveniently is carried out to test object to realize.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and function of relevant device in detail Energy.In the following, above-mentioned application environment and relevant device will be based on, each embodiment of the invention is proposed.
Firstly, the present invention proposes that a kind of test data is laid with program 200.
As shown in fig.2, being the Program modual graph that test data of the present invention is laid with 200 first embodiment of program.
In the present embodiment, it includes a series of calculating being stored on memory 11 that the test data, which is laid with program 200, The test number of various embodiments of the present invention may be implemented when the computer program instructions are executed by processor 12 in machine program instruction According to lay-up operation.In some embodiments, number is tested in the specific operation realized based on the computer program instructions each section One or more modules can be divided into according to program 200 is laid with.For example, the test data is laid with program 200 in Fig. 2 It can be divided into and obtain module 201, relating module 202, receiving module 203 and operation module 204.Wherein:
The acquisition module 201, the data-interface of each subelement for obtaining test object respectively.
Specifically, the testing service device 1, can be by the test after receiving the dependence test task of test object The data-interface of each subelement of object extracts.Wherein, the subelement is that the test object marks off to execute The program segment of certain function or function collection.Described program section may include at least one program function, when including multiple program letters When number, then the multiple program function or one specific function of common realization or function collection or the multiple program function are Has the program segment for the relationship that influences each other.And the data-interface is that external data can directly, quickly be transferred to corresponding son list The specific channel of member, the external data includes test data and control instruction to be loaded or to be imported.In this implementation In example, the data-interface is exactly to be used to read/call the data of specific position in program function, or jump to specific position The power function of operation is then proceeded to afterwards.
Therefore, during the test, the testing service device 1 can be spread by the data-interface If test data load or be configured in each subelement of the test object, thus by each height list Member configures desired test environment.For example, test process needs execute in the environment of M=3, N=2, and the test pair The value of M and N as in are not 3 and 2, thus can by the data-interface by M=3, N=2 directly write to configuration M and M the and N value in the test object is rewritten as 3 and 2 in the program segment of N.
The relating module 202, for will be in the data-interface of each subelement and preset file table Field carries out one-to-one association.
Specifically, when the data for each subelement for getting the test object by the testing service device 1 After interface, the file table that can be run by the testing service device 1 can be preset, that is to say, that the file table " program " be can be used as by the testing service device 1 execution to reach the data in the file table by the testing service device 1 reads.Wherein, the file table includes at least one field, each field and a subelement of the test object Data-interface carries out one-to-one association.For example, the file table includes 1 field, the number of the field is Q, corresponding object Reason storage address is XXX.It, can be with by the data-interface of the subelement after then the field is associated with a subelement The data that physical storage address XXX is stored are directly read, and are updated into the corresponding test data of the configuration subelement.Into Each field of the file table after row association is " connection ", the test object with the subelement of the test object Subelement can receive user's write-in or the data that imported into the corresponding field of the file table.
The receiving module 203, for receiving the corresponding test data of each subelement and by each subelement pair The test data answered is written to the field corresponding with the data-interface of each subelement in the file table.
Specifically, working as the relating module 202 for the data-interface of each subelement and preset file table In field carry out one-to-one association after, the receiving module 203 then can receive for carrying out to each subelement The test data of laying, then by the corresponding test data of each subelement be respectively written into the file table with institute State the corresponding field of the data-interface of each subelement.
The operation module 204, for running the file table so that the corresponding test number of each subelement According to being routed to corresponding subelement.
It is executed to reach the file by the testing service device 1 specifically, the file table can be used as " program " Data in table are read by the testing service device 1.Due to the data-interface and the file table of each subelement In field carry out it is one-to-one be associated with, therefore the receiving module 203 can receive the corresponding test data of each subelement And the corresponding test data of each subelement is written to the number with each subelement in the file table According to the corresponding field of interface.Finally, when the file table is run by the operation module 204, then it can be by the test Data are routed in corresponding each subelement.
It is worth noting that, the testing service device 1 executes test and the operation file by two processes of operation Table, two processes are mutually indepedent, are independent of each other.That is, the operation module 204 runs process and the institute of test program It states operation module 204 and runs the process of the file table and be independent from each other.Therefore, test is executed in the testing service device 1 During, when operation is modified or when the edited file table, then by the measured data in the test process into Real-time laying/the change of row.Certainly, the test data in the file table is by after modification or editor and then by the operation Module 204 can be directly changed the test environment of test process after running.
For example, when test object X includes opposite 3 independent functional units:A unit, unit B and C cell.Then institute After stating the test assignment that testing service device 1 receives the test object X, the acquisition module 201 can be by the test pair As the subelement of X:The data-interface of A unit, unit B and C cell extracts, and then the relating module 202 is by A unit, B Field in the data-interface of unit and C cell and preset file table carries out one-to-one association.For example, the file table Include 3 fields in the excel table for excel table, then the relating module 202 can be set 3 fields respectively with The data-interface of the A unit of the test object X, unit B and C cell carries out one-to-one association.When 3 of the excel table The A unit of field and the test object, after unit B is associated with C cell, when the excel 3 fields receive or After person directly writes configuration data, the receiving module 203 then can receive the A unit corresponding to the test object X, B The test data of unit and C cell, and by the A unit, the test data of unit B and C cell is written in the excel With the A unit, unit B and the corresponding associated field of C cell.Finally, the operation module 204 runs the excel For table so that the test data of the A unit, unit B and C cell is routed to the A unit of the corresponding test object X, B is mono- Member and C cell, thus reach the A unit of the test object X, the laying of the test data of unit B and C cell.
It will be recalled from above that the testing service device 1 can obtain the data-interface of each subelement of test object respectively, Field in the data-interface of each subelement and preset file table is subjected to one-to-one association;Then it receives each The corresponding test data of a subelement and by the corresponding test data of each subelement be written in the file table with The corresponding field of the data-interface of each subelement;The file table is finally run so that each subelement The corresponding test data is routed to corresponding subelement.Quickly and conveniently test object is tested to realize Data are laid with.
As shown in fig.3, being the Program modual graph that test data of the present invention is laid with 200 second embodiment of program.This implementation In example, the test data is laid with program 200 in addition to including the acquisition module 201 in first embodiment, relating module It 202, further include division module 205 except receiving module 203, operation module 204.
The acquisition module 201, relating module 202, receiving module 203 and operation module 204 and the test data are spread If the corresponding function of program module in 200 first embodiment of program is identical.Which is not described herein again.Due to the sometimes test Object is a more complicated allomeric function block, therefore the differentiation of also not ready-made subelement, therefore, it is also desirable to divide mould Block 205 carries out the processing of " definition " or " division " of subelement to the test object in advance.
The division module 205, for the test object to be divided into multiple sons according to the function of the test object Unit.
Specifically, when the test object is a more complicated allomeric function block, the division module 205 can be in institute It states before obtaining the execution acquisition data-interface of module 201, is realized first according to multiple program functions in the test object Function is classified, so that the test object artificially be divided, the test object is divided into multiple default big Small mutually independent subelement, in this way in order to the laying of whole large-scale test data is divided into multiple mutually not shadows The laying of loud small-scale test data.For example, the division module 205 can basis when test object X is extremely complex The program function collection module that can be realized independent function in test object X is divided into multiple subelements:A unit, unit B And C cell, and write area in test program and the A unit, the data-interface of unit B and C cell is respectively set.
That is, complicated test object can be divided into multiple subelements by the testing service device 1, then by institute It states the data-interface of each subelement and the field in preset file table carries out one-to-one association;Then each height is received The corresponding test data of unit and by the corresponding test data of each subelement be written in the file table with it is described The corresponding field of the data-interface of each subelement;The file table is finally run so that each subelement is corresponding The test data be routed to corresponding subelement.Test data quickly and conveniently is carried out to test object to realize It is laid with.
In addition, the present invention also proposes a kind of test data laying method.
As shown in fig.4, being the flow diagram of one embodiment of test data laying method of the present invention.In the present embodiment In, the execution sequence of the step in flow chart shown in Fig. 4 can change according to different requirements, and certain steps can be omitted.
The test object is divided into multiple subelements according to the function of test object by step S500.
Specifically, when test object is a more complicated allomeric function block, the testing service device 1 can be obtained in execution Before taking data-interface, classified first according to multiple program function realization of functionss in the test object, thus will The test object is artificially divided, and the mutually independent son that the test object is divided into multiple default sizes is single Member, in this way in order to the laying of whole large-scale test data is divided into multiple small-scale test numbers being independent of each other According to laying.It in the present embodiment, can be according to can be realized solely in test object X when test object X is extremely complex The program function collection module of vertical function is divided into multiple subelements:A unit, unit B and C cell, and write in test program The A unit, the data-interface of unit B and C cell is respectively set in area.
Step S502 obtains the data-interface of each subelement of test object respectively.
Specifically, the testing service device 1, can be by the test after receiving the dependence test task of test object The data-interface of each subelement of object extracts.In the present embodiment, the testing service device 1 receives the test After the test assignment of object X, by the test object A unit, the data-interface of unit B and C cell is extracted.
Wherein, the subelement is that the test object marks off to execute the program segment of certain function or function collection.Institute Stating program segment may include at least one program function, when comprising multiple program functions, then the multiple program function or One specific function of common realization or function collection or the multiple program function are the program segment for having the relationship that influences each other.And institute Stating data-interface is the specific channel that external data can directly, quickly be transferred to corresponding subelement, the external data Including test data and control instruction to be loaded or to be imported.In the present embodiment, the data-interface is exactly program letter The power function run is then proceeded to for reading/calling the data of specific position in number, or after jumping to specific position.
Therefore, during the test, the testing service device 1 can be spread by the data-interface If test data load or be configured in each subelement of the test object, thus by each height list Member configures desired test environment.For example, test process needs execute in the environment of M=3, N=2, and the test pair The value of M and N as in are not 3 and 2, thus can by the data-interface by M=3, N=2 directly write to configuration M and M the and N value in the test object is rewritten as 3 and 2 in the program segment of N.
Step S504 carries out the field in the data-interface of each subelement and preset file table a pair of One association.
Specifically, when the data for each subelement for getting the test object by the testing service device 1 After interface, the file table that can be run by the testing service device 1 can be preset, that is to say, that the file table " program " be can be used as by the testing service device 1 execution to reach the data in the file table by the testing service device 1 reads.Wherein, the file table includes at least one field, each field and a subelement of the test object Data-interface carries out one-to-one association.For example, the file table includes 1 field, the number of the field is Q, corresponding object Reason storage address is XXX.It, can be with by the data-interface of the subelement after then the field is associated with a subelement The data that physical storage address XXX is stored are directly read, and are updated into the corresponding test data of the configuration subelement.Into Each field of the file table after row association is " connection ", the test object with the subelement of the test object Subelement can receive user's write-in or the data that imported into the corresponding field of the file table.In the present embodiment In, A unit, the data-interface and the field in preset file table of unit B and C cell are carried out one-to-one association by institute. Include 3 fields in the excel table for example, the file table is excel table, then can be set 3 fields respectively with The data-interface of the A unit of the test object X, unit B and C cell carries out one-to-one association.
Step S506 receives the corresponding test data of each subelement and by the corresponding test data of each subelement The field corresponding with the data-interface of each subelement being written in the file table.
Specifically, the data-interface of each subelement and the field progress in preset file table is one-to-one After association, then it can receive the test data for being laid with to each subelement, then by each height list The corresponding test data of member is respectively written into corresponding with the data-interface of each subelement in the file table Field.In the present embodiment, the A unit of 3 fields of the excel table and the test object, unit B and C cell close After connection, after 3 fields of the excel receive or directly write configuration data, the testing service device 1 is then It can receive the A unit corresponding to the test object X, the test data of unit B and C cell, and by the A unit, unit B With the test data of C cell be written in the excel with the A unit, unit B and the corresponding associated column of C cell Position.
Step S508 runs the file table so that the corresponding test data of each subelement is routed to relatively The subelement answered.
It is executed to reach the file by the testing service device 1 specifically, the file table can be used as " program " Data in table are read by the testing service device 1.Due to the data-interface and the file table of each subelement In field carry out it is one-to-one be associated with, therefore, can receive the corresponding test data of each subelement and by each height The corresponding test data of unit is written to corresponding with the data-interface of each subelement in the file table Field.Finally, then the test data can be routed to correspondence when the file table is run by the testing service device 1 Each subelement in.In the present embodiment, the testing service device 1 runs the excel table so that the A unit, B are mono- Member and the test data of C cell are routed to the A unit of the corresponding test object X, unit B and C cell, to reach institute State the A unit of test object X, the laying of the test data of unit B and C cell.
It is worth noting that, the testing service device 1 executes test and the operation file by two processes of operation Table, two processes are mutually indepedent, are independent of each other.That is, the operation of testing service device 1 executes the test program of test Process and the testing service device 1 operation execute the process of the file table that test data is laid with and be independent from each other.Cause This, during the testing service device 1 is executed and tested, when operation is modified or when the edited file table, then Measured data in the test process will be laid in real time/be changed.Certainly, the test data quilt in the file table Then the test environment of test process can be directly changed after modifying or editing after the testing service device 1 operation.
It is single can be divided into multiple sons by the test data laying method that the present embodiment is proposed for complicated test object Then field in the data-interface of each subelement and preset file table is carried out one-to-one association by member;So After receive the corresponding test data of each subelement and the corresponding test data of each subelement be written to the file Field corresponding with the data-interface of each subelement in table;The file table is finally run so that described each The corresponding test data of a subelement is routed to corresponding subelement.To realize quickly and conveniently to test object Carry out test data laying.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of test data laying method is applied to testing service device, which is characterized in that the method includes the steps:
The data-interface of each subelement of test object is obtained respectively;
Field in the data-interface of each subelement and preset file table is subjected to one-to-one association;
It receives the corresponding test data of each subelement and the corresponding test data of each subelement is written to the text Field corresponding with the data-interface of each subelement in part table;
The file table is run so that the corresponding test data of each subelement is routed to corresponding subelement.
2. test data laying method as described in claim 1, which is characterized in that the data-interface is that external data is straight It connects, be quickly transferred to the specific channel of corresponding subelement, the external data includes test to be loaded or to be imported Data and control instruction.
3. test data laying method as described in claim 1, which is characterized in that the testing service device passes through operation two Mutually independent process executes test and the operation file table.
4. test data laying method as claimed in claim 2, which is characterized in that execute test in the testing service device In the process, when operation is modified or the edited file table, then the measured data in the test process will be carried out It is laid with or changes in real time.
5. test data laying method according to any one of claims 1-4, which is characterized in that obtain test respectively described It further include step before the step of data-interface of each subelement of object:It will be described according to the function of the test object Test object is divided into multiple subelements.
6. a kind of testing service device, which is characterized in that the testing service device includes memory, processor, on the memory The test data that be stored with to run on the processor is laid with program, and the test data is laid with program by the processor Following steps are realized when execution:
The data-interface of each subelement of test object is obtained respectively;
Field in the data-interface of each subelement and preset file table is subjected to one-to-one association;
It receives the corresponding test data of each subelement and the corresponding test data of each subelement is written to the text Field corresponding with the data-interface of each subelement in part table;
The file table is run so that the corresponding test data of each subelement is routed to corresponding subelement.
7. testing service device as claimed in claim 6, which is characterized in that the data-interface is that external data is direct, quick It is transferred to the specific channel of corresponding subelement, the external data includes test data and control to be loaded or to be imported System instruction.
8. testing service device as claimed in claim 6, which is characterized in that the testing service device is mutually only by operation two Vertical process executes test and the operation file table.
9. the testing service device as described in any one of claim 6-8, which is characterized in that execute survey in the testing service device It, then will be to the measured data in the test process when operation is modified or when the edited file table during examination It is laid with or is changed in real time.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has test data to be laid with program, institute Stating test data laying program can be executed by least one processor, so that at least one described processor executes such as claim Described in any one of 1-5 the step of test data laying method.
CN201810332033.4A 2018-04-13 2018-04-13 Test data laying method, test server and computer readable storage medium Active CN108829574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810332033.4A CN108829574B (en) 2018-04-13 2018-04-13 Test data laying method, test server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810332033.4A CN108829574B (en) 2018-04-13 2018-04-13 Test data laying method, test server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108829574A true CN108829574A (en) 2018-11-16
CN108829574B CN108829574B (en) 2023-04-18

Family

ID=64154463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810332033.4A Active CN108829574B (en) 2018-04-13 2018-04-13 Test data laying method, test server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108829574B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766262A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Interface data processing method, automated testing method, device, equipment and medium
CN109800149A (en) * 2018-12-14 2019-05-24 深圳壹账通智能科技有限公司 Application interface method for generating test case and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9419748D0 (en) * 1994-09-30 1994-11-16 Hoskyns Technologies Ireland L A software testing apparatus
CN101187894A (en) * 2006-11-15 2008-05-28 中兴通讯股份有限公司 Automatic test method based on key word drive and its test system
CN103412853A (en) * 2013-08-05 2013-11-27 北京信息科技大学 Method for automatically generating test cases aiming at document converters
CN104035859A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Visualized automatic testing method and system thereof
US20170052884A1 (en) * 2015-08-20 2017-02-23 Ca, Inc. Generic test automation for restful web services applications
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium
CN107341102A (en) * 2017-06-12 2017-11-10 北京奇安信科技有限公司 A kind of test case file generation method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9419748D0 (en) * 1994-09-30 1994-11-16 Hoskyns Technologies Ireland L A software testing apparatus
CN101187894A (en) * 2006-11-15 2008-05-28 中兴通讯股份有限公司 Automatic test method based on key word drive and its test system
CN104035859A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Visualized automatic testing method and system thereof
CN103412853A (en) * 2013-08-05 2013-11-27 北京信息科技大学 Method for automatically generating test cases aiming at document converters
US20170052884A1 (en) * 2015-08-20 2017-02-23 Ca, Inc. Generic test automation for restful web services applications
CN107341102A (en) * 2017-06-12 2017-11-10 北京奇安信科技有限公司 A kind of test case file generation method and device
CN107341098A (en) * 2017-07-13 2017-11-10 携程旅游信息技术(上海)有限公司 Software performance testing method, platform, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800149A (en) * 2018-12-14 2019-05-24 深圳壹账通智能科技有限公司 Application interface method for generating test case and server
CN109766262A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Interface data processing method, automated testing method, device, equipment and medium

Also Published As

Publication number Publication date
CN108829574B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN108681504A (en) Automated testing method, test server and computer readable storage medium
CN107797923B (en) Code coverage rate analysis method and application server
CN107885656A (en) Product algorithm automated testing method and application server
CN107766194A (en) Method of testing, device, system, terminal device and computer-readable recording medium
CN104838405B (en) The method and system of test frame for application program
CN107689982A (en) Multi-data source method of data synchronization, application server and computer-readable recording medium
CN108428104A (en) Wages computational methods, application server and computer readable storage medium
CN108021621A (en) Database data acquisition method, application server and computer-readable recording medium
CN109800149A (en) Application interface method for generating test case and server
CN107908553A (en) Correlation testing method, application server and computer-readable recording medium
CN109100636A (en) Circuit board detection method, device, system and test host computer
CN108052281A (en) Business Information storage method, application server and computer storage media
CN108829574A (en) Test data laying method, testing service device and computer readable storage medium
CN108038655A (en) Recommendation method, application server and the computer-readable recording medium of department's demand
CN107992424A (en) Automatic test analysis method, application server and computer-readable recording medium
CN108255735A (en) Associated environment test method, electronic device and computer readable storage medium
CN114594714B (en) Equipment control method, device, equipment and storage medium
CN107357721B (en) Method and device for testing system
CN113704110A (en) Automatic testing method and device for user interface
CN110515615A (en) Business logic codes automatic generation method, device and server
CN111813377A (en) Method and device for automatically generating application program
CN105404574A (en) Method and apparatus for testing consistency of smart card and mobile terminal
CN104717103A (en) Method and device for testing network device
CN108664343A (en) A kind of stateful call method and device of micro services
CN109062870A (en) The method and storage medium that server, business datum verify

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