QTP indicates missing function library file

926 views
Skip to first unread message

Ibu

unread,
Oct 19, 2010, 3:14:05 PM10/19/10
to QTP eLearn Team
Hi Team,

I am facing a problem where in qtp says missing function library file
when opening up keyword driven assignment.

I have tried associating file with the test.

raj raj

unread,
Oct 19, 2010, 3:22:44 PM10/19/10
to Ibu, QTP eLearn Team
Hi Ibu,
Just double click on that missing error msg and navigate to the path where the function library file exist and click open...thats it.
 
thanks,
raj

Varija Sirivolu

unread,
Oct 19, 2010, 5:30:10 PM10/19/10
to raj raj, Ibu, QTP eLearn Team
Hi Raj,
 
Can you help me out?
Iam getting the following Error:
 
Type mismatch: 'browser_open'
Line (2): "browser_open "iexplore.exe","google.com"
 
Thanks,
Varija

raj raj

unread,
Oct 19, 2010, 5:33:52 PM10/19/10
to Varija Sirivolu, Ibu, QTP eLearn Team

Varija,
Try using systemutil.run instead of browser_open. It will work.
 
thanks,
raj

Karthik QTP

unread,
Oct 20, 2010, 2:55:27 AM10/20/10
to QTP eLearn Team
Team - Please DO NOT get confused.

Here are the fundamentals
1. You can create functions, store them in library and access them
through any test.
2. BUT, make sure you associate your library with the Test in Test
Settings > Resources, click on green + and ensure you select the
correct library.
3. If this is the error
Type mismatch: 'browser_open'
Line (2): "browser_open "iexplore.exe","google.com"

.... solution is not systemutil.run
The issue is the function is not getting called. You need to go back
and redo step 1 and 2 correctly.

Regards

On Oct 19, 2:33 pm, raj raj <pnraj1...@gmail.com> wrote:
> Varija,
> Try using *systemutil.run* instead of* browser_open*. It will work.
>
> thanks,
> raj
> On Tue, Oct 19, 2010 at 5:30 PM, Varija Sirivolu <varijadat...@gmail.com>wrote:
>
>
>
> > Hi Raj,
>
> > Can you help me out?
> > Iam getting the following Error:
>
> > Type mismatch: 'browser_open'
> > Line (2): "browser_open "iexplore.exe","google.com"
>
> > Thanks,
> > Varija
>
> >   On Tue, Oct 19, 2010 at 3:22 PM, raj raj <pnraj1...@gmail.com> wrote:
>
> >> Hi Ibu,
> >> Just double click on that missing error msg and navigate to the path where
> >> the function library file exist and click open...thats it.
>
> >> thanks,
> >> raj
>

raj raj

unread,
Oct 20, 2010, 8:47:05 AM10/20/10
to Karthik QTP, QTP eLearn Team
Varija, I did not know that you have created user defined function called browser_open to launch google in IE. In that case please follow steps provided by karthik.
 
thanks,
raj

vsmn

unread,
Oct 20, 2010, 10:35:02 AM10/20/10
to QTP eLearn Team
hi,karthik and friends

iam not able to navigate from one URL to another using this
userdefined function script,
this is the same library script which was created in class,when i run
it,its not navigating nor am i getting any errors,iam able to open
browser,URL and close but not navigating.Can you help me out?

Function browser_open(sBrow, sURL)
systemutil.run sBrow,sURL
End Function

Function browser_close()
Browser("title:=.*").close
End Function

Function browser_navigate(sURL)
Browser("title:=.*").Navigate sURL
End Function

thanks
mahesh nagaraj
> > > >>> I have tried associating file with the test.- Hide quoted text -
>
> - Show quoted text -

Shaik Ibrahim

unread,
Oct 20, 2010, 10:52:55 AM10/20/10
to vsmn, QTP eLearn Team
Hi

When i run the file i am getting this run error message

The test run cannot continue due to an unrecoverable error

Failed to run script.
Description: ClassFactory cannot supply requested class

Functiono file:C:\Program Files\HP\Quick Test Professional\Tests\KeywordDrivenFramework\.........
Liine (1) "Function browser_open(sBrow,sURL)".

Hafeez Mohammed

unread,
Oct 20, 2010, 12:03:32 PM10/20/10
to QTP eLearn Team, vsmn
Mahesh:
 
   Make sure all your browsers are closed before you run your script.
 
HM

--- On Wed, 10/20/10, vsmn <vsmahesh...@gmail.com> wrote:

vsmn

unread,
Oct 20, 2010, 12:40:42 PM10/20/10
to QTP eLearn Team
hi,Hafeez,
yeah i did close all my browsers,but still cant navigate


On Oct 20, 9:03 pm, Hafeez Mohammed <hafeez_...@yahoo.com> wrote:
> Mahesh:
>  
>    Make sure all your browsers are closed before you run your script.
>  
> HM
>
> --- On Wed, 10/20/10, vsmn <vsmaheshnagar...@gmail.com> wrote:
> > - Show quoted text -- Hide quoted text -

Shaik Ibrahim

unread,
Oct 20, 2010, 12:54:24 PM10/20/10
to vsmn, QTP eLearn Team
Its the same thing, I have closed all the browsers bt i still keep getting the same run error
-Shaik
Reply all
Reply to author
Forward
0 new messages