The ManualStepDialog
is a Java class delivered by QF-Test. If you want to make
use of this dialog for your own tests, please see following sample script and API
specification.
|
from de.qfs.apps.qftest import ManualStepDialog
#create the dialog and show it immediately
manualDialog = ManualStepDialog(None, "New Test Case Title", \
"Step Description", "Expected Test Result")
#did the test fail or succeed?
failOrSuccess = manualDialog.getResult()
#get the content of the received result
receivedResult = manualDialog.getReceivedResult()
#get the execution information, whether skipped or canceled
execInfo = manualDialog.getExecInfo() |
|
| | Example 52.1: Example use of ManualStepDialog | |
|
|
|
ManualStepDialog ManualStepDialog(Component parent, String title, String stepText, String expResult) |
Parameters |
parent |
The parent component for the dialog.
|
title |
The title of the dialog.
|
stepText |
The text for the step description text-field.
|
expResult |
The text for the expected result text-field.
|
|
String getExecInfo() |
Returns | A string containing the execution information. |
|
String getReceivedResult() |
Returns | A string containing the received result. |
|
String getResult() |
Returns | A string containing the result. |
|
boolean isStatusCanceled() |
Returns | True if the status is canceled, false otherwise. |
|
boolean isStatusFailed() |
Returns | True if the status is failed, false otherwise. |
|
boolean isStatusPassed() |
Returns | True if the status is passed, false otherwise. |
|
boolean isStatusSkipped() |
Returns | True if the status is skipped, false otherwise. |
|
void setExecInfo(String newExecInfo) |
Parameters |
newExecInfo |
The execution information of the test-step.
|
|
void setReceivedResult(String newRecResult) |
Parameters |
newReceived Result |
The received result of the test-step.
|
|
void setResult(String newResult) |
Parameters |
newResult |
The result of the test-step.
|
|
|
|