While developing test, there are certain scenario where you need to perfrom some steps before running test,
Before Test and
After Test will helpful in that case.
The scope of Before Test and After Test is only the single .test file where they are declared.
- Before Test
Step: Pause until @Email_Box is display
Step: pause 1 sec
Step: Enter 'firstname.lastname@example.org' in to @Email_Box
Step: Enter 'demoadmin' in @Password_Box
Step: Click on @LoginBtn
- After Test
Step: Click on @LogoutBtn
Step: Pause until @LoginBtn is display
Verify: @LoginBtn is Displayed