This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot

73 lines
4.1 KiB
Plaintext
Raw Normal View History

*** 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
[Tags] 正向 html Settings Response Page
Create-Response Pages CreateResponsePagesTypeHtml ${path}response_pages_files\\Create-Response Pages-test.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesTypeHtm
[Tags] 正向 htm Settings Response Page
Create-Response Pages CreateResponsePagesTypeHtm ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesNameMinSize
[Tags] 正向 htm Settings Response Page
Create-Response Pages 1 ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesNameMaxSize
[Tags] 正向 htm Settings Response Page
Create-Response Pages CreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateRe ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
CreateResponsePagesNameSpecialChar
[Tags] 正向 htm Settings Response Page
Create-Response Pages 中文+absc+моряков+@#¥%……&* ${path}response_pages_files\\Create-Response Pages-test.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
EditResponsePagesSearchID
[Tags] 正向 htm Settings Response Page
Create-Response Pages Create-Response Pages-001 ${path}response_pages_files\\Create-Response Pages-test.html name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/span
Edit-Response Pages ${id} lyf-Edit-test-001 ${path}response_pages_files\\Create-Response Pages-test-1.html id
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
EditResponsePagesSearchName
[Tags] 正向 htm Settings Response Page
Create-Response Pages Create-Response Pages-001 ${path}response_pages_files\\Create-Response Pages-test.html name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Edit-Response Pages ${name} lyf-Edit-test-007 ${path}response_pages_files\\Create-Response Pages-test-1.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePageUpload20MFile
[Tags] 正向 html Settings Response Page
Create-Response Pages 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
ResponsePageUploadNullFile
[Tags] 反向 html Settings Response Page
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
[Tags] 反向 html Settings Response Page
UploadFilesSize ResponsePages ResponsePageUploadExceed20MFile ${path}response_pages_files\\Exceed20MFile.html
${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[1]
Should Be Equal As Strings ${text} Create Response Page