31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
*** Settings ***
|
|
Test Teardown TeardownDelete ${url} profileIds ${profileId}
|
|
Force Tags tsg_bf_api Response_Pages
|
|
Library String
|
|
Library OperatingSystem
|
|
Library Selenium2Library
|
|
Library Collections
|
|
Resource ../../../02-Keyword/tsg_bfapi/Common.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/policy_file_interface/FunctionalKeywords.robot
|
|
Resource ../../../03-Variable/BifangApiVariable.txt
|
|
|
|
*** Variables ***
|
|
${url} /policy/profile/responsepages
|
|
${profileId} ${EMPTY}
|
|
|
|
*** Test Cases ***
|
|
Response Pages Policy CRUD case
|
|
|
|
# 新增
|
|
${response} CreatePolicyFile2 ${url} response_pages_files/ Create-Response Pages-test-1.html resPages
|
|
|
|
# 查询
|
|
${profileId} Get From Dictionary ${response} profileId
|
|
${profileName} Get From Dictionary ${response} profileName
|
|
QueryPolicyFile ${url} profileId=${profileId}&profileName=${profileName}
|
|
|
|
# 修改
|
|
${header_edit} Set Variable {"isValid":1,"format":"html","opAction":"update","profileName":"test_edit","profileId":"${profileId}","returnData":1}
|
|
UpdatePolicyFile ${url} Response pages-files/ Create-Response Pages-test.html ${header_edit}
|
|
|