📄 staf.cmd
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF) *//* (C) Copyright IBM Corp. 2001 *//* *//* This software is licensed under the Common Public License (CPL) V1.0. *//*****************************************************************************//* The STAFClnt program written in REXX */OPTIONS "ETMODE EXMODE"SIGNAL ON HALT NAME STAFABORTparse arg where service requestif request = "" thendo say say "Usage: STAF <Where> <Service> <Request>" say say "where," say say "<Where> is either LOCAL or the name of the machine to which you wish" say "to submit the request." say say "<Service> is the name of the service to which you wish to submit the" say "request." say say "<Request> is the actual request you wish to submit to the <Service>" say say "For example:" say say "STAF LOCAL VAR LIST" say "STAF Client1 PROCESS START COMMAND d:\testcase\tc1.exe" RETURN 1endcall RxFuncAdd 'STAFLoadFuncs', 'RXSTAF', 'STAFLoadFuncs'call STAFLoadFuncscall STAFRegister "STAF_REXX_Client", "STAFHandle"if RESULT \= 0 thendo say "Error registering with STAF, RC:" RESULT RETURN RESULTendSTAFRC = STAFSubmit(STAFHandle, where, service, request)if STAFRC \= 0 thendo say "Error submitting request, RC:" STAFRC if STAFResult \= "" then say "Additional info:" STAFResultendelsedo say "Response" say "--------" say STAFResultendcall STAFUnRegister STAFHandleRETURN STAFRC/* Make sure to unregister */STAFABORT: call STAFUnRegister STAFHandle EXIT 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -