# Run a Test in Tosca

{% hint style="warning" %}
Make sure that you set the PIPELINE with `--labid` parameter
{% endhint %}

After you have created a FOOTPRINTS scheduled task, the next step is to configure Tosca so that when you run a test, the execution is associated with your SeaLights app’s latest Build Modification. You can do this as follows:

### Configure Tosca Cloud playlist with Sealights Lab ID <a href="#toc201668106" id="toc201668106"></a>

1. Configure your Tosca Cloud workspace to work with Sealights.:
   1. Go to integrations
   2. Select Sealights
   3. Enter Sealights Agent Token&#x20;
2. Configure Tosca Playlist to run with Sealights Test Optimization:
   1. Go to a playlist you wish to integrate with Sealights
   2. In the Configuration tab, under Parameters, enter the following values:
      1. **SeaLightsLabId = `labid configured in the pipeline set command`**
      2. **SeaLightsOptimization** = **true**

{% hint style="danger" %}
[**Careful**](#user-content-fn-1)[^1]**! Playlist Configurations parameters are case sensitive!**
{% endhint %}

<figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2Fpj6oMqEYxeu8oj1DzksM%2Fimage.png?alt=media&#x26;token=d68f0ac3-5097-49d2-98ad-987b67f70d4e" alt="" width="375"><figcaption></figcaption></figure>

### Run the test <a href="#toc201668108" id="toc201668108"></a>

You can now run a test in Tosca. If the test executes any ABAP components in the latest Build Modification for your SeaLights app, you’ll see the test coverage in your app’s Coverage Report.

{% hint style="info" %}
**Note:** It takes some time for SeaLights to process the Footprints data.
{% endhint %}

The following Coverage Report for Pipeline **HH\_SLABAPCLI\_170625** shows that Function **YCD\_GET\_MATL\_PRICES** and Program **YCDMAINPROG** have code that’s covered by a Tosca test.

<figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FaEmQ1GYGDvvCITaIDsq1%2Fimage.png?alt=media&#x26;token=930f08a6-0803-4a32-97fd-86b3c00897b1" alt=""><figcaption></figcaption></figure>

[^1]:
