Just curious. [img]/images/graemlins/confused.gif[/img]
When I run a ManualTest in my script (such as one I call "CheckDriver") I don't see how to get the results, meaning if the user selected Succeed or Fail in a step
how does the script calling the ManualTest know?
When I use CheckDriver.GetStepInfo("Step_1") I get an object
with such cool methods as:
* GetCaption Returns the step caption.
* GetDescription Returns the step description.
* GetIconFileName Returns the name of the file holding the step icon.
* GetID Specifies the step identifier.
* GetInstructionsURL Returns the name of the file holding the step text.
* GetInstructionsXML Returns the name of the XML file storing the step text.
* GetInstructionsXSL Returns the name of the XSL file that is applied to the XML file storing the step text.
* GetNotes Returns the step notes.
* IsXMLContent Indicates whether the step content is stored in the XML+XSL or HTML format.
But I'd really like to make a decision in my script
on the result of the Manual Step. Did it succeed or fail?
I have added your request to our DB as a suggestion. Thank you for your post.
At the moment, you can use the Manual Testing events like OnStepFail, OnStepSuccess, etc. To learn how to do this, please go through the "List of TestComplete Events" and "Handling Events With TestComplete" help topics.
For example, you can set up a project variable (e.g. 'testFailed') to 'False' before running a manual test. Create a handler for the OnStepFail event that will set this variable to 'True'. After the test is finished, you will be able to get information on whether the test failed by checking this variable.