1.增加新的Case
This commit is contained in:
@@ -113,6 +113,11 @@ HijackFilesSpecialFileName
|
||||
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
|
||||
UploadFilesSize HijackFiles HijackFilesUploadNullFile ${path}hijack_files/null.html Please choose to upload files
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -86,3 +91,15 @@ InsertScriptsUploadExceed20MFile
|
||||
InsertScriptsFileTypeDoesNotMatch
|
||||
[Tags] NegtivetestCase css Settings InsertScript
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user