execute mobile command

モバイルのコマンドラインを実行し、その出力を返します。
名前説明タイプ修飾子
command

実行するコマンドです。

Stringなし
argument

(任意)現在のアクション定義でシリアライズ可能な JSON を使用して引数を定義します。

Stringなし
variable

(任意)コマンド出力を受け取る変数です。

Stringなし
モバイルコマンドライン実行時のコマンド出力です。
このアクションは、次のプロジェクト項目で使用できます: テストモジュールおよびユーザー定義アクションです。
次の設定はこのアクションに適用可能です:  case sensitive, remove double quotes from cells, standard ASCII only, object wait, window wait.
オートメーション・スクリプトで2つのコマンドを発行すると仮定します。
  • 1つは、MapsActivity などのアプリケーションを起動するコマンドです。
  • もう1つは、現在のモバイルデバイスに関連する情報を返すコマンドです。
                                
                                    	command	argument	variable
execute mobile command	mobile: shell	{"command":"am start -n com.google.android.apps.maps/com.google.android.maps.MapsActivity"}	>> ac_output
&nbsp			
	command	variable	
execute mobile command	mobile:deviceInfo	>> ac_output	
                                
                            
  • このビルトインアクションは、Windows テストコントローラでのみサポートされています。
  • アクション execute mobile command は、Appiumがサポートしているコマンドを実行するために呼び出すことができます。(詳細は、このアクションの Help トピックドキュメント を参照してください(Androidでは、mobile:shellコマンドを使用する場合、adb shellはデバイス上で実行する権限が必要であることに注意してください)。さらに、スクリプトは引数 command でラップする必要があります。例えば、全てのパッケージをリストアップするには、引数は {'command': 'pm list packages'})) となります。上記の例については、 を参照してください。

Copyright © 2023 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333