Showing posts with label calling functions in qtp through script. Show all posts
Showing posts with label calling functions in qtp through script. Show all posts

Script To Load Library Files into Test in QTP at RunTime

QTP Script to load library file at run time in particular test.

But before that just check this post where we loaded library file into test through Navigation

Open notepad and paste the following code

Function f1
msgbox "first function"
End Function

Function f2
msgbox "second function"
End Function

save notepad as fff.vbs in C drive.

We created library file,now we have to load this file into our test through script.

Syntax:ExecuteFile "path of file"

ExecuteFile "C:\fff.vbs"

The above statement loads library file into our test.

If u want to call function in the test just write function name.

f1
f2

Related Posts Plugin for WordPress, Blogger...

Fun and Knowledge