Difference between Persistent and Temporary variable
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023
01:35 PM
05-05-2023
01:35 PM
Difference between Persistent and Temporary variable
I am trying to understand the difference between a persistent project variable and one that is temporary. I am able to store content in a unit script and call that in a keyword test but I cant seem to call that temporary variable again later in the same keyword test. Why? When calling that keyword test temp variable again in the script the default value appears and that is not what I want. I want the value lastname + datetime(now) to be recalled again.
todd2
Solved! Go to Solution.
Labels:
- Labels:
-
Keyword Tests
-
Variables
-
Web Testing
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023
04:09 PM
05-05-2023
04:09 PM
Here are the definitions
If I were writing your code, I would make the lastname + datetime(now) be a persistent variable. Then there would be a default value and a local value which would change each time an assignment was made.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023
06:20 PM
05-05-2023
06:20 PM
Thank you, Marsha! I did just that and it works great persistent instead of temporary.
