fiuba08 / robotframework

Automatically exported from code.google.com/p/robotframework
Apache License 2.0
0 stars 0 forks source link

pattern argument for Count Files In Directory is case sensitive (incorrect documentation) #1382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a folder (${folder}) that contains one file, with a file extension "pdf" 
(lowercase). If I run the following test case, I get the output 1, 0, 1. This 
indicates that the pattern argument is case sensitive, even though the 
documentation says that it should be case insensitive 
(http://robotframework.googlecode.com/hg/doc/libraries/OperatingSystem.html#Patt
ern matching)

| Test case sensitivity
| | ${noPattern}= | count files in directory | ${folder}
| | ${caps}= | count files in directory | ${folder} | *.PDF
| | ${noCaps}= | count files in directory | ${folder} | *.pdf
| | log | no pattern: ${noPattern} | warn
| | log | caps: ${caps} | warn
| | log | no caps: ${noCaps} | warn

[Output]
[ WARN ] no pattern: 1
[ WARN ] caps: 0
[ WARN ] no caps: 1

Environment:
Robot Framework 2.7.5 (Python 2.7.2 on win32)
Windows Server 2008 R2 Standard (SP1)

Original issue reported on code.google.com by mightysh...@gmail.com on 13 Mar 2013 at 8:54

GoogleCodeExporter commented 9 years ago
Pattern argument works in similar way as in List Directories and the 
documentation there says that it is case-sensitive. 
http://robotframework.googlecode.com/hg/doc/libraries/OperatingSystem.html#List%
20Directory

Closing as Invalid.

Original comment by mikko.ko...@gmail.com on 14 Mar 2013 at 6:22