08-27-2013, 12:36 AM
Figured it out from link below.
new action
https://www.learnqtp.com/all-about-envir...es-in-qtp/
Code:
Environment.Value("DocName")= GetRandom(8)
Browser("PROMPT").Page("PROMPT").WebEdit("tp_last_name").Set Environment.Value("DocName")
new action
Code:
Browser("PROMPT").Page("PROMPT").WebEdit("keywordsearch").Set Environment.Value("DocName")
https://www.learnqtp.com/all-about-envir...es-in-qtp/