Enumerations
- :cpp
ProcessError
- :cpp
State
Properties
- :cpp
arguments
- :cpp
exitCode
- :cpp
program
- :cpp
state
- :cpp
workingDirectory
Methods
- :cpp
readAllStandardError()
- :cpp
readAllStandardOutput()
- :cpp
start()
- :cpp
terminate()
- :cpp
waitForFinished()
- :cpp
waitForStarted()
Signals
- :cpp
errorOccurred()
- :cpp
started()
- :cpp
finished()
ProcessProbe
can invoke external applications and communicate with them. It mirrors the API of QProcess.
The process to run is defined by the :cppprogram
property. Arguments are provided as a string list in the :cpparguments
property.
Example:
import qst 1.0
Testcase {
ProcessProbe {
id: make
program : (Qst.hostOs === "windows") ? "gmake.exe" : "make"
arguments: [
"-j",
"8"
]
}
function run() {
make.start();
make.waitForFinished(1701);
Qst.compare(make.exitCode, 0, "Make did not succeed");
}
}