| Other QTP Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Hi,
this is venkatesh.
Q: I have 10 files in a folder(say D:\). Out of which there
are some .txt, .xls, .doc. I want to know how to get the
count of each file using qtp?
If U have any ans, plz write script for that...
| EDS | 3 |
| How we can merge the object repositories?say if we have 2 or
3 object repositories then how we can merge them?Is there
any option in QTP to merge the object repositories? | | 2 |
| What is log file? what is the use of Log fine. How to
create? what are the contents and the main advantages of
log files. plz do help me in this concepts as i have an
interivew on qtp in a couple of days. plz do help me..
thanks in Advance. | | 1 |
| what are the cases in which we use XML and accessibility
check points. | | 2 |
| Username field having some string mistake like"user
naem".what type of testing i prefer to test spell check. | GE | 4 |
| how to write the descriptive programming in QTP for
loginwindow.without using Step generator,object repository
for referecnes | STC | 3 |
| VM1 = "Invalid username or password. Please
try again. "
VM2 = "Email id is required.Password is
required. "
VM3 = "Email id is an invalid e-mail
address.Password is required. "
VM4 = "Password is required. "
VM5 = "Email id is required. "
VM6 = "Email id is an invalid e-mail
address. "
'Rowcount of the Local sheet
Rowcount = DataTable.GetSheet("Invalid login
transactions").GetRowCount
'Valid emailid and Password
Emailid = "test@iteamic.com"
Password = "Password0"
'For i = 1 to Rowcount
'Parameterised Email_id
Browser("Browser").Page
("Page").WebEdit("emailAddress").Set DataTable("Email_id",
dtLocalSheet)
EID = Browser("Browser").Page
("Page").WebEdit("emailAddress").GetRoProperty("value")
'Parameterised Password
Browser("Browser").Page
("Page").WebEdit("password").Set DataTable("Password",
dtLocalSheet)
PWD = Browser("Browser").Page
("Page").WebEdit("password").GetROProperty("Value")
If EID = Emailid And PWD = Password Then
Reporter.ReportEvent micPass, "EID & PWD
check", "Email id and Password is correct, One iteration of
Invalid login attempts is not being executed"
Else Browser("Browser").Page("Page").WebButton
("Sign-In").Click
'Output value exported to the local
sheet
Browser("Browser").Page
("Page_2").Output CheckPoint("Home page_Sign in")
'Storing the output value in a
variable(OUTPUT
OUTPUT = Datatable.GetSheet
("Invalid login transactions").Getparameter
("Validation_message_signin").value
'comparing the Variable Output and
the Validation message for a given input
If OUTPUT = VM1 Then
Reporter.ReportEvent
micPass, "VM1", "Invalid username or password. Please try
again. "
else if OUTPUT = VM2 Then
Reporter.ReportEvent
micPass, "VM2", "Email id is required.Password is
required. "
else if OUTPUT = VM3 Then
Reporter.ReportEvent
micPass, "VM3", "Email id is an invalid e-mail
address.Password is required. "
else if OUTPUT = VM4 Then
Reporter.ReportEvent
micPass, "VM4", "Password is required. "
else if OUTPUT = VM5 Then
Reporter.ReportEvent
micPass, "VM5", "Email id is required. "
else if OUTPUT = VM6 Then
Reporter.ReportEvent
micPass, "VM6", "Email id is an invalid e-mail address. "
else Reporter.ReportEvent micFail, "EID &
PWD check_FAIL", "Validation message checkpoint failed. The
captured v msg is not required"
End if
End if
I am getting syntax error saying "Expected 'End If'" at the
last line, Why is this? Kindly explain...
| | 1 |
| What is Parameterizing Tests? | | 2 |
| WHAT IS OBJECT REPROSITORY? | BirlaSoft | 3 |
| How to open any application during Scripting in QTP? | IBM | 6 |
| 1)what is the Exact Meaning of Environment Variables?
2)what is Compile Module in QTP? what exactly it contains
Functions or Actions?
| | 3 |
| How we can add actions in the test using QTP? | | 4 |
| In QTP, As a first step wht we will do before going to
start a Automation....when it will be decided that we have
to go for a Automatio..and who will decide to go for
Automation. Any body can pls let me know..
Thanks in Advance..
| | 1 |
| New to QTP: In a qtp flight booking application, I tried to
parameterize the to and from drop down lists using data
table, depending on ur drop down selection it will pop up a
list of flights. Here I am not finding a way to select
flight randomly from given list... Thanks in advance guys. | | 1 |
| what to do if application have 3 "ok" button with same
logical name and same properties, how qtp can identify them.
| Intel | 9 |
| any challange that faced in your project? (please give me
some examples in your project? | | 1 |
| You have an application version 1 with 5 combo boxes,
Developers develop version 2. Here they replaced bottom 3
combo boxes with each other. While executing the Test
script for version1 no errors. When we execute the Test
script for version2 that QTP showing the error
message "Object not identified" remember no property
changed in version 2, ordinal identifier also disabled.
Find what properties might change here in this scenario | ADP | 4 |
| How to capture data from images in QTP and produce them in
Excel sheet ? please ans... | Sapient | 2 |
| Can u explain about QTP framework | ACS | 9 |
| which checkpoint we use to validate yahoo login screen
window after login with ur id and password in qtp | Covansys | 8 |
| |
| For more QTP Interview Questions Click Here |