I have some queries regarding automation test cases.
For example: I want to test login and logout from the application.
What type of test cases should be automated?
First, take a look at the answers to these questions:
All of them provide some insight into the general question of what type of test cases should be automated - but you should remember that there are no absolute rules. The types of test cases that should be automated in your organization may not be the ones that should be automated in my organization.
To use your logon/logoff example, you would want to consider automating in these cases (this is not an exclusive list - I'm sure there are many more examples):
You might consider not automating user logon/logoff in circumstances like these (again, not an exclusive list):
Some other things you would consider not automating:
In short, what you should automate depends on your business model, your application, your customer base, and whether you have the time and/or support to build the automation.
My rule of thumb is: you should want to automate the business-critical tests, which are repeated with every new release (regression tests), if you are going to have 3+ releases.