The domain of automation includes white-box code inspection, unit testing, acceptance testing, integration testing, API testing, and end-to-end UI testing. In terms of implementation effort, unit testing and white-box inspection usually take the least effort, while UI testing often takes the most effort, particularly in order to understand the UI business flow.
Therefore, most automated testing cases are done with unit testing or API-level testing. Automated UI testing may only cover the scenarios from a user perspective while the API testing may cover more business logic or exception handling use cases. The following diagram illustrates the different levels of automation testing and how much effort they take.
On the other hand, the domain of security testing can be much broader. The following...