From 7e893e5d3041705fa5aa59018fdad19ede8ef6f4 Mon Sep 17 00:00:00 2001 From: byb11 Date: Sat, 9 Jan 2021 13:59:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E6=96=B0=E7=9A=84Case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tsg_ui/ui_settings/HijackFilesCase.robot | 17 ++++++++++++++++- .../tsg_ui/ui_settings/InsertScriptCase.robot | 19 ++++++++++++++++++- .../ui_settings/ResponsePagesCase.robot | 2 +- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot b/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot index a097717..e55e5ae 100644 --- a/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot @@ -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 - \ No newline at end of file +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 \ No newline at end of file diff --git a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot index 7e17fcd..a9e1203 100644 --- a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot @@ -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. \ No newline at end of file + 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 diff --git a/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot b/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot index baf9206..f3ef0c4 100644 --- a/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot @@ -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