# MacOS Required Configurations for AIQ

The following steps are necessary to improve AIQ compatibility with macOS systems.

## Java 8 Related Configuration

This configuration addresses a known issue that causes slowing in Java 8 applications with macOS Sierra or newer.

See [StackOverflow](https://stackoverflow.com/questions/39636792/jvm-takes-a-long-time-to-resolve-ip-address-for-localhost) for more information.

This configuration is required for macOS Sierra (10.12), High Sierra (10.13) Mojave (10.14), and earlier versions of Catalina (10.15.1 through 10.15.4).

1. Type "**hostname**" in a terminal window to get your system's canonical name. This **&lt;system canonical name&gt;** should look similar to `<span class="editor-theme-code">Joe-MacBook-Pro.local</span>`.
2. Enter the hostname obtained in the first step into your `<span class="editor-theme-code">/etc/hosts</span>` text file.
    1. Open the nano text editor to edit the `<span class="editor-theme-code">/etc/hosts</span>` file by typing in a terminal: **`<strong class="editor-theme-bold editor-theme-code">sudo nano /etc/hosts</strong>`**
    2. Assuming your hostname is "`<span class="editor-theme-code">Joe-MacBook-Pro.local</span>`", then you should add two lines similar to this ones to the `<span class="editor-theme-code">/etc/hosts</span>` file.  
        **`<strong class="editor-theme-bold editor-theme-code">127.0.0.1 Joe-MacBook-Pro.local</strong>`**  
        **`<strong class="editor-theme-bold editor-theme-code">::1 Joe-MacBook-Pro.local</strong>`**
    3. Press Ctrl+O to write changes to the hosts file, and Ctrl-X to exit the nano text editor. Make sure to replace `<span class="editor-theme-code">Joe-MacBook-Pro.local</span>` with your actual hostname returned by the command in the first step. Save your file, and retry executing your script in test designer.  
        This change is NOT needed for recent Catalina OS releases (10.15.5+).

## System Preferences

This configuration is necessary to be able to record and playback using Test Designer IDE using a Safari browser.

- In the Security &amp; Privacy preference, select the Privacy section, for Accessibility and Full Disk Access: add the **Java** app to the list of apps that are allowed to control your computer. (Mojave requires the Accessibility permissions to control your computer to the **Terminal** App instead of the Java App)  
    ![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Security&PrivacyAccessibility.png)  
    ![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Security&PrivacyFullDiskAccess.png)
- If you want to record/playback Test Designer script with Safari, make sure you select Safari as your default system browser in the Preferences General tab  
    ![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202021-02-11%20at%2011.59.21.png)
- In the Network preferences, Proxies settings: set the Bypass proxy settings to your AIQ server DNS  
    ![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/PreferencesNetworkProxy.png)

## Safari Preferences

This configuration is necessary to be able to record and playback using Test Designer IDE using a Safari browser.

Safari opens with: A new private window. New window open with Empty PageNew tabs open with Empty Page

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/SafariGeneral.png)

Select "When a new tab or window opens, make it active" in Tabs section

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/SafariTabs.png)

Other optional settings in Safari Advanced tab:

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202017-03-08%20at%209.22.48%20PM.png)

## Apvance Certificate

Check if the Appvance Certificate is present (only needed if after the above steps you have Test Designer IDE recording problems)

The client installer for Test Designer scripts should automatically install Appvance 2020 SSL certificate in MacOS and in Mozilla Firefox (if present). But if you have problems recording on HTTPS sites, do validate if the certificate "**Appvance 2020**" is installed in the MacOS and/or Firefox.

### Verifying the Appvance certificate is installed in MacOS

To check the MacOS certificates open the **Keychain Access** application and click over the tab. You should be able to find the "Appvance 2020" certificate with a blue dot (meaning it is trusted) as in this image:

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202019-11-28%20at%203.12.28%20PM.png)

Catalina updates (May 2019) requires that the Appvance2020 certificate needs to be installed both in System and login keychains.

### Installing the Appvance certificate in MacOS

If the certificate is not installed in Mozilla Firefox, you can download it from this link:[https://aiq-client-installer.s3-us-west-2.amazonaws.com/appvance2020.cer](https://aiq-client-installer.s3-us-west-2.amazonaws.com/appvance2020.cer)Then click the "Import" button in the Firefox Certificate Manager and select the downloaded "appvance2020.cer" file.

Double-click the **appvance2020.cer** file and it will be added to the Keychain Access application. Locate the Appvance 2020 in the System Keychain and doble click over it to see its details. Expand the Trust option and select Always Trust in the first select box.![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202019-11-28%20at%203.28.38%20PM.png)The OS will ask for your password to trust this certificate and the screen should look like this![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202019-11-28%20at%203.30.49%20PM.png)

#### Verifying the Appvance certificate is installed in Firefox

To check if the certificate is installed on **Mozilla Firefox**, open Firefox and open the Preferences, then type "Certificates" in the search input box. Click the View Certificates button to open the Certificates Manager:

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202019-11-28%20at%203.16.08%20PM.png)

In the Certificate Manager, click the "Authorities" tab and scroll down until you find the Appvance 2020 certificate

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202019-11-28%20at%203.16.26%20PM.png)

#### Installing the Appvance certificate in Firefox

If the certificate is not installed in Mozilla Firefox, you can download it from this link:[https://aiq-client-installer.s3-us-west-2.amazonaws.com/appvance2020.cer](https://aiq-client-installer.s3-us-west-2.amazonaws.com/appvance2020.cer)

Then click the "Import" button in the Firefox Certificate Manager and select the downloaded "appvance2020.cer" file. Then click both trust checkboxes as in this image, and click Ok.

![](https://docs.appvance.net/Content/Resources/Images/GeneralGraphics/Screen%20Shot%202019-11-28%20at%203.32.46%20PM.png)

Next step: [MySQL Install &amp; Setup](https://docs.appvance.net/Content/AIQ/AIQ_Install/MacOSX/Install_Mac_MySQL.htm)

---

Last updated: July 31, 2024

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>