Hi community
Not quiet sure if i’m right here and sorry for the not so meaningful title :D!
I have a question for all of you out there. I entered the testing by accident some time ago and i’m now really happy that i found my passion and space in the industry. As i never learned testing the regular way and only do testing with my experience i collected until now, i’m really insecure about some basic things.
When i prepare and write testcases i never know if i should collect some functions in one test or if i should make one testcase for each function.
As an example, i have a videoplayer to test:
This videoplayer contains controls like backward / forward & play / pause. Now i want to test if those controls behave as expected (i don’t think that i have to explain you what those controls do).
Solution 1:
I prepare one testcase with the title “use player controls”
- Press the backward button => expected Result
- Press the forward button => expected Result
- Press the pause button => expected Result
- Press the play button => expected Result
Solution 2:
I prepare for each function a separate testcase.
Testcase 1:
“Use the backward button”
- Press the backward button => expected Result
Testcase 2:
“Use the forward button”
- Press the forward button => expected Result
Testcase 3:
“Use the pause button”
- Press the pause button => expected Result
Testcase 4:
“Use the play button”
- Press the play button => expected Result
How do you organize your testcases? Is there no right or wrong and different each project or is there a golden rule how to do this?
I thank all of you for the time and maybe provided feedback.
Cheers
Umberto