forked from kowalpy/Robot-Framework-FTP-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathftpLibraryExampleWithTls.robot
More file actions
27 lines (23 loc) · 878 Bytes
/
ftpLibraryExampleWithTls.robot
File metadata and controls
27 lines (23 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*** Settings ***
Library FtpLibrary
*** Test Cases ***
Login With Ftps
[Setup] Ftp Connect ${ip} ${username} ${password} connId=conn1 tls=${True}
Secure Data Connection connId=conn1
Validate An Active Ftp Connection
[Teardown] Ftp Close connId=conn1
Incorrect Ftps Login Tests
[Template] Incorrect Ftps Login
${EMPTY} ${EMPTY}
${username} ${EMPTY}
${EMPTY} ${password}
*** Keywords ***
Validate An Active Ftp Connection
&{ftpConnections} = Get All Ftp Connections
Log Many &{ftpConnections}
Should Not Be Empty ${ftpConnections}
Incorrect Ftps Login
[Arguments] ${user} ${pw}
# 530 = Return code for an incorrect login
Run Keyword And Expect Error *530* Ftp Connect ${ip} ${user} ${pw} port=${21}
... timeout=${6} tls=${True}