# Test Designer installed however buttons still Disabled

## Problem

Test Designer is not working as expected

- *Since my system updated*
- *And Record, Play, etc buttons remain disabled*

### Reason(s)

1. You are accessing internal private networks with settings which would be considered insecure for an external network
2. With the many variations and versions of Java, multiple entries in your system’s PATH may exist and conflict with each other

## Resolution

### Chrome Security Update

This setting is for internal private network pages which may have insecure connections within your network. This does not impact external network security or sites.

1. Enter in Chrome address bar
    
    ```
    chrome://flags/#block-insecure-private-network-requests
    ```
2. Update setting to **disabled**

### Verify your system is using a single Java version and path

This section contains:

- Instructions for Windows
- Instructions for Mac

#### Windows

1. Click **Start** and enter **System Env** and select **Edit system environment variables**  
    The System Properties window appears
2. Click **Environment Variables**
3. In the **System variables list**, select **Path** and click **Edit**
4. Confirm only one entry exists for Java, for example:
    
    
    1. C:\\Program Files\\graalvm\\graalvm-cd-java11-21.3.0\\bin
5. Remove any additional entries referring to Oracle or other java installs
6. Click **OK** (3x)
7. Go to **C:\\TestDesigner\\NetworkProxy** and run **shutdown.cmd**
8. From the same location as above, run **startds.cmd**

#### Mac

1. Stop the Test Designer proxy
    
    
    - Open Applications &gt; Utilities &gt; Terminal.app and enter the following
        
        ```
        cd $HOME/TestDesigner/NetworkProxy/
        ./shutdown.sh
        ```
2. Verify your $JAVA\_HOME path
    
    
    - Enter
        
        ```
        echo $JAVA_HOME
        ```
3. If the **$JAVA\_HOME** path output **does *not*** contain **graalvm**, then you need to determine if you have multiple Java versions on your system
    
    
    - Enter
        
        ```
        cd /Library/Java/JavaVirtualMachines/
        ls
        ```
4. If JavaVirtualMachines **does *not*** list more than one java version (more than one sub-folder), proceed to:
    
    
    1. Configure a Single instance of Java  
        AND
    2. Remove duplicate Java entries in bash\_profile
5. If JavaVirtualMachines **does** list more than one java version (more than one sub-folder),
    
    
    1. AND you **do *not*** need to retain the non-graalvm java version(s), see "Configure a Single Instance of Java" to update $JAVA\_HOME
    2. AND you **do** need to retain the non-graalvm java version(s), then
        
        
        1. Copy the path (including the folder name containing **graalvm**) and paste it in a temporary text file for use later. For example:
            
            ```
            /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0
            ```
            
            AND
        2. Proceed to Modifying Test Designer’s Java Path

##### Modifying Test Designer’s Java Path

1. Open $HOME\\TestDesigner\\NetworkProxy\\startds.sh in nano or a text editor
    
    ```
    open $HOME/TestDesigner/NetworkProxy/startds.sh -a TextEdit
    ```
2. Replace the $JAVA\_HOME variable in startds.sh with the AIQ required Java version and path
    
    
    1. Locate the following lines in startds.sh (~line 35)
        
        ```
        if [ -f $JAVA_HOME/bin/java ]; then
         JAVA_HOMES=$JAVA_HOME/bin/java
        else
         JAVA_HOMES=java
        fi
        ```
    2. Replace $JAVA\_HOMES (in this file only) with the graalvm java path (note, the path continues past the graalvm folder name). For example:
        
        ```
        if [ -f /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0/Contents/Home/bin/java ]; then
         JAVA_HOMES=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0/Contents/Home/bin/java
        else
         JAVA_HOMES=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0/Contents/Home/
        fi
        ```
    3. Save and close the text editor
3. Proceed to "Start the Test Designer Proxy"

##### Configure a Single instance of Java

1. Update your **PATH** environment variable to the GraalVM bin directory (*where &lt;version&gt; represents the graalvm version, ex: 21.3.0*). For example:
    
    ```
    export PATH=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0/Contents/Home/bin:$PATH
    ```
2. Update your **JAVA\_HOME** environment variable to resolve to the GraalVM installation directory (*where &lt;version&gt; represents the graalvm version, ex: 21.3.0*). For example:
    
    ```
    export JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0/Contents/Home/
    ```
3. Verify your install was successful
    
    ```
    java -version
    ```
    
      
    *Sample Output*
    
    ```
    openjdk version "11.0.13" 2021-10-19
    OpenJDK Runtime Environment GraalVM CE 21.3.0 (build 11.0.13+7-jvmci-21.3-b05)
    OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build 11.0.13+7-jvmci-21.3-b05, mixed mode, sharing)
    ```

##### Remove duplicate Java entries in bash\_profile

1. Verify old or duplicate entires do not exist in ~/.bash\_profile ([nano cheatsheet](https://www.nano-editor.org/dist/latest/cheatsheet.html))
    
    ```
    cd $HOME
    nano ~/.bash_profile 
    ```
2. When the nano editor appears, if you have more than one JAVA\_HOME entry, remove any duplicates, retaining the graalvm entry (do not remove any non-java related entries). For example:
    
    ```
    export JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.3.0/Contents/Home
    export PATH=$JAVA_HOME/bin:$PATH
    ```
3. Save changes and exit nano (see [nano cheatsheet](https://www.nano-editor.org/dist/latest/cheatsheet.html) for shortcuts)

##### Start the Test Designer proxy

1. Return to the Terminal, and start the Test Designer proxy
    
    ```
    cd $HOME/TestDesigner/NetworkProxy/
    ./startds.sh
    ```
2. When Test Designer starts, the graalvm java path should display in the logging that follows

You may now return to AIQ in the browser and refresh the Test Designer IDE page to begin recording Test Designer scripts.

---

Last updated: June 26, 2023

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