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 |
Explain how to use QTP to check broken links on a page?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
How software automation specialist enter steps in the Expert View?
How to find duplicates in an array and remove them efficiently?
what you mean by artifact,milestone...
Can you import and export data from XLS and how?
What is the syntax to use out of two characters. Pls anybody can give the answer.. Thanks in advance...
Is there anyway to have QTP go into a website and map out every object before I actually record any tests? I basically want to map out a website with all the objects and build a complete repository. The reason is because I'm running into issues with hierarcical objects. for example: Browser("ABC company- Home").Page("ABC company - Home").Link ("About Us").Click Browser("ABC company - Page 2").Page("ABC company - Page 2").Link("About Us").Click Both these links ("objects" and I use that term loosely as I'm trained mostly in OO programming) go to the same place but but the object heirarchies (pages) are different. I want a repository that will find any possible link on any possible page without having to manually record it. Is there a way to do this?
How you perform smoke and sanity testing using qtp?
How will you find the current time of the remote machine using QTP script?
draw the qtp frame work?
In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).