Create File

About Create File test step

The Create File test step creates a file with arbitrary contents and can wait until the file is deleted by some other software.

Requirements

pro.png To use this test step, you need ReadyAPI Test Licenses. If you do not have it, you can request it on our website or start a trial.

Edit Create File test step

You can modify the settings of a test step in its editor:

Create File test step editor

Tip

You can use Property Expansions in the editor.

Property list

Besides the test step editor, you can adjust the test step’s behavior by using its properties in the Properties and Custom Create File Test Step Properties panels in the Navigator.

Name

Description

Name

The test step’s name.

Description

Text describing the test step.

This tab contains the following properties that provide access to the request and response data:

You can modify custom properties, load their values from a file, or save them to a file. To learn more, see About Properties.

Values on the Custom Create File Test Step Properties tab are available for other test steps in your project. For instance, you can verify these property values with the Assertion test step, or check them and change the execution flow with the Conditional GoTo test step.

Name

Description

fileName

Same as the File name text box in the editor.

FolderPath

Same as the Folder name text box in the editor.

fileContent

Same as the File content text box in the editor.

Verify test step

Test evaluation is affected by the Wait for file deletion option.

Wait for file deletion

Pass Criteria

Comment

Selected

File created.

Fails if the file was not created or written to.

Not selected

File created and deleted within the specified time.

Fails if the file was not created, written to or deleted.

See Also

Publication date: