| Other QTP Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the Major difference between QTP ; LoadRunner?
If u want to test an
1. erp module which automation tool you would prefer and
why? and
2. for web application, which tool and why? | Satyam | 2 |
| In the QTP the snap shots obtained during the recording
time will appear in the active screen, if we have to use
the snapshots from where we have to access. in which memory
location of QTP they will be stored? | | 1 |
| Once we get the Test Result from QTP.,I Have to convert
into Excel file format..Is it possible..Can any gudie me
regarding this...
For Example :
Total Test Case is : XXXXX
Test Case passed : XXX
Test Case Failed : XXX
--------
Total XXXXXX
---------
| | 6 |
| How many ways to configure the application in QTP,Explain | CTS | 2 |
| Hi All
Below is my script which i made for lgin into Flight.exe.
SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","C:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set DataTable
("p_Text", dtGlobalSheet)
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure DataTable
("p_Text1", dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
If Dialog("Login").Dialog("Flight Reservations").WinButton
("OK").exist Then
Dialog("Login").Dialog("Flight Reservations").WinButton
("OK").Click
datatable.Value(3)= "Incorrect password. Please
try again"
Dialog("Login").WinButton("CANCEL").Click
elseif Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").exist Then
Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").Click
datatable.Value(3)="Please enter agent
name"
Dialog
("Login").WinButton("CANCEL").Click
elseif Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").exist then
Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").Click
datatable.Value(3)= "Please
enter password"
Dialog("Login").WinButton
("CANCEL").Click
else Window("Flight Reservation").Move 309,146
datatable.ExportSheet "C:\Raj\Result.xls" ,1
Window("Flight
Reservation").Close
End If
I want to capture the Message string from
Dialog("Login").Dialog("Flight Reservations"
Also pls let me know if this is the right way to do the
script for login. Pls provide some script for login
Flight.exe
Thanks in advance
Raj Dhiman
| | 1 |
| actuall wat my doubt is:while doin regression testin we
enter all +ve & -ve data....system has to accept +ve and
reject -ve data.in such case we get a popup window sayin
that wrong entry...now i wan to overcome this popup
window..how do i go further....plz explain.i tried thru
rec.scenario but of no use. | | 1 |
| what is tool interface?
| ITC-Infotech | 1 |
| What r the different type of reports generated in Quality
Center? | TCS | 1 |
| 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 are the attributes of QTP? | | 3 |
| is qtp 9.2 supported for firefox browser3.0?bcoz when i
tried to create scripts with the application run on firefox
browser 3.0 then qtp 9.2 didn't ct=reate the scripts? | | 2 |
| QTP identifying the child tabs in a maintab like
tab_1,tab_2,tab_3,tab_4
while using a for loop for these tabs.its not proceeding
from _1 to _2.
How can i use "for loop " | Livetek | 2 |
| After running scripts how you report results ,there is
any specific report form | | 1 |
| some times we write user define functions.where we write
main and sub program,how,where to insert the functions in
qtp? | GE | 1 |
| what is the use of descriptive programming in QTP ? when we
need to use DP? can we test the application completely with
out useing DP?? please explan with example | | 1 |
| dar Sir I am Facing th eProblem in QTP thet ,when I start
thrcording inthe QTP for the ASP front end and C# the
Coding Language I fing that recording is Done well for the
Login screen but at the Time Running the script the QTP is
Unable to Identify the Objects On the Objec Onht eLigin
screen .Please answer the Question in Description and the
Propables reason I might be facing alsp the Popable
solution I have to Take thanks and ragards | | 1 |
| Dim ExcelSheet
Set ExcelSheet = CreateObject("Excel.Application")
excelsheet.application.visible = true
ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column
A, row 1"
' Save the sheet.
ExcelSheet.SaveAs "C:\DOCS\TEST.XLS"
' Close Excel with the Quit method on the Application
object.
ExcelSheet.Application.Quit
after run this script i am getting error"The test cannot
continue due to unrecoverable error" | | 3 |
| We developed 100 descriptive programms and put in running,
in the midle if any descriptive program is stucked with
some error? what will happend weather it will execute the
remaining prg's or it will terriminate ? | Kanbay | 5 |
| explian about the qtp frame work?
where u can use it in your project? | | 1 |
| My Application is a client server application , but there
is one functionality , when we click on one particular
icon
it launches web browser . When I am recording in QTP , By
select approprait web add in also , it not able to record
in web page , I am able to record till click on the icon.
Please provide me how to over come this type of problem. | | 1 |
| |
| For more QTP Interview Questions Click Here |