| Other QTP Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Tell me the situations where we will use Data Driven? | | 2 |
| How do you learn the object in QTP? | | 1 |
| what is reusable action and how the same can be implemented
(process)? | | 2 |
| How to export data present in Datatable to an ".xls"
file? | | 3 |
| the question was on what techonlogy u been working on i
said VB then he asked me the addin for VB in Qtp? | BirlaSoft | 3 |
| What is runtime objects and test objects? What is the
difference between them? | IBM | 4 |
| Hi All
As per the requirements i have to copy the data from word
document to excel sheet using the QTP
Note : Data in word document is in tabular format i.e there
is 80 rows and 5 columns table
Can any body provide code for this ?
Thanks in advance
Regards
Test123Test | | 1 |
| . Types of properties that Quick Test learns while
recording? | | 1 |
| 4. what is the use of Text output value in Qtp?
| Wipro | 1 |
| if there r 10 windows open in QTP write a command to close
all 10 windows at a time ? | Wipro | 8 |
| Hi,
My problem is as follows.
I recorded a script that created Object repository of each
action i recorded. But later I added one more step (which
was to enter data in a textfield) into the script through
expert view.
But as no repository for this newly added step exists in the
test, my script fails. So please help me to sort this
problem that how can I create object repository of a new
step in an existing test.
Thanks everyone | | 1 |
| How to make Shared object repository in qtp 9.1 and 9.2? | | 2 |
| 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 |
| Which function is used to accesses the Properties from
Repository
Pls anybody can give the answer.. Thanks in advance... | Navis | 2 |
| 1. how can you handle exceptions without using recovery
scenario? | TCS | 3 |
| How many type of status messages are there ..explain? | | 4 |
| How many actions we can create with in a test? | | 4 |
| 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 TOM in qtp? | Accenture | 5 |
| how to merge 2 object repositories in qtp 9.0.what is use
of merge and y merge is used? | | 1 |
| |
| For more QTP Interview Questions Click Here |