2020-12-24 16:28:39 +08:00
*** Settings ***
Force Tags tsg-ui settings response_pages
Resource ../../../03-Variable/bifangapivariable.txt
Library OperatingSystem
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
*** Test Cases ***
CreateResponsePagesTypeHtml
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase html Settings ResponsePage
CreateResponsePages CreateResponsePagesTypeHtml ${path}response_pages_files\\Create-ResponsePages-test.html name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesTypeHtm
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase htm Settings ResponsePage
CreateResponsePages CreateResponsePagesTypeHtm ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesNameMinSize
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase htm Settings ResponsePage
CreateResponsePages 1 ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesNameMaxSize
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase htm Settings ResponsePages
CreateResponsePages CreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateRe ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesNameSpecialChar
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase htm Settings ResponsePages
CreateResponsePages 中文+absc+моряков+@#¥%……&* ${path}response_pages_files\\Create-ResponsePages-test.html name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
EditResponsePagesSearchID
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase htm Settings ResponsePages
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name
2020-12-24 16:28:39 +08:00
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/span
2020-12-24 18:10:19 +08:00
Edit-Response-Pages ${id} lyf-Edit-test-001 ${path}response_pages_files\\Create-ResponsePages-test-1.html id
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
EditResponsePagesSearchName
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase htm Settings ResponsePages
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name
2020-12-24 16:28:39 +08:00
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-12-24 18:10:19 +08:00
Edit-Response-Pages ${name} lyf-Edit-test-007 ${path}response_pages_files\\Create-ResponsePages-test-1.html name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePageUpload20MFile
2020-12-24 18:10:19 +08:00
[Tags] PositiveTestCase html Settings ResponsePages
CreateResponsePages ResponsePageUpload20MFile ${path}response_pages_files\\20MFile.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesSpecialFileName
[Tags] PositiveTestCase html Settings ResponsePages
CreateResponsePages CreateResponsePagesSpecialFileName ${path}response_pages_files\\ВставкаСкриптов!@#$%^&(-+=‘;。,?.html name
2020-12-24 16:28:39 +08:00
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePageUploadNullFile
2020-12-24 18:10:19 +08:00
[Tags] NegtivetestCase html Settings ResponsePages
2020-12-24 16:28:39 +08:00
UploadFilesSize ResponsePages ResponsePageUploadfile ${path}response_pages_files\\null.html
${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[1]
Should Be Equal As Strings ${text} Create Response Page
ResponsePageUploadExceed20MFile
2020-12-24 18:10:19 +08:00
[Tags] NegtivetestCase html Settings ResponsePages
2020-12-24 16:28:39 +08:00
UploadFilesSize ResponsePages ResponsePageUploadExceed20MFile ${path}response_pages_files\\Exceed20MFile.html
${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[1]
2020-12-24 18:10:19 +08:00
Should Be Equal As Strings ${text} Create Response Page