⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 helpsrv.script

📁 Software Testing Automation Framework (STAF)的开发代码
💻 SCRIPT
字号:
.***************************************************************************.* Software Testing Automation Framework (STAF).* (C) Copyright IBM Corp. 2001, 2004.*.* This software is licensed under the Common Public License (CPL) V1.0. .****************************************************************************.*************************-START-OF-PROLOG-****************************.*.*  File Name          : HelpSrv SCRIPT Version 0.10.*  Descriptive Name   : Software Test Automation Framework Help Service.*  Detail:.*.*     This file describes the STAF Help Service..*.**************************-END-OF-PROLOG-*****************************:i1.help service:ih1.services:i2.help service:h2 id=helpsrv.Help Service:h3.DescriptionThe Help service is one of the internal STAF services.  It allows you toobtain information about the return codes generated by STAF services.:note.Error codes of 4000 and beyond are service specific return codes, and notall external services register their return codes with the Help service.Therefore, if you don't find information on a 4000+ return code returned by aservice, be sure to check the documentation provided with the service.:p.The Help service provides the following commands.:ul compact.:li.LIST - Displays general or service specific error codes:li.ERROR - Provides information on a specific error code:li.REGISTER - Allows a service to register error codes:li.UNREGISTER - Allows a service to unregister error codes:li.&help.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.LIST:i3.help service:h3.LISTAllows you to list the information managed by the Help service, including:ul compact.:li.Common STAF return codes:li.Service-specific return codes:li.Services registered with the Help service:eul.:h4.Syntax:xmp.LIST SERVICES | &lbrk.SERVICE <Service name>&rbrk. ERRORS:exmp.:p.:xph.SERVICES:exph. will list all the services that have registered theirreturn codes with the Help service.:p.:xph.SERVICE:exph. specifies that return codes for the specified serviceshould be listed, as opposed to the common return codes.:p.:xph.ERRORS:exph. will list return codes and a short description of each.:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from LIST are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will contain informationabout the request based on the options specified: :ul.:li.The result buffer for a :xph."LIST SERVICES":exph. request will contain amarshalled :xph.<List> of <String>:exph. representing the external servicesthat have registered their return codes with the Help service.:p.:li.:p.The result buffer for a :xph."LIST ERRORS":exph. or:xph."LIST ERRORS SERVICE <Service Name>":exph. request will contain amarshalled :xph.<List> of <Map&colon.STAF/Service/Help/ErrorInfo>:exph.representing the errors that can be generated by STAF internal services orfor a specific external service.  The map is defined as follows::table cols='* * * *'.:tcap.Definition of map class STAF/Service/Help/ErrorInfo:tnote text='Description'.This map class represents information about an error.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.returnCode:c.Return Code:c.&stringObj.:c.:row.:c.description:c.Description:c.&stringObj.:c.:tnote text='Notes'.The value for "Description" will be a short description of the error.:etnote.:etable.:eul.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. Show me all the common STAF return codes:p.:hp2.Syntax::ehp2. :xph.LIST ERRORS:exph.:p.:hp2.Results::ehp2.:xmp keep=5.Return Code Description----------- ------------------------------0           No error1           Invalid API2           Unknown service3           Invalid handle4           Handle already exists5           Handle does not exist6           Unknown error7           Invalid request string8           Invalid service result9           REXX Error10          Base operating system error11          Process already complete12          Process not complete13          Variable does not exist14          Unresolvable string15          Invalid resolve string16          No path to endpoint17          File open error18          File read error19          File write error20          File delete error21          STAF not running22          Communication error23          Trusteee does not exist24          Invalid trust level25          Insufficient trust leevl26          Registration error27          Service configuration error28          Queue full29          No queue element30          Notifiee does not exist31          Invalid API level32          Service not unregisterable33          Service not available34          Semaphore does not exist35          Not sempahore owner36          Semaphore has pending requests37          Timeout38          Java error39          Converter error40          Not used41          Invalid object42          Invalid parm43          Request number not found44          Invalid asynchronous option45          Request not complete46          Process authentication denied47          Invalid value48          Does not exist49          Already exists50          Directory Not Empty51          Directory Copy Error52          Diagnostics Not Enabled53          Handle Authentication Denied54          Handle Already Authenticated55          Invalid STAF Version4000+       Service specific errors:exmp.:p.:li.:hp2.Goal::ehp2. Show me return codes for the Log service:p.:hp2.Syntax::ehp2. :xph.LIST SERVICE Log ERRORS:exph.:p.:hp2.Results::ehp2.  If the request is issued from the command line,the result, in table format, could look like::xmp.Return Code Description----------- -------------------------------4004        Invalid level4007        Invalid file format4008        Unable to purge all log records:exmp.:p.:li.:hp2.Goal::ehp2. Show me the services that have registered return codeswith the Help service:p.:hp2.Syntax::ehp2. :xph.LIST SERVICES:exph.:p.:hp2.Results::ehp2.  If the request is issued from the command line,the result, in default format, could look like::xmp.EVENTLOGRESPOOLSTAX:exmp.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.ERROR:i3.help service:h3.ERRORDisplay help information for a particular return code.:h4.Syntax:xmp.&lbrk.SERVICE <Service name>&rbrk. ERROR <Return code>:exmp.:p.:xph.SERVICE:exph. indicates that only information specific to the givenservice should be return.  Otherwise, information will be returned for allservices which have registered the indicated return code.:p.:xph.ERROR:exph. specifies the return code about which you want information:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will contain informationabout the request based on the options specified: :ul.:li.The result buffer for a :xph."SERVICE <Service Name> Error <Return Code>":exph.request or for an :xph."ERROR <Return Code>":exph. request (if thereturn code specified is less then 4000) will contain a marshalled:xph.<Map&colon.STAF/Service/Help/ErrorDetails>:exph. representinginformation about the specified error.  The map is defined as follows::table cols='* * * *'.:tcap.Definition of map class STAF/Service/Help/ErrorDetails:tnote text='Description'.This map class represents information about an error.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.description:c.Description:c.&stringObj.:c.:row.:c.details:c.Details:c.&stringObj.:c.:etable.:p.:li.The result buffer for an :xph."ERROR <Return Code>":exph. request (if thereturn code specified is 4000 or greater) will containa marshalled :xph.<List> of <Map&colon.STAF/Service/Help/ServiceError>:exph.representing the errors registered by all external services with thespecified return code.  The map is defined as follows::table cols='* * * *'.:tcap.Definition of map class STAF/Service/Help/ErrorDetails:tnote text='Description'.This map class represents information about an errorregistered by an external service.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.service:c.Service:c.&stringObj.:c.:row.:c.description:c.Description:c.&stringObj.:c.:row.:c.details:c.Details:c.&stringObj.:c.:etable.:eul.:h4.Examples:ul.:li.:hp2.Goal::ehp2. Show me information on STAF error 22:p.:hp2.Syntax::ehp2. :xph.ERROR 22:exph.:p.:hp2.Results::ehp2.  If the request is issued from thecommand line, the result, in default format, could look like::xmp.Description: Communication errorDetails    :This indicates an error transmitting data across the network, or to the localSTAF process.  For example, you would receive this error if STAFProc.exe wasterminated in the middle of a service request, or if a bridge went down in themiddle of a remote service request.:exmp.:li.:hp2.Goal::ehp2. Show me all the information on STAF error 4007:p.:hp2.Syntax::ehp2. :xph.ERROR 4007:exph.:p.:hp2.Results::ehp2.  If the request is issued from thecommand line, the result, in verbose format, could look like::xmp.[  {    Service    : LOG    Description: Invalid file format    Details    : An invalid/unknown record format was encountered while reading the log file  }  {    Service    : RESPOOL    Description: Resource pool has no entries available    Details    : The resource pool has no entries  }]:exmp.:li.:hp2.Goal::ehp2. Show me only Log service information on STAF error 4007:p.:hp2.Syntax::ehp2. :xph.SERVICE Log ERROR 4007:exph.:p.:hp2.Results::ehp2.  If the request is issued from thecommand line, the result, in default format, could look like::xmp.Description: Invalid file formatDetails    : An invalid/unknown record format was encountered while reading the log file:exmp.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.REGISTER:i3.help service:h3.REGISTERAllows a service to register return codes with the Help service.:h4.Syntax:xmp.REGISTER SERVICE <Service name> ERROR <Return code>         INFO <String> DESCRIPTION <String>:exmp.:p.:xph.SERVICE:exph. indicates the service for which to register information:p.:xph.ERROR:exph. indicates the return code for which to register information:p.:xph.INFO:exph. specifies a short description string which is displayedwhen using the Help service's LIST command.:p.:xph.DESCRIPTION:exph. specifies the full information about the return code.This information is displayed when using the Help service's ERROR command.:h4.Security:p.&seclvl. 3.:p.This command is only valid when issued by local services.:h4.Return Codes:p.All return codes are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will be empty.:h4.Examples:ul.:li.:hp2.Goal::ehp2. Register the Log services 4008 return code:p.:hp2.Syntax::ehp2.:p.:xph.REGISTER SERVICE Log ERROR 4008 INFO "Unable to purge all log records" DESCRIPTION "Your PURGE criteria selected every record in the log file.  Use DELETE if you{STAF/Config/Sep/Line}really want to delete every record.  Or, modify your PURGE criteria.":exph.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.UNREGISTER:i3.help service:h3.UNREGISTERAllows a service to unregister return codes with the Help service.:h4.Syntax:xmp.UNREGISTER SERVICE <Service name> ERROR <Return code>:exmp.:p.:xph.SERVICE:exph. indicates the service for which to unregister information:p.:xph.ERROR:exph. indicates the return code for which to unregisterinformation:h4.Security:p.This command is only valid when issued by local services.:h4.Return Codes:p.All return codes are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will be empty.:h4.Examples:ul.:li.:hp2.Goal::ehp2. Unregister the Log services 4008 return code:p.:hp2.Syntax::ehp2.:p.:xph.UNREGISTER SERVICE Log ERROR 4008:exph.:eul..*.*---------------------------------------------------------------------.*:ih1.error codes:i2.help service:h3.Help Error Code Reference:p.All return codes from Help are documented in :hdref refid=retcode..

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -