Creates an instance of TestExecutionContext.
OptionaldefaultSenderAddress: bytesThe default sender address.
Returns the active logic signature arguments.
Returns the value generator.
Returns the contract context.
Returns the default sender account.
Sets the default sender account.
The default sender account.
Returns the ledger context.
Returns the template variables.
Returns the transaction context.
Adds an application spy to the context.
The application spy to add.
Executes a logic signature with the given arguments.
The logic signature to execute.
The arguments for the logic signature.
Exports logs for a given application ID and decoding.
The application ID.
The log decoding.
Gets a compiled application by contract.
The contract class.
Gets a compiled logic signature.
The logic signature class.
Reinitializes the execution context, clearing all state variables and resetting internal components. Invoked between test cases to ensure isolation.
Sets a compiled application.
The contract class.
The application ID.
Sets a compiled logic signature.
The logic signature class.
The account associated with the logic signature.
Sets a template variable.
The name of the template variable.
The value of the template variable.
Optionalprefix: stringThe prefix for the template variable.
The
TestExecutionContextclass provides a context for executing tests in an Algorand environment. It manages various contexts such as contract, ledger, and transaction contexts, and provides utilities for generating values, managing accounts, and handling logic signatures.