In my application, I have two text fields for entering User-name and Password. I need to write test case for checking Password field is not empty. I Set Up the testing environment and I know how to call methods from testing class, but I don’t know how to write test case. Please help me to write a test case.
Share
I’d start with a test that looks something like this:
Now, does that pass (indeed does it even build)? If not, make the necessary changes to your code.