your test cases should not be dependent on other test cases. so do it like this
@BeforeTEST(){//it only run once for all tescases
login code here
}
@test(){
test1 here
}
.
.
@test(){
test30 here
}
@aftertest(){
log out code here
}
yes got the point but , I also have to parametrize login test.
Scenario:
I have 10 different user.
Login with user1 and perform all 30 test cases
then login with user2 and then perform all 30 test cases
so I need to parametrize login test also as want to perform all 30 test cases with different user and @Beforetest method not allowing Dataprovide.
Can you please help on this.
Thanks,
you can try this q/a
http://stackoverflow.com/questions/33117594/can-dataprovider-pass-data-to-beforetest