Eggplant コマンドラインオプション
このページでは、Eggplant
コマンドを使用してコマンドラインからEggplant Functionalスクリプトを実行するときに使用できるさまざまなオプションについて説明します。このコマンドはEggplant Functional GUIを起動します。runscript
コマンドを使用してこれらのオプションのいずれかを実行すると、Eggplant Functional GUIが起動することに 注意してください。runscript
コマンドについて詳しくは、Runscript コマンドオプションを参照してください。
これらのコマンドに関する詳細情報は、コマンドラインからの実行を参照してください。
コマンドラインからこれらのコマンドを実行するときにrunscript
またはEggplant
コマンドで渡すオプションを説明するために、引数
という用語を使用しています。他にもオプション
やフラグ
という用語があります。
スクリプトへの入力として渡す値を指すために、パラメータ
という用語を使用しています。コマンドラインから実行するときにスクリプトにパラメータを渡す方法についての詳細は、パラメータの渡し方を参照してください。
-アラートオ ンエラー
使用
ブール値。 (はい/いいえ) スクリプトの実行が失敗した場合にアラートを表示するかどうかを指定します。
例
Mac
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch /Users/Alex/appTests.suite/Scripts/test3.script -AlertOnError yes
Windows
"C:\Program Files\eggPlant\eggPlant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MyTests.suite\scripts\test3.script" -AlertOnError yes
Linux
Eggplant -RunOnLaunch ~/Documents/appTests.suite/Scripts/test1.script -AlertOnError yes
このパラメータは、Eggplant Functional一般設定の接続が失敗したときにアラートを表示するを上書きします。
-AlertOnFailedConnections
使用
_Boolean. (Yes/No)_接続が失敗したときにアラートを表示するかどうかを指定します。
例
Mac
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch /Users/Alex/appTests.suite/Scripts/test3.script -AlertOnFailedConnections yes
Windows
"C:\Program Files\eggPlant\eggPlant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MyTests.suite\scripts\test3.script" -AlertOnFailedConnections yes
Linux
Eggplant -RunOnLaunch ~/Documents/appTests.suite/Scripts/test1.script -AlertOnFailedConnections yes
このパラメータは、Eggplant Functional一般設定のスクリプト実行が失敗したときにユーザーに警告するを上書きします。
-AutoShowRunWindow
使用
ブール値。 (Yes/No) スクリプトの実行時に実行ウィンドウを前方に移動するように指定します。
例
Mac
/Applications/eggPlant.app/Contents/MacOS/Eggplant -AutoShowRunWindow yes
Windows
"C:\Program Files\Eggplant\Eggplant.bat" -AutoShowRunWindow yes
Linux (bash shell)
Eggplant -AutoShowRunWindow yes
-AutoShowRunWindow
フラグは、Eggplant Functional一般設定のスクリプトが実行されたときに実行ウィンドウを前面に表示するを上書きします。
-デフォルトドキュメントディレクトリ
使用
ディレクトリへのパス。 ヘルパー スイートのパスなど、スイートへの相対ファイル パスの開始ディレクトリを指定します。
例
Mac
/Applications/eggPlant.app/Contents/MacOS/Eggplant -DefaultDocumentDirectory ~/Documents/EggplantDocs
Windows
"C:\Program Files\Eggplant\eggPlant.bat" -DefaultDocumentDirectory "C:\Users\Elizabeth\Documents\eggPlantTests"
Linux
Eggplant ~/Documents/appTests.suite/Scripts/test1.script -DefaultDocumentDirectory ~/Documents
これは、Eggplant Functional一般設定のデフォルトスイートディレクトリと同じです。
-open
使用
スイートまたはスクリプトへのパス。 -open
引数は、スイートを開いた状態でコマンドラインから Eggplant Functional を起動します。 -open
引数を使用して、特定のスイートへのパスを含めます。 -open
引数を使用して特定のスクリプトを開くこともできます。これを行うには、特定のスクリプトへのパスを含めます。
例
Mac
/Applications/eggPlant.app/Contents/MacOS/Eggplant -open ~/Documents/appTests.suite
/Applications/eggPlant.app/Contents/MacOS/Eggplant -open ~/Documents/appTests.suite/scripts/testscript.script
Windows
"C:\Program Files\eggPlant\Eggplant.bat" -open "C:\Users\Alex\Documents\appTests.suite"
"C:\Program Files\eggPlant\Eggplant.bat" -open "C:\Users\Alex\Documents\appTests.suite\scripts\testscript.script"
Linux
Eggplant -open ~/Documents/appTests.suite
Eggplant -open ~/Documents/appTests.suite/scripts/testscript.script
-param (-p)
使用
単一のパラメータ。 -param
引数はパラメータをスクリプトに渡します。 -param
はスクリプト名の前後に使用できます。 -param
文字列はスクリプト内の各パラメータの前に置く必要があることに注意してください。 -p
形式は、同じパラメータの省略形です。相互に交換して使用できます。
-param
引数(最後に"s"が付かないもの)は、古い-params
パラメータと同じではありません。
例
Mac
/Applications/eggPlant.app/Contents/MacOS/Eggplant -RunOnLaunch ~/Documents/appTests.suite/Scripts/test1.script -param "SUT1" -param "phonebook.txt"
Windows
"C:\Program Files\eggPlant\Eggplant.bat" -RunOnLaunch "C:\Users\Alex\Documents\MyTests.suite\scripts\test1.script" -param "SUT1" -p "phonebook.txt"