dougnoel / sentinel

A Selenium/Appium framework that enables users to focus on automating web and windows tests, so that automated tests can be written in a non-technical way in the same amount of time as manual tests can be executed.
Apache License 2.0
11 stars 13 forks source link

551 zip file count verification #552

Closed tyBouch closed 1 year ago

tyBouch commented 1 year ago

Adds a new step which can take an extension optionally, and a file count.

File count can be any integer. "0" is valid as an optional way of checking for 0 files. Otherwise "any" can be utilized for "above 0" or none for does not. Uses file content stream filtering to filter down the extensions, or gets the flat file names size otherwise.

Only takes 0+, only whole numbers or "any" for the count of files. Any extension is allowed, but it must end with the given extension.

Old step "^I verify the most recently downloaded zip file( does not)? contains? a file with the extension (.*?)$" has been updated to use the new step with the "any" call, and has had its documentation updated that the steps are equivalent and will behave the same.

Also supports case-insensitive extension or case sensitive partial name contains. Good for testing for partially randomly generated names like reports with a date-time stamp. Extension is case insensitive as the OS doesn't care about casing. Naming is case sensitive.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.2% 90.2% Coverage
0.0% 0.0% Duplication