Elif Çağlayan
Beyn Technology
Published in
3 min readNov 4, 2021

--

Hello, I would like to share with you a sample test case write practise in this article. I will try to write it in detail with a simple template. I will write the test cases using the following that I have prepared a simple Login page template and simple requirements for this article.

Requirements of the Login Page
— The page should have a red “Sign In” title.
— Should have an input element for entering username and type of this input must be Textbox.

— The Username textbox should have a placeholder like “Username”.
— Should have an input element for entering a password and the type of this input should be Textbox.
— The Password textbox should have a placeholder like “Password”.
— There should be a button for login on the page.
— The text of the button should be “Login” and the colour of the text should be white.
— The colour of the button should be green.
— If users click the login button while the username field is empty or incorrect, the warning message “Username is invalid” should appear.
— If users click the login button while the password field is empty or incorrect, the warning message “Password is invalid” should appear.
— If users click the login button while username and password are correct, the login process should be successful and the user should be directed to the next page.

Let’s create our table where we will write our test cases and examine the table titles;

Case No: Sequence number of the case to be tested
Test Name: Name of the component/unit to be tested
Test Step: Detail point to be tested during test execution
Expected Result: Acceptance criteria that must be provided for the test to be successful.
Status: The status of the Expected Result after test execution. Status values can be “Passed” or “Failed”

--

--