Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.
This repository was archived by the owner on May 17, 2023. It is now read-only.

System: File base operations #15

@mkolisnyk

Description

@mkolisnyk

Base file operations include the following actions:

  • Create file
  • Create file overwriting existing one
  • Copy file
  • Move file
  • Delete file

Scenario Outline: Create file

  • Create file

Given the "" file doesn't exist
And the "" folder doesn't exist
When I create the "" file
Then I should see the "" file is

Examples:
| File Name | Folder | Availability |
| ./Test.txt | nop |available |
| ./T e s t.txt | nop |available |
| ./Test1/Test.txt | ./Test1 | available |
| ./T@#%^^.. | nop | missing |
| a:\Test.txt | nop | missing |

Scenario: Create file (overwrite)

  • Create file overwriting existing one

Given the "./Test.txt" file already exists
When I fill the "./Test.txt" file with the following lines:
|Line|
|Test1|
And I create the "./Test.txt" file
Then I should see the "./Test.txt" file content is:
|Line|
|Test1|
When I create the "./Test.txt" file with overwriting
Then I should see the "./Test.txt" file size is 0 bytes

Scenario: Copy file

  • Copy file

Scenario: Move file

  • Move file

Scenario: Delete file

  • Delete file

Given the "./Test.txt" file already exists
When I delete the "./Test.txt" file
Then I should see the "./Test.txt" file is missing
When I delete the "./Test.txt" file
Then I should see the "./Test.txt" file is missing

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions