Forum Discussion

ShahZaib's avatar
ShahZaib
Contributor
2 years ago

How to get Browser details on which tests are performed

Hi,

I want to log my browser details

For example 

Browser = chrome

Version = X.X.X

etc

How can I get these kinds of details using TestComplete and later log them in reporting

Thank you

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    You can get the appropriate details from e.g. NameMapping.Sys.browser or Sys.Browser("chrome")

    and output e.g. the version,

    Log.Message(Sys.Browser("chrome").FileVersionInfo)