Manual

47
The ManualStepDialog

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 47.1:  Example use of ManualStepDialog
47.1
The ManualStepDialog API
 
 
ManualStepDialog(Component parent, String title, String stepText, String expResult)

Create a new ManualStepDialog.

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 getResult()

Get the result of the test-step. Please, see chapter section 25.5 for all possible results.

ReturnsA string containing the result.
 
void setResult(String newResult)

Set the result of the test-step. Please, see chapter section 25.5 for all possible results.

Parameters
newResult The result of the test-step.
 
String getExecInfo()

Get the execution information of the test-step.

ReturnsA string containing the execution information.
 
void setExecInfo(String newExecInfo)

Set the execution information of the test-step.

Parameters
newExecInfo The execution information of the test-step.
 
String getReceivedResult()

Get the received result of the test-step.

ReturnsA string containing the received result.
 
void setReceivedResult(String newRecResult)

Set the received result of the test-step.

Parameters
newReceived Result The received result of the test-step.
 
boolean isStatusFailed()

Test whether the status is FAILED.

ReturnsTrue if the status is failed, false otherwise.
 
boolean isStatusPassed()

Test whether the status is PASSED.

ReturnsTrue if the status is passed, false otherwise.
 
boolean isStatusSkipped()

Test whether the status is SKIPPED.

ReturnsTrue if the status is skipped, false otherwise.
 
boolean isStatusCanceled()

Test whether the status is CANCELED.

ReturnsTrue if the status is canceled, false otherwise.