1.增加新的Case

This commit is contained in:
byb11
2021-01-09 13:59:34 +08:00
parent caa8dd2859
commit 7e893e5d30
3 changed files with 35 additions and 3 deletions

View File

@@ -112,6 +112,11 @@ HijackFilesSpecialFileName
CreateHijackFiles HijackFilesUpload20MFileTest ${path}hijack_files/ВставкаСкриптов!@#$%^&(-+=‘;。,?.html id=text/html0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesDownloadFile
[Tags] PositiveTestCase Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
DownLoadFile ${Downloadpath}Create-Hijack Files-test.apk
HijackFilesUploadNullFile
[Tags] NegtivetestCase html Settings HijackFile
@@ -125,4 +130,14 @@ HijackFilesUploadTypeDoesNotMatch
[Tags] NegtivetestCase Settings HijackFile
UploadFilesSize HijackFiles HijackFilesUploadTypeDoesNotMatch ${path}hijack_files/Create-Hijack Files-test-6.svg Invalid file format , only supported gif , jpeg , png , svg , exe , apk , html
CreateHijackFilesNullFileName
[Tags] NegtivetestCase Settings HijackFile
OpenPages sidebarProxy_Profiles profilesTabs_Profile_HijackFiles
click id=hijackAdd
Sleep 2
click id=hijackAddOk1
sleep 1
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[3]
${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div[2]
Should Be Equal As Strings ${text} Please enter the content
Should Be Equal As Strings ${text1} Please enter the content

View File

@@ -69,6 +69,11 @@ CreateInsertScriptSpecialFileName
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptDownloadFile
[Tags] PositiveTestCase Settings InsertScript
CreateInsertScripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css css name
DownLoadFile ${Downloadpath}Create-Insert Scripts-test.css
InsertScriptsUpload20MFile
[Tags] PositiveTestCase css Settings InsertScript
CreateInsertScripts InsertScriptsUpload20MFile ${path}insert_files\\20MFile.css css name
@@ -85,4 +90,16 @@ InsertScriptsUploadExceed20MFile
InsertScriptsFileTypeDoesNotMatch
[Tags] NegtivetestCase css Settings InsertScript
UploadFilesSize InsertScripts InsertScriptsFileTypeDoesNotMatch ${path}insert_files\\Create-Insert_Scripts-test.js File upload failed.
UploadFilesSize InsertScripts InsertScriptsFileTypeDoesNotMatch ${path}insert_files\\Create-Insert_Scripts-test.js File upload failed.
CreateInsertScritsNullFileName
[Tags] NegtivetestCase Settings InsertScrit
OpenPages sidebarProxy_Profiles profilesTabs_Profile_Insert
click id=insertAdd
Sleep 2
click id=insertAddOk1
sleep 1
${text} get text xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[1]/div/div[3]
${text1} get text xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div/div[2]
Should Be Equal As Strings ${text} Please enter the content
Should Be Equal As Strings ${text1} Please enter the content

View File

@@ -75,7 +75,7 @@ CreateResponsePagesNullFileName
${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
DownloadFile
ResponsePagesDownloadFile
[Tags] PositiveTestCase Settings ResponsePages
CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name
DownLoadFile ${Downloadpath}Create-ResponsePages-test.htm