change file attributes

ファイルの属性を変更します。
名前説明タイプ修飾子
file

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

Stringなし
attributes

新しい属性の値です。

許容値: 

  • Windows プラットフォーム

    read-only: ファイルは読み取り専用です。

    hidden: ファイルは非表示で、通常のディレクトリリストには含まれません。

    archive: ファイルはバックアップまたは削除の候補です。

    normal: ファイルは特別な属性を持たない標準ファイルです。

  • Linux プラットフォーム

    read: ファイルの内容を表示できます。

    write: ファイルの内容を書き込むことができます。

    execute: ファイルを実行できます。

value setread-only, hidden, archive, normal, read, write, execute
なし
このアクションは、次のプロジェクト項目で使用できます: テストモジュールおよびユーザー定義アクションです。
次の設定はこのアクションに適用可能です:  remove double quotes from cells.
                                
                                    	file	variable
get file attributes	D:/Example.txt	before
&nbsp		
	file	attributes
change file attributes	D:/Example.txt	read-only, hidden
&nbsp		
	file	variable
get file attributes	D:/Example.txt	after
                                
                            
  • ファイルのパスの形式は以下の通りです:
    • Windows プラットフォーム: パスの区切り文字としてバックスラッシュを使用します。
    • Linux プラットフォーム: パスの区切り文字としてスラッシュを使用します。(ネットワークパスはサポートされていません)
  • このビルトインアクションは現在、macOS やモバイルプラットフォームではサポートされていません。
  • 引数 attribute には、指定されたプラットフォームで許可されている属性の任意の組み合わせを、カンマで区切って含めることができます。
  • (Windowsのみ)引数 attribute の値が normal に設定されている場合、指定されたファイルの全ての既存の属性をクリアします。
  • このアクションは修飾子 <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