|
@@ -15,7 +15,7 @@ Resource ../../../AllApi/ClientAPI/PersonalInformationApi/GetShareDevic
|
|
Resource ../../../AllApi/ClientAPI/DeviceInformationApi/DeleteShareDeviceToUserAsync.robot
|
|
Resource ../../../AllApi/ClientAPI/DeviceInformationApi/DeleteShareDeviceToUserAsync.robot
|
|
|
|
|
|
*** Test Cases ***
|
|
*** Test Cases ***
|
|
-Class_001_修改设备信息,修改Name
|
|
|
|
|
|
+Class_001_修改设备信息,修改Description
|
|
#登录,获取用户Token
|
|
#登录,获取用户Token
|
|
${token} GetCommonLoginAsyncToken ${user_mao}[0] ${EMPTY} ${user_mao}[1] ${3} ${0}
|
|
${token} GetCommonLoginAsyncToken ${user_mao}[0] ${EMPTY} ${user_mao}[1] ${3} ${0}
|
|
#超声设备连接云服务,获取超声设备Token、UniqueCode
|
|
#超声设备连接云服务,获取超声设备Token、UniqueCode
|
|
@@ -30,15 +30,15 @@ Class_001_修改设备信息,修改Name
|
|
Should Be True ${flag}
|
|
Should Be True ${flag}
|
|
#获取设备的DeviceCode
|
|
#获取设备的DeviceCode
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
- #修改设备信息,修改Name
|
|
|
|
- ${deviceName1} Set Variable sonotest
|
|
|
|
- ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName1} ${EMPTY} ${EMPTY} false
|
|
|
|
|
|
+ #修改设备信息,修改name
|
|
|
|
+ ${deviceDescription1} Set Variable sonotest
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} false ${deviceDescription1}
|
|
#校验
|
|
#校验
|
|
${flag} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
${flag} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
Should Be True ${flag}
|
|
Should Be True ${flag}
|
|
${res3} GetDeviceInfoAsyncPost ${token} ${deviceCode}
|
|
${res3} GetDeviceInfoAsyncPost ${token} ${deviceCode}
|
|
- ${name} Get From Dictionary ${res3}[content] Name
|
|
|
|
- Should Be Equal As Strings ${name} ${deviceName1}
|
|
|
|
|
|
+ ${desc} Get From Dictionary ${res3}[content] Description
|
|
|
|
+ Should Be Equal As Strings ${desc} ${deviceDescription1}
|
|
[Teardown] RemoveDeviceRelevancyAsyncPost ${token} ${organizationCode} ${EMPTY} ${deviceCode}
|
|
[Teardown] RemoveDeviceRelevancyAsyncPost ${token} ${organizationCode} ${EMPTY} ${deviceCode}
|
|
|
|
|
|
Class_002_修改设备信息,修改HeadPicUrl
|
|
Class_002_修改设备信息,修改HeadPicUrl
|
|
@@ -57,7 +57,7 @@ Class_002_修改设备信息,修改HeadPicUrl
|
|
#获取设备的DeviceCode
|
|
#获取设备的DeviceCode
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
#修改设备信息,修改HeadPicUrl
|
|
#修改设备信息,修改HeadPicUrl
|
|
- ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${image}[0] ${EMPTY} false
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${image}[0] ${EMPTY} false descr
|
|
#校验
|
|
#校验
|
|
${flag} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
${flag} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
Should Be True ${flag}
|
|
Should Be True ${flag}
|
|
@@ -99,7 +99,7 @@ Class_003_修改设备信息,修改DepartmentCode
|
|
#搜索组织,返回OrganizationCode
|
|
#搜索组织,返回OrganizationCode
|
|
${depCode} SearchOrganizationsAsyncOrganizationCode ${token} ${oranName} ${organizationInfo_mao}[0] ${organizationType}[1]
|
|
${depCode} SearchOrganizationsAsyncOrganizationCode ${token} ${oranName} ${organizationInfo_mao}[0] ${organizationType}[1]
|
|
#修改设备信息,修改DepartmentCode
|
|
#修改设备信息,修改DepartmentCode
|
|
- ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${EMPTY} ${depCode} false
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${EMPTY} ${depCode} false descr
|
|
#校验
|
|
#校验
|
|
${flag3} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
${flag3} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
Should Be True ${flag3}
|
|
Should Be True ${flag3}
|
|
@@ -134,7 +134,7 @@ Class_004_修改设备信息,修改IsAutoShared
|
|
#获取设备的DeviceCode
|
|
#获取设备的DeviceCode
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
#修改设备信息,修改isAutoShared
|
|
#修改设备信息,修改isAutoShared
|
|
- ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} true
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${token} ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} true descr
|
|
#校验
|
|
#校验
|
|
${flag} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
${flag} Result Analysis ${res2} True ${EMPTY} ${EMPTY}
|
|
Should Be True ${flag}
|
|
Should Be True ${flag}
|
|
@@ -171,7 +171,7 @@ Exception_001_修改设备信息,Token值正确性校验
|
|
#获取设备的DeviceCode
|
|
#获取设备的DeviceCode
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
#修改设备信息,传入错误的Token值
|
|
#修改设备信息,传入错误的Token值
|
|
- ${res2} ModifyDeviceAsyncPost 111111 ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} false
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost 111111 ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} false descr
|
|
#校验
|
|
#校验
|
|
${flag2} Result Analysis Code ${res2} false ${1}
|
|
${flag2} Result Analysis Code ${res2} false ${1}
|
|
Should Be True ${flag2}
|
|
Should Be True ${flag2}
|
|
@@ -193,7 +193,7 @@ Exception_002_修改设备信息,Token值非空校验
|
|
#获取设备的DeviceCode
|
|
#获取设备的DeviceCode
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
#修改设备信息,Token传入空值
|
|
#修改设备信息,Token传入空值
|
|
- ${res2} ModifyDeviceAsyncPost ${EMPTY} ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} false
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${EMPTY} ${deviceCode} ${deviceName} ${EMPTY} ${EMPTY} false descr
|
|
#校验
|
|
#校验
|
|
${flag2} Result Analysis Code ${res2} false ${1}
|
|
${flag2} Result Analysis Code ${res2} false ${1}
|
|
Should Be True ${flag2}
|
|
Should Be True ${flag2}
|
|
@@ -215,7 +215,7 @@ Exception_003_修改设备信息,DeviceCode值正确性校验
|
|
#获取设备的DeviceCode
|
|
#获取设备的DeviceCode
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
#修改设备信息,传入不存在的DeviceCode值
|
|
#修改设备信息,传入不存在的DeviceCode值
|
|
- ${res2} ModifyDeviceAsyncPost ${token} 11111 ${deviceName} ${EMPTY} ${EMPTY} false
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${token} 11111 ${deviceName} ${EMPTY} ${EMPTY} false descr
|
|
#校验
|
|
#校验
|
|
${flag2} Result Analysis Code ${res2} false ${2015}
|
|
${flag2} Result Analysis Code ${res2} false ${2015}
|
|
Should Be True ${flag2}
|
|
Should Be True ${flag2}
|
|
@@ -238,7 +238,7 @@ Exception_004_修改设备信息,DeviceCode值非空校验
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
${deviceCode} GetDeviceByTokenAsyncPost_DeviceCode ${usToken}
|
|
#修改设备信息,DeviceCode传入空值
|
|
#修改设备信息,DeviceCode传入空值
|
|
${deviceName1} Set Variable sonotest
|
|
${deviceName1} Set Variable sonotest
|
|
- ${res2} ModifyDeviceAsyncPost ${token} ${EMPTY} ${deviceName} ${EMPTY} ${EMPTY} false
|
|
|
|
|
|
+ ${res2} ModifyDeviceAsyncPost ${token} ${EMPTY} ${deviceName} ${EMPTY} ${EMPTY} false descr
|
|
#校验
|
|
#校验
|
|
${flag2} Result Analysis Code ${res2} false ${9}
|
|
${flag2} Result Analysis Code ${res2} false ${9}
|
|
Should Be True ${flag2}
|
|
Should Be True ${flag2}
|