This Framework,
1. Requires the development of data tables and keywords, independent of the test automation tool used to execute them.
2. Tests can be designed with or without the Application.
3. In a keyword-driven test, the functionality of the application-under-test is documented in a table as well as in step-by-step instructions for each test.
Components in this framework,
- Control File (Scenario Sheet).
- Test Case File.
- Startup Script (Environment Sheet)
- Driver Script.
- Utility Script. (VB Script Functions)
Ø Control File (Scenario Sheet)
a) It consist details of all the Test scenarios to be automated.
b) User will be able to select a specific scenario to execute.
c) Control File is in the form of an excel worksheet.
d) It contains columns for Scenario ID, Execute (Y/N), Object Repository Path, test Case File path.
Ø Test Case File
a) It Contain the detailed steps to be carried out for the execution of a test case.
b) It is also in the form of an excel sheet and contains columns for Keyword, Object Name, Parameter.
Ø Startup Script (Environment Sheet)
a) The startup script is utilized for the initialization and reads the control files.
b) It’s a place to declare global variables & paths.
c) It then calls the driver script to execute all the scenarios marked for execution in the control file
Ø Driver Script
a) It Reads the Test Case files.
b) Checks the keywords and calls the appropriate utility script functions based on specific keyword.
c) Error Handling is taken care of in the driver script.
Ø Utility Scripts (VB Script Functions)
a) Perform generic tasks that can be used across applications.
Advantages:
1. Provides high code re-usability.
2. Test Tool Independent.
3. Independent of Application under Test, same script works for AUT (with some limitations).
4. Tests can be designed with or without AUT.
Disadvantages:
- Initial investment being pretty high the benefits of this can only be realized if the application is considerably big and the test scripts are to be maintained for quite a few years.
- High Automation expertise is required to create the Keyword Driven Framework.