# TEST: SECURITY-DM-09

## References

* [Device Management](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/broken-reference)

## 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-Me2rbHB7yGKcRQS_Cg_%2F-Me2rwiE9ys9y_yLOl-y%2F1.jpg?alt=media\&token=d353acde-1793-4112-9706-f58face5ab24)

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-Me2rbHB7yGKcRQS_Cg_%2F-Me2s60nbRZT6GWOceyW%2F2.jpg?alt=media\&token=6e39fd15-7f11-47b1-b8ac-09459115724c)

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)
