public interface TestProcess extends ObjectTreeNode
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the process by sending the WM_CLOSE message to its main window and waits until the process is closed or the specified time limit is reached.
|
void |
close(int waitTimeout)
Closes the process by sending the WM_CLOSE message to its main window and waits until the process is closed or the specified time limit is reached.
|
String |
getCommandLine()
The command line passed to the process at the moment of the process creation.
|
int |
getCPUUsage()
The approximate percentage of time the CPU is currently spending for the process execution.
|
Version |
getFileVersionInfo()
Specifies the version information of the executable that started the process.
|
int |
getHandleCount()
Returns the number of used handles in the process.
|
int |
getMemUsage()
The amount of memory (in kilobytes) the process is currently using.
|
String |
getPath()
The path to the executable that started the process.
|
int |
getPriority()
Returns the process priority within the operating system.
|
int |
getProcessId()
Returns the process identifier.
|
PlatformType |
getProcessType()
Specifies the code type of the process (x64 or x86).
|
int |
getSessionId()
Specifies the identifier of the session in which the process is running.
|
int |
getThreadCount()
Returns the number of active threads in the process.
|
String |
getUserName()
The name of the user account that started the process.
|
int |
getVMSize()
The amount of virtual memory (in kilobytes) the process is currently using.
|
void |
saveDumpToLog()
Generates a process dump and posts it to the log.
|
void |
saveDumpToLog(boolean fullMemory)
Generates a process dump and posts it to the log.
|
void |
terminate()
Terminates the process.
|
find, find, find, findAll, findAll, getChildren, getParent, tryFind, tryFind, tryFind, waitProperty, waitPropertycallMethod, callMethod, cast, getProperty, setProperty, toStringString getPath() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getPriority()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getProcessId()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.String getCommandLine() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.String getUserName() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getThreadCount()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getSessionId()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.PlatformType getProcessType() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getHandleCount()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getCPUUsage()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getVMSize()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.int getMemUsage()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.Version getFileVersionInfo() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.void close()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.void close(int waitTimeout)
throws InvocationException,
HttpException
waitTimeout - A time limit to wait until the process is closed.InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.void terminate()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.void saveDumpToLog()
throws InvocationException,
HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.void saveDumpToLog(boolean fullMemory)
throws InvocationException,
HttpException
fullMemory - Specifies whether write full memory to dump or not.InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.Copyright © 2020 SmartBear Software. All Rights Reserved.