> For the complete documentation index, see [llms.txt](https://sealights-docs.tricentis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sealights-docs.tricentis.com/test-optimization/how-it-works/associating-code-with-tests.md).

# Associating Code With Tests

SeaLights intelligently maps tests to their corresponding code sections, enabling efficient test selection. Here are the three primary methods employed:

### **Statistical Modeling**

* Leverages **machine learning** to analyze each test's impact on code during parallel testing.
* Gradually refines code-to-test mapping for **increasing accuracy and efficiency** over time.

### **One-to-One Mapping (with OpenTelemetry)**

* Uses **OpenTelemetry instrumentation** to capture data on every application operation.
* Precisely maps tests to code methods based on **comprehensive request tracking** throughout your system.

### **Calibration (with Sequential Testing)**

* Employs **sequential testing** to simulate one-to-one mapping results.
* Offers **immediate and accurate mapping** but can be time-consuming compared to other methods.

***

{% content-ref url="/pages/0AJRw2XBcreZ1IHWak2Y" %}
[Statistical modeling](/test-optimization/how-it-works/associating-code-with-tests/statistical-modeling.md)
{% endcontent-ref %}

{% content-ref url="/pages/LR7KwC99smpgoNgE9Qtq" %}
[One-to-One Mapping](/test-optimization/how-it-works/associating-code-with-tests/one-to-one-mapping.md)
{% endcontent-ref %}

{% content-ref url="/pages/jALrbi8hYkcbqYgbK4pv" %}
[Calibration](/test-optimization/how-it-works/associating-code-with-tests/calibration.md)
{% endcontent-ref %}

{% file src="/files/icPDbDcf4qOpLsLaELRF" %}
