Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Document Version 0.0

Status: Test plan development in progress

...

Test Server:

Build Hash:

Test Date:

Test Area - Plugin Setup

Test ID

Test Case

Test Procedure

Result

Notes

1

Admin can install plugin in a non-EE instance

  1. Log in to a non-enterprise Mattermost, as admin

  2. From System Console > PLUGINS > Plugin Management, upload the export plugin.

  3. Verify that the plugin can be installed.

2

Admin can install plugin in an E10 instance

  1. Log in to Mattermost that has an E10 license, as admin.

  2. From System Console > PLUGINS > Plugin Management, upload the Incident Response plugin.

  3. Verify that the plugin is successfully installed.

3

Admin can install plugin in an E20 instance

  1. Log in to Mattermost that has an E20 license, as admin

  2. From System Console > PLUGINS > Plugin Management, upload the Incident Response plugin.

  3. Verify that the plugin can be installed.

4

Admin can enable plugin

  1. Once installed in the “Installed Plugins” section, find the Channel Export plugin and click on the “Enable” button.

  2. Verify that the plugin starts normally without errors.

5

Plugin functionality is available to admin

  1. Switch to a normal channel view.

  2. In the post input box, type /export.

  3. Verify that the /export option is present in the slash command list.

6

Plugin functionality is available to normal user

  1. Log out and log back in as a normal user.

  2. In the post input box, type /export.

  3. Verify that the /export option is present in the slash command list.

7

Admin can disable plugin

  1. Log out and log back in as admin.

  2. From System Console > PLUGINS > Plugin Management, find the Channel Export plugin.

  3. Click on the “Disable” button.

  4. Verify that the plugin is disabled.

  5. In the main channel’s post input box, type /export.

  6. Verify that /export option is not present in the slash command list.

8

Admin can remove plugin

  1. From System Console > PLUGINS > Plugin Management, find the Channel Export plugin.

  2. Click on the “Remove” button.

  3. Verify that the plugin is no longer installed in the instance.

Install and enable the plugin if needed. For the following tests, log out as system admin and login as normal user. All following tests, until specified will be tested as a normal user.

Test Area - Permissions

Test ID

Test Case

Test Procedure

Result

Notes

9

User can export a public channel

  1. Go to a public channel.

  2. Issue the /export slash command.

  3. Verify that the channel is exported successfully.

(See tests in “Export” test area below to verify successful export.)

10

User can export a private channel

  1. Go to a private channel.

  2. Issue the /export slash command.

  3. Verify that the channel is exported successfully.

(See tests in “Export” test area below to verify successful export.)

11

User can export a GM channel

  1. Go to a group message channel.

  2. Issue the /export slash command.

  3. Verify that the channel is exported successfully.

(See tests in “Export” test area below to verify successful export.)

12

User can export a DM channel

  1. Go to a direct message channel.

  2. Issue the /export slash command.

  3. Verify that the channel is exported successfully.

(See tests in “Export” test area below to verify successful export.)

13

User can export DM channel with self

  1. Go to the direct message channel to self.

  2. Issue the /export slash command.

  3. Verify that the channel is exported successfully.

(See tests in “Export” test area below to verify successful export.)

14

User cannot export archived channel

  1. From Postman, POST an export request to the following URL:
    http://localhost:8065/api/v4/commands/execute

  2. Form a message payload as follows with channel ID of an archived channel, and appropriate team ID

    1. {"command":"/export ","channel_id":<CHANNEL-ID>,"team_id":<TEAM-ID>}

  3. Verify that the channel cannot be exported.

15

User cannot export a channel they are not added to

  1. From Postman, POST an export request to the following URL:
    http://localhost:8065/api/v4/commands/execute

  2. Form a message payload as follows with channel ID of a channel the user is not added to

    1. {"command":"/export ","channel_id":<CHANNEL-ID>,"team_id":<TEAM-ID>}

  3. Verify that the channel cannot be exported.

Test Area - Export

Test ID

Test Case

Test Procedure

Result

Notes

16

A system message notifies of successful export command execution on the channel where export is initiated

  1. Issue a /export slash command in a channel.

  2. Verify that as soon as the slash command is issued, a system message notifies the user that the channel export has begun.

17

A bot message notifies of a successful export

  1. Issue a /export slash command in a channel.

  2. If exported successfully, verify that a Channel Export bot notifies of the successful export in the bot’s DM channel.

18

The exported file can be downloaded locally

  1. Issue a /export slash command in a channel.

  2. If exported successfully, verify that the exported channel can be downloaded in the bot’s DM channel.

19

Channel is exported in CSV file format

  1. Issue a /export slash command in a channel.

  2. If exported successfully, verify that the exported file is in CVS format.

20

A bot message notifies of an unsuccessful export

  1. Issue a /export slash command in a channel such that the export is not successfully.

  2. Verify that the bot notifies for the failed export in the bot’s DM.

21

Exported CSV has messages of a channel in chronological order

  1. Export a channel.

  2. Go to the Channel Export bot’s DM channel.

  3. Download the exported file.

  4. Open up the file.

  5. Verify that the exported messages are in chronological order in each row.

22

Exported CSV has date

  1. Find a channel where messages were sent in different days.

  2. Export the channel.

  3. Download the exported file.

  4. Open the exported file.

  5. Verify that the messages and dates of when the messages were sent are correctly matched in the file.

23

Exported CSV has timestamp

  1. Post several messages in a channel at varying intervals.

  2. Export the channel.

  3. Download the exported file.

  4. Open the exported file.

  5. Verify that the messages and timestamps of when the messages were sent are correctly matched in the file.

24

Exported CSV has message senders username

  1. Find a channel where multiple users have sent several messages.

  2. Export the channel.

  3. Download the exported file.

  4. Open the exported file.

  5. Verify that the messages and the senders are correctly matched in the file.

25

A channel with no messages can be exported successfully

  1. Create a new channel.

  2. Without sending any message in the channel, export the channel.

  3. Download the exported file.

  4. Verify the content of the exported channel in the file.

26

A channel with more than 100 messages can be exported successfully

  1. Find a channel with more than 100 messages.

  2. Export the channel.

  3. Download the exported file.

  4. Verify that all messages appear correctly in the file.

27

A channel with media files can be exported successfully

  1. Find a channel with different media, or send media messages in a channel.

  2. Export the channel.

  3. Download the file.

  4. (How is media exported?)