1.增加用例,修改用例 2.修改关键字
This commit is contained in:
@@ -5,66 +5,79 @@ Library OperatingSystem
|
|||||||
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
CreateResponsePagesTypeHtml
|
ResponsePagesCreateHtmlfile
|
||||||
[Tags] PositiveTestCase html Settings ResponsePage
|
[Tags] Positive UI html Settings ResponsePage
|
||||||
CreateResponsePages CreateResponsePagesTypeHtml ${path}response_pages_files\\Create-ResponsePages-test.html name
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
CreateResponsePagesTypeHtm
|
ResponsePagesCreateHtmfile
|
||||||
[Tags] PositiveTestCase htm Settings ResponsePage
|
[Tags] Positive UI htm Settings ResponsePage
|
||||||
CreateResponsePages CreateResponsePagesTypeHtm ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
CreateResponsePagesNameMinSize
|
ResponsePagesEditSearchID
|
||||||
[Tags] PositiveTestCase htm Settings ResponsePage
|
[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
|
||||||
|
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
|
||||||
|
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
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
CreateResponsePagesNameMaxSize
|
ResponsePagesCreateNameMaxSize
|
||||||
[Tags] PositiveTestCase htm Settings ResponsePages
|
[Tags] Boundary UI Name Settings ResponsePages
|
||||||
CreateResponsePages CreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateResponsePagesNameMaxSizeCreateRe ${path}response_pages_files\\Create-Response_Pages-test-2.htm name
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
CreateResponsePagesNameSpecialChar
|
ResponsePagesCreateNameSpecialChar
|
||||||
[Tags] PositiveTestCase htm Settings ResponsePages
|
[Tags] Boundary UI Name Settings ResponsePages
|
||||||
CreateResponsePages 中文+absc+моряков+@#¥%……&* ${path}response_pages_files\\Create-ResponsePages-test.html name
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
EditResponsePagesSearchID
|
|
||||||
[Tags] PositiveTestCase 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 xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
|
||||||
DeleteresinseDel
|
|
||||||
|
|
||||||
EditResponsePagesSearchName
|
|
||||||
[Tags] PositiveTestCase htm 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 xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
|
||||||
DeleteresinseDel
|
|
||||||
|
|
||||||
ResponsePageUpload20MFile
|
ResponsePageUpload20MFile
|
||||||
[Tags] PositiveTestCase html Settings ResponsePages
|
[Tags] Boundary UI File Settings ResponsePages
|
||||||
CreateResponsePages ResponsePageUpload20MFile ${path}response_pages_files\\20MFile.html name
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
CreateResponsePagesSpecialFileName
|
ResponsePagesSpecialFileName
|
||||||
[Tags] PositiveTestCase html Settings ResponsePages
|
[Tags] Boundary UI File Settings ResponsePages
|
||||||
CreateResponsePages CreateResponsePagesSpecialFileName ${path}response_pages_files\\ВставкаСкриптов!@#$%^&(-+=‘;。,?.html name
|
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
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||||
DeleteresinseDel
|
DeleteresinseDel
|
||||||
|
|
||||||
CreateResponsePagesNullFileName
|
ResponsePagesDownloadFile
|
||||||
[Tags] PositiveTestCase html Settings ResponsePages
|
[Tags] Positive UI Settings ResponsePages
|
||||||
|
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name
|
||||||
|
DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test.html ${Downloadpath}Create-ResponsePages-test.html
|
||||||
|
DeleteresinseDel
|
||||||
|
|
||||||
|
ResponsePagesTurnPage
|
||||||
|
[Tags] Positive UI Settings ResponsePages
|
||||||
|
OpenPages sidebarProxy_Profiles
|
||||||
|
Ui-Pages //*[@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
|
OpenPages sidebarProxy_Profiles
|
||||||
click id=respinseAdd
|
click id=respinseAdd
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -75,24 +88,20 @@ CreateResponsePagesNullFileName
|
|||||||
${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[1]/div/div[3]
|
${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
|
Should Be Equal As Strings ${text} Please enter the content
|
||||||
|
|
||||||
ResponsePagesDownloadFile
|
|
||||||
[Tags] PositiveTestCase Settings ResponsePages
|
|
||||||
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name
|
|
||||||
DownLoadFile ${Downloadpath}Create-ResponsePages-test.html
|
|
||||||
|
|
||||||
ResponsePageUploadNullFile
|
ResponsePageUploadNullFile
|
||||||
[Tags] NegtivetestCase html Settings ResponsePages
|
[Tags] Negtive UI File Settings ResponsePages
|
||||||
UploadFilesSize ResponsePages ResponsePageUploadfile ${path}response_pages_files\\null.html Please choose to upload files
|
UploadFilesSize ResponsePages ResponsePageUploadfile ${path}response_pages_files\\null.html Please choose to upload files
|
||||||
|
|
||||||
ResponsePageUploadExceed20MFile
|
ResponsePageUploadExceed20MFile
|
||||||
[Tags] NegtivetestCase html Settings ResponsePages
|
[Tags] Negtive UI File Settings ResponsePages
|
||||||
UploadFilesSize ResponsePages ResponsePageUploadExceed20MFile ${path}response_pages_files\\Exceed20MFile.html File Maximum Limitation 20MB
|
UploadFilesSize ResponsePages ResponsePageUploadExceed20MFile ${path}response_pages_files\\Exceed20MFile.html File Maximum Limitation 20MB
|
||||||
|
|
||||||
ResponsePagesFileTypeDoesNotMatch
|
ResponsePagesFileTypeDoesNotMatch
|
||||||
[Tags] NegtivetestCase html Settings ResponsePages
|
[Tags] Negtive UI File Settings ResponsePages
|
||||||
UploadFilesSize ResponsePages ResponsePagesFileTypeDoesNotMatch ${path}insert_files\\Create-Insert Scripts-test.css "html" and "htm" only
|
UploadFilesSize ResponsePages ResponsePagesFileTypeDoesNotMatch ${path}insert_files\\Create-Insert Scripts-test.css "html" and "htm" only
|
||||||
|
|
||||||
ResponsePagesDeleteReferencedData
|
ResponsePagesDeleteReferencedData
|
||||||
[Tags] NegtivetestCase Settings ResponsePages
|
[Tags] Negtive UI Settings ResponsePages
|
||||||
DeleteReferencedData sidebarProxy_Profiles 527 The referenced data are not allowed to disable or delete
|
DeleteReferencedData sidebarProxy_Profiles 527 The referenced data are not allowed to disable or delete
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
*** Settings ***
|
*** Settings ***
|
||||||
Library Selenium2Library
|
Library Selenium2Library
|
||||||
|
Library ../../../04-CustomLibrary/Custometest/Common.py
|
||||||
*** Keywords ***
|
*** Keywords ***
|
||||||
click
|
click
|
||||||
[Arguments] ${element}
|
[Arguments] ${element}
|
||||||
@@ -1730,20 +1730,34 @@ OpenPages
|
|||||||
click id=${SecondaryMenu}
|
click id=${SecondaryMenu}
|
||||||
run keyword if "${Three-levelMenu}"!="null" run keywords sleep 1
|
run keyword if "${Three-levelMenu}"!="null" run keywords sleep 1
|
||||||
... AND click id=${Three-levelMenu}
|
... AND click id=${Three-levelMenu}
|
||||||
sleep 1
|
sleep 5
|
||||||
|
|
||||||
Ui-Pages
|
Ui-Pages
|
||||||
[Arguments] ${pages}
|
[Arguments] ${NextPage} ${PreviousPage} ${JumpInput} ${pages}
|
||||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/ul/li[2]
|
[Documentation]
|
||||||
|
... ${NextPage} 下一页按钮定位
|
||||||
|
... ${PreviousPage} 上一页按钮定位
|
||||||
|
... ${JumpInput} 跳转页面输入框
|
||||||
|
... ${pages} 跳转得页码
|
||||||
|
click xpath=${NextPage}
|
||||||
sleep 2
|
sleep 2
|
||||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/button[2]
|
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/ul/li[2] class
|
||||||
|
sleep 1
|
||||||
|
Should Be Equal As Strings ${text1} number active
|
||||||
|
click xpath=${PreviousPage}
|
||||||
sleep 2
|
sleep 2
|
||||||
Clear Element Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/span[2]/div/input
|
${text2} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/ul/li[1] class
|
||||||
|
sleep 1
|
||||||
|
Should Be Equal As Strings ${text1} number active
|
||||||
|
Clear Element Text xpath=${JumpInput}
|
||||||
sleep 2
|
sleep 2
|
||||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/span[2]/div/input ${pages}
|
input text xpath=${JumpInput} ${pages}
|
||||||
sleep 2
|
sleep 2
|
||||||
press keys xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/span[2]/div/input ENTER
|
press keys xpath=${JumpInput} ENTER
|
||||||
sleep 2
|
sleep 2
|
||||||
|
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/ul/li[${pages}] class
|
||||||
|
sleep 1
|
||||||
|
Should Be Equal As Strings ${text1} number active
|
||||||
|
|
||||||
ALL
|
ALL
|
||||||
[Arguments]
|
[Arguments]
|
||||||
@@ -1866,12 +1880,20 @@ UploadFilesSize
|
|||||||
Should Be Equal As Strings ${text} ${Promptinfor}
|
Should Be Equal As Strings ${text} ${Promptinfor}
|
||||||
|
|
||||||
DownLoadFile
|
DownLoadFile
|
||||||
[Arguments] ${DownloadFilePath}
|
[Arguments] ${UploadFilePath} ${DownloadFilePath}
|
||||||
[Documentation] ${DownloadFilePath}:文件下载路径
|
[Documentation]
|
||||||
|
... ${UploadFilePath}:上传文件路径
|
||||||
|
... ${DownloadFilePath}:文件下载路径
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=dowmloadi
|
click id=dowmloadi
|
||||||
sleep 3
|
sleep 3
|
||||||
Run_Keyword_And_Continue_On_Failure File_Should_Exist ${DownloadFilePath} #出错后继续执行,如文件在指定路径存在则通过
|
${a} get_md5_01 ${UploadFilePath}
|
||||||
|
sleep 1
|
||||||
|
${b} get_md5_01 ${DownloadFilePath}
|
||||||
|
sleep 1
|
||||||
|
Should Be Equal As Strings ${a} ${b}
|
||||||
|
sleep 2
|
||||||
|
#Run_Keyword_And_Continue_On_Failure File_Should_Exist ${DownloadFilePath} #出错后继续执行,如文件在指定路径存在则通过
|
||||||
|
|
||||||
DeleteReferencedData
|
DeleteReferencedData
|
||||||
[Arguments] ${SecondaryMenu} ${ID} ${PromptInformation}
|
[Arguments] ${SecondaryMenu} ${ID} ${PromptInformation}
|
||||||
|
|||||||
Reference in New Issue
Block a user