Question - What is Optional step in QTP? How you can add optional step in QTP?
Answer -
When running a test, it test fails in opening a dialog box, QTP does not necessarily abort the test run. It bye passes any step designated “optional” and continues running the test. By default QTP automatically marks as optional steps that open certain dialog boxes. In order to set an optional step in the keyword, right click and select “Optional Step”. The icon for optional step would be added in next step. In the expert view to add optional step, add optional step to the beginning of the VBScript statement.