What is a Test Case?

A test case is a structured document that contains a sequence of steps to validate if a particular feature or function of an application is behaving correctly. For example, if you want to test a website login feature, your test case may include steps for entering valid credentials, invalid credentials, and checking what happens in each scenario.