CN101609425A - A kind of script and associated data implant system and implantation method - Google Patents

A kind of script and associated data implant system and implantation method Download PDF

Info

Publication number
CN101609425A
CN101609425A CNA2008101114729A CN200810111472A CN101609425A CN 101609425 A CN101609425 A CN 101609425A CN A2008101114729 A CNA2008101114729 A CN A2008101114729A CN 200810111472 A CN200810111472 A CN 200810111472A CN 101609425 A CN101609425 A CN 101609425A
Authority
CN
China
Prior art keywords
script
associated data
engineering
source
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.)
Granted
Application number
CNA2008101114729A
Other languages
Chinese (zh)
Other versions
CN101609425B (en
Inventor
朱进才
张祎强
周艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Global Innovation Polymerization LLC
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008101114729A priority Critical patent/CN101609425B/en
Publication of CN101609425A publication Critical patent/CN101609425A/en
Application granted granted Critical
Publication of CN101609425B publication Critical patent/CN101609425B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of script and associated data implant system and implantation method, between different engineerings, finish the transplanting of script and associated data in the software test quickly and easily, wherein this method is at first set script and the position of associated data in source engineering and target engineering, search needs the script and the corresponding associated data of transplanting then, from the engineering of source, respectively script and associated data are transplanted in the target engineering at last, compared with prior art, realized the robotization transplanting of script and associated data, saved the time that script is recorded, can be widely used in the software test.

Description

A kind of script and associated data implant system and implantation method
Technical field
The present invention relates to software test, relate in particular to a kind of script and associated data implant system and implantation method.
Background technology
When using automatic test software Rational Robot that tested object is carried out automatic test, need set up an engineering, to manage all scripts and associated associated data, script leaves different positions respectively in associated data, at any time read associated associated data during the script operation, both are in conjunction with the test that just can finish tested object.
When the scale of tested object was too huge, script that Robot need manage and associated data can constantly increase, and finally cause Robot script storehouse huge unusually, and the efficiency of management reduces and causes confusion easily.Generally be to set up a plurality of engineerings each function of tested object is tested respectively this moment, to dwindle the scale of engineering management script and associated data.
And a plurality of engineerings need to transplant script and associated data when same tested object is tested between each engineering, just need a plurality of files of copy, and need to revise corresponding tables of data.In the system of current automatic test software Rational Robot, do not provide script and associated data portability function between the different engineerings.If copy script and associated data one by one by manual, can waste plenty of time and energy, work loaded down with trivial details and make mistakes easily, so the script that can share originally between a lot of different engineerings has to repeat to record.
Therefore, when setting up a plurality of engineerings same object being tested, in management, there is defective, is necessary to make corresponding improvement and development.
Summary of the invention
Technical matters to be solved by this invention is to be to provide the script in a kind of software test and the implant system and the implantation method of associated data, to finish the transplanting of script and associated data quickly and easily between different engineerings.
In order to solve the problems of the technologies described above, the present invention at first provides a kind of script and associated data implant system, be used for script and the associated data relevant with described script are transplanted to the target engineering from the source engineering, described system comprises the catalogue setting module, search module, copy module and modified module, wherein:
Described catalogue setting module obtains the script source path of the described script of storage in the engineering of described source and the associated data source path of the described associated data of storage; Obtain the script destination path of the described script of storage in the described target engineering and the associated data destination path of the described associated data of storage;
Described search module links to each other with described catalogue setting module, searches for all scripts of described source engineering according to described script source path;
Described copy module links to each other with described catalogue setting module, search module and modified module, need to select the described script of transplanting in described all scripts, and copies described script to described target engineering according to described script destination path; Search for described associated data according to described associated data source path, and described associated data is copied in the described target engineering according to described associated data destination path; The name delivery of described script is arrived described modified module;
Described modified module is according to the table record in the described target engineering of the name modifications of described script.
In the aforesaid system, described catalogue setting module can be set the root directory of storing described script and associated data in described source engineering and the target engineering; Can generate described script source path and described associated data source path respectively according to the root directory of described script of storage and associated data in the engineering of described source; Can generate described script destination path and described associated data destination path respectively according to the root directory of described script of storage and associated data in the described target engineering.
In the aforesaid system, described copy module can comprise script copy submodule and related data copy submodule, wherein:
Described script copy submodule, with described catalogue setting module, search module, modified module and related data copy submodule link to each other, copy described script to the target engineering according to described script destination path, the name delivery of described script is copied submodule to described modified module and related data;
Described related data copy submodule links to each other with described catalogue setting module and script copy submodule, and described associated data is copied to described target engineering.
In the aforesaid system, described copy module can generate the RTXML file according to the title of described script, and described RTXML file is sent to described modified module.
In the aforesaid system, described modified module can be revised the Script table of stores scripts in the described target engineering and store the TMS_UIDMAP table of described associated data according to the title of described script.
The present invention also provides a kind of script and associated data implantation method, is used for script and the associated data relevant with described script are transplanted to the target engineering from the source engineering, may further comprise the steps:
Obtain the script source path of the described script of storage in the engineering of described source and the associated data source path of the described associated data of storage;
Obtain the script destination path of the described script of storage in the described target engineering and the associated data destination path of the described associated data of storage;
In the engineering of described source, search for and select described script according to described script source path;
According to described script destination path described script is transplanted in the described target engineering;
In the engineering of described source, search for described associated data according to described associated data source path;
According to described associated data destination path described associated data is stored in the described target engineering;
According to the table record in the described target engineering of the name modifications of described script.
In the aforesaid method, obtain the script source path of the described script of storage in the engineering of described source and the step of storing the associated data source path of described associated data, can comprise the steps:
Set the root directory of storing described script and associated data in the engineering of described source;
Root directory according to described script of storage and associated data in the engineering of described source generates described script source path and described associated data source path respectively.
In the aforesaid method, obtain the script destination path of the described script of storage in the described target engineering and the step of storing the associated data destination path of described associated data, can comprise the steps:
Set the root directory of storing described script and associated data in the described target engineering;
Root directory according to described script of storage and associated data in the described target engineering generates described script destination path and described associated data destination path respectively.
In the aforesaid method, described script is transplanted to step in the described target engineering, can comprises that the title according to described script generates the RTXML file, described RTXML file is sent to described target engineering.
In the aforesaid method, step according to the table record in the described target engineering of the name modifications of described script, can comprise title, revise the Script table of stores scripts in the described target engineering and store the TMS_UIDMAP table of described associated data according to described script.
Compared with prior art, the present invention has realized the robotization transplanting of script and associated data between different engineerings, saved the time that script is recorded.
Description of drawings
Fig. 1 is the composition synoptic diagram of implant system embodiment of the present invention.
Fig. 2 is the composition synoptic diagram of copy module in the system embodiment of the present invention.
Fig. 3 is the schematic flow sheet of implantation method embodiment of the present invention.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, how the application technology means solve technical matters to the present invention whereby, and the implementation procedure of reaching technique effect can fully understand and implements according to this.
Fig. 1 shows the composition signal of implant system embodiment of the present invention, and system comprises catalogue setting module 110, search module 120, and copy module 130 and modified module 140, wherein:
Catalogue setting module 110, link to each other with search module 120 and copy module 130, stores scripts reaches the root directory of the associated data relevant with script in setting source engineering and the target engineering, and generate the script source path of stores scripts in the engineering of source, the associated data source path of the associated data relevant with script with storage according to source engineering root directory; Generate the script destination path of target engineering stores scripts and the associated data destination path of storage associated data according to target engineering root directory; Script source path that is generated and associated data source path, script destination path and associated data destination path call for search module 120 and copy module 130;
Search module 120 links to each other with catalogue setting module 110 and copy module 130, and all scripts of the script source path search source engineering that generates according to catalogue setting module 110 call for copying module 130;
Copy module 130, with catalogue setting module 110, search module 120 and modified module 140 link to each other, in search module 120 Search Results, need to select the script of transplanting, and, copy the selected script that needs to transplant to the target engineering according to the script destination path that goal-setting module 110 generates; Associated data source path according to 110 generations of catalogue setting module, search and the relevant associated data of copy module 130 selected scripts, and, the associated data that searches is copied in the target engineering according to the associated data destination path that catalogue setting module 110 generates; Generate the RTXML file and send modified module 140 to according to script name then, the engineering selected script name that needs to transplant in source is arrived modified module 140 by the RTXML file transfers;
Modified module 140, link to each other with copy module 130, script name (RTXML file) according to needs transplanting in the copy module 130 selected source engineerings, correlation table record in the modifying target engineering adds the script and the associated data of being transplanted respectively in the TMS_UIDMAP table of the Script table of the stores scripts information in the target engineering and storage associated data information.
Copy module 130 wherein is divided into script copy submodule 131 and related data copy submodule 132 again, as shown in Figure 2, and wherein:
Script copy submodule 131, with catalogue setting module 110, search module 120, modified module 140 and related data copy submodule 132 link to each other, script destination path according to 110 generations of goal-setting module, copy the script that needs in the engineering of source to transplant to the target engineering, the script name of transplanting according to selected needs generates the RTXML file then, and the script name that the source requirement of engineering is transplanted is delivered to related data copy submodule 132 and modified module 140;
Related data copy submodule 132 links to each other with catalogue setting module 110 and script copy submodule 131, and the associated data relevant with the script that needs to transplant the source engineering copies the target engineering to.
Associated data source path and associated data destination path according to catalogue setting module 110 generates copy the associated data that searches in the target engineering to.
Fig. 3 shows the schematic flow sheet of implantation method embodiment of the present invention, and this method embodiment comprises the steps:
Step 310 is set the root directory that transplanting script and the associated data relevant with script are positioned at the source engineering, sets the root directory that transplanting script and associated data are positioned at the target engineering; Suppose that the root directory that script and associated data are positioned at the source engineering is $SProject$, the root directory of target engineering is $DProject$;
Step 320, root directory according to script and associated data in the engineering of source, generate respectively stores scripts in the engineering of source script Yuan Lujing $SProject$ TestDatastore DefaultTestScriptDatastore TMS_Scripts, and in the engineering of source the storage associated data the associated data source path; Root directory according to script and associated data in the target engineering, generate respectively stores scripts in the target engineering script Mu Biaolujing $DProject$ TestDatastore DefaultTestScriptDatastore TMS_Scripts and the target engineering in the storage associated data the associated data destination path;
Step 330, according to the script source path, search and demonstration All Files type are the script of REC in the engineering of source, transplant for you to choose;
Step 340, behind the script of selecting to need to transplant, according to the script destination path selected script is copied in the TMS_Scripts file in the target engineering, and the coded system with UTF-8 generates and the script RTXML type file of the same name that is duplicated under the script destination path;
Step 350, according to the RTXML type file in the engineering of source associated data Yuan Lujing $SProject$ TestDatastore DefaultTestScriptDatastore TMS_Scripts vp all check post data files relevant of search under the catalogue with the script of being transplanted, read check post data " .base.obp " file with the data stream form, then according to associated data Mu Biaolujing $DProject$ TestDatastore DefaultTestScriptDatastore TMS_Scripts vp, check post data " .base.obp " file is stored in the target engineering with the data stream form;
Step 360, modifying target engineering Zhong $DProject$ TestDatastore DefaultTestScriptDatastore the Script table of stores scripts information and the TMS_UIDMAP table of storage associated data information in the tds.mdb file, in these two tables, insert the record of transplanted script, when wherein in the Script table, inserting transplanted file logging, with the doubling time is user ID (User ID, be abbreviated as UID), and founder, reviser, owner that script is set are admin, certainly, also can be other users.Wherein above-mentioned is UID with the doubling time, is because all will have a UID corresponding with it for each script.UID is unique, so consider that being used as UID with the time that the user duplicates script avoids duplicating.This UID is that a sign as Robot identification script writes in the RTXML file and is recorded in the Script table simultaneously and during TMS_UIDMAP shows.
Compared with prior art, the invention provides the implant system and the method for a kind of Robot script and associated data, for transplanting script quickly and easily between the different Robot engineerings and associated data provides solution, saved the time that script repeats to record, improved the script utilization factor.
Though the disclosed embodiment of the present invention as above, the embodiment that described content just adopts for the ease of understanding the present invention is not in order to limit the present invention.Technician in any the technical field of the invention; under the prerequisite that does not break away from the disclosed spirit and scope of the present invention; can do any modification and variation what implement in form and on the details; but scope of patent protection of the present invention still must be as the criterion with the scope that appending claims was defined.

Claims (10)

1, a kind of script and associated data implant system are used for script and the associated data relevant with described script are transplanted to the target engineering from the source engineering, it is characterized in that described system comprises the catalogue setting module, search module, and copy module and modified module, wherein:
Described catalogue setting module obtains the script source path of the described script of storage in the engineering of described source and the associated data source path of the described associated data of storage; Obtain the script destination path of the described script of storage in the described target engineering and the associated data destination path of the described associated data of storage;
Described search module links to each other with described catalogue setting module, searches for all scripts of described source engineering according to described script source path;
Described copy module links to each other with described catalogue setting module, search module and modified module, need to select the described script of transplanting in described all scripts, and copies described script to described target engineering according to described script destination path; Search for described associated data according to described associated data source path, and described associated data is copied in the described target engineering according to described associated data destination path; The name delivery of described script is arrived described modified module;
Described modified module is according to the table record in the described target engineering of the name modifications of described script.
2, the system as claimed in claim 1 is characterized in that, described catalogue setting module is set the root directory of storing described script and associated data in described source engineering and the target engineering; Root directory according to described script of storage and associated data in the engineering of described source generates described script source path and described associated data source path respectively; Root directory according to described script of storage and associated data in the described target engineering generates described script destination path and described associated data destination path respectively.
3, the system as claimed in claim 1 is characterized in that, described copy module comprises script copy submodule and related data copy submodule, wherein:
Described script copy submodule, with described catalogue setting module, search module, modified module and related data copy submodule link to each other, copy described script to the target engineering according to described script destination path, the name delivery of described script is copied submodule to described modified module and related data;
Described related data copy submodule links to each other with described catalogue setting module and script copy submodule, and described associated data is copied to described target engineering.
4, the system as claimed in claim 1 is characterized in that, described copy module generates the RTXML file according to the title of described script, and described RTXML file is sent to described modified module.
5, the system as claimed in claim 1 is characterized in that, described modified module is revised the Script table of stores scripts in the described target engineering and stored the TMS_UIDMAP table of described associated data according to the title of described script.
6, a kind of script and associated data implantation method are used for script and the associated data relevant with described script are transplanted to the target engineering from the source engineering, it is characterized in that, may further comprise the steps:
Obtain the script source path of the described script of storage in the engineering of described source and the associated data source path of the described associated data of storage;
Obtain the script destination path of the described script of storage in the described target engineering and the associated data destination path of the described associated data of storage;
In the engineering of described source, search for and select described script according to described script source path;
According to described script destination path described script is transplanted in the described target engineering;
In the engineering of described source, search for described associated data according to described associated data source path;
According to described associated data destination path described associated data is stored in the described target engineering;
According to the table record in the described target engineering of the name modifications of described script.
7, method as claimed in claim 6 is characterized in that, obtains the script source path of the described script of storage in the engineering of described source and the step of storing the associated data source path of described associated data, comprises the steps:
Set the root directory of storing described script and associated data in the engineering of described source;
Root directory according to described script of storage and associated data in the engineering of described source generates described script source path and described associated data source path respectively.
8, method as claimed in claim 6 is characterized in that, obtains the script destination path of the described script of storage in the described target engineering and the step of storing the associated data destination path of described associated data, comprises the steps:
Set the root directory of storing described script and associated data in the described target engineering;
Root directory according to described script of storage and associated data in the described target engineering generates described script destination path and described associated data destination path respectively.
9, method as claimed in claim 6 is characterized in that, described script is transplanted to step in the described target engineering, comprises that the title according to described script generates the RTXML file, and described RTXML file is sent to described target engineering.
10, method as claimed in claim 6, it is characterized in that, step according to the table record in the described target engineering of the name modifications of described script, comprise title according to described script, revise the Script table of stores scripts in the described target engineering and store the TMS_UIDMAP table of described associated data.
CN2008101114729A 2008-06-19 2008-06-19 Transplanting system and transplanting method for scripts and associated data Expired - Fee Related CN101609425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101114729A CN101609425B (en) 2008-06-19 2008-06-19 Transplanting system and transplanting method for scripts and associated data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101114729A CN101609425B (en) 2008-06-19 2008-06-19 Transplanting system and transplanting method for scripts and associated data

Publications (2)

Publication Number Publication Date
CN101609425A true CN101609425A (en) 2009-12-23
CN101609425B CN101609425B (en) 2011-09-21

Family

ID=41483184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101114729A Expired - Fee Related CN101609425B (en) 2008-06-19 2008-06-19 Transplanting system and transplanting method for scripts and associated data

Country Status (1)

Country Link
CN (1) CN101609425B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103109271A (en) * 2012-08-30 2013-05-15 华为技术有限公司 Inter-platform application migration realization method and system
CN103257878A (en) * 2013-05-16 2013-08-21 浪潮通信信息系统有限公司 Cross-platform smooth transfer method of application program based on Cloud calculation
CN104516766A (en) * 2015-01-16 2015-04-15 浪潮电子信息产业股份有限公司 C/C + + application migration tool from AIX platform to K-UX platform
CN108427678A (en) * 2017-02-13 2018-08-21 海马云(天津)信息技术有限公司 The method that Android system searches application resource file
CN111367890A (en) * 2020-03-13 2020-07-03 深圳壹账通智能科技有限公司 Data migration method and device, computer equipment and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005107823A (en) * 2003-09-30 2005-04-21 Fujitsu Ltd Software test program, method and device using picture transition diagram model
CN1326044C (en) * 2004-10-22 2007-07-11 中国工商银行股份有限公司 Automation software testing system based on script explanatory tool

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103109271A (en) * 2012-08-30 2013-05-15 华为技术有限公司 Inter-platform application migration realization method and system
WO2014032262A1 (en) * 2012-08-30 2014-03-06 华为技术有限公司 Implementation method and system for migrating application among platforms<0}
CN103109271B (en) * 2012-08-30 2016-01-20 华为技术有限公司 The implementation method of migrate application and system between a kind of platform
CN103257878A (en) * 2013-05-16 2013-08-21 浪潮通信信息系统有限公司 Cross-platform smooth transfer method of application program based on Cloud calculation
CN104516766A (en) * 2015-01-16 2015-04-15 浪潮电子信息产业股份有限公司 C/C + + application migration tool from AIX platform to K-UX platform
CN108427678A (en) * 2017-02-13 2018-08-21 海马云(天津)信息技术有限公司 The method that Android system searches application resource file
CN108427678B (en) * 2017-02-13 2021-04-20 海马云(天津)信息技术有限公司 Method for searching application resource file by android system
CN111367890A (en) * 2020-03-13 2020-07-03 深圳壹账通智能科技有限公司 Data migration method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN101609425B (en) 2011-09-21

