192 lines
11 KiB
Plaintext
192 lines
11 KiB
Plaintext
|
|
*** Settings ***
|
||
|
|
Force Tags tsg-ui objects HTTPSignature
|
||
|
|
Resource ../../../03-Variable/bifangapivariable.txt
|
||
|
|
Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot
|
||
|
|
Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot
|
||
|
|
Library OperatingSystem
|
||
|
|
|
||
|
|
*** Test Cases ***
|
||
|
|
create-HTTPSignature-Request-User-Agent-prefix-001
|
||
|
|
#新建user-agent
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-User-Agent-prefix-001 reqrestype=req reqresheader=ua keywordtext=Mozilla/5.0*
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-User-Agent-prefix-001
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-prefix-001
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-User-Agent-sub-002
|
||
|
|
#新建user-agent
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-User-Agent-sub-002 reqrestype=req reqresheader=ua keywordtext=Mozilla/5.
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-User-Agent-sub-002
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-sub-002
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-User-Agent-exactly-003
|
||
|
|
#新建user-agent
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-User-Agent-exactly-003 reqrestype=req reqresheader=ua keywordtext=$Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-User-Agent-exactly-003
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-exactly-003
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-User-Agent-suffix-004
|
||
|
|
#新建user-agent
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-User-Agent-suffix-004 reqrestype=req reqresheader=ua keywordtext=*Safari/537.36
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-User-Agent-suffix-004
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-suffix-004
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-Cookie-prefix-005
|
||
|
|
#新建cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-Cookie-prefix-005 reqrestype=req reqresheader=ck keywordtext=cookie*
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-Cookie-prefix-005
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-prefix-005
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-Cookie-sub-006
|
||
|
|
#新建cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-Cookie-sub-006 reqrestype=req reqresheader=ck keywordtext=cookie
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-Cookie-sub-006
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-sub-006
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-Cookie-exactly-007
|
||
|
|
#新建cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-Cookie-exactly-007 reqrestype=req reqresheader=ck keywordtext=$cookie
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-Cookie-exactly-007
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-exactly-007
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Request-Cookie-suffix-008
|
||
|
|
#新建cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-Cookie-suffix-008 reqrestype=req reqresheader=ck keywordtext=*cookie
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-Cookie-suffix-008
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-suffix-008
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Set-Cookie-prefix-009
|
||
|
|
#新建set-cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-prefix-009 reqrestype=res reqresheader=sck keywordtext=set-cookie*
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Set-Cookie-prefix-009
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-prefix-009
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Set-Cookie-sub-010
|
||
|
|
#新建set-cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-sub-010 reqrestype=res reqresheader=sck keywordtext=set-cookie
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Set-Cookie-sub-010
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-sub-010
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Set-Cookie-exactly-011
|
||
|
|
#新建set-cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-exactly-011 reqrestype=res reqresheader=sck keywordtext=$set-cookie
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Set-Cookie-exactly-011
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-exactly-011
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Set-Cookie-suffix-012
|
||
|
|
#新建set-cookie
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-suffix-012 reqrestype=res reqresheader=sck keywordtext=*set-cookie
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Set-Cookie-suffix-012
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-suffix-012
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Content-Type-prefix-0013
|
||
|
|
#新建content-type
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Content-Type-prefix-0013 reqrestype=res reqresheader=ct keywordtext=Content-Type*
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Content-Type-prefix-0013
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-prefix-0013
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Content-Type-sub-0014
|
||
|
|
#新建content-type
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Content-Type-sub-0014 reqrestype=res reqresheader=ct keywordtext=Content-Type
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Content-Type-sub-0014
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-sub-0014
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Content-Type-exactly-0015
|
||
|
|
#新建content-type
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Content-Type-exactly-0015 reqrestype=res reqresheader=ct keywordtext=$Content-Type
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Content-Type-exactly-0015
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-exactly-0015
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-Response-Content-Type-suffix-0016
|
||
|
|
#新建content-type
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Response-Content-Type-suffix-0016 reqrestype=res reqresheader=ct keywordtext=*Content-Type
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Response-Content-Type-suffix-0016
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-suffix-0016
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
edit-HTTPSignature-017
|
||
|
|
#新建user-agent
|
||
|
|
CreatePage ReqRes create-HTTPSignature-Request-User-Agent-prefix-001 reqrestype=req reqresheader=ua keywordtext=Mozilla/5.0*
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-Request-User-Agent-prefix-001
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-prefix-001
|
||
|
|
#修改对象
|
||
|
|
object-edit-HTTPSignature edit-HTTPSignature-017 res sck 8f6c 6362 31 36 8fdb 5236 hex=open
|
||
|
|
#查询修改对象
|
||
|
|
ui-object-search-name edit-HTTPSignature-017
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|
||
|
|
|
||
|
|
create-HTTPSignature-open-16-hex-0018
|
||
|
|
#新建content-type
|
||
|
|
CreatePage ReqRes create-HTTPSignature-open-16-hex-0018 reqrestype=res reqresheader=ct keywordtext=*63 6f 6e 74 65 6e 74 hex=open
|
||
|
|
#验证新建是否成功
|
||
|
|
ui-object-search-name create-HTTPSignature-open-16-hex-0018
|
||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||
|
|
Should Be Equal As Strings ${text} create-HTTPSignature-open-16-hex-0018
|
||
|
|
#删除对象
|
||
|
|
objects-delete
|