06-13-2012, 01:57 PM
1. Do..While..loop vs While...Wend -
the first one is a multi-conditional while statement and the second one is a single condition statement.
2. Write a recursive function to get the pictorial of a number?
There cannot be a pictorial of a number it should be factorial. This is a simple C program from 1st semester of engineering and you can even pick this up from Yashwanth kanethkar, Let us C.
3) If the objects hierarchy is changing from build to build, then how you will handle that condition? Descriptive programming.
4) There are around 5000 objects in my OR and I wanted to make changes to the Logical names of the objects, and how Can I update the Library file with more than 3000 lines of code for all the objects?
QTP has a option under the run setting which when checked will update the test script accordingly.
5) I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?
Depends on the error being encountered. Ask the interviewer what error he has encountered.
6) Have you ever merged two shared OR's? If Yes, then what kind of conflicts will be there while merging two ORs'?
Easier to say if you merge them urself. Take one tsr file then make a copy of the same. edit objects in the one and keep the other one constant. when you merge you should see the differences accordingly.
Helps?
the first one is a multi-conditional while statement and the second one is a single condition statement.
2. Write a recursive function to get the pictorial of a number?
There cannot be a pictorial of a number it should be factorial. This is a simple C program from 1st semester of engineering and you can even pick this up from Yashwanth kanethkar, Let us C.
3) If the objects hierarchy is changing from build to build, then how you will handle that condition? Descriptive programming.
4) There are around 5000 objects in my OR and I wanted to make changes to the Logical names of the objects, and how Can I update the Library file with more than 3000 lines of code for all the objects?
QTP has a option under the run setting which when checked will update the test script accordingly.
5) I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?
Depends on the error being encountered. Ask the interviewer what error he has encountered.
6) Have you ever merged two shared OR's? If Yes, then what kind of conflicts will be there while merging two ORs'?
Easier to say if you merge them urself. Take one tsr file then make a copy of the same. edit objects in the one and keep the other one constant. when you merge you should see the differences accordingly.
Helps?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.