Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
throwing variable value in Log output
#1
Solved: 11 Years, 3 Months, 1 Week ago
Hi,

Can we throw the env variable value in Results (i.e. in Log output)

we have "Reporter.reportevent" for outputing the information in Log; like this way can we also show the env variable value in Logs/Results.

Thanks
Ramesh T
Reply
#2
Solved: 11 Years, 3 Months, 1 Week ago
of course. Use & to append any variable value to logs.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 3 Months, 1 Week ago
Hi Ankur
Thanks for Reply.

To throw only the variable value
I tried Reporter.ReporteEvent micDone,Environment.Value("Test"),""
It worked Fine

and For Msg + Variable; I used & character as per your suggetion
I tried Reporter.ReporteEvent micDone,"value for Test => " & Environment.Value("Test"),""
It worked fine

Thanks
Ramesh Tahiliani
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Grab multiple line data from log file haziqwebs 0 1,786 10-19-2016, 01:28 PM
Last Post: haziqwebs
  Output Values error Tasleem 3 3,897 10-27-2014, 02:13 PM
Last Post: Tasleem786
  Way to take values from datasheet and output Fairbanks 3 3,074 03-27-2014, 07:18 PM
Last Post: Ankur
  How to print value in QTP Log using .vbs kalyaniR 1 3,353 10-25-2013, 04:32 PM
Last Post: ssvali
  To view log files in QTP sheetal 5 16,741 10-08-2013, 02:27 PM
Last Post: Gurpreet

Forum Jump:


Users browsing this thread: 1 Guest(s)