*** Settings *** Force Tags tsg-ui Devices HSM Resource ../../../03-Variable/bifangapivariable.txt Resource ../../../02-Keyword/tsg_ui/devices/Devices.robot Library OperatingSystem *** Test Cases *** CreateHSM [Tags] Positive UI Devices HSM CreateHSM ${TEST NAME} ${testClentIP} ${password} Almaty Wait Until Element Is Enabled id=insertAdd Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DdeleteHSM EditteHSM [Tags] Positive UI Devices HSM CreateHSM CreateHSM ${testClentIP} ${password} Almaty Wait Until Element Is Enabled id=insertAdd EditHSM ${TEST NAME} 192.168.52.11 123456 Nur-sultan Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DdeleteHSM HSMPagingDisplay [Tags] Positive UI Devices HSM Devices_OpenPage sidebarDevice_hsm PagingDisplay 50 CreateHSMNameMinSize [Tags] Boundary UI Devices HSM CreateHSM 1 ${testClentIP} ${password} Almaty Wait Until Element Is Enabled id=insertAdd Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span 1 DdeleteHSM CreateHSMNameMaxSize [Tags] Boundary UI Devices HSM ${name} Set Variable CreateHSMNameMaxSizeCreateHSMNameMaxSizeCreateHSMNameMaxSizeCreateHSMNameMaxSizeCreateHSMNameMaxSizeCreateHSMNameMaxSizeCreateHS CreateHSM ${name} ${testClentIP} ${password} Almaty Wait Until Element Is Enabled id=insertAdd Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${name} DdeleteHSM CreateHSMNameSpecialChar [Tags] Boundary UI Devices HSM ${name} Set Variable 中文+absc+моряков+@#¥%……&* CreateHSM ${name} ${testClentIP} ${password} Almaty Wait Until Element Is Enabled id=insertAdd Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${name} DdeleteHSM CreateHSMPasswordMaxSize [Tags] Boundary UI Devices HSM CreateHSM ${TEST NAME} ${testClentIP} 1111111111111111 Almaty Wait Until Element Is Enabled id=insertAdd Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DdeleteHSM CreateHSMPasswordMinSize [Tags] Boundary UI Devices HSM CreateHSM ${TEST NAME} ${testClentIP} 111111 Almaty Wait Until Element Is Enabled id=insertAdd Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span/span ${TEST NAME} DdeleteHSM CreateHSMIPFormatError [Tags] Negtive UI Devices HSM Devices_OpenPage sidebarDevice_hsm click element id=insertAdd sleep 2 click element id=insertAddOk1 sleep 2 Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[1]/div/div[3] Please enter the content Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div/div[2] Cannot be empty Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[4]/div/div[2] Cannot be empty Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[6]/div/div[2] Cannot be empty CreateHSMIPFormatError [Tags] Negtive UI Devices HSM CreateHSM ${TEST NAME} 192.168.50.256 ${password} Almaty Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div/div[2] IP can only be IPv4 or IPv6 CreateHSMPasswordFive [Tags] Negtive UI Devices HSM CreateHSM ${TEST NAME} ${testClentIP} 11111 Almaty Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[4]/div/div[2] IP can only be IPv4 or IPv6 CreateHSMPasswordFormatError [Tags] Negtive UI Devices HSM CreateHSM ${TEST NAME} ${testClentIP} !@#$%^&*()_+/*-+ Almaty Assertion //*[@id="policy_Manipulation_create8"]/div[2]/form/div[4]/div/div[2] Only English letters, numbers, underscore _, minus sign -, English dot (.) and its minimum 6 bits, maximum 16 bits.