LPS Interview Question

How to do testing on login function?