ralyn_sg
11 years agoContributor
date function entering no value during playback
Hi I am using the following function in my keyword test. KeywordTests.AddUser_Positive.Variables.OasUserId=aqConvert.DateTimeToFormatStr(aqDateTime.Now()) During Playback this enters no ...
- 11 years agoSo, most probably, the KeywordTests.AddUser_Positive.Variables.OasUserId=aqConvert.DateTimeToFormatStr(aqDateTime.Now()) expression works but something like this:
<parentObject>.OasUserId.SetText(KeywordTests.AddUser_Positive.Variables.OasUserId)
does not, right?
The reason may be because of the behaviour of the given control (read SetText help topic for more details). You may try .Keys() method instead of the .SetText() one:
<parentObject>.OasUserId.Keys(KeywordTests.AddUser_Positive.Variables.OasUserId)