Вы находитесь на странице: 1из 2

Keyword-Driven Framework:

Keyword-driven testing is a software testing technique that separates much of the


programming work from the actual test steps so that the test steps can be developed
earlier and can often be maintained with only minor updates, even when the
application or testing needs change significantly.

How this works??

The keyword driven framework consists of the basic components given


below

1. Control file

2. Test case file

3. Startup script

4. Driver script

5. Utility script

1. Control file

a) consists details of all the test scenarios to be automated

b) user will be able to select a specific scenario to execute based on turning on or off
a flag in the
control file

c) control file is in the form of an excel worksheet and contains columns for scenario
id,execute
(y/n),object repository path, test case file path

2. Test case file

a) contains 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

3. Startup script

a) the starup script is utilised for the initialization and reads the control files

b) it then calls the driver script to execute all the scenarios marked for execution in
the control file

4. Driver script
a) it reads the test case files. Checks the keywords and calls the appropriate utility
script
functions based on specific keyword

b) error handling is taken care of in the driver script.

5. Utility scripts

a) perform generic tasks that can be used across applications. It should not be
application
dependent advantage of framework.

The main advantage of this framework is the low cost for maintenace. If there is
change to any test case then only the test case file needs to be updated and the
driver script and startup script will remain the same. No need to update the scripts in
case of changes to the application.

Вам также может понравиться