Skip to content

Working and Testing

colinkawai edited this page Apr 28, 2021 · 4 revisions

Testing

  • There is currently partial unit testing and no integration testing.
  • The interconnected classes made it difficult to test each component. For instance, if I wanted to test if a user added a project correctly I would have to create an artificial user that doesn't involve google's api for sign-in and connect to a database within one function.
  • The unit testing below is from the Project class where its getters and setters work correctly. UnitTestingOne

Work Instance 1-X

Before and after pressing the Menu Button to create a new Project

1 2

Naming the new project, and the Project Screen

3 4

Pressing on the top Menu button, and after pressing delete, we are sent back to the main menu, without 'Screenshot Test' as an option

5 6

Now we tap on 'New Project', and we are sent into the project menu.

7

Here we use the Record Button.

8

Here we use the Play All button, which plays all audio tracks at once.

9

Here we use the Play button which just plays the track you have selected up top.

10

Now we just scroll through the different tracks to show that we can.

11 12

Database Instance

Before creation of a new Project

1

After creation of a new Project named "Database Test", and before creation of a new audio file

2

After creation of a new audio file in Database Test

3

After creation of a new audio file in Database Test, showing storage of a file on the server.

4