T E S B O

Tesbo

Before and After test

Steps that define on Before and After section it will run before and after all test case of that particular tests file.

1. Before Test

i.e

BeforeTest:
Step: Pause until @Email_Box is display
Step: pause 1 sec
Step: Enter 'admin@phptravels.com' in to @Email_Box
Step: Enter 'demoadmin' in @Password_Box
Step: Click on @LoginBtn
End

2. After Test

i.e

AfterTest:
Step: Click on @LogoutBtn
Step: Pause until @LoginBtn is display
Verify: @LoginBtn is Displayed
End

You can find a similar example from Tesbo-Skeleton as well

Powered by BetterDocs

Leave a Comment