# Qtopia/Filebrowser

## Test cases

### Directory view

Test Purpose | Verify that the file browser shows the contents of a selected directory

Test Description

1. Start the File Browser from the Applications tab of the launcher.
2. Verify that the specified list of directories for /home/root is displayed.
3. Click the 'up' button in the toolbar.
4. Verify that the specified list of directories for /home is displayed.
5. Click the 'up' button in the toolbar again.
6. Verify that the specified list of directories for / is displayed.

Expected TestResult

The contents of /home/root/ should show the following directories:

- Applications
- Documents
- modules
- Settings
- systeminfo
- usr

The contents of /home should show the following directories:

- etc
- lost+found
- QtPalmtop
- root
- sharp
- system
- tmp
- userdata

The contents of / should show the following directories:

- bin
- boot
- dev
- etc
- home
- lib
- mnt
- opt
- proc
- root
- sbin
- tmp
- usr
- var

Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Navigate

Test Purpose | Verify that you can navigate through the directory structure

Test Description

1. Tap "Dir" + "/"
2. Verify that you are in the root directory. (Listed directories should be bin, boot, dev, etc, home, and more...).
3. Tap on the "lib" directory.
4. Verify that the contents of "lib" is shown and there is a combination of subdirectories and files.
5. Verify that you can navigate trough the directory structure by tapping on subdirectories to go deeper into the directory structure and by tapping on the "LEFT ARROW" button in the toolbar to go back to the previous step.
6. Verify that you can get back to the root directory level by pressing the "UP ARROW" button multiple times.
7. Verify that the "UP ARROW" is disabled if you are in root directory level.
8. Starting in the root directory verify that the "Dir" menu shows only one option: "/"
9. Select the "home" directory and verify that the "Dir" menu now shows two options: "/" and "home" and that "home" has a checkmark in front of it.
10. Select "QtPalmtop" and verify that the "Dir" menu now shows three options: "/", "home" and "QtPalmtop" and that "QtPalmtop" has a checkmark in front of it.
11. Select "/" in the "Dir" menu and verify that you are back in the root directory.
12. Open the "Dir" menu again and verify that only the "/" option is available and has a checkmark in front of it.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Sorting

Test Purpose | Verify that the presentation of a directory contents can be sorted.

Test Description

1. tap to /home/etc
2. Select sorting by Name from the menu and verify that the directories are shown first (sorted by name) and then the files are shown (sorted by name).
3. Select sorting by Size from the menu and verify that the files and directories are shown sorted by size (since all directories have the same size they should be grouped somewhere in the middle between smaller are larger files).
4. Select sorting by Date from the menu and verify that the files and directories are shown sorted by date. Oldest file/directory first.
5. Select the directory to /home/root/Applications/qtmail
6. If this directory doesn't contain files of different types (e.g. because you have not synced any mail yet) search for another directory that has files of multiple types (as identified by different file icons).
7. Select sorting by type from the menu and verify that the files and directories are sorted likewise. All directories together, all ".dat" files together, all ".txt" files together, etc.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Creating a directory

Test Purpose | Verify that a new directory can be created.

Test Description

1. Go to the root directory and tap the "Create folder" button
2. Verify that an error message is shown, because the root directory is part of the Read Only image.
3. Go to /home and tap the "Create folder" button again.
4. Verify that this time a folder is created.
5. Tap "Create folder" again and verify that a second folder named "New Folder (1)" is created.
6. Tap and hold the new folder until a popupmenu appears.
7. Select "rename" in the menu and enter a new name.
8. Select the

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Renaming a directory

Test Purpose | Verify that a directory can be renamed.

Test Description

1. Create a new directory and then tap and hold it.
2. In the popupmenu that appears select "rename".
3. Enter a new name that doesn't exist yet, e.g. "foo".
4. Create a second new directory.
5. Rename this new directory to the same name, e.g. "foo".
6. Verify that the new name isn't accepted as it exists already.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Cut and paste

Test Purpose | Verify that you can cut a file from a directory and paste it in another directory.

Test Description

1. Select the file(s) to be moved and click on the Cut button in the toolbar.
2. Verify that the file(s) disappear from the directory view.
3. Go up the directory three one level and select another directory.
4. Click the Paste button on the toolbar.
5. Verify that the previously cut files are inserted in the new directory.
6. Select the pasted files and Cut and Paste them back to their original directory.
7. Verify that the files are back again in their original directory.
8. Select a file and click on the Cut button in the toolbar.
9. Click Paste in the same directory and verify that the file is pasted back to the same directory.
10. Click Paste again and verify that a file named "copy of x" is created where x is the name of the original file.

Alternatively, select the file(s), click and hold, and select Cut from the popup menu.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Copy and paste

Test Purpose | Verify that you can copy a file from a directory and paste it in another directory.

Test Description

1. Select the file(s) to be copied and click on the Copy button in the toolbar.
2. Verify that the file(s) no not disappear from the directory view.
3. Go up the directory three one level and select another directory.
4. Click the Paste button on the toolbar.
5. Verify that the selected files are copied into the new directory.
6. Select a file and click on the Copy button in the toolbar.
7. Click Paste and verify that a file named "copy of x" is created where x is the name of the original file.

Alternatively, select the file(s), click and hold, and select Copy from the popup menu.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Delete

Test Purpose | Verify that a file or directory can be deleted.

Test Description

Hint: Don't try this test with important system files or directories, but rather create a test directory and test files first.

1. Select the file(s) to be deleted, click and hold, and select Delete from the popup menu.
2. Verify that a "verification dialog" pops up and click No.
3. Verify that the files are NOT removed from the directory view.
4. Repeat the same steps but this time click on Yes.
5. Verify that the files disappear from the directory view.
6. Repeat the same procedure for a directory.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Rename a file

Test Purpose | Verify that a file can be renamed.

Test Description

1. Create a new file (using the text editor or upload from Desktop) and then tap and hold it.
2. In the popupmenu that appears select "rename".
3. Enter a new name that doesn't exist yet, e.g. "foo".
4. Verify that the selected file is renamed to "foo".
5. Create a second new file.
6. Rename this new file to the same name, e.g. "foo".
7. Verify that the new name isn't accepted as it exists already.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Application launching

Test Purpose | Verify that an application can be launched for files that are associated with that application.

Test Description

1. Navigate to a directory containing files of a mime-type handled by an application in Qtopia (eg: navigate to a directory containing a text file or JPEG image).
2. Double click on the file.
3. Verify that the appropriate application is launched with the file as the default.
4. Close the application (the editor, jpeg player, etc).
5. Verify that you are back in the File Manager.
6. Click and hold the file.
7. Verify that a popup menu is opened that has an entry Open in X, where X is the default application for that file type.
8. Select the "Open in X" menu option and verify that the appropriate application is launched again.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Document shortcut

Test Purpose | Verify that a document can be added to the Document tab with a shortcut

Test Description

1. Navigate to a directory containing files of a mime-type handled by an application in Qtopia (eg: navigate to a directory containing a text file or JPEG image).
2. Click and hold on the file, and select Add to Documents from the popup menu.
3. Close the File Manager and select the Documents tab to verify the file was added.
4. Clicking on the new addition will launch the application associated with the file.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test