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 |
any challange that faced in your project? (please give me some examples in your project?
What does VBS file contain?
Please explain me in detail! How to handle runtime errors in QTP useing recovery senario or with out scenario
with out using import sheet came is it possible to get the excel sheet ?
Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
What is Virtual Users?
Have you faced any problems with object repository?
How can you quit from Action.
how to merge object repositories?
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
Can anybody help me by sharing the code for checkbox in qtp using vbscript.
Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri