Geeks Talk

Prepare for your Next Interview




Error: Internal error in agent - Function never returned a value

This is a discussion on Error: Internal error in agent - Function never returned a value within the SilkTest forums, part of the Software Testing category; Hi, My AUT has a control which looks more like a Table OR ListView. It has 7 columns. Each time my AUT catches a messages sent to it over the ...


Go Back   Geeks Talk > Software Testing > SilkTest

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-19-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 18
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Error: Internal error in agent - Function never returned a value

Hi,
My AUT has a control which looks more like a Table OR ListView. It has 7 columns. Each time my AUT catches a messages sent to it over the network, a new row gets added to the control. Silk identifies the control as CustomWin.

I tried mapping the object to ListView class. In this case I run into
Error: Window type mismatch - Expecting a listview in details view
for any function from ListView class that i might use in my script. This led me to think that may be ListView wasn't the right class.

When I map it to "Table" class i keep getting
Error: Internal error in agent - Function never returned a value
for any function from table class that i might use. Is there a way i can get around this error? what is causing this?

Thanx in advance.
Sajith
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-20-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 18
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Error: Internal error in agent - Function never returned a value

Hi,
Can someone help please?
Cheers
Sajith
Reply With Quote
  #3 (permalink)  
Old 05-22-2008
Junior Member
 
Join Date: May 2008
Posts: 25
Thanks: 1
Thanked 2 Times in 2 Posts
sabariish is on a distinguished road
Re: Error: Internal error in agent - Function never returned a value

Quote:
Originally Posted by sajithkutty View Post
Hi,
My AUT has a control which looks more like a Table OR ListView. It has 7 columns. Each time my AUT catches a messages sent to it over the network, a new row gets added to the control. Silk identifies the control as CustomWin.

I tried mapping the object to ListView class. In this case I run into
Error: Window type mismatch - Expecting a listview in details view
for any function from ListView class that i might use in my script. This led me to think that may be ListView wasn't the right class.

When I map it to "Table" class i keep getting
Error: Internal error in agent - Function never returned a value
for any function from table class that i might use. Is there a way i can get around this error? what is causing this?

Thanx in advance.
Sajith

Hey Sajith,


Can u please let me know the functions which throw this error.

Thanks
Sabarish
Reply With Quote
  #4 (permalink)  
Old 05-22-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 18
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Error: Internal error in agent - Function never returned a value

Hi again Sabarish,
I get this error when I use GetRowCount and GetCellValue function.
However when i use GetContents i dont get the error but no results either. The List of string returned by GetContents turns out to be blank.
I have not tried other functions.

I am not sure if this info can be useful but in QTP the same control is identified as swfTable and the function equivalent to Silk's GetCellValue (can't remember the exact function name) is giving the expected results.

Regards
Sajith
Reply With Quote
  #5 (permalink)  
Old 05-28-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 18
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Error: Internal error in agent - Function never returned a value

Any luck Sabarish?
Reply With Quote
  #6 (permalink)  
Old 06-02-2008
Junior Member
 
Join Date: May 2008
Posts: 25
Thanks: 1
Thanked 2 Times in 2 Posts
sabariish is on a distinguished road
Re: Error: Internal error in agent - Function never returned a value

Quote:
Originally Posted by sajithkutty View Post
Any luck Sabarish?

Hi Sajith

Nops

I was out on a vacation, hence the delay!

I think the the appln: control you mapped to as Table Class does not respond to the methods. i.e the class map doesn't work for your controls. hence you get Error: Internal error in agent - Function never returned a value or GetContents turns out to be blank. Try to map it to some other class and see if it works.


Thanks
Reply With Quote
  #7 (permalink)  
Old 06-02-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 18
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Error: Internal error in agent - Function never returned a value

The reason I think the control is a Table is coz atleast QTP sees it a table. (please check my first post in this thread)

And I had also tried mapping it to Listview, i got the error
Error: Window type mismatch - Expecting a listview in details view

Thanks
Sajith

PS: Do you have any experience with Silktest integration with QC? If yes, could you please check my post in the Quality Center forum?
Reply With Quote
Reply

  Geeks Talk > Software Testing > SilkTest


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
I get error "invalid call to function"... JobHelper QTP 1 06-23-2008 03:10 PM
Getting error "syntax error in ObjectRepository" siteuse QTP 1 07-05-2007 03:57 PM
Report Net on XP gives error, Cryptographic error has occured chandrabhoopathy1 Data Warehousing 0 05-24-2007 06:07 PM
Ora-600 : Internal code Error 26599 jgobinath Oracle 7 02-27-2007 07:04 AM
Type of Error for Variables not declared in function fred C and C++ 1 07-12-2006 04:31 PM


All times are GMT -4. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved