software-testing-community

Open full view…

Checking the free disk space

Oliver Pavey
Wed, 19 Dec 2018 15:16:01 GMT

The free disk space can be found in Integration Tester using an ECMAScript Function Action, for example with a tag store item `freeSpace` defined: ` bytesFree = (new java.io.File("C:\\")).getFreeSpace();` Then in an Assert Action: ` tags["bytesFree"] > 500 * 1024 * 1024` Which ensures that 500 MB or more is available on the volume. It can be useful to add such a test at the start of test suites which are periodically run remotely to given an advanced warning of diminishing disk space on the host machine.