CN109857656A - Adaptation method, device, computer equipment and storage medium based on test - Google Patents

Adaptation method, device, computer equipment and storage medium based on test Download PDF

Info

Publication number
CN109857656A
CN109857656A CN201910047142.6A CN201910047142A CN109857656A CN 109857656 A CN109857656 A CN 109857656A CN 201910047142 A CN201910047142 A CN 201910047142A CN 109857656 A CN109857656 A CN 109857656A
Authority
CN
China
Prior art keywords
interface
data
adaptation
script
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910047142.6A
Other languages
Chinese (zh)
Inventor
何玉聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910047142.6A priority Critical patent/CN109857656A/en
Publication of CN109857656A publication Critical patent/CN109857656A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of adaptation method based on test, device, computer equipment and storage mediums, wherein being somebody's turn to do the adaptation method based on test includes: the data adaptation request for obtaining test lead and sending, and data adaptation request includes module I D;Based on module I D, the corresponding module to be tested of module I D is obtained in item file library;The Data Input Interface of module to be tested is scanned, if the input data of Data Input Interface is coupling data, using the corresponding Data Input Interface of coupling data as targeted fit interface;Based on the corresponding adaptable interface database in item file library, the corresponding adapter structure script of targeted fit interface is obtained;Based on targeted fit interface and adapter structure script, adaptation data packet is generated.This method can directly match the adapter structure script saved in adaptable interface database, save live adaptation and generate the time of corresponding data structure.

Description

Adaptation method, device, computer equipment and storage medium based on test
Technical field
The present invention relates to software testing technology field more particularly to a kind of adaptation methods based on test, device, computer Equipment and storage medium.
Background technique
MOCK test is exactly during the test, for certain objects for being not easy to construct or be not easy to obtain, to pass through MOCK platform is created that the virtual objects of adaptation, so as to the method tested.For example, in code, the unit of program or application When test, it is frequently encountered the code module write and needs to rely on other class or external dependence interface.If at this point, these Completion is write or develop not yet to class or interface, or the external environmental structure for relying on interface service needs to consume more cost, For the ease of being tested or being reduced cost in time, required interface or class can be gone out by defining MOCK object dispatching immediately.
In practical applications, the result returned due to test by various influences such as software, hardware and system environments, And needing normal, exception is various to return the result when exploitation, test, scene is adapted to out by MOCK platform to be tested The virtual objects (or adaptation data packet) needed may influence testing efficiency, how improve the virtual right of MOCK test platform offer The Adaption efficiency of elephant becomes urgent problem to be solved.
Summary of the invention
The embodiment of the present invention provides a kind of adaptation method based on test, device, computer equipment and storage medium, with solution The problem of certainly improving the Adaption efficiency for the virtual objects that MOCK test platform provides.
A kind of adaptation method based on test, comprising:
The data adaptation request that test lead is sent is obtained, data adaptation request includes module I D;
Based on module I D, the corresponding module to be tested of module I D is obtained in item file library;
The Data Input Interface of module to be tested is scanned, it, will if the input data of Data Input Interface is coupling data The corresponding Data Input Interface of coupling data is as targeted fit interface;
Based on the corresponding adaptable interface database in item file library, the corresponding adapter structure foot of targeted fit interface is obtained This;
Based on targeted fit interface and adapter structure script, adaptation data packet is generated;
Adaptation data packet is sent to test lead.
A kind of adaptive device based on test, comprising:
Configuration Request module is obtained, for obtaining the data adaptation request of test lead transmission, data adaptation request includes mould Block ID;
Based on module I D-module, for being based on module I D, the corresponding die trial to be measured of module I D is obtained in item file library Block;
Input interface module is scanned, for scanning the Data Input Interface of module to be tested, if Data Input Interface is defeated Entering data is coupling data, then using the corresponding Data Input Interface of coupling data as targeted fit interface;
Structure script module is obtained, for being based on the corresponding adaptable interface database in item file library, obtains targeted fit The corresponding adapter structure script of interface;
Adaptation data packet module is generated, for being based on targeted fit interface and adapter structure script, generates adaptation data packet;
Adaptation data packet module is sent, for adaptation data packet to be sent to test lead.
A kind of computer equipment, including memory, processor and storage can be run in memory and on a processor Computer program, processor execute computer program when realize the above-mentioned adaptation method based on test.
A kind of computer readable storage medium, computer-readable recording medium storage have computer program, computer program The above-mentioned adaptation method based on test is realized when being executed by processor.
The above-mentioned adaptation method based on test, device, computer equipment and storage medium, the carrying sent by test lead The data adaptation of module I D is requested, and MOCK test platform can obtain the targeted fit interface being adapted to based on module I D, And by matching corresponding adapter structure script in time in adaptable interface database, which is sent back into test End is tested.MOCK test platform is not necessarily to analyze the data structure of the input data of targeted fit interface, can directly be adapted to The adapter structure script saved is matched in interface database, saves live adaptation and generates the time of corresponding data structure, It improves MOCK test platform and the efficiency of virtual objects corresponding with targeted fit interface is provided, can also improve test effect simultaneously Rate.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the application environment schematic diagram of the adaptation method in one embodiment of the invention based on test;
Fig. 2 is the flow chart of the adaptation method in one embodiment of the invention based on test;
Fig. 3 is another flow chart of the adaptation method in one embodiment of the invention based on test;
Fig. 4 is another flow chart of the adaptation method in one embodiment of the invention based on test;
Fig. 5 is another flow chart of the adaptation method in one embodiment of the invention based on test;
Fig. 6 is another flow chart of the adaptation method in one embodiment of the invention based on test;
Fig. 7 is another flow chart of the adaptation method in one embodiment of the invention based on test;
Fig. 8 is the schematic diagram of the adaptive device in one embodiment of the invention based on test;
Fig. 9 is the schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Adaptation method provided in an embodiment of the present invention based on test, can be applicable in the application environment such as Fig. 1, this is based on The adaptation method of test is applied in the adaption system based on test, and being somebody's turn to do the adaption system based on test includes test lead and deployment The server of adaptive device, wherein test lead is communicated by network with server.Wherein, test lead is also known as user terminal, Refer to program corresponding with server.The test lead it is mountable but be not limited to various personal computers, laptop, intelligence In the computer equipments such as energy mobile phone, tablet computer and portable wearable device.Server can with independent server or It is the server cluster of multiple server compositions to realize.
In the present embodiment, loading MOCK test platform on the server of adaptive device is disposed, it is empty to be provided to test lead Quasi- object (also referred to as adaptation data packet).MOCK test platform is to realize offer virtual objects using the MOCK technology of existing maturation 's.
MOCK technology is referred to for certain objects for being not easy to construct or be not easy to obtain, with a virtual object To create the technology to be tested, wherein virtual object is exactly MOCK object, and MOCK object is exactly that real object is being adjusted Substitute during examination.When encountering following problem, MOCK is first choice: 1. external resources, such as file system, data Source, this is because very strong to such external resource dependence, and the unpredictability of its behavior likely result in test with Machine failure.2. third party API, when interface belongs to user, the interaction of test user and interface is determined by MOCK interface, Explicitly define the responsibility etc. of the interface.
Benefit using MOCK technology includes: that first, the other module errors of isolation cause the test errors of this module.The Two, the development status for completely cutting off other modules does not have to manage other Development of Module either with or without completion as long as defining interface.Third, one A little slow operations, can be replaced with MOCK Object, quickly be returned.
Such as performance test demand: calculating the loan of user by which bank loan, if the interface of credit system, system of making loans Interface belong to coupling end interface/third party's interface, MOCK technology can be used, and to simulate, the interface object of credit system, making loans is The interface object of system, so that performance test can be smoothly completed.Because during the test can not be really on credit system In addition the information of a lending bank corresponding to someone, actually this information are not present, during only testing The data of generation.
In one embodiment, it as shown in Fig. 2, providing a kind of adaptation method based on test, applies in Fig. 1 in this way Server for be illustrated, include the following steps:
S10. the data adaptation request that test lead is sent is obtained, data adaptation request includes module I D.
Wherein, data adaptation request is that test lead is sent to server, so that server provides fit corresponding with module I D Request with data packet.
Module I D is the mark that server is distinguished to several modules present in each project library.Wherein, item Mesh library is the file summation for including stored on server for each project of test.Specifically, in each file Including several modules, server can specify a module I D to each module to distinguish each module for testing.
In step S10, the data adaptation request for only carrying module I D that server is sent by receiving test lead avoids counting The module to be tested including mass data is carried according to Configuration Request, can reduce network load, while simplifying test lead and obtaining module The process of the corresponding adaptation data packet of ID.
S20. it is based on module I D, the corresponding module to be tested of module I D is obtained in item file library.
Wherein, module to be tested is the achievable concrete function corresponding with module I D in item file library, and be can be used for The module tested.
Specifically, for the ease of matching the corresponding module to be tested of module I D in time, server is in item file library Middle storage carries the module to be tested of module I D.Module I D in server acquisition data adaptation request, can be in project text Corresponding module to be tested is matched in part library.
Further, server can should be based on item file when obtaining the new item file library for being tested The functional module for including in each file in library is split, and each module completed to segmentation specifies module I D, and by mould Block ID returns to test lead, and unit testing can be realized based on the corresponding code of module I D by being conducive to test lead.
Preferably, each module to be tested includes at least one preset data structure, and each preset data structure includes adjusting Use number.Wherein, preset data structure is that the coupling data that the needs in module to be tested input is corresponding, has been pre-stored in service The data structure of device.It, can be to be tested to this when server gets the corresponding module to be tested of module I D in item file library The corresponding call number of each preset data structure adds 1 in module, can count each pre- at preset timed intervals for subsequent server If the call number of data structure, each preset data structure is arranged and saved by the descending of call number, is convenient for preset data When structure is queried and calls, the preset data structure that can preferentially call versatility high.
In step S20, server can match according to module I D in item file library and corresponding carry out function segmentation Can be used for test module to be tested, can be improved server provide adaptation data packet adaptation rate.
S30. the Data Input Interface of module to be tested is scanned, if the input data of Data Input Interface is coupling data, Then using the corresponding Data Input Interface of coupling data as targeted fit interface.
Wherein, Data Input Interface is all method interfaces for needing input data that module to be tested includes.Wherein, it inputs Data include immediate data and coupling data.Immediate data is the data that current inside modules to be tested temporarily generate, when When test lead is tested, test lead immediate data can be directly inputted to the specified data input interface of module to be tested into Row test.Coupling data is the data that module to be tested itself cannot provide, but by other modules to be tested or third party The data that interface provides.
Specifically, because coupling data cannot be provided by module to be tested itself, test module is treated when test lead and is surveyed When examination, then there is the case where can not testing the corresponding Data Input Interface of coupling data.At this point, clothes can be used in test lead It is engaged in adaptation data packet (including the corresponding Data Input Interface of coupling data and the virtual number corresponding with coupling data that device provides According to) tested, to ensure the coupling of each Data Input Interface of module to be tested.
Further, server can analyze the data source of each Data Input Interface in current module to be tested, will The data judging of input of the interface output as other Data Input Interfaces in current module to be tested is immediate data, by nothing The data judging that method obtains data source is coupling data.It is fitted using the corresponding each Data Input Interface of coupling data as target With interface.
In step S30, server scans each Data Input Interface in module to be tested, can automatically obtain targeted fit Interface improves the automatic adaptation ability of server, is also the subsequent data knot based on the corresponding coupling data of targeted fit interface Structure carries out adaptation preparation techniques basis.
S40. it is based on the corresponding adaptable interface database in item file library, obtains the corresponding adapter structure of targeted fit interface Script.
Wherein, adaptable interface database is the set for all generated prototype structure scripts that server saves.Wherein, Prototype structure script is the data structure for the coupling data that server is scanned based on history, the corresponding side for generating the data structure The set of method.It is to be appreciated that in this step in adaptable interface database prototype structure foot corresponding with targeted fit interface This is adapter structure script.
Specifically, server needs analysis to obtain the current data structure of the corresponding coupling data of targeted fit interface first, Output result based on each prototype structure script in the current data structure and adaptable interface database is matched, and is obtained The output result of prototype structure script and the current data structure are consistent, can be confirmed as adapter structure script.
In step 40, server can be searched based on adaptable interface database, and matching obtains and targeted fit interface pair The adapter structure script answered locally produces corresponding adapter structure script according to targeted fit interface without server, can save The time for generating adapter structure script, improve the Adaption efficiency of server.
S50. it is based on targeted fit interface and adapter structure script, generates adaptation data packet.
Wherein, adaptation data packet be targeted fit interface all in set module to be tested and with the targeted fit interface It is virtual right that the set of corresponding adapter structure script, as server are returned based on the data adaptation request that test lead is sent As.
Specifically, server can be by interface ID and right to each targeted fit interface specified interface ID namely server The adapter structure script answered, which is packaged, generates adaptation data packet, convenient for test lead when testing corresponding interface ID, can be based on Interface ID obtains corresponding adapter structure script and is tested.
In step S50, targeted fit interface and adapter structure script can be packaged into the adaptation for carrying interface ID by server Data packet carries out test preparation techniques basis in interface ID and corresponding adaptation data packet for follow-up test end group.
S60. adaptation data packet is sent to test lead.
Specifically, the realization process that test lead is tested based on adaptation data packet is as follows:
The interface ID that test lead can be carried according to each adaptation data packet, it is suitable to find each target in module to be tested With interface, the adapter structure script that solution is honored as a queen is loaded into the targeted fit interface, can ensure each survey during the test It tries the coupling of mouth.
It is illustrated so that a module to be tested is performance test module as an example, each data needed in test case operation Number of threads (coupling data) is such as arranged in the operating parameter of input when input interface is test case operation, thread is sent Execute period (immediate data), handling capacity timer (the directly number of request number of times (coupling data) or implementation of test cases According to) etc..Above-mentioned operating parameter includes that two coupling datas namely the two coupling datas should be provided corresponding adaptation by server Data packet carries out data substitution during the test.Further, it is learnt by step S50, the two coupling datas are corresponding every The all corresponding interface ID of one targeted fit interface.
Test lead can obtain the corresponding adaptation data packet for carrying interface ID of above-mentioned two coupling data through step S50, survey The two adaptation data packet solutions can be honored as a queen by examination end is loaded into targeted fit for corresponding adapter structure script respectively by interface ID In interface.
Further, number of threads is exactly Virtual User number, and a Virtual User occupies a process or thread, setting How many Virtual User numbers are just arranged how many a Thread Counts, and multiple thread parallels execute, i.e., are initialised and are performed simultaneously pair simultaneously The test case answered.The MOCK test platform disposed in server can generate corresponding adapter structure script based on number of threads One.
Thread, which is sent, executes request number of times it can be appreciated that cycle-index, if Thread Count is 200, per thread transmission is held The number of row request is 100, then total request is 200*100=10000.The MOCK test platform disposed in server can be based on Thread, which is sent, executes the corresponding adapter structure script two of request number of times generation.
The period (data can be randomly assigned by test lead) of implementation of test cases, start including implementation of test cases The time that time and implementation of test cases terminate, during this period, test case can recycle execution.
For handling capacity timer for handling capacity (data can be randomly assigned by test lead) to be arranged, handling capacity refers to be unit The number for executing request or the number that test case is performed simultaneously in the unit time are sent in time, i.e., it is right in the unit time The number that relevance service logic process between system is tested, namely refer to the thread of synchronization while operation.
Operating parameter may also include other parameters, such as further include monitor, can see graphical stat by monitor Information etc.;It can also include that (above-mentioned other parameters can be random by test lead for path and file name of generation test result etc. It generates).
Further, after being provided with operating parameter, test lead can start implementation of test cases, obtain test knot Fruit, and test result is saved, such as it is stored in journal file.It include under handling capacity, different handling capacities in test result Resource utilization etc. under response time, different handling capacities.
Specifically, handling capacity is able to reflect out the performance of software product, that is to say the execution efficiency of software product, handling capacity Larger, then the performance of software product is higher, and handling capacity is smaller, then the performance of software product is lower.Response time refers to executing The test process of service logic process, and time needed for obtaining test result, pass through the response obtained in test process Time can recognize the execution speed during performance test, to optimize processing according to the demand of service logic process, Improve the execution speed of service logic process.Wherein, the response time can generally take the average response time, include once testing In, when the corresponding response of the overall response time and each system that the relevance service logic process between system is tested for the property Between.
Resource utilization includes CPU usage, memory usage etc. under different handling capacities.In addition, in test result Can also run succeeded rate, version number of software product etc. including test case.
In step S60, the adaptation data packet that adaptation services device is generated by the output data packet of extraction or in real time is sent to Test lead is tested, and the testing efficiency and test lead for improving test lead are to the different versatilities for testing environment.
In adaptation method provided in this embodiment based on test, carrying module I D's that server is sent by test lead Data adaptation request can be obtained the targeted fit interface being adapted to based on module I D, and pass through adaptable interface database In match corresponding adapter structure script in time, which is sent back into test lead and is tested.Server without The data structure of the input data of targeted fit interface need to be analyzed, can directly match and to have saved in adaptable interface database Adapter structure script saves live adaptation and generates the time of corresponding data structure, improves server offer and connects with targeted fit The efficiency of the corresponding virtual objects of mouth, can also improve testing efficiency simultaneously.
In one embodiment, as shown in figure 3, in step S40, that is, the corresponding adaptable interface data in item file library are based on Library obtains the corresponding adapter structure script of targeted fit interface, comprising:
S41. it is based on the corresponding adaptable interface database in item file library, each prototype structure script is obtained, by each original The corresponding data structure of beginning structure script data structure corresponding with coupling data is matched, and matching result is obtained.
Wherein, matching result includes successful match and it fails to match.Successful match is in adaptable interface database With obtaining the corresponding data structure of corresponding with the coupling data consistent prototype structure script of data structure.Conversely, being then matching Failure.
Specifically, it illustrates the corresponding data structure of each prototype structure script data knot corresponding with coupling data Structure carries out matched realization process:
The corresponding data structure of prototype structure script saved in adaptable interface database includes:
1.XXX-1980-YYY
2.YYY—1980-XXX
3.1980-XXX-YYY
4.XXX-YYY-1980
5.YYY-XXX-1980
The corresponding data structure of coupling data is XXX-1980-YYY, matched to obtain, the original that coupling data is 1 with number The beginning output of structure script is consistent, then can obtain matching result is successfully.
In step S41, server can be based on each prototype structure script and the coupling being present in adaptable interface database It closes the corresponding data structure of data to be matched, the scene of saving is based on the corresponding adaptation of the corresponding data structure building of coupling data The time of structure script, and improve the utilization rate of generated prototype structure script.
If S42. matching result is successful match, using the prototype structure script of successful match as targeted fit interface pair The adapter structure script answered.
In step S42, the prototype structure script that server can obtain successful match in time is corresponding as targeted fit interface Adapter structure script, corresponding adaptation data generated based on the adapter structure script assure standby technical foundation to be subsequent.
If S43. matching result is that it fails to match, targeted fit interface corresponding interface adaptation document is obtained, based on connecing Mouth adaptation document, generates adapter structure script corresponding with targeted fit interface.
Wherein, interface adaptation document is the interface specification document carried in each project library, and the document is by exploit person Member is illustrated each interface in the item file library, is conducive to other developers and understands and realize that interface shares.
Specifically, server matches that obtain data structure corresponding with coupling data consistent not in adaptable interface database The corresponding data structure of prototype structure script, then can determine that matching result be it fails to match.At this point, illustrating that adaptable interface is adapted to Data structure corresponding with coupling data is not present in library, server should generate corresponding adaptation based on MOCK test platform in time Structure script.
Further, the realization process that MOCK test platform generates adapter structure script is illustrated:
Server can read the data structure of the corresponding input data of targeted fit interface in interface adaptation document, use The corresponding adapter structure script of the data structure building is based on MOCK test platform.
MOCK test platform generates corresponding data structure according to data template.The composition of data template includes three Point: attribute-name, create-rule and attribute value.Structure grammatically is as follows:
Template 1: attribute-name | create-rule: attribute value
Simplest data template is directly indicated with literal without using create-rule:
{
Hello by name:' '
}
The mock data of generation are as follows:
{
" name ": " hello "
}
Template 2::' attribute-name | min-max': attribute value (min-max: character string number of repetition) example:
{
' name | hello by 1-10':' '
}
The mock data of generation are as follows:
{
" name ": " you are good, and hello "
}
Template 3::' attribute-name | count': attribute value (count: character string specifies number of repetition) example:
{
' name | hello by 1-10':' '
' moreName | hello by 5':' '
}
The mock data of generation are as follows:
{
" name ": " you are good, and hello "
" moreName ": " you are good hello you good hello "
}
The method for all generation designated data structures that each template includes in the above citing constitutes the designated data structure Adapter structure script.
In step S43, server matching result be it fails to match when, can also in time based on interface adaptation document obtain with The corresponding data structure of targeted fit interface, to generate corresponding adapter structure script;Synkaingenesis at adapter structure script It can be used as prototype structure script to store in time in adaptable interface database, expand the usability of adaptable interface database, mention The utilizability of the newly-increased adapter structure script of height.
For step S41 into S43, server can be based on each prototype structure script being present in adaptable interface database Data structure corresponding with coupling data is matched, and it is corresponding based on the corresponding data structure building of coupling data to save scene The time of adapter structure script, and improve the utilization rate of generated prototype structure script.Server can obtain in time matching at The prototype structure script of function is subsequent raw based on the adapter structure script as the corresponding adapter structure script of targeted fit interface Standby technical foundation is assured at corresponding adaptation data.Server can also be based on interface when matching result is that it fails to match in time It is adapted to document and obtains data structure corresponding with targeted fit interface, to generate corresponding adapter structure script;Synkaingenesis at Adapter structure script can be used as prototype structure script and stored in adaptable interface database in time, expand adaptable interface database Usability, improve the utilizability of newly-increased adapter structure script.
In one embodiment, as shown in figure 4, in step S43, i.e., document is adapted to based on interface, generation connects with targeted fit The corresponding adapter structure script of mouth, specifically comprises the following steps:
S431. document is adapted to based on interface, obtains target data structure corresponding with targeted fit interface.
Wherein, target data structure is corresponding with the data structure of the coupling data of the input of targeted fit interface, is deposited Store up the data structure in interface adaptation document.
Specifically, server can give each targeted fit interface setting interface ID, and server can be existed based on same interface ID The explanation of the data structure of the input data of corresponding targeted fit interface is found in interface adaptation document.
In step S431, server can be adapted in document in interface by interface ID and match corresponding target data knot Structure is based on the target data structure for subsequent server and generates corresponding adapter structure script preparation techniques basis.
S432. at least one data structure building method corresponding with target data structure is constructed, at least one is encapsulated Data structure building method forms adapter structure script.
Specifically, server can construct adapter structure script corresponding with target data structure based on MOCK test platform, The realization process of specific configuration may include following steps:
Step 1. obtains building method corresponding with target data structure, and building method is claimed as virtual class virtual。
The method that step 2. construction generates target data structure, the method for generating target data structure is claimed as virtually Class.
Step 3. encapsulates each virtual class and forms adapter structure script, enables virtual Similar integral adapter structure script.
In step S432, server can construct automatically adaptation knot corresponding with target data structure based on MOCK test platform Structure script, it is convenient and efficient.
Into S432, server can be adapted in document by interface ID in interface and match corresponding number of targets step S431 According to structure, the target data structure is based on for subsequent server and generates corresponding adapter structure script preparation techniques basis.Service Device can construct automatically adapter structure script corresponding with target data structure based on MOCK test platform, convenient and efficient.
In one embodiment, item file library includes interface adaptation document.As shown in figure 5, existing before step S10 Before obtaining the data adaptation request that test lead is sent, being somebody's turn to do the adaptation method based on test further includes following steps:
S101. in scan item library each module Data Input Interface, each data of coupling data will be received Input interface is determined as default adaptable interface.
Wherein, default adaptable interface is all Data Input Interfaces for receiving coupling data in item file library.
Specifically, in order to provide corresponding adapter structure script to test lead in time, server can be newly added in acquisition It behind item file library, that is, scans the item file library and obtains each default adaptable interface, be based on each default adaptation to subsequent Interface generates corresponding preset data structure.
In step S101, server can generate in time corresponding preset data structure to each default adaptable interface.Work as clothes It, should all can be corresponding in the item file library after the data adaptation that business device receives the carryings module I D of test lead transmission is requested Matching obtains the corresponding adapter structure script of all targeted fit interfaces in adaptable interface database (can also obtain adaptation in time Data packet), it further increases test lead and obtains the rate of adaptation data packet, while improving the automatic adaptation ability of server.
S102. based on interface adaptation document and each default adaptable interface, it is corresponding pre- to obtain each default adaptable interface If data structure.
Wherein, preset data structure is the corresponding data structure of input data of default adapter structure.
This step is identical as the realization process of step S431, and in order to avoid repeating, details are not described herein again.
In step S102, server can be corresponding default based on each default adapter structure is matched in interface adaptation document Data structure is based on the corresponding adapter structure script preparation techniques basis of each preset data structural generation for subsequent server.
S103. the corresponding adapter structure script of each preset data structure is generated, each adapter structure script is saved in In adaptable interface database.
This step is identical as the realization process of step S432, and in order to avoid repeating, details are not described herein again.
In step S103, server can be constructed automatically corresponding with each preset data structure suitable based on MOCK test platform Distribution structure script, it is convenient and efficient.
For step S101 into S103, server can generate in time corresponding preset data knot to each default adaptable interface Structure.It, should all can be in the item file after data adaptation that server receives the carryings module I D of test lead transmission is requested In the corresponding adaptable interface database in library matching obtain the corresponding adapter structure script of all targeted fit interfaces (also can be timely Obtain adaptation data packet), it further increases test lead and obtains the rate of adaptation data packet, while improving the automatic adaptation of server Ability.Server can be adapted in document based on interface and match the corresponding preset data structure of each default adapter structure, after being Continuous server is based on the corresponding adapter structure script preparation techniques basis of each preset data structural generation.Server can be based on MOCK test platform constructs adapter structure script corresponding with each preset data structure automatically, convenient and efficient.
In one embodiment, as shown in fig. 6, after step s 102, i.e., to obtain each default adaptable interface corresponding After preset data structure, the adaptation method based on test further include:
S1021. the format comparing result of any two preset data structure is obtained, if format comparing result is format phase Together, then any one preset data structure is deleted, using any one preset data structure of reservation as target association structure.
Wherein, format comparing result is the comparing result of the data composition of two preset data structures, including identical and not Together.For example, preset data structure 1 are as follows: time-place-personage;Preset data structure 2 are as follows: place-when m- personage, then in advance If the comparing result of data structure 1 and preset data structure 2 is difference.
It is to be appreciated that each corresponding preset data structure of default adaptable interface.When one preset data knot of deletion It, should will in order to not influence the usability and linkability of the corresponding default adaptable interface of preset structure of the deletion when structure Any one the preset data structure retained is as target association structure, to default adaptation corresponding with the preset structure of the deletion Interface is associated.
In step S1021, server can delete duplicate preset data structure, simplify the adaptation of preset data structure composition Interface database, reduction data are lengthy and tedious, can quickly find present count corresponding in preset data interface conducive to subsequent server According to structure.
S1022. the corresponding default adaptable interface of any one preset data structure of deletion is obtained as target association interface, Based on adaptable interface database, target association interface and target association structure are associated.
Specifically, the corresponding default adaptable interface of any one preset data structure of deletion is illustrated as target association Interface is based on adaptable interface database, the process that target association interface and target association structure are associated:
1. the corresponding default adaptable interface of preset data structure A is a;The corresponding default adaptable interface of preset data structure B For b;
2. server is deleted default when the format comparing result of preset data structure A and preset data structure B are identical Data structure A, at this point, server can be using the corresponding default adaptable interface a of preset data structure A as target association interface, it will The preset data structure B of reservation is as target association structure;
3. preset data structure B and default adaptable interface are associated for a, namely closed at this time with preset data structure B The default adaptable interface of connection includes a and b.
In step S1022, server can be in time by the corresponding default adaptable interface of any one preset data structure of deletion It is associated with new target association structure, ensures that each default adaptable interface can be all matched to pair in adaptable interface database The preset data structure answered matches corresponding adaptation number convenient for the subsequent data adaptation request based on test lead of server in time According to packet.
For step S1021 into S1022, server can delete duplicate preset data structure, simplify preset data structure structure At adaptable interface database, it is lengthy and tedious to reduce data, can quickly find conducive to subsequent server corresponding in preset data interface Preset data structure.Server can be in time by the corresponding default adaptable interface of any one preset data structure of deletion and new Target association structure is associated, and it is corresponding pre- to ensure that each default adaptable interface can be all matched in adaptable interface database If data structure, corresponding adaptation data packet is matched in time convenient for the subsequent data adaptation request based on test lead of server.
In one embodiment, item file library includes interface more new description.As shown in fig. 7, existing after step S60 After adaptation data packet is sent to test lead, the adaptation method based on test further include:
S601. the interface more new description for carrying default adaptable interface is read in timing, is based on interface more new description, is obtained default The corresponding more new data structure of adaptable interface.
Wherein, interface more new description is that the input data to each input data interface corresponding with item file library carries out The explanation of update.For example, the data structure of the corresponding input data of present input data interface A is XXX -1980, after change The data structure of the corresponding input data of input data interface A is 1980-XXX.Above-mentioned changed content should be by developer or survey Examination personnel are recorded in time in interface more new description.
Specifically, server can read the interface more new description for carrying default adaptable interface by setting timed task triggering Instruction and connect based on the default adaptation that interface more new description generates the update in time with obtaining the default adaptable interface updated The corresponding more new data structure of mouth.
In step S601, server can read interface more new description in time, obtain the default corresponding update number of adaptable interface According to structure, to keep the real-time property and reliability of adaptable interface database in server.
S602. by the corresponding data structure of each adapter structure script in more new data structure and adaptable interface database It is matched, obtains matching result.
Specifically, even if the data structure of the input data of some default adaptable interface is updated, but updated data Structure is it is possible to be stored in adaptable interface database, and therefore, server also copes with more new data structure and adaptable interface Each adapter structure script in database carries out structure matching, to obtain matching result.If more new data structure connects in adaptation For when it fails to match, server can be based on updating the corresponding adaptation data structure of data structure building, with section in mouth database The computing resource for saving server, avoids repetitive operation.
In step S602, server can be by each adapter structure script in more new data structure and adaptable interface database Corresponding data structure is matched, and to save the computing resource of server, avoids repetitive operation.
If S603. matching result is successful match, obtains and update the successful adapter structure script of data structure matching As target association script, the incidence relation of default adaptable interface and current adapter structure script is deleted, default adaptation is connect Mouth is associated with target association script.
Specifically, when the corresponding data knot of each adapter structure script in more new data structure and adaptable interface database Structure is matched, matching result be successful match when, illustrate more new data structure in adaptable interface database with presence, this When, can will more new data structure in the database matched adapter structure script as target association script and more new data structure Corresponding default adaptable interface is associated.
In step S603, server can connect to the corresponding default adaptation of more new data structure that matching result is successful match Mouth establishes new incidence relation, and the adapter structure script without generating new is associated again, can be simplified in adaptable interface database Incidence relation, reduce data redundancy.
For step S601 into S603, server can read interface more new description in time, and it is corresponding to obtain default adaptable interface More new data structure, to keep the real-time property and reliability of adaptable interface database in server.Server can will update The corresponding data structure of each adapter structure script in data structure and adaptable interface database is matched, with the service of saving The computing resource of device, avoids repetitive operation.Server can be corresponding to the more new data structure that matching result is successful match Default adaptable interface establishes new incidence relation, and the adapter structure script without generating new is associated again, can simplify adaptation and connect Incidence relation in mouth database, reduces data redundancy.
In adaptation method provided in this embodiment based on test, carrying module I D's that server is sent by test lead Data adaptation request can be obtained the targeted fit interface being adapted to based on module I D, and pass through adaptable interface database In match corresponding adapter structure script in time, which is sent back into test lead and is tested.Server without The data structure of the input data of targeted fit interface need to be analyzed, can directly match and to have saved in adaptable interface database Adapter structure script saves live adaptation and generates the time of corresponding data structure, improves server offer and connects with targeted fit The efficiency of the corresponding virtual objects of mouth, can also improve testing efficiency simultaneously.
Further, server can be based on each prototype structure script and the coupling being present in adaptable interface database The corresponding data structure of data is matched, and saves scene based on the corresponding adaptation knot of the corresponding data structure building of coupling data The time of structure script, and improve the utilization rate of generated prototype structure script.Server can obtain the original of successful match in time Beginning structure script is corresponded to as the corresponding adapter structure script of targeted fit interface for subsequent generated based on the adapter structure script Adaptation data assure standby technical foundation.Server, can also be in time based on interface adaptation text when matching result is that it fails to match Shelves obtain data structure corresponding with targeted fit interface, to generate corresponding adapter structure script;Synkaingenesis at adaptation Structure script can be used as prototype structure script and be stored in adaptable interface database in time, expand fitting for adaptable interface database With property, the utilizability of newly-increased adapter structure script is improved.
Further, server can be adapted in document in interface by interface ID and match corresponding target data structure, The target data structure, which is based on, for subsequent server generates corresponding adapter structure script preparation techniques basis.Server can be based on MOCK test platform constructs adapter structure script corresponding with target data structure automatically, convenient and efficient.
Further, server can generate in time corresponding preset data structure to each default adaptable interface.Work as service Device receive test lead transmission carryings module I D data adaptation request after, should all can the item file library it is corresponding fit Obtain the corresponding adapter structure script of all targeted fit interfaces with matching in interface database (can also obtain adaptation number in time According to packet), it further increases test lead and obtains the rate of adaptation data packet, while improving the automatic adaptation ability of server.Service Device can be subsequent server base based on the corresponding preset data structure of each default adapter structure is matched in interface adaptation document In the corresponding adapter structure script preparation techniques basis of each preset data structural generation.Server can be based on MOCK test platform Automatically construction adapter structure script corresponding with each preset data structure, it is convenient and efficient.
Further, server can delete duplicate preset data structure, and the adaptation for simplifying preset data structure composition connects Mouth database, reduction data are lengthy and tedious, can quickly find preset data corresponding in preset data interface conducive to subsequent server Structure.Server can be in time by the corresponding default adaptable interface of any one preset data structure of deletion and new target association knot Structure is associated, and ensures that each default adaptable interface can all be matched to corresponding preset data knot in adaptable interface database Structure matches corresponding adaptation data packet convenient for the subsequent data adaptation request based on test lead of server in time.
Further, server can read interface more new description in time, obtain the default corresponding more new data of adaptable interface Structure, to keep the real-time property and reliability of adaptable interface database in server.Server can will more new data structure Data structure corresponding with each adapter structure script in adaptable interface database is matched, to save the calculating of server Resource avoids repetitive operation.Server can be the corresponding default adaptation of more new data structure of successful match to matching result Interface establishes new incidence relation, and the adapter structure script without generating new is associated again, can simplify adaptable interface database In incidence relation, reduce data redundancy.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of adaptive device based on test is provided, the adaptive device based on test and above-mentioned reality are somebody's turn to do The adaptation method in example based on test is applied to correspond.As shown in figure 8, should include obtaining adaptation to ask based on the adaptive device of test Modulus block 10 is based on module I D-module 20, scanning input interface module 30, obtains structure script module 40, generates adaptation data Packet module 50 and transmission adaptation data packet module 60.Detailed description are as follows for each functional module:
Configuration Request module 10 is obtained, for obtaining the data adaptation request of test lead transmission, data adaptation request includes Module I D.
Based on module I D-module 20, for being based on module I D, it is corresponding to be tested that module I D is obtained in item file library Module.
Input interface module 30 is scanned, for scanning the Data Input Interface of module to be tested, if Data Input Interface Input data is coupling data, then using the corresponding Data Input Interface of coupling data as targeted fit interface.
Structure script module 40 is obtained, for being based on the corresponding adaptable interface database in item file library, it is suitable to obtain target With the corresponding adapter structure script of interface.
Adaptation data packet module 50 is generated, for being based on targeted fit interface and adapter structure script, generates adaptation data Packet.
Adaptation data packet module 60 is sent, for adaptation data packet to be sent to test lead.
Preferably, obtaining structure script module 40 includes obtaining matching result unit 41, successful match unit 42 and matching Failure unit 43.
Matching result unit 41 is obtained, for being based on the corresponding adaptable interface database in item file library, obtains each original Beginning structure script matches the corresponding data structure of each prototype structure script data structure corresponding with coupling data, Obtain matching result.
Successful match unit 42 makees the prototype structure script of successful match if being successful match for matching result For the corresponding adapter structure script of targeted fit interface.
It fails to match unit 43 obtains the corresponding interface of targeted fit interface if being that it fails to match for matching result It is adapted to document, document is adapted to based on interface, generates adapter structure script corresponding with targeted fit interface.
Preferably, it fails to match, and unit includes obtaining object construction subelement and formation structural feet subunit.
Object construction subelement is obtained, for being adapted to document based on interface, obtains mesh corresponding with targeted fit interface Mark data structure.
Structural feet subunit is formed, for constructing at least one data structure building corresponding with target data structure Method encapsulates at least one data structure building method and forms adapter structure script.
Preferably, should based on test adaptive device further include determining preset interface module, obtain preset structure module and Generate adaptation script module.
It determines preset interface module, for the Data Input Interface of each module in scan item library, coupling will be received The each Data Input Interface for closing data is determined as default adaptable interface.
Preset structure module is obtained, for obtaining each default based on interface adaptation document and each default adaptable interface The corresponding preset data structure of adaptable interface.
Adaptation script module is generated, it, will be each suitable for generating the corresponding adapter structure script of each preset data structure Distribution structure script is saved in adaptable interface database.
Preferably, being somebody's turn to do the adaptive device based on test further includes obtaining comparing result module and deletion data structure block.
Comparing result module is obtained, for obtaining the format comparing result of any two preset data structure, if format pair It is that format is identical than result, then any one preset data structure is deleted, using any one preset data structure of reservation as target Association structure.
Data structure block is deleted, is made for obtaining the corresponding default adaptable interface of any one preset data structure deleted For target association interface, it is based on adaptable interface database, target association interface and target association structure are associated.
Preferably, should adaptive device based on test further include preferably, should adaptive device based on test further include, With data structure block and obtain associated script module.
It reads and updates specification module, the interface more new description for carrying default adaptable interface is read for timing, be based on interface More new description obtains the default corresponding more new data structure of adaptable interface.
Matched data construction module, for by each adapter structure foot in more new data structure and adaptable interface database This corresponding data structure is matched, and matching result is obtained.
Obtain associated script module, if for matching result be successful match, obtain with update data structure matching at The adapter structure script of function is associated with as target association script, the default adaptable interface of deletion with current adapter structure script System, default adaptable interface and target association script are associated.
Specific restriction about the adaptive device based on test may refer to above for the adaptation method based on test Restriction, details are not described herein.Modules in the above-mentioned adaptive device based on test can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal structure chart It can be as shown in Figure 9.The computer equipment includes processor, memory, network interface and the data connected by system bus Library.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non- Volatile storage medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and database. The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The computer is set Standby database is used to store the data for needing to save in the adaptation method based on test.The network interface of the computer equipment is used for It is communicated with external terminal by network connection.It is a kind of suitable based on test to realize when the computer program is executed by processor Method of completing the square.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory and can The computer program run on a processor, processor realize adaptation of the above-described embodiment based on test when executing computer program Method, such as S10 shown in Fig. 2 to step S60.It is based on alternatively, processor is realized in above-described embodiment when executing computer program The function of each module/unit of the adaptive device of test, such as module 10 shown in Fig. 8 is to the function of module 60.To avoid repeating, Details are not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored thereon with Above-described embodiment data calling method is realized when sequence is executed by processor, such as S10 shown in Fig. 2 to step S60.Alternatively, the meter The function of each module/unit in data call device in above-mentioned apparatus embodiment, example are realized when calculation machine program is executed by processor Module 10 as shown in Figure 8 to module 60 function.To avoid repeating, details are not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or Replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all include Within protection scope of the present invention.

Claims (10)

1. a kind of adaptation method based on test characterized by comprising
The data adaptation request that test lead is sent is obtained, the data adaptation request includes module I D;
Based on the module I D, the corresponding module to be tested of the module I D is obtained in item file library;
The Data Input Interface of the module to be tested is scanned, if the input data of the Data Input Interface is coupling data, Then using the corresponding Data Input Interface of the coupling data as targeted fit interface;
Based on the corresponding adaptable interface database in the item file library, the corresponding adapter structure of the targeted fit interface is obtained Script;
Based on the targeted fit interface and the adapter structure script, adaptation data packet is generated;
The adaptation data packet is sent to test lead.
2. as described in claim 1 based on the adaptation method of test, which is characterized in that described to be based on the item file library pair The adaptable interface database answered obtains the corresponding adapter structure script of the targeted fit interface, comprising:
Based on the corresponding adaptable interface database in the item file library, each prototype structure script is obtained, by each original The corresponding data structure of beginning structure script data structure corresponding with the coupling data is matched, and matching result is obtained;
If the matching result is successful match, the prototype structure script of successful match is connect as the targeted fit The corresponding adapter structure script of mouth;
If the matching result is that it fails to match, the corresponding interface adaptation document of the targeted fit interface is obtained, institute is based on Interface adaptation document is stated, adapter structure script corresponding with the targeted fit interface is generated.
3. as claimed in claim 2 based on the adaptation method of test, which is characterized in that described based on interface adaptation text Shelves generate adapter structure script corresponding with the targeted fit interface, comprising:
It is adapted to document based on the interface, obtains target data structure corresponding with the targeted fit interface;
At least one data structure building method corresponding with the target data structure is constructed, at least one described number is encapsulated Adapter structure script is formed according to structure generation method.
4. as described in claim 1 based on the adaptation method of test, which is characterized in that the item file library includes that interface is suitable With document;
Before obtaining the data adaptation request that test lead is sent, the adaptation method based on test further include:
The Data Input Interface for scanning each module in the item file library connects each data for receiving coupling data input Mouth is determined as default adaptable interface;
It is adapted to document and each default adaptable interface based on interface, it is corresponding default to obtain each default adaptable interface Data structure;
The corresponding adapter structure script of each preset data structure is generated, each adapter structure script is saved in institute It states in adaptable interface database.
5. as claimed in claim 4 based on the adaptation method of test, which is characterized in that each described default suitable in the acquisition After the corresponding preset data structure of interface, the adaptation method based on test further include:
The format comparing result of preset data structure described in any two is obtained, if the format comparing result is that format is identical, Any one described preset data structure is then deleted, using either one or two of reservation preset data structure as target association structure;
Either one or two of the deletion corresponding default adaptable interface of the preset data structure is obtained as target association interface, is based on institute Adaptable interface database is stated, the target association interface and the target association structure are associated.
6. as claimed in claim 4 based on the adaptation method of test, which is characterized in that the item file library include interface more New description;
It is described the adaptation data packet is sent to test lead after, the adaptation method based on test further include:
The interface more new description for carrying default adaptable interface is read in timing, is based on the interface more new description, is obtained described default The corresponding more new data structure of adaptable interface;
By the corresponding data structure of each adapter structure script in the more new data structure and the adaptable interface database It is matched, obtains matching result;
If matching result is successful match, obtain with the successful adapter structure script of update data structure matching as mesh Associated script is marked, the incidence relation of the default adaptable interface and current adapter structure script is deleted, by the default adaptation Interface is associated with the target association script.
7. a kind of adaptive device based on test characterized by comprising
Configuration Request module is obtained, for obtaining the data adaptation request of test lead transmission, the data adaptation request includes mould Block ID;
It is corresponding to be measured that the module I D is obtained in item file library for being based on the module I D based on module I D-module Die trial block;
Input interface module is scanned, for scanning the Data Input Interface of the module to be tested, if the Data Input Interface Input data be coupling data, then using the corresponding Data Input Interface of the coupling data as targeted fit interface;
Structure script module is obtained, for being based on the corresponding adaptable interface database in the item file library, obtains the target The corresponding adapter structure script of adaptable interface;
Adaptation data packet module is generated, for being based on the targeted fit interface and the adapter structure script, generates adaptation number According to packet;
Adaptation data packet module is sent, for the adaptation data packet to be sent to test lead.
8. as claimed in claim 7 based on the adaptive device of test, which is characterized in that the acquisition structure script module packet It includes:
Matching result unit is obtained, for being based on the corresponding adaptable interface database in the item file library, is obtained each original Structure script carries out the corresponding data structure of each prototype structure script data structure corresponding with the coupling data Matching obtains matching result;
Successful match unit, if being successful match for the matching result, by the prototype structure script of successful match As the corresponding adapter structure script of the targeted fit interface;
It fails to match unit obtains that the targeted fit interface is corresponding to be connect if being that it fails to match for the matching result Mouth adaptation document, is adapted to document based on the interface, generates adapter structure script corresponding with the targeted fit interface.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Based on the adaptation method of test described in 6 any one.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization adaptation side based on test as described in any one of claim 1 to 6 when the computer program is executed by processor Method.
CN201910047142.6A 2019-01-18 2019-01-18 Adaptation method, device, computer equipment and storage medium based on test Pending CN109857656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910047142.6A CN109857656A (en) 2019-01-18 2019-01-18 Adaptation method, device, computer equipment and storage medium based on test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910047142.6A CN109857656A (en) 2019-01-18 2019-01-18 Adaptation method, device, computer equipment and storage medium based on test

Publications (1)

Publication Number Publication Date
CN109857656A true CN109857656A (en) 2019-06-07

Family

ID=66895246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910047142.6A Pending CN109857656A (en) 2019-01-18 2019-01-18 Adaptation method, device, computer equipment and storage medium based on test

Country Status (1)

Country Link
CN (1) CN109857656A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527661A (en) * 2020-12-17 2021-03-19 平安消费金融有限公司 Data script verification method and device and computer equipment
CN113282490A (en) * 2021-05-17 2021-08-20 深圳Tcl新技术有限公司 Intelligent door lock testing method and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880543A (en) * 2011-04-18 2013-01-16 埃森哲环球服务有限公司 Test data supply chain manager for an integrated testing platform
CN105933887A (en) * 2016-04-20 2016-09-07 百度在线网络技术(北京)有限公司 Adaption method and device applied to different dual-card smartphones
CN106780222A (en) * 2017-01-12 2017-05-31 陈星� Analog synthesis achievement preparation method and device
WO2017130087A1 (en) * 2016-01-25 2017-08-03 Typemock Ltd. Methods and systems for isolating software components
CA3023644A1 (en) * 2016-04-01 2017-10-05 Incontext Solutions, Inc. Virtual reality platform for retail environment simulation
EP3301580A1 (en) * 2016-09-30 2018-04-04 Wipro Limited System for automatically generating test data for testing applications
CN108647143A (en) * 2018-05-09 2018-10-12 平安普惠企业管理有限公司 MOCK interface test methods, device, computer equipment and storage medium
CN108733527A (en) * 2017-04-24 2018-11-02 北京京东尚科信息技术有限公司 System, method and apparatus for test server function
CN108897691A (en) * 2018-06-29 2018-11-27 百度在线网络技术(北京)有限公司 Data processing method, device, server and medium based on interface analog service

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880543A (en) * 2011-04-18 2013-01-16 埃森哲环球服务有限公司 Test data supply chain manager for an integrated testing platform
WO2017130087A1 (en) * 2016-01-25 2017-08-03 Typemock Ltd. Methods and systems for isolating software components
CA3023644A1 (en) * 2016-04-01 2017-10-05 Incontext Solutions, Inc. Virtual reality platform for retail environment simulation
CN105933887A (en) * 2016-04-20 2016-09-07 百度在线网络技术(北京)有限公司 Adaption method and device applied to different dual-card smartphones
EP3301580A1 (en) * 2016-09-30 2018-04-04 Wipro Limited System for automatically generating test data for testing applications
CN106780222A (en) * 2017-01-12 2017-05-31 陈星� Analog synthesis achievement preparation method and device
CN108733527A (en) * 2017-04-24 2018-11-02 北京京东尚科信息技术有限公司 System, method and apparatus for test server function
CN108647143A (en) * 2018-05-09 2018-10-12 平安普惠企业管理有限公司 MOCK interface test methods, device, computer equipment and storage medium
CN108897691A (en) * 2018-06-29 2018-11-27 百度在线网络技术(北京)有限公司 Data processing method, device, server and medium based on interface analog service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王游;冯曙明;何金陵;方泉;: "基于脚本的流程自适应自动化测试研究", 计算机与现代化, no. 02, 15 February 2015 (2015-02-15) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527661A (en) * 2020-12-17 2021-03-19 平安消费金融有限公司 Data script verification method and device and computer equipment
CN112527661B (en) * 2020-12-17 2024-04-26 平安消费金融有限公司 Verification method and device of data script and computer equipment
CN113282490A (en) * 2021-05-17 2021-08-20 深圳Tcl新技术有限公司 Intelligent door lock testing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN109189374B (en) Object structure code generation method and system based on object reference chain
CN110162509A (en) File comparison method, device, computer equipment and storage medium
CN110781214A (en) Database reading and writing method and device, computer equipment and storage medium
CN107689976B (en) File transmission method and device
US20150012732A1 (en) Method and device for recombining runtime instruction
CN109240666B (en) Function calling code generation method and system based on call stack and dependent path
CN110362301B (en) Processing method for terminal application behavior reflection
CN112035110B (en) Parameter adjusting method, device, client and storage medium
CN108958843A (en) Plug-in unit construction method, system, equipment and medium based on lightweight script
CN107766252A (en) Test script automated execution method, apparatus, equipment and storage medium
CN108492005A (en) Project data processing method, device, computer equipment and storage medium
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN110489421A (en) Date storage method, device, computer readable storage medium and computer equipment
CN110221845A (en) Using dispositions method, device, equipment and medium
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN109857656A (en) Adaptation method, device, computer equipment and storage medium based on test
CN112306471A (en) Task scheduling method and device
CN110928777B (en) Test case processing method, device, equipment and storage medium
CN109768962B (en) Firewall strategy generation method and device, computer equipment and storage medium
CN101136780A (en) Method, system to obtain user command information, and user command registered device
CN114138549A (en) Data backup and recovery method based on kubernets system
CN112115041A (en) Dynamic point burying method and device for application program, storage medium and computer equipment
CN110347448B (en) Method for constructing runtime model of terminal application behavior
CN112130889A (en) Resource management method and device, storage medium and electronic device
CN110113384A (en) Network request processing method, device, computer equipment and storage medium

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