Similar Documents

Publication Publication Date Title
CN101609425B (en) Transplanting system and transplanting method for scripts and associated data
CN104317843B (en) A kind of data syn-chronization ETL system
CN101958987B (en) Method and system for dynamically converting telecommunications service data
CN102402562A (en) Database remote disaster tolerant method and system
CN101650744A (en) System and method for processing great data amount based on transport tablespace
RU2008142428A (en) FILTERED DATA STORAGE REPLICATION
WO2010148724A1 (en) Loading and debugging method and debugging system thereof
TWI287385B (en) Method for synchronizing two contact data of two storage media in a communications system
CN113515297B (en) Version updating method and device, electronic equipment and storage medium
CN101615152A (en) The detection method of hot plug fault of storage card and device
CN113112229A (en) File intelligent arrangement system and method based on file element preposition
CN101770608A (en) Management method and device of engineering versions
CN101719131A (en) Method, device and system for processing report data
CN100388678C (en) Automatic obtaining method for telecommunication trausmission systen unit soft and hard ware version
CN102254023A (en) Method and device for editing webpage
CN104572730B (en) Digital resource importing, deriving method and device
CN106326041A (en) Second-level recovery method for database
CN105912427A (en) Data disaster tolerance synchronization method and device
CN103095750A (en) Automatic uploading system and achievement based on web service
CN107402751A (en) One kind is based on linux system NAND FLASH master slice burning mirror image implementing methods
CN102262646A (en) Music document classifying method of set-top box
CN101631046B (en) Method and device of automatic upgrade of one board
CN100426742C (en) Device file batch duplicating system and its duplicating method
CN101697600A (en) Method and device for automatically analyzing and processing polyphonic ringtone data
CN100550782C (en) Background server management system and management method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180427

Address after: California, USA

Patentee after: Global innovation polymerization LLC

Address before: 518057 Department of law, Zhongxing building, South hi tech Industrial Park, Nanshan District hi tech Industrial Park, Guangdong, Shenzhen

Patentee before: ZTE Corp.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110921