Results 1 to 7 of 7

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    20

    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


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    20

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

    Hi,
    Can someone help please?
    Cheers
    Sajith


  3. #3
    Contributing Member
    Join Date
    May 2008
    Answers
    32

    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


  4. #4
    Junior Member
    Join Date
    May 2008
    Answers
    20

    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


  5. #5
    Junior Member
    Join Date
    May 2008
    Answers
    20

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

    Any luck Sabarish?


  6. #6
    Contributing Member
    Join Date
    May 2008
    Answers
    32

    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


  7. #7
    Junior Member
    Join Date
    May 2008
    Answers
    20

    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?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact