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
Re: Error: Internal error in agent - Function never returned a value
Hi,
Can someone help please?
Cheers
Sajith
Re: Error: Internal error in agent - Function never returned a value
[QUOTE=sajithkutty;30208]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[/QUOTE]
Hey Sajith,
:)
Can u please let me know the functions which throw this error.
Thanks
Sabarish
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
Re: Error: Internal error in agent - Function never returned a value
Re: Error: Internal error in agent - Function never returned a value
[QUOTE=sajithkutty;30622]Any luck Sabarish?[/QUOTE]
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
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?