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 |
Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). Pls anyone, very urgent
MANUAL TESTING, AUTOMATION TESTING QTP,QC , Load Runner , SELNEIUM ONLINE TRAINING
When to use shared and local object repository?
write a qtp code to count the number of child objects in login page and highlight it
Hello Everybody, Please tell me the concept of recovery management in QTP by giving any practical example of it. Thanks, Gaytri
what is selective recording ? and normal recording?
how and what kind of vb functions do us ein QTP?
What are the different types of checkpoints?
What is the default object synchronization timeout in qtp?
how to test power point using QTP 8.2 ? What are different methods to retrieve value from Application during runtime ?
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
does qtp need record and playback in realtime. plz tell exactly wat happens