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 56.1:  Example use of ManualStepDialog

The ManualStepDialog API

 
 
ManualStepDialog 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 getExecInfo()

Get the execution information of the test step.

ReturnsA string containing the execution information.
 
String getReceivedResult()

Get the received result of the test step.

ReturnsA string containing the received result.
 
String getResult()

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

ReturnsA string containing the result.
 
boolean isStatusCanceled()

Test whether the status is CANCELED.

ReturnsTrue if the status is canceled, false otherwise.
 
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.
 
void setExecInfo(String newExecInfo)

Set the execution information of the test step.

Parameters
newExecInfo The execution information of the test step.
 
void setReceivedResult(String newRecResult)

Set the received result of the test step.

Parameters
newReceived Result The received result of the test step.
 
void setResult(String newResult)

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

Parameters
newResult The result of the test step.