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

111 lines
6.5 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 ***
ResponsePagesCreateHtmlfile
[Tags] Positive UI html Settings ResponsePage
CreateResponsePages CreateResponsePagesTypeHtml ${path}response_pages_files\\Create-ResponsePages-test.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePagesCreateHtmfile
[Tags] Positive UI htm Settings ResponsePage
CreateResponsePages 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
ResponsePagesEditSearchID
[Tags] Positive UI htm Settings ResponsePages
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-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-ResponsePages-test-1.html id
click id=dowmloadi
DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test-1.html ${Downloadpath}Create-ResponsePages-test-1.html
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePagesEditSearchName
[Tags] Positive UI Name Settings ResponsePages
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-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-ResponsePages-test-1.html name
click id=dowmloadi
DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test-1.html ${Downloadpath}Create-ResponsePages-test-1.html
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePagesNameMinSize
[Tags] Boundary UI Name Settings ResponsePage
CreateResponsePages 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
ResponsePagesCreateNameMaxSize
[Tags] Boundary UI Name Settings ResponsePages
CreateResponsePages 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
ResponsePagesCreateNameSpecialChar
[Tags] Boundary UI Name Settings ResponsePages
CreateResponsePages 中文+absc+моряков+@#¥%……&* ${path}response_pages_files\\Create-ResponsePages-test.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePageUpload20MFile
[Tags] Boundary UI File 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
ResponsePagesSpecialFileName
[Tags] Boundary UI File Settings ResponsePages
CreateResponsePages CreateResponsePagesSpecialFileName ${path}response_pages_files\\ВставкаСкриптов!@#$%^&(-+=‘;。,?.html name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
DeleteresinseDel
ResponsePagesDownloadFile
[Tags] Positive UI Settings ResponsePages
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name
click id=dowmloadi
DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test.html ${Downloadpath}Create-ResponsePages-test.html
DeleteresinseDel
ResponsePagesTurnPage
[Tags] Positive UI Settings ResponsePages
OpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/span[2]/div/input 2
ResponsePagesCreateNullName
[Tags] Negtive UI Name Settings ResponsePages
OpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages
click id=respinseAdd
sleep 1
Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${path}response_pages_files\\Create-ResponsePages-test.html #上传文件
Sleep 2
click id=responseAddOk1
sleep 1
${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[1]/div/div[3]
Should Be Equal As Strings ${text} Please enter the content
ResponsePageUploadNullFile
[Tags] Negtive UI File Settings ResponsePages
UploadFilesSize ResponsePages ResponsePageUploadfile ${path}response_pages_files\\null.html Please choose to upload files
ResponsePageUploadExceed20MFile
[Tags] Negtive UI File Settings ResponsePages
UploadFilesSize ResponsePages ResponsePageUploadExceed20MFile ${path}response_pages_files\\Exceed20MFile.html File Maximum Limitation 20MB
ResponsePagesFileTypeDoesNotMatch
[Tags] Negtive UI File Settings ResponsePages
UploadFilesSize ResponsePages ResponsePagesFileTypeDoesNotMatch ${path}insert_files\\Create-Insert Scripts-test.css "html" and "htm" only
ResponsePagesDeleteReferencedData
[Tags] Negtive UI Settings ResponsePages
DeleteReferencedData ResponsePage sidebarProxy_Profiles 897 The referenced data are not allowed to disable or delete