how can automation can be used code example

Example: how to decide automation

1 If the execution of the test is periodic and
    should start always run at a specified time and
    produce reports, like our smoke test
	2. If the test case includes detailed calculations
    and therefore is open to human error
	3. If the test case is retrieving and
    validating huge amount of data set
	4. If the execution of the test requires too much time,
    too many repetitions with different approaches
    so that test coverage can be maximized.
	5. If the feature is connected somehow to
    the other upcoming features and therefore
    will be need to be tested again

Tags:

Misc Example