Eggplant Command Line Options
Note: We use the term arguments to describe the options you pass with the runscript or Eggplant command when you run those commands from the command line. Other terms you might be familiar with include options and flags.
スクリプトに入力情報としてパスする値を指す用語、パラメータを使用します。スクリプトをコマンドラインから実行するときにスクリプトにパラメータをパスする詳しい情報については、パラメータをパスするをご覧ください。
-AlertOnError
Use: Specifies whether to show an alert when script execution fails. 有効値:yes/no。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch /Users/Alex/appTests.suite/Scripts/test3.script
Windows (command shell):
"C:\Program Files\eggPlant\eggPlant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MyTests.suite\scripts\test3.script" -AlertOnError yes
Linux (bash shell):
Eggplant -RunOnLaunch
-AlertOnFailedConnections
Use: Specifies whether to show an alert when a connection fails. 有効値:yes/no。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch /Users/Alex/appTests.suite/Scripts/test3.script
Windows (command shell):
"C:\Program Files)\eggPlant\eggPlant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MyTests.suite\scripts\test3.script" -AlertOnFailedConnections yes
Linux (bash shell):
Eggplant -RunOnLaunch
-AutoShowRunWindow
Use: Specifies to bring the Run window forward when the script is run. 有効値:yes/no。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant
Windows:
"C:\Program Files\Eggplant\Eggplant.bat" -AutoShowRunWindow yes
Linux (bash shell):
Eggplant -AutoShowRunWindow yes
-DefaultDocumentDirectory
用途:ヘルプスイートのパスといった、相対ファイルパスの開始ディレクトリです。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant
Windows (command shell):
"C:\Program Files\Eggplant\eggPlant.bat" -DefaultDocumentDirectory "C:\Users\Elizabeth\Documents\eggPlantTests"
Linux (bash shell):
Eggplant
-open
Use: The -open argument launches Eggplant Functional from the command line with a suite open. Include the path to the specific suite with the -open argument. The -open argument also can open specific scripts. Include the path to the specific script to do this.
例:
Mac (bash shell)
/Applications/eggPlant.app/Contents/MacOS/Eggplant -open ~/Documents/appTests.suite
/Applications/eggPlant.app/Contents/MacOS/Eggplant -open ~/Documents/appTests.suite/scripts/testscript.script
Windows (command shell)
"C:\Program Files\eggPlant\Eggplant.bat" "C:\Users\Alex\Documents\appTests.suite" -open
"C:\Program Files\eggPlant\Eggplant.bat" "C:\Users\Alex\Documents\appTests.suite\scripts\testscript.script" -open
Linux (bash shell):
Eggplant ~/Documents/appTests.suite -open
Eggplant ~/Documents/appTests.suite/scripts/testscript.script -open
-param (-p)
Use: The -param argument passes parameters to a script. You can use -param before or after the name of the script. Note that the -param string must precede each parameter in the script. The -p form is an abbreviation for the same parameter. これらは同じ意味で使用可能です。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch ~/Documents/appTests.suite/Scripts/test1.script -param "SUT1" -param "phonebook.txt"
Windows (command shell):
"C:\Program Files\eggPlant\Eggplant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MyTests.suite\scripts\test1.script" -param "SUT1" -param "phonebook.txt"
Linux (bash shell):
Eggplant -RunOnLaunch ~/Documents/appTests.suite/Scripts/test1.script -param "SUT1" -param "phonebook.txt"
-QuitAfterRun
Use: Invokes the given script or suite schedule, then quits Eggplant Functional. 有効値:yes/no。 To cancel the quit, open Eggplant Functional, choose Eggplant from the main menu, then Quit. その後、Cancel Quit(終了をキャンセル)ボタンをクリックします。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch /Users/Alex/Docs.suite/Scripts/myTests/test2.script
Windows(command shell):
"C:\Program Files\Eggplant\Eggplant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MySuite.suite\Scripts\test2.script"
Linux (bash shell):
Eggplant -RunOnLaunch
-ReopenDocuments
Use: Specifies whether to reopen the last open suites and scripts when you launch Eggplant Functional. 有効値:yes/no。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant
Windows:
"C:\Program Files\Eggplant\Eggplant.bat" -ReopenDocuments no
Linux (bash shell):
Eggplant -ReopenDocuments no
-RestoreConnection
Use: Specifies whether to restore connections from the last session when you launch Eggplant Functional. 有効値:yes/no。
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant
Windows:
"C:\Program Files\Eggplant\Eggplant.bat" -RestoreConnection yes
Linux (bash shell):
Eggplant -RestoreConnection yes
-RunOnLaunch
Use: Invokes the specified script(s) or suite schedule when you launch Eggplant Functional.
例:
Mac (bash shell):
/Applications/eggPlant.app/Contents/MacOS/Eggplant
Windows:
"C:\Program Files\Eggplant\Eggplant.bat" -RunOnLaunch "C:\Users\Alex\Documents\Eggplant\MySuite.suite\Schedule1"
Linux (bash shell):
Eggplant -RunOnLaunch ~/Documents/appTests.suite/scripts/test1.script