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 we can do Batch testing in QTP?
What is object repository in qtp?
How did u write macros?What is the main importance of VB macros in testing environment?
How to compare the two strings?
in process of project exaplnation the defects are says frequently r not?
what is defination of intergration testing?
Hi all, what is the latest version of QTP?
How many scripts do you write per day. What is the average number of scripts you have written in your recent project
1 Answers CenturyLink, Optum, Value Labs,
how can we group that these test cases only should be automated and in which order you execute that test cases
How to create a run time propertyfor an object?
how to associate object repository during runtime in qtp
How can we conduct U-I Testing by using QTP??????