<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [interactions](./case-definition-dsl.interactions.md) &gt; [functions](./case-definition-dsl.interactions.functions.md) &gt; [FunctionExecutionExample](./case-definition-dsl.interactions.functions.functionexecutionexample.md)

## interactions.functions.FunctionExecutionExample interface

Interaction descriptor for a function execution which returns successfully

**Signature:**

```typescript
export interface FunctionExecutionExample
```

## Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[arguments](./case-definition-dsl.interactions.functions.functionexecutionexample.arguments.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData\[\]

</td><td>

An array of expected function arguments (or test equivalence matchers for those arguments)

</td></tr>
<tr><td>

[functionName](./case-definition-dsl.interactions.functions.functionexecutionexample.functionname.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

The name of the function to be executed. Doubles as the handle used by registerFunction.

</td></tr>
<tr><td>

[invocationName?](./case-definition-dsl.interactions.functions.functionexecutionexample.invocationname.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

_(Optional)_ A name for this specific combination of arguments - must be unique in this contract.

</td></tr>
<tr><td>

[responseName?](./case-definition-dsl.interactions.functions.functionexecutionexample.responsename.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

_(Optional)_ A name for this specific return value - must be unique in this contract.

</td></tr>
<tr><td>

[returnValue](./case-definition-dsl.interactions.functions.functionexecutionexample.returnvalue.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

A test equivalence matcher for the return value from this function

</td></tr>
</tbody></table>
