Skip to content

Commit

Permalink
[tests-only] add tests for edit files
Browse files Browse the repository at this point in the history
  • Loading branch information
swoichha committed Oct 21, 2021
1 parent 2ff07c9 commit a5709fb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/gui/suite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ HOOK_SUB_PROCESSES=false
IMPLICITAUTSTART=0
LANGUAGE=Python
OBJECTMAPSTYLE=script
TEST_CASES=tst_addAccount tst_sharing tst_syncing tst_loginLogout tst_removeAccountConnection tst_checkAlltabs tst_vfs tst_deletFilesFolders
TEST_CASES=tst_addAccount tst_sharing tst_syncing tst_loginLogout tst_removeAccountConnection tst_checkAlltabs tst_vfs tst_deletFilesFolders tst_editFiles
VERSION=3
WRAPPERS=Qt
22 changes: 22 additions & 0 deletions test/gui/tst_editFiles/test.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Feature: edit files

As a user
I want to be able to edit the file content
So that I can modify and change file data


Background:
Given user "Alice" has been created on the server with default attributes and without skeleton files


Scenario Outline: Modify orignal content of a file
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "<filename>" on the server
And user "Alice" has set up a client with default settings
When the user overwrites the file "<filename>" with content "overwrite ownCloud test text file"
Then as "Alice" the file "<filename>" on the server should have the content "overwrite ownCloud test text file"
Examples:
| filename |
| textfile.txt |
| textfile.doc |
| textfile.xls |
| textfile.pdf |
9 changes: 9 additions & 0 deletions test/gui/tst_editFiles/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
collectStepDefinitions('./steps', '../shared/steps')


def main():
testSettings.throwOnFailure = True
runFeatureFile('test.feature')

0 comments on commit a5709fb

Please sign in to comment.