What is Optional step?

Answers were Sorted based on User's Feedback



What is Optional step?..

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

What is Optional step?..

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

What is Optional step?..

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

What is Optional step?..

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

Post New Answer

More QTP Interview Questions

can any one tel ,using simple string a[0]=I a[1]=N a[2]=D like that it go's . . out put i need INDIA help me it's really need full ..

3 Answers   Mind Tree,


Few basic questions on commonly used Excel VBA functions.

1 Answers  


How to Import the data from MS-Access in QTP?

1 Answers  


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

0 Answers  


What are the advantages of qtp?

0 Answers  






I am using DataTable.ImportSheet method to import the data from an excel sheet to the Runtime DataTable of QTP. here is my piece of code DataTable.import("c:\DataSheet.xls","Members","Members") The first row headings of Members sheet of DataSheet.xls and Members sheet of QTp are matched. but the QTP is taking very long time(approximately half an hour) to import the data into runtime datatable even though the DataSheet.xls has one or two rows in it. Please let me know why this is happening and is there any alternative for impoting the data into runtime datatable of qtp ?

2 Answers  


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

0 Answers  


When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  


1. Which function is used to check whether the specified object property achieves the specified value within the specified timeout below anyone is correct 1. Check Property 2. getToproperty 3. output Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


What is Object Spy in QTP?

1 Answers   Crea,


what is the difference between an Action and a function in real time

4 Answers  


Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated

2 Answers   McAfee,


Categories