Forum Discussion

ralyn_sg's avatar
ralyn_sg
Contributor
10 years ago
Solved

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 ...
  • AlexKaras's avatar
    10 years ago
    So, 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)