# WAP TO TAKE USER NAME AND PASSWORD AS INPUT. IF USERNAME IS "admin" # AND PASSWORD IS "admin123" THEN DISPLAY "LOGIN SUCCESSFUL" # OTHERWISE DISPLAY "LOGIN FAILED". userName = input("Enter User Name:") password = input("Enter password:") if userName == "admin" and password == "admin123": print("Login Successful") else: print("Login Fail.") ============================================================================== # Test Case to check whether the Login page is working as per the requirements? # ============================================================================== # Login Page: # user name/Mobile/Email: no data/incorrect/correct/incorrect/correct # password: no data/incorrect/incorrect/correct/correct # Login button # # -> three ways we can consider, to test the application # 1) testing with no data # 2) testing with incorrect data (negative testing) # 3) testing with correct data (positive testing) # Assume user name = "admin" and password = "admin123" userName = input("Enter User Name to login:") password = input("Enter password to login:") if userName == "": print("The email address or mobile number you entered isn't connected to an account.") elif password == "": print("The password that you've entered is incorrect.") elif userName == "admin" and password == "admin123": print("Login Successful.") else: print("User Account not found.") ===================================================================