# Shared Tests

### Utilizing Test scripts from the desktop service in the Component Service.

You can conveniently reuse Test Scripts in the Component Service by using the "Mark as Component" feature in `desktop-testing`. Here's how it works:

**Step 1:** Mark as Component

* Within the Test Repository, find the "Mark as Component" option for Test Scripts in a Module. Selecting "Mark As Component" adds a flag icon next to the script.

> **Note:** If you modify and save the test scripts, remember to mark them as component again.

![](https://4207139903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjbOt9KtYfZmokTYzgSHc%2Fuploads%2Fgit-blob-fa76b1d73c3bc59b647ead9133a750a765e37b46%2Fshared-test-1.gif?alt=media)

**Step 2:** Access in Component Service

* Once you've marked your desktop test scripts as components, they become accessible in the Component Service. Import them into your respective projects within the Component Service.

**Step 3:** Import Scripts

* Click "Import Scripts" to see test scripts categorized by service.

> ⚠️Note: Our capabilities within the Component Service are limited to executing test scripts from the desktop service as components, and we do not have the ability to edit test scripts.

**Step 4:** Select Service and Scripts

* Choose the desired service to display available Test Scripts.
* Select one or more scripts for import into the component.

**Step 5:** Confirm Import

* Click "Import", which opens a screen where you can choose the necessary projects and confirm the import.

**Step 6:** Success Confirmation

* Upon successful import, you'll receive a confirmation message.

![](https://4207139903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjbOt9KtYfZmokTYzgSHc%2Fuploads%2Fgit-blob-eeaac5143565792c98e6b6728dabdb7d506461b1%2Fshared-test-2.gif?alt=media)

This process ensures that the imported test scripts are available in your chosen component projects in draft status.

**Finding Shared Test Cases:**

* Shared Test Cases are located in the Desktop Testing Repository under the Shared Test module on the workspace page.

> Clicking on a shared Test Case reveals the test scripts marked as components.

**Unmarking Shared Tests:**

* To remove the "Mark as Component" designation from a Shared Test, simply choose "Unmark As Component."
