Get Report.SystemSummary() information in a string

Class library usage, coding and language questions.
jla
Posts: 3
Joined: Mon Feb 11, 2019 11:34 am

Get Report.SystemSummary() information in a string

Post by jla » Tue Feb 12, 2019 1:30 pm

Hi,
I need to retrieve within code modules the OS version, at runtime, as provided by Report.SystemSummary():

Ranorex version: 8.2.0.0
OS version: Windows 7 Service Pack 1 64bit


How can these information be accessed, and stored in one or several strings ?
Thanks for your help.

User avatar
Vega
Posts: 129
Joined: Mon Jul 11, 2016 2:15 pm

Re: Get Report.SystemSummary() information in a string

Post by Vega » Tue Feb 12, 2019 9:08 pm

Well there are a few ways you could go about this that I can think of:
At surface value, the 2nd option seems like a more simple approach and wont break even if the report format changes

hope this helps

ahoisl
Certified Professional
Certified Professional
Posts: 167
Joined: Fri Sep 07, 2007 8:16 am

Re: Get Report.SystemSummary() information in a string

Post by ahoisl » Tue Feb 12, 2019 9:25 pm

There's an even easier alternative: the Host node in Ranorex provides all the information you want, just see its attributes.
var osEdition = Host.Local.OSEdition;
Regards,
Alex
Ranorex Team

jla
Posts: 3
Joined: Mon Feb 11, 2019 11:34 am

Re: Get Report.SystemSummary() information in a string

Post by jla » Wed Feb 13, 2019 11:10 am

Host node is just perfect !
Thanks.