Micro Focus QTP (UFT) Forums
throwing variable value in Log output - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: throwing variable value in Log output (/Thread-throwing-variable-value-in-Log-output)



throwing variable value in Log output - ramesh.tahiliani - 12-17-2008

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


RE: throwing variable value in Log output - Ankur - 12-17-2008

of course. Use & to append any variable value to logs.


RE: throwing variable value in Log output - ramesh.tahiliani - 12-19-2008

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