set text file

ファイルにテキストを書き込みます。
名前説明タイプ修飾子
file name

ターゲットファイルのフルパスです。

Stringなし
text

ファイルに書き込むテキストです。

Stringなし
type

(任意)実行されるアクションのタイプです。

許容値: 

  • new: 新しいファイルを作成し、そのファイルにテキストを書き込みます。
  • append: 既存のファイルの現在の内容にテキストを追加します。

デフォルト値: new
value setnew, append
なし
このアクションは、次のプロジェクト項目で使用できます: テストモジュールおよびユーザー定義アクションです。
次の設定はこのアクションに適用可能です:  remove double quotes from cells.
                                
                                    	file		
check file exists	d:\Example.txt		
&nbsp			
	file name	text	type
set text file	d:\Example.txt	TestArchitect はテストをさらに効率的に自動化するのに役立ちます。	append
&nbsp			
	file		
check file not exists	d:\Hello.txt		
&nbsp			
	file name	text	type
set text file	d:\Hello.txt	TestArchitect へようこそ	new
                                
                            
  • ファイルのパスの形式は以下の通りです:
    • Windows プラットフォーム: パスの区切り文字としてバックスラッシュを使用します。
    • Linux プラットフォーム: パスの区切り文字としてスラッシュを使用します。(ネットワークパスはサポートされていません)
  • このビルトインアクションは現在、macOS やモバイルプラットフォームではサポートされていません。
  • このビルトインアクションは、拡張子を持つファイルをサポートします: .txt, .log, .dat.
  • 引数 type
    • 指定された値が new で、ファイルが既に存在する場合、TestArchitect は自動的に既存のファイルを新しいファイルで上書きします。
    • 指定された値が append で、ファイルが存在しない場合、TestArchitect は自動的に新しいファイルを作成し、テキストを新たに作成されたファイルに書き込みます。
  • このアクションは修飾子 <ignore> をサポートしています。文字列 <ignore> が引数の値として存在する場合、または引数に <ignore> と評価する式を含まれている場合、アクションは実行中にスキップされます。

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