You can execute the scenario depending on two modes: Stand alone or remote. In this tutorial, you will execute your scenario by using the remote mode. This mode requires the use of CAT to execute the scenario.
To execute a scenario, you do the following:
Start a connector.
Register the connector in the CAT address book.
Export the scenario that you have created to the connector repository.
Execute the scenario.
The connector is an executable file which is launched with three arguments:
Repository path where scenarios are saved and executed
Port number on which the connector is listening
Repository where the logs are saved
To start a connector under Windows
Open a DOS window.
Type cd <root>\bin
<root> is the directory name containing the folder bin where the executable connector is stored. For example: Type cd \Myhome\Myjob\bin.
Press ENTER. The DOS window displays that you are in the directory bin. Now you can launch the connector by typing the next command.
Type connector -repositoryDir=<YourRepository> -port=<YourPort> -logDir=<YourLogs>
<YourRepository> is the directory where your scenarios are saved (by default, \iec-repository)
<YourPort> is the port on which the connector is listening (by default, 9001)
<YourLogs> is the directory where the logs are saved (by default, \logs)
<YourRepository>, <YourPort> and <YourLogs> can be replaced with your own values.
Press ENTER.
To start a connector under UNIX
Open a UNIX window.
Type <root>/bin/connector -repositoryDir=<YourRepository> -port=<YourPort> -logDir=<YourLogs>
<YourRepository> is the directory where your scenarios are saved (by default, \iec-repository)
<YourPort> is the port on which the connector is listening (by default, 9001)
<YourLogs> is the directory where the logs are saved (by default, \logs)
<YourRepository>, <YourPort> and <YourLogs> can be replaced with your own values.
Press ENTER
After the connector runs, you can register its address in the CAT address book. A registered connector address is used to connect CAT to a connector running on a workstation.
To register the connector
On the Window menu, click Connectors. The Connectors window displays the existing connector addresses.
On the Action menu, click New. The Enter server address window opens.
In Server HostName, type the workstation name where the connector is running. You can type:
The remote or the local workstation name. Example, MyWorkstation.
The IP address of the remote or the local workstation. Example: 1.160.10.240.You can use both IPv4 and IPv6 addresses.
localhost, if the connector is running on your workstation.
In Port, type the port number on which the connector is listening. For example, type 9001, if the connector is listening on this port number.
In Description, type a connector name. For example, type MyConnector. The Save button appears after you fill in all the fields.
Click Save.
To export the scenario
Make sure that the connector is running; otherwise, CAT displays an error message.
Make sure that the scenario to be exported is opened and selected.
On the File menu, click Export. The Select connector window opens.
In the Select connector window, select the connector to which you want to export the scenario.
Click OK. The scenario is exported to the connector.
After the scenario has been exported, you can execute it.
|
Note: In this tutorial, it is not necessary to import the scenario you want to execute because this scenario is already open; otherwise, before executing a scenario, you must import it from the connector repository. |
To execute the scenario
Make sure that the connector is running. If not, CAT displays an error message.
Make sure that the scenario to be executed is selected; otherwise, click the scenario window.
On the Action menu, click Execute. Once the scenario has been executed, 'Activated' appears in the title bar. If the connector is not running, an error message is displayed.
To stop the scenario
On the Action menu, click Stop. Once the scenario has been stopped, 'Stopped' appears in the title bar.
Next step: Check the results in the SAP CC database.