Question: Your very first task is to create a registration and login feature. This feature needs to allow users to ( Read through the entire task
Your very first task is to create a registration and login feature. This feature needs to allow users to Read through the entire task before you start any work:
Create an account by entering username, password, first name and last name.
a The system needs to check that the following conditions are met, and reply with the appropriate output message:
tableConditionsMessages,True,FalsetableUsernamecontains anunderscoreand is no morethan characterslongtableUsernamesuccessfullycapturedtableUsernameis notcorrectlyformattedpleaseensurethat yourusernamecontainsanunderscoreand is no
tabletablecharactersin length tablePasswordmeets thefollowingpasswordcomplexityrules thepasswordmust be: At leastcharacterslong Containa capitalletter Containa number Containa specialcharactertablePasswordsuccessfullycapturedtablePasswordis notcorrectlyformattedpleaseensurethat thepasswordcontains atleast charactersa capitalletter anumberand aspecialcharacter
Login to the account using the same username and password.
a The system should provide the following messages to verify the user's authentication state:
tableConditionsMessages,True,FalsetableThe enteredIIcarnam"Welcome,
tabletableThe enteredusernameandpassword arecorrect andthe user isable to logintableWelcome
Boolean:sheckPassword ComplexityString registerUserthe passwordmust be:At leasteightcharacterslong. Contain acapital letter Contain anumber Contain aspecialcharacterThis methodreturns thenecessaryregistrationmessagingindicating if: Theusername isincorrectlyformattedThepassworddoes notmeet thecomplexityrequirements The tWOaboveconditionshave beenmet and the
Boolean loginUserString returnLoginStatusTest: assertEqualsUsername is correctlyformatted:The usernamecontains anunderscore and is noUser asmore than characters longbeenregisteredsuccessfully.This methodverifies that thelogin detailsentered matchesthe login detailsstored when theuser registers.This methodreturns thenecessarymessaging for: It is good practice to never push codethat has not been tested, you will need tocreate the following unit tests to verify thatyour methods are executing as expected:AsuccessfulloginA failedloginTest Data andexpected systemresponses.Test Data: kyl
tableThe systemreturns:"Welcome
TestassertTrueFalseLogin SuccessfulLogin FailedUsername correctlyformattedUsernameincorrectlyformattedPassword meetscomplexityrequirementsPassword does notmeet complexityrequirements"Password is notcorrectly formatted,please ensure thatthe pasSWordcontains at least characters, a capitalletter, a number and aspecial character."The system returns:TrueThe system returns:FalseThe system returns:TrueThe system returns:FalseThe system returns:TrueThe system returns:False
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
