SutLocale
Last updated
Was this helpful?
Last updated
Was this helpful?
Class that allows to get the current date time and culture of the system under test (SUT).
Implements the interface.
You can access the SutLocale through the generated App class from your test case:
DateTime now = App.SutLocale.SutDateTime;
Or from a screen through the IAppBasics Interface:
DateTime now = AppBasics.SutLocale.SutDateTime;
Namespace: Progile.TRIO.EnvironmentModel Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)
Progile.TRIO.EnvironmentModel.SutLocale
Syntax:
Parameter
Description
t
The tester interface.
systemHelper
An instance of the ISystemHelpers interface that allows interaction with the SUT operating system.
cultureString
Name
Description
Initializes the SutDateTime by determining the delta from the SUT to the host where the testcase is run.
Resets the SutDateTime using the current time of the host and considering the current time zone of the system under test.
Sets the SutDateTime to the provided.
Name
Description
The culture string (e.g en-US, de-CH etc) of the system under test. (for Windows: see Additional date, time, & regional settings in Region & language settings.)
Type:
Type:
Type: The culture string (e.g en-US, de-CH etc) of the system under test. (for Windows: see Additional date, time, & regional settings in Region & language settings.)
Allows to change the culture of the sut ( property).
Sets the time zone on the system under test to the provided time zone id. The '' command is used to set the time zone. Consider to evaluate available time zone ids by running the command 'tzutil /l'.
Gets the current dateTime of the system under test (SUT). For an exact time you should call before using SutDateTime.