Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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 Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-19-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 26
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: 26
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
Contributing Member
 
Join Date: May 2008
Posts: 32
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: 26
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: 26
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
Contributing Member
 
Join Date: May 2008
Posts: 32
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: 26
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

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


All times are GMT -4. The time now is 07:59 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved