The transplantation method and system of a kind of software test platform
Technical field
The present invention relates to a kind of transplanting of software test platform, more particularly to a kind of transplantation method of software test platform
And system.
Background technology
Software test platform is one and has made for client and integrate the characteristics such as high efficiency, low cost, is greatly shortened
The software product testing cycle, and product quality can be promoted, while the advantage of virtualization can also be given full play to, reduce physics work
Make the quantity stood and reduce the IT system energy consumption of client, improve the software work space of space service efficiency.Software test is put down
Platform includes a variety of elements, framework, flow, standard, mechanism and instrument etc..Wherein, framework includes having in test system
The various Roles and corresponding Responsibilities closed.Flow includes testing relevant various flows, such as test item
Mesh flow, test and management flow etc..Standard is included in the various standards tested and should followed in relevant various flows.Mechanism bag
Include various relevant mechanism, such as communication mechanism, feedback mechanism etc..Instrument includes being used to implement the backman of work in every and flow
Tool, such as automated test tool, test and management instrument etc..
User is transplanted to sometimes for by entire software test platform on other computers.The transplanting of software test platform is led to
It often not only needs to transplant software test platform in itself, but also needs to be relied on software test platform operation various soft
Part is transplanted, and is made some accordingly and be set or configured, could allow transplanting software test platform on a target computer just
Normal operation.A kind of relatively advanced implementation is that entire software test platform and its various softwares relied on are passed through certain
A little installation kit tools are integrated and are fabricated to an installation kit, then run this installation kit on the computer for needing to transplant,
It completes this time to transplant by way of decompressing, changing environmental variance and registration table.
The transplanting mode of existing software test platform is to be realized by way of decompressing or installing, some its institute according to
Bad software must be installed and configured in running environment.This transplanting mode must assure that the software test platform and its institute according to
Rely the installation of software, it is more than to operate relatively cumbersome (need to do different operating system different configurations), together
When be likely to occur and conflict with other local softwares, the installation and operation for causing platform fail.Therefore, how to find a kind of soft
The transplantation method of part test platform allows the transplanting of software test platform to become simple and successfully, becomes those skilled in the art
Urgent problem to be solved.
The content of the invention
In view of the foregoing deficiencies of prior art, it is an object of the invention to provide a kind of transplanting of software test platform
Method and system, for solving the problems, such as that the transplanting of software test platform in the prior art is complicated and easily fails.
In order to achieve the above objects and other related objects, the present invention provides a kind of transplantation method of software test platform, institute
Stating the transplantation method of software test platform includes:Creating one includes the test execution of copy of the software test platform to be transplanted
System;All library files that the software test platform to be transplanted is relied on are copied in the test execution system, and
The calling of library file of the software test platform copy to being relied in the test execution system is redirected to described
The library file of test execution system;The test execution system is packaged into executable file.
Preferably, the software test platform includes the software test platform based on Tcl/Tk.
Preferably, the test execution system for creating a copy for including the software test platform to be transplanted is specific
Realization includes:Include the test of the copy of the software test platform to be transplanted using TclKit and SDX instrument creations one
Execution system.
Preferably, the software test platform copy by the test execution system is to the library file that is relied on
The specific implementation of the calling library file that is redirected to the test execution system include:By the institute in the test execution system
It is revised as the library file road of the test execution system in the calling path for stating library file of the software test platform copy to being relied on
Footpath.
Preferably, by the specific implementation that the test execution system is packaged into executable file include the use of TclKit with
The test execution system is packaged into executable file by SDX instruments.
A kind of implant system of software test platform, the implant system of the software test platform include:Test execution system
System creation module, for creating the test execution system of a copy for including the software test platform to be transplanted;Library file adds
Enter module, be connected with the test execution system creation module, the software test platform to be transplanted is relied on all
Library file is copied in the test execution system, and by the software test platform copy pair in the test execution system
The calling of the library file relied on is redirected to the library file of the test execution system;Executable file generation module, with survey
Examination performs system creation module and the library file adds in module and is connected, for the test execution system to be packaged into and can hold
Style of writing part.
Preferably, the software test platform includes the software test platform based on Tcl/Tk.
Preferably, in the test execution system creation module, the establishment one includes the software test to be transplanted
The specific implementation of the test execution system of the copy of platform includes:Include described want using TclKit and SDX instrument creations one
The test execution system of the copy of the software test platform of transplanting.
Preferably, the software test platform copy by the test execution system is to the library file that is relied on
Calling the specific implementation for the library file for being redirected to the test execution system includes:By the described soft of the test execution system
It is revised as the library file path of the test execution system in the calling path of library file of the part test platform copy to being relied on.
Preferably, in the executable file generation module, the test execution system is packaged into executable file
Specific implementation include the use of TclKit and SDX instruments the test execution system be packaged into executable file.
As described above, the transplantation method and system of a kind of software test platform of the present invention, have the advantages that:Fortune
The executable file transplanted for software test platform can be very easily generated with technical solution provided by the invention, this can
Performing file can be with independent operating, it is no longer necessary to dependent on the software environment in operating system so that different software environments are not
There is any interference to the transplanting of software test platform again.After generating the executable file, it is only necessary to answer the executable file
Make and transplanting can be completed in object-computer, avoid in current software test platform to the installations of various institute's depended softwares and
Configuration allows the transplanting of software test platform to become very simple.
Description of the drawings
Fig. 1 is shown as a kind of transplantation method of software test platform and the method flow schematic diagram of system.
Fig. 2 is shown as a kind of transplantation method of software test platform and the system module schematic diagram of system.
Fig. 3 is shown as the software test platform of the prior art and hard disc of computer spatial relationship schematic diagram.
Fig. 4 is shown as a kind of transplantation method of software test platform and the executable file of system and hard disc of computer space
Relation schematic diagram.
Fig. 5 is shown as the software test platform of the prior art and operating system software environmental concerns schematic diagram.
Fig. 6 is shown as software test platform and operation after a kind of transplantation method of software test platform and the transplanting of system
System software environmental concerns schematic diagram.
Fig. 7 be shown as a kind of transplantation method of software test platform and the establishment of system including the software test to be transplanted
The test execution system structure diagram of platform.
Fig. 8 is shown as a kind of transplantation method of software test platform and the test execution system added after library file of system
System structure diagram.
Fig. 9 is shown as software test platform in a kind of transplantation method of software test platform and the test execution system of system
Copy is to the schematic diagram of the redirection in the storehouse to be called.
Component label instructions
A kind of 1 implant system of software test platform
11 test execution system creation modules
12 library files add in module
13 executable file generation modules
S1~S3 steps
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way,
Then in schema only display with it is of the invention in related component rather than component count, shape and size during according to actual implementation paint
System, kenel, quantity and the ratio of each component can be a kind of random change during actual implementation, and its assembly layout kenel also may be used
It can be increasingly complex.
As shown in Figure 1, in one embodiment, the present invention provides a kind of transplantation method of software test platform, described soft
The transplantation method of part test platform includes:
Step S1, creating one includes the test execution system of copy of the software test platform to be transplanted.Specifically, create
The test execution system for building a copy for including the software test platform to be transplanted can be there are two types of mode:One kind is first to create
Then the test execution file solution is pressed into test execution system by one test execution file, by the software to be transplanted
Test platform is copied in the test execution system.Another kind be it is direct create one and include the software test to be transplanted put down
Then the test execution file solution is pressed into test execution system by the test execution file of platform copy.
All library files that the software test platform to be transplanted is relied on are copied to the test by step S2
In execution system, and by calling of the software test platform copy to the library file relied in the test execution system
It is redirected to the library file of the test execution system.Specifically, the software test platform to be transplanted is relied on
All library files copy in the specified directory of the test execution system;It and will be described soft in the test execution system
The calling of library file of the part test platform copy to being relied on is redirected to the library file of the test execution system.The test
The calling of library file of the software test platform copy to being relied in execution system is redirected to the test execution system
The specific implementation of the library file of system includes:By the software test platform in the test execution system to the library file that is relied on
Path is called to be revised as the library file path in the test execution system.In one embodiment, can be transplanted by described in
All library files for being relied on of the software test platform copy to the test execution system and software test platform copy
In the catalogue at place, and the calling path of library file of the software test platform in the test execution system to being relied on is repaiied
It is changed to path of the library file in the test execution system.The library file is usually the software that software test platform is relied on
In library file, software test platform usually requires to rely on multiple softwares, that is to say, that software test platform needs to rely on multiple
The library file of software, i.e. software test platform need to rely on multiple library files.
The test execution system is packaged into executable file by step S3.Specifically, entire test execution system is beaten
It is bundled into an executable file.Include the software test platform copy to be transplanted and the software to be transplanted in test execution system
The library file that test platform is relied on.Therefore, this executable file entire test execution system being packaged into can be direct
It performs, and as one software test platform of effect and normal operation performed.At this moment, it is only necessary to by this executable file
It copies in the object-computer to be transplanted, it is possible to directly run, and obtain in object-computer and normal operation one
The same result of the software test platform to be transplanted.
In one embodiment, the software testing system to be transplanted is the software testing system based on Tcl/Tk, transplanting
Substance include create a test execution system after, by test environment (Tcl/Tk, platform institute depended software library file with
And the setting of these files environmental variance in an operating system) and test platform transplanting enter, most entire test execution at last
System is packaged into an executable file so that all softwares that interdepend integrate, and when transplanting only need to transplant this can
Perform file.In the present invention, software test platform can be referred to as test platform.The software test platform of normal operation
Relation with computer system is referring to shown in Fig. 3 and Fig. 5.Fig. 4 and Fig. 6 shows the executable file transplanted using this method
The relation of (or test execution system) and computer system.
In one embodiment, the transplanting of software test platform, which is realized, needs by means of two instruments:One is TclKit,
The Tcl/Tk interpreters of mono- monofile of Tcl, and SDX is a strapping tool, can be packaged into the file based on Tcl/Tk
Test execution file.The software test platform Fast Compression transplanted generation one will be needed by the qwrap orders of TclKit and SDX
The test execution file solution of generation is pressed out, at this time can be obtained by corresponding test execution system by a test execution file
System.The structure for decompressing obtained test execution system is shown in Figure 7.Wherein, catalogue file folder XXX.vfs is test execution system
The root of system placed the file of software test platform under file lib;Main.tcl is entire test execution system
Principal function.Then, the library file for all depended softwares of software test platform that will be transplanted copies to the text of test execution system
Under part folder lib catalogues, at this point, the structure of test execution system is shown in Figure 8.Then, surveyed in the software of test execution system
It tries in platform copy, the calling path for the library file of software that modification software test platform copy relies on it, from original
Current system software environment is redirected in test execution system.I.e. in the software test platform copy of test execution system,
The library file for the software that software test platform copy relies on it calls path as the library file in test execution system
Path.As shown in figure 9, before redirection, the software test platform copy in test execution system (put down by the test i.e. in figure
Platform) when being called to the library file that is relied on, calling is that each software test platform under operating system software environment is relied on
The library file of software;Before redirection, software test platform copy in test execution system is to the library file tune that is relied on
Used time, calling be software test platform institute depended software in test execution system library file (platform institute i.e. in figure according to
Rely the library file of software).Finally, the test execution system is packaged into executable file using TclKit and SDX instruments.Tool
Body, using TclKit and SDX instruments by the software that is relied on including software test platform copy, software test platform copy
Library file, the test execution system of Tcl/Tk interpreters are packaged one executable file of generation.The executable file includes exe
File (Executable File).After the software test platform that will be transplanted makes and becomes an executable file, it is only necessary to
This executable file is copied in purpose computer, it is possible to complete transplanting.That is, this executable file can be straight
It is connected in purpose computer and runs.
As shown in Fig. 2, a kind of implant system 1 present invention additionally comprises software test platform.The software test platform
Implant system 1 can apply a kind of above-described transplantation method of software test platform.The implant system of software test platform
Including:Test execution system creation module 11, library file add in module 12 and executable file generation module 13.Wherein:
Test execution system creation module 11, for creating the survey of a copy for including the software test platform to be transplanted
Try execution system.Specifically, the software test platform to be transplanted includes the software test platform based on Tcl/Tk.Test is held
Row system creation module 11 can there are two types of the modes of establishment:One kind is first to create a test execution file, then by the survey
Examination performs file solution and is pressed into test execution system, and the software test platform to be transplanted is copied to the test execution system
In.Another kind is one test execution file for including the software test platform copy to be transplanted of direct establishment, then by institute
It states test execution file solution and is pressed into test execution system.In one embodiment, test execution system creation module 11 is by making
With TclKit and one test execution system for including the software test platform of SDX instrument creations.
Library file adds in module 12, is connected with the test execution system creation module 11, by the software to be transplanted
All library files that test platform is relied on are copied in the test execution system, and by the institute in the test execution system
The calling for stating library file of the software test platform copy to being relied on is redirected to the library file of the test execution system.Specifically
Ground, library file addition module 12 copy to all library files that the software test platform to be transplanted is relied on described
In the specified directory for the test execution system that test execution system creation module 11 generates;It and will be in the test execution system
The calling of library file of the software test platform copy to being relied on is redirected to the library file of the test execution system.Storehouse
File adds in module 12 by tune of the software test platform copy to the library file relied in the test execution system
Included with the specific implementation for the library file for being redirected to the test execution system:Library file adds in module 12 and holds the test
It is revised as the storehouse in the test execution system in the calling path of library file of the software test platform to being relied in row system
File path.In one embodiment, library file addition module 12 can be by the software test platform institute to be transplanted
All library files relied on copy to the test execution system and software test platform of the generation of test execution system creation module 11
In catalogue where copy, and by calling road of the software test platform in the test execution system to the library file relied on
It is revised as path of the library file in the test execution system in footpath.
Executable file generation module 13 adds in mould with the test execution system creation module 11 and the library file
Block 12 is connected, for the test execution system to be packaged into executable file.Specifically, executable file generation module 13 will
The test execution system and the library file that the test execution system creation module 11 generates add in module 12 to the survey
The addition and amended entire test execution system for trying execution system are packaged into an executable file.Executable file generates
Include the software test platform copy to be transplanted in the test execution system that module 13 is packaged and the software test to be transplanted is put down
The library file that platform is relied on.Afterwards, it is only necessary to copy the executable file that this executable file generation module 13 generates to
It can complete to transplant in the object-computer to be transplanted.
In conclusion the transplantation method and system of a kind of software test platform of the present invention can be generated very easily and be used for
The executable file of software test platform transplanting, this executable file can be with independent operating, it is no longer necessary to be dependent on operation
Software environment in system so that different software environments no longer has any interference to the transplanting of software test platform.Described in generation
After executable file, it is only necessary to copy in object-computer the executable file and transplanting can be completed, avoid soft at present
To the installation and configuration of various institute's depended softwares in part test platform, the transplanting of software test platform is allowed to become very simple.Institute
With the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.