> For the complete documentation index, see [llms.txt](https://dbi-services.gitbook.io/omrun-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbi-services.gitbook.io/omrun-help/element-details/test-program-object/tob-generator.md).

# TOB Generator

### ![](/files/ZmGkX6hu7XyzkY2aPSnI)

### Abstract

Plug-in to generate test data objects containing 1:1 compare sql scripts from database schemas by OMrun and generate tob objects to compare the content of all existing tables within a source and a target database. This plug-in is often used in combination with TscGenerator and RtlGenerator.

***

### Input

Execution parameters to invoke a generation:

**Field `@param1`** (**Infrastructure info**) \[mandatory]

* Description: TestScripts BusinessSystem and Component, separated by semicolon
* Syntax: \<full path> (without ending backslash);\<business system name>;\<componant name>
* Example: D:\omrun\_demo\DCC-Event\TestScripts;Comparison;DataCompare

**Field `@param2`** (**Schema and table names**) \[mandatory]

* Description: Collected schema.table (source) and schema.table (destination) prepared by RtlGenerator, separated by semicolon
* Syntax: \<schema name>.\table name> (source database);\<schema name>.\table name> (target database)
* Example: demo\_source.categories;demo\_target.categories

**Field `@param3`** (**Table selection query without schema name**) \[mandatory]

* Description: Generated query prepared by RtlGenerator
* Syntax: \<Query> (without schema name)
* Example: \<SELECT category\_id AS category\_id, category\_name AS category\_name, description AS description, picture AS picture FROM categories>

**Field `@param4`** (**Primary keys from database**) \[mandatory]

* Description: Collected primary keys prepared by RtlGenerator, separated by semicolon
* Syntax: \<Id1>;\<Id2> etc.
* Example: \<category\_id>;\<other\_id>

***

### Output

Generated 1:1 data compare test objects contained within a predefined test component, based on the generated parameter list of a schema table query from source and target databases.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dbi-services.gitbook.io/omrun-help/element-details/test-program-object/tob-generator.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
