The power management test tool (PwrTest) is a test tool that enables developers, testers, and system integrators to exercise and record power management information from the system. You can use PwrTest to automate sleep and resume transitions and record processor power management and battery information from the system over a period of time.
|Where can I get PwrTest?|
PwrTest.exe is included in the Microsoft Windows Driver Kit (WDK). For information about getting the WDK, see Windows Driver Kit Downloads.
PwrTest (PwrTest.exe) features robust logging and a command-line interface. PwrTest is capable of logging information to both a Microsoft Windows Test Technologies (WTL) and XML file format.
PwrTest functionality is separated into scenarios. For information about these scenarios, see PwrTest Scenarios.
To run Pwrtest
To be able to use all PwrTest Scenarios, you must first provision a test computer for testing using Visual Studio and the WDK. For more information, see Configuring a Computer for Driver Deployment, Testing, and Debugging.
Some scenarios require the power button driver that is part of Windows Driver Testing Framework (WDTF). WDTF (and the included power button driver) is automatically installed when you provision a system for testing using Visual Studio and the WDK.
PwrTest.exe is installed with the WDK. To run Pwrtest on the test computer, you must copy PwrTest.exe from the computer where you installed the WDK.
In the WDK for Windows 8 you can find PwrTest.exe in the Windows Driver Kit Tools directory (for example, C:\Program Files (x86)\Windows Kits\<version>\Tools\<platform>\PwrTest.exe).
On the test computer that you have provisioned, open a Command Prompt window with elevated permissions ( Run as Administrator) and navigate to the directory where you copied PwrTest.exe.
pwrtest /battery /c:4 /i:1000
- PwrTest Syntax
- PwrTest Log File
- PwrTest Scenarios
- Configuring a Computer for Driver Deployment, Testing, and Debugging
Build date: 5/7/2013