I'm a C# developer & never worked before on either unit tests or Selenium browser test automation.
For a current assignment, there is an existing Visual Studio solution that has a project that does test automation. This solution has no unit tests.
For e.g, there is a form on the live site that captures customer data. This Selenium VS project on build, will auto open the browser, fill the form fields with random values, click on submit and verify the next steps like 'Thank you screen', database entries etc. (These test cases are created by developers & not by QC).
This is not unit test, but more of how a QC will test after the development is complete. right?
For someone who never worked on tests before, one advantage I see is, each time the code is deployed to a new environment like STG, UAT, etc, the developer can run this project by changing the URL/connection string, and it will execute all the test cases, saving time and like a regression testing too.
Is this a good approach to use this kind of testing instead of conventional unit tests. If not, what major advantage/disadvantage has one model over the other.