Forum Discussion

rpd's avatar
7 years ago

Using Set Variable in a Keyword testcase

What I was trying to do was to simply show the value of a variable in the test log associated with a KEYWORD testcase. For some reason the value of the Project variable named TotalTax is NULL.   I ...
  • tristaanogre's avatar
    7 years ago

    Here's my thinking:

    I'm guessing that you're setting the variable value after some other process.  So, it's entirely possible that, at the time that "Set Variable Value" is called, that there is no contentText or object of the type you're looking for.  Essentially, a timing issue where the value is not getting set because the component isn't fully rendered yet.

    Could you post a screenshot of your keyword test including the steps leading up to the Set Variable Value call?