| Other QTP Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| explain keyword driven framework? | Mindlance | 2 |
| from what stage you will start automation in your project | TCS | 4 |
| How can we open an Excel sheet through the script | eSymbiosis | 6 |
| How can the expected image for a bitmap checkpoint be
recaptured in QTP | Ordain-Solutions | 1 |
| Give me an example where you have used a COM interface
in your QTP project? | | 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 |
| How to load a object repository(using VBScript) ... very
urgent.... | | 4 |
| Hello Everybody,
Can anyone tell me that in QTP how to count the number of
webelements from the object repository.
Please provide the code.
Thanks in advance,
Gaytri | | 2 |
| what are the different Frame Works in Quick Test
Proffessional testing | Wipro | 2 |
| pls tell me how will you write the vb script in QTP for
DataDriven test from Excel sheet for multiple userid and
password explain with example | Ordain-Solutions | 4 |
| how can we test load time of an page in webtesting? | Ordain-Solutions | 2 |
| How you test the object which is dynamically changes its
location? | Wipro | 6 |
| Hi, how can we retrieve a specific value from Excel Sheet
(Not datatable. for externel file).i mean to say from .xls
file.
and also tell me from xml file and .doc file.
and how can u parameterize ur script from .xls file.(Not
data table). | Cap-Gemini | 1 |
| How to Map network drive in QTP | | 2 |
| What is the difference between "Call to copy of action",
"Call to existing action" & "Call to winrunner action"? | | 2 |
| How u prepare Test result summary in QTp? | CGI | 4 |
| how to insert QTP to display errors and other description
in the test results instead of halting execution by
throwing error in the mid of executin due to an error (for
object not found)? | Ordain-Solutions | 1 |
| anybody give me the real time example for descriptive
programming of web application | | 4 |
| does test plan is in test strategy or test strategy is in
test plan
| Tanla-Solutions | 2 |
| . Types of properties that Quick Test learns while
recording? | | 1 |
| |
| For more QTP Interview Questions Click Here |