What is Optional step?
Answers were Sorted based on User's Feedback
Answer / umasankar
An optional step is a step that is not necessarily required
to successfully complete a run session. For example,
suppose that when recording a test, the application you are
testing prompts you to enter a user name and password in a
login window. When you run the test, however, the
application does not prompt you to enter your user name and
password because it retained the information that was
previously entered. In this case, the steps that were
recorded for entering the login information are not
required and should, therefore, be marked optional.
During a run session, if a step in an optional dialog box
does not open, QuickTest bypasses this step and continues
to run the test. When the run session ends, a message is
displayed for the step that failed to open the dialog box,
but the step does not cause the run to fail.
However, if, during a run session, QuickTest cannot find
the object from the optional step in the object repository
For example, if the object name was modified in the test
but not in the object repository, or if the object was
removed from the object repository, an error message is
displayed listing the required object, and the run fails.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / naren
When running a test, if a step does not succeed in opening
dialog box, QTP does not necessarily abort the test run. It
bypasses any step designated "optional" and continues
running the test.
By default, automatically QTP markes as optional steps that
open certain dialog boxes. You can manually designate
additional steps as optional.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prabasree
During run session, QTP will skip the optional step if the
object corresponding to the optional step is not present in
the application and execute the next step. If the object is
present then QTP will execute the optional step.
eg
OptionalStep.Dialog("Login").WinButton("OK").Click
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / less than you
Uma dont copy and past from the others document on the net
these are easily accessible for all. give some innovative.
| Is This Answer Correct ? | 0 Yes | 4 No |
How did you achieve reusability via QTP?
can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...
if we can find the status of script in qtp that either it's pass or fail then why we need to put this status on different excel file or log file in hybrid framework .please let me know asap thanks
Wt is the difference between Business Component and scripted component?
If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing.
hi all i have qtp 9.0, Active screen is not working means after recording script snap shots not displayed in Active screen window. i have all ready check all setting means Tool...>option...>Active screen...>Default Level button is disabled. Is there other setting is remain to set Pls help i m new for qtp
How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large
Explain about datafile/verification of date file when file is not available in local system?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
the develeper not accepter your defect what status is that ?
Why qtp always start action1 and does not start action?