> For the complete documentation index, see [llms.txt](https://help.santesuite.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.santesuite.org/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/device-management-tests/test-security-dm-09.md).

# TEST: SECURITY-DM-09

Testing the unsuccessful creation of a new device when using duplicate records.

## References

* [Device Management](broken://pages/-LyJMhbVM6ouxYs1bDRc)

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when creating a new device using duplicate records (duplicate Name).

## **Pre-Conditions / Setup**

1. User must be logged into an account with policies granted for creating devices.
2. Navigate to **Administration Panel / Security / Devices / Devices**.

## Actions/Steps

1- Click the **Create** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me0d5bAqk42ISaoH2K3%2F-Me0e-uapxZIxSTdhjSW%2F1.jpg?alt=media\&token=6b5dbc39-ce7e-46bc-80f6-e94305daef69)

2- Fill out all the fields appropriately and for the Name field, use a name with which a device exists. (for example "Create-Device-Test")

## Expected Behaviour

1- Should navigate to the new Create Device page.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me0d5bAqk42ISaoH2K3%2F-Me0eQNmGrJgjF0MivpA%2F2.jpg?alt=media\&token=8bf6a246-08d2-400d-a910-8e4ce7dcfea7)

2- Should show an error message below Name field indicating that duplicate record detected.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me2rbHB7yGKcRQS_Cg_%2F-Me2smW_1DX2KGxpbt7D%2F5.jpg?alt=media\&token=f0f27322-7bc2-4bc4-afab-095a503b236a)
