Forum Discussion

svaze74's avatar
svaze74
Contributor
10 years ago

After upgrade to version 1030, log.Message throwing exception as Wrong number of arguments or invalid property assignment: 'Log'

Hi,



After upgrade testcomplete to v1030, log.Message throwing following exception

Wrong number of arguments or invalid property assignment: 'Log'.



This is occurring in script routine, keyword test working fine.



Thanks,

Shrirang

3 Replies

  • I got the issue. Its weird but that's how it got fixed.



    It was occurring because I had created a Manual test item on another m/c and after taking update from SVN server, these Manual tests were not added to project so while loading the project this manual test was unavailable.



    So while executing log.Message, it was throwing an exception.



    Even though looks like there is no relation in Manual Tests and Log.Message, you never know, what dependencies are inside the code ;-)



    So be careful :)



    Thanks,

    Shrirang

  • murugans1011's avatar
    murugans1011
    Regular Contributor
    Could u plz check the arguments passed in the log.message



    Log.Message(MessageTextAdditionalInformationPriorityAttrPictureFolderID)



    where "Message text"is mandatory else it will throw exception
  • Oh yes, the arguments are fine.  Nothing wrong in it. It is as simple as below which was working earlier.



    Log.Message "Hi"



    Do you think, this is wrong to use in script routine. May be I am not seeing the error in it.



    Thanks,

    Shrirang