Hello Pratham,
Check out this learning path to learn more how to do this.
https://academy.mendix.com/link/modules/194/Unit-Testing
https://docs.mendix.com/appstore/modules/unit-testing/
Check also this blog by Mitchell Mol:
https://www.linkedin.com/pulse/unit-testing-how-get-started-mitchel-mol-o8v7e/
If you want to go more enhanced then there is extra software of third parties for example MTA
https://marketplace.mendix.com/link/component/120116
Hope this helps,
Good luck!
The scenario you are describing is all testing the UI-interface. For this sort of testing, the marketplace module Unittesting is not the correct tool, since this is meant for testing microflows. You need for instance Tosca.