Unit 5
Unit 5
TEST AUTOMATION
Software test automation – skill needed for
automation – scope of automation –
design and architecture for automation –
requirements for a test tool – challenges in
automation – Test metrics and
measurements – project, progress and
productivity metrics.
Software test automation
• Manual software testing - Trying various usage and input
combinations, comparing the results to the expected behavior and
recording their observations.
• Test automation can free the test engineers from mundane tasks
and make them focus on more creative tasks.
• Also these recorded test scripts can be edited as per need i.e.,
whenever changes are made to the software.
• This method help in developing test scripts that generates the set of
input conditions and corresponding expected output.
Skills for test case Skills for test case Skills for test case Skills for framework
automation automation automation
• For eg , IP Packet Simulators. The result that comes out of the tests
run by the test framework should not overwrite the results from the
previous test runs. The history of all the previous tests run should be
recorded and kept as archives.
Report Generator and Reports / Metrics Modules
• Once the results of a test run are available, the next step is to
prepare the test reports and metrics. Preparing reports is a
complex and time- consuming effort and hence it should be part of
the automation design.
• The variables for the test suite are called configuration variables.
The file in which all variable names and their associated values are
kept is called configuration file.
• The variables belonging to the test tool and the test suite need to
be separated so that the user of the test suite need not worry
about test tool variables.
• Providing inline comment for each of the variables will make the
test suite more usable and may avoid improper usage of variables.
Ex: well documented config file
Requirement 2: Test case/ suite expandability
• A setup for one test case may work negatively for another test
case. Hence, it is important not only to create.
Requirement 5: Independent test cases
• Giving a set of test cases and expecting the test tool to select
the test case is called random execution of test cases.
2. Resume the test cases from where they were stopped the
previous time;
• This requires that all the related information for the test cases
have to be archived. It includes
• The language/ script written for the test suite should not
contain platform- specific calls.
CHALLENGES IN AUTOMATION
• Test automation presents some very unique challenges. The
most important of these challenges is management
commitment.
This step helps to decide on the appropriate periodicity for the measurements
as well as assign operational responsibility for collecting, recording and
reporting the measurements.
Step5: The final step is to take necessary action and follow up on the action.