CustomLocation Class


CustomLocation Members

Generates a random Unicode string based on parameterized equivalent partitions.

Constructors

  Name Description
CustomLocation This class contains methods to change the location setting.

Methods

  Name Description
ChangeLocation(Location) Sets the location for the current user.

Enumeration

  Name Description
  Location Sets current location

Remarks

This method sets the current location on the Regional and Language control panel location property sheet shown below. 

Locatioin property sheet

Example

namespace CustomizeLocaSettingsExampleScript
{
  using System;
  using TestingMentor.TestTool.GlobalTester;

  class MyTest
  {
    static
void Main()
    {
  
   CustomLocation myNewLocation = new CustomLocation();

      if (myNewLocation.ChangeLocation(Location.Aruba))
      {
         // Launch AUT
     
  // Execute test
        // Oracle
      }
      else
      {
       // location not changed

      }
    }
   }
}

This example changes the current location.

Reference

GlobalTester Members

Also See

CustomNumberFormat Class
CustomCurrencyFormat Class
CustomDateFormat Class
CustomTimeFormat Class