How can we manage common steps in multiple test cases.? Eg: Login feature is common in all test cases. I do not want to write it again

I want to write reusable scripts in which setup steps and clean steps will be common in all test cases. I want to have minimal code/steps in my test case and rest of the things will be inherited from other

1 Like

Not getting…please can send any example apart from this because i followed the same procedure but this is not working in my code …please give some good example.

for example you can make 1 test case for login only. and another for cleanup. And call it from your scripts -->