What is exact difference between “while” and “do while” in
QTP ?
Answer / rico
The basic difference is in the time of checking the
condition during execution of loop. In while loop the
condition is checked at the start, if it is true then
statements enclosed in the loop structure are executed ,
otherwise the loop exits and control transfers to the
statements following this loop and this process continues
until the condition becomes false.
As:
While (condition)
{
statement1;
statement2;
.
.
}
Statements following the loop
But in the case of do-while loop condition is checked at
the end of structure (i.e., at least one time the
statements enclosed in this loop structure are executed
before checking the condition)
After executing the loop statements at least once, the loop
condition is checked; if it is true then the loop body is
executed again otherwise loop exits. As:
Do
{
statement1;
statement2;
.
.
}
While (condition)
Statements following the loop
| Is This Answer Correct ? | 18 Yes | 1 No |
When can shared object repository fails?
Explain the check points in quicktest professional?
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..??
what is Unicode Compatibility ? HOw does this makes a diffrence from Winrunner.?
what kind of erros can be handled with the using QTP?
what is action in QTP?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Which object repository we use in real time and can we merge 2 object repostiory and how?
What is keyword view?
What are default add-ins in qtp?
how to create flat file datasubmission in qtp