📄 migrate.script
字号:
.***************************************************************************.* Software Testing Automation Framework (STAF).* (C) Copyright IBM Corp. 2004.*.* This software is licensed under the Common Public License (CPL) V1.0.****************************************************************************.*************************-START-OF-PROLOG-****************************.*.* File Name : Migrate SCRIPT.* Descriptive Name : Software Test Automation Framework Services.* Detail:.*.* This is the high level file which imbeds the other utilities.* descriptions.*.**************************-END-OF-PROLOG-*****************************:ih1.migration:h1 id=migr.STAF V3.0 Migration Preparation:p.In STAF 3.0, commands that return a "multi-valued" result willhave a new result format and the syntax of some commands will bechanged to follow the STAF standardization rules. To help current STAF 2.x customers prepare for migrating from STAF 2.x to 3.0,a new DIAG (Diagnostics) internal service is provided whichallows for the recording of diagnostics data. The DIAG serviceis being used to track any invocation of a command that will bechanging in STAF 3.0. The DIAG service will record the diagnostictrigger (in this case, the service/request that will be changingin STAF 3.0) along with the source of the trigger (themachine/handle/handle name that originated the request). Byrunning with diagnostics enabled, users are able to identify whichtest cases, applications, and services they have written will needto be updated to work with STAF 3.0.:h3.Prerequisites:p.You must install STAF V2.6.0 (or a later 2.x version)to take advantage of this migration aid. In addition, the followingexternal Java services have been instrumented to record STAF V3.0migration diagnostics data. If you use any of the followingexternal services, you should also install the new versions ofthese services::ul compact.:li.Cron V1.2.1:li.Event V1.3.1:li.EventManager V1.2.1:li.FSExt V1.2.3:li.HTTP V1.0.5:li.NamedCounter V1.2.0:li.STAX V1.5.1:li.SXE V2.1.2:li.Timer V1.1.0:eul.:note.The above versions of Java services require STAF 2.6.0 (or alater 2.x version).:h3.Enabling/Disabling Recording Diagnostics:p.To record diagnostics for STAF-enabled test cases, applications, orservices that you have written, you will need to enable diagnosticson the machines involved. To enable diagnostics, you can use the:xph.ENABLE:exph. request for the DIAG service. See:hdref refid=diagEnable. for more information on using enablingdiagnostics dynamically. Or, you can enable diagnosticsautomatically when STAF starts via the :xph.ENABLEDIAG:exph.operational setting in the STAF configuration file. See :hdref refid=opparms. for more information on using thisoperational setting. After you have completed running the STAF-enabled testcases, applications, and/or services, anddiagnostics have been recorded, you can disable diagnostics on themachines involved. See :hdref refid=diagDisable. for more informationon disabling diagnostics.:h4.Notes::ol.:li.Enabling diagnostics slows down the performance ofSTAF commands that have been instrumented to record diagnostics,so only enable diagnostics if you're planning to use the diagnosticsdata and remember to disable diagnostics when you're done collectingthe diagnostics data.:li.When STAF shuts down, any diagnostics data that has been collectedis no longer available. Diagnostics data is not persistent.:li.You can clear the diagnostics data that has been collected usingthe :xph.RESET:exph. request for the DIAG service.See :hdref refid=diagReset. for more information on resettingdiagnostics.:eol.:h3.STAF V3.0 Migration Diagnostic Triggers:p.This section contains a list of the triggers for all STAFcommands owned by the STAF Development team that will be changingin STAF 3.0 due to one or both of the following reasons::ol.:li.The result can "logically" return more than one value so theformat of the result will be changing to allow for easier parsingof the result.:p.Note that many results vary depending on the request optionsspecified, with results for some requests sometimes containingmultiple values and at other times only containing one value.:li.The syntax of the STAF command is changing in STAF 3.0.For example, we're going to create a new :xph.TRACE:exph. service in STAF3.0 and move the :xph.TRACE:exph. commands from the :xph.MISC:exph.service to a new :xph.TRACE:exph. service so the syntax for all :xph.TRACE:exph. commands will be changing.:eol.:h4.Trigger Syntax:p.The format of the trigger recorded by STAF services to aidin migrating to STAF 3.0 is::xmp.STAF/V3.0-Mig/<Service> <Request>:exmp.where::ul compact.:li.:xph.<Service>:exph. is the name of the STAF service:li.:xph.<Request>:exph. identifies the option(s) identifying theservice request that is changing in STAF 3.0.:eul.:p.:h4.Source Syntax:p.The format of the source recorded by STAF services to aidin migrating to STAF 3.0 is::xmp.<Handle Name>;<Machine Name>;<Handle#>:exmp.where::ul compact.:li.:xph.<Handle Name>:exph. is the name of the handle originatingthe request.:li.:xph.<Machine Name>:exph. is the name of the machine originatingthe request.:li.:xph.<Handle#>:exph. is the number of the handle originatingthe request.:eul.:table id = migrateTriggersTable headhi = 3 frame = box split = yes cols = '2* 3*' align = 'l l'.:tcap.STAF V3.0 Migration Diagnostics Triggers.*-----------------------------:thd.:c.Trigger:c.Meaning:ethd..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/CRON LIST:exph.:c.This indicates a :xph.LIST:exph. request to the :xph.CRON:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/EVENT LIST:exph.:c.This indicates a :xph.LIST:exph. request to the :xph.EVENT:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/EVENT QUERY:exph.:c.This indicates a :xph.QUERY:exph. request to the :xph.EVENT:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/EVENTMANAGER LIST:exph.:c.This indicates a :xph.LIST:exph. request to the :xph.EVENTMANAGER:exph.service. The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FS COPY DIRECTORY (no IGNOREERRORS):exph.:c.This indicates a :xph.COPY DIRECTORY:exph. request to the :xph.FS:exph.service, without the :xph.IGNOREERRORS:exph. option.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FS DELETE (no IGNOREERRORS):exph.:c.This indicates a :xph.DELETE:exph. request to the :xph.FS:exph. service,without the :xph.IGNOREERRORS:exph. option.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FS GET ENTRY SIZE:exph.:c.This indicates a :xph.GET ENTRY:exph. request to the :xph.FS:exph. service,with the :xph.SIZE:exph. option specified.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FS LIST:exph.:c.This indicates a :xph.LIST:exph. request to the :xph.FS:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FS QUERY:exph.:c.This indicates a :xph.QUERY:exph. request to the :xph.FS:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FSEXT QUERY:exph.:c.This indicates a :xph.QUERY:exph. request to the :xph.FSEXT:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FSEXT COMPAREDIR (No EXISTS):exph.:c.This indicates a :xph.COMPARDIR:exph. request to the :xph.FSEXT:exph.service that does not specify the :xph.EXISTS:exph. option.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FSEXT FILECONTAINS NOT:exph.:c.This indicates a :xph.FILECONTAINS:exph. request to the :xph.FSEXT:exph.service with the :xph.NOT:exph. option specified.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/FSEXT LINECONTAINS:exph.:c.This indicates a :xph.LINECONTAINS:exph. request to the :xph.FSEXT:exph.service. The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/HANDLE QUERY:exph.:c.This indicates a :xph.QUERY:exph. request to the :xph.HANDLE:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/HELP ERROR:exph.:c.This indicates a :xph.ERROR:exph. request to the :xph.HELP:exph. service.The result for the request will change in STAF V3.0..*-----------------------------:row.:c.:xph.STAF/V3.0-Mig/HELP LIST:exph.:c.This indicates a :xph.LIST:exph. request to the :xph.HELP:exph. service.The result for the request will change in STAF V3.0.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -