
Originally Posted by
srinii_vasu
qtp automation framework
1. Linear framework
this is normal process like recording or scripting the program and executing it. This is not reusable, once execuiting these script.
2. Modular framework>>
this is different from liner frame work, here recording or scripting the program and those script split into actions and make those actions as reusable actions. These reusable actions can use any where in the test.
3. Keyword driven automation frameworkqtp supports to keyword driven automation framework. In keyword driven automation framework first we are going to create a folder on that project name, then create six subfolders within that folder like repository, library files, recovery file, test data, main test, test log file.
here repository folder is used for save the objects of the application. First learn all the objects by using object repository and then export all the objects to repository folder by giving .tsr extension (test shared repository). This file associate to repository manager, navigation is object repository ----à associate repository
then click + tab and browse the file from repository folder
library file folder is used for save functions, which is created by the user. Suppose take one login window and create a function, first open notepad and create function as per your required.
public function login( )
dialog (“login”).activate
dialog (“login”).winedit (“agent name”).set”baba”
dialog (“login”).winedit (“password”).set secure”xxxxxxxx”
dialog (“login”).winbutton(“ok”).click
end function ( )
then save with .vbs extension in to the library file folder.
after that associate this function to qtp library files. The navigation is
test setting----->resources then click + tab and browse the function. In this manner create no of functions as per required and associate all the functions to qtp.suppose some example
insert order ( ), logout ( ), update order( ).
recovery file folder is used for save recovery scenarios which is created by the user. Create recovery scenarios and save those recovery scenarios with .qrs extension with recovery file folder. After that associate those recovery scenarios to qtp.navigation is test setting---àrecovery then click +tab and browse the file.
test data folder is used for save input data. Suppose through flat file method, open the notepad and give input data and save with .txt extension in test data folder.