---
title: "ResultVerifier.SnippetRun"
description: "Provides the test execution data."
kind: "class"
id: "org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"
module: "polyglot-tck"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/polyglot-tck/org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.html"
---

# ◆ ResultVerifier.SnippetRun

[polyglot-tck](../../../../index.md) › [org.graalvm.polyglot.tck](index.md) · Every page: [llms.txt](../../../../llms.txt)

Class in [`org.graalvm.polyglot.tck`](index.md). Since 0.30. Nested in [`ResultVerifier`](ResultVerifier.md).

```java
public final class ResultVerifier.SnippetRun
```

Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `SnippetRun`

Provides the test execution data.

## Methods

### getParameters()
<a id="getParameters()"></a>`public List<? extends Value> getParameters()`. Since 0.30. Returns the actual parameters of a snippet execution. Returns `List<? extends Value>`: the parameters. Cite: `org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.html#getParameters()`

### getResult()
<a id="getResult()"></a>`public Value getResult()`. Since 0.30. Returns the result of a snippet execution. Returns `Value`: the result of a snippet execution or null in case of execution failure. Cite: `org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.html#getResult()`

### getException()
<a id="getException()"></a>`public PolyglotException getException()`. Since 0.30. Returns the [`PolyglotException`](https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html) thrown during snippet execution. If the snippet execution throws an [`IllegalArgumentException`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html), this exception is first converted to a [`PolyglotException`](https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html), and the resulting [`PolyglotException`](https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html) is provided by this method. Returns `PolyglotException`: the [`PolyglotException`](https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html) thrown during the execution or null in case of successful execution. Cite: `org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.html#getException()`

### create(Snippet, List, Value)
<a id="create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.Value)"></a>`public static ResultVerifier.SnippetRun create(Snippet snippet, List<? extends Value> parameters, Value result)`. Since 0.30. Creates a new `SnippetRun` for successful execution. Parameters: `snippet` `Snippet`: the executed `Snippet`. `parameters` `List<? extends Value>`: the actual parameters of snippet execution. `result` `Value`: the result of snippet execution. Returns `ResultVerifier.SnippetRun`: the `SnippetRun`. Cite: `org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.html#create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.Value)`

### create(Snippet, List, PolyglotException)
<a id="create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.PolyglotException)"></a>`public static ResultVerifier.SnippetRun create(Snippet snippet, List<? extends Value> parameters, PolyglotException exception)`. Since 0.30. Creates a new `SnippetRun` for failed execution. Parameters: `snippet` `Snippet`: the executed `Snippet`. `parameters` `List<? extends Value>`: the actual parameters of snippet execution. `exception` `PolyglotException`: the [`PolyglotException`](https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html) thrown during snippet execution. Returns `ResultVerifier.SnippetRun`: the `SnippetRun`. Cite: `org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.html#create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.PolyglotException)`

## Inherited members

- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)
