File list (FR)

Perfecto Command

perfecto:file:list

Purpose

For Web tests, provides a list of all files saved on the remote machine on which the test ran.

If a test includes files, you can use this command to receive a list of all files created during the test. You can use this command in combination with the file info and download file commands.

Parameters

None

Return Value

String

Example

Copy

Java sample

//declare the Map for script parameters
List<String> files = (List<String>) driver.executeScript("perfecto:file:list");
for (String file : files) {
    System.out.println(file);
}

Related commands

perfecto:file:download

perfecto:file:info