Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Access Generated Test Cases

Symptom

Generated test cases fail to be accessed.
Figure 1 Access failure 1
Figure 2 Access failure 2

Possible Causes

The required permission is not configured for the sandbox where the JVM is running.

Troubleshooting Procedure

Add or modify the .utgen/sandbox.policy file in the /home directory. Configure the Java sandbox security in the file.

  • For access failure 1:
    1
    2
    3
    grant {
        permission java.lang.RuntimePermission "exitVM.1";
    };
    
  • For access failure 2:
    grant {
        // Allow writing to only files in the specified path.
        permission java.io.FilePermission "C:\Users\Username\AppData\Local\Temp\poifiles\poi-sxssf-sheet8570420162298981314.xml", "write";
    };

    or:

    grant {
        // Allow writing to all files.
        permission java.io.FilePermission "<<ALL FILES>>", "write";
    };

For details about the sandbox.policy file format, see Policy File and Syntax. For details about the sandbox permission list, see Full list of permissions.