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: Directory base operations #14

@mkolisnyk

Description

@mkolisnyk

Directory operations cover the following actions:

  • Check folder presence
  • Create directory with or without overwriting
  • Copy directory
  • Move directory
  • Delete directory

Scenario: Directory exists

  • Check folder presence

Given the "./Test" folder doesn't exist
And the "./Test1" folder doesn't exist
When I create the "./Test" folder
And delete the "./Test1" folder
Then I should see the "./Test" folder is available
And the "./Test1" folder is missing

Scenario: Create directory

  • Create directory with or without overwriting

Given the "./Test" folder doesn't exist
When I create the "./Test" folder
Then I should see the "./Test" folder is available
When I create the "./Test/test1/test2" folder
Then I should see the "./Test/test1/test2" folder is available

Scenario: Create directory (overwrite)

  • Create directory with or without overwriting

Given the "./Test" folder doesn't exist
When I create the "./Test" folder
Then I should see the "./Test" folder is available
When I create the "./Test/test1/test2" folder
And I create the "./Test/test1" folder (with overwrite)
Then I should see the "./Test/test1" folder is available
And the ".,Test/test1/test2" folder is missing
When I create the "./Test/test1/test2" folder
And I create the "./Test/test1" folder (without overwrite)
Then I should see the "./Test/test1" folder is available
And the "./Test/test1/test2" folder is available

Scenario: Copy directory

  • Copy directory

Given the "./Test" folder doesn't exist
And the "./Test1" folder doesn't exist
When I create the "./Test/copyTest" folder
And I copy the "./Test" folder to the "./Test1" path
Then I should see the "./Test" folder is available
And the "./Test1/copyTest" folder is available

Scenario: Delete directory

  • Delete directory

Given the "./Test" folder doesn't exist
When I create the "./Test/Test1/Test2" folder
Then I should see the "./Test/Test1/Test2" folder is available
When I delete the "./Test" folder
Then I should see the "./Test" folder is missing

Scenario: Move directory

  • Move directory

Given the "./Test" folder doesn't exist
And the "./Test1" folder doesn't exist
When I create the "./Test/copyTest" folder
And I move the "./Test" folder to the "./Test1" path
Then I should see the "./Test" folder is missing
And the "./Test1/copyTest" folder is available

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions