Major Components of Test Automation Framework
Test Data is a
set of input data require by the test scripts during test cases execution. It
should be separated from the test script for better reuse of the code. Test
data may contains both valid and invalid inputs as per the expected result. For
example to login to a website you need to input the username and password which
are nothing but the test data.
Object Repository is a collection of objects and it’s associated properties through which
the object can be identified by the test automation tool during test execution.
Automation testing tool identify the objects/elements by using their properties
like name, id, xpath etc. For example the username text box in a logIn page has
a property id=txtusername, So during test case execution automation testing
toll will look for the txtusername to identify the username test box to enter
the require input/test data.
Functional Libraies are the set of libraries provided by the automation testing tool to
perform various operations like identify element, click button/ling, input text
etc. You can create your own user defined library to reuse the code. If the
same code is used repeatedly, It is a best practice to define all functions in
one utility file and call it as many numbers of times from other test cases.
Test Results
is the final output of the test execution. Test results should be logged into a
separate log file and should be fairly easy to understand. The automation
framework must be written in such a way that if one test script fails, it
should not stop the execution process. Ideally, the framework should report the
errors in the log file and move on to execute the next test case.
The Driver is
the governing body of the automation framework.
-It executes the test scripts from
test suit.
-Fetch inputs from Test Data and get
element’s property from object repository to Identify the --elements/objects and provides these to
test scripts during test execution.
-At the end it logs the test execution
results in output log.
No comments:
Post a Comment