Ask a Question

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

svaze74
Contributor

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 3
murugans1011
Regular Contributor

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

Could u plz check the arguments passed in the log.message



Log.Message(MessageTextAdditionalInformationPriorityAttrPictureFolderID)



where "Message text"is mandatory else it will throw exception
svaze74
Contributor

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

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



svaze74
Contributor

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

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

cancel
Showing results for 
Search instead for 
Did you mean: