Finally and AfterTest difference | Selenium Forum
M
Posted on 25/06/2016
Hi Team,

Can you please tel me what is the main functional difference between "Finally" and "AfterTest"

Thanks
Manoj

M
Replied on 26/06/2016

[color=#FF0000:3774oc0c]Finally[/color:3774oc0c]

as in try catch block?


M
Replied on 29/06/2016

Yes.


M
Replied on 30/06/2016

for try catch and finally.
http://stackoverflow.com/questions/2854910/difference-between-try-finally-and-try-catch

@aftermethod runs after testng test has run. they have nothing in common. 2 very different thing.


M
Replied on 03/07/2016

My doubt is finally will clean up the activity and even AfterTest also. So why we need both ?


M
Replied on 03/07/2016

they are very different from each other.

it is like comparing apples and oranges.


watch framework module 20 you'll understand the difference.