| Other QTP Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| suppose by navigation i went from 1st page to 5th page write
a script for coming from any page to the 1st page abd by
executing where the page may be . it will come to 1st page
give the code using gmail. give me mail id so that i can
under this answer with out any doubt | | 1 |
| By default Action1 runs first in QTP. Is it possible to
start the run with Action2? | Virtusa | 7 |
| Function to convert lowercase to uppercase in QTP
Pls anybody can give the answer.. Thanks in advance... | Navis | 1 |
| how to retrieve the column headers in database using
vbscript statement in QTP | | 1 |
| How can I pass values from one action to another in QTP ? | Ordain-Solutions | 6 |
| How to get line numbers in your editor in expert view? | | 2 |
| Hi
Suppose u have complex Test scripts which u vl write first
and which u vl execute first | Symphony | 1 |
| How to compare the two strings? | | 2 |
| how to merge object repositories? | | 4 |
| Can we create test script with out Step Generator? | | 4 |
| 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 |
| How can we see the analog recording steps in QTP..the Steps
are stored in a track file with an extension .dat..how can
we open the file.. | | 1 |
| To count the no of links present in the yahoo home page i
have written the script like this
Set fileSysObject=createobject("Scripting.FileSystemObject")
Set linksFileName=fileSysObject.opentextfile
("D:\samplelinkfile.txt",2,true)
Set linkDescObj=description.Create
linkDescObj("micclass").value="Link"
Set noOfLinks=browser("yahoo").Page("Yahoo!
India").ChildObjects(linkDescObj)
For i=0 to noOfLinks.count-1
linkName=noOfLinks(i).getROProperty("name")
linksFileName.writeline(linkName)
Next
linksFileName.close
Set fileSysObject=nothing
While running the script it showing error that
object "yahoo"isnot found in the object repository.
Is there any setting before running the script? if yes what
is the steps for it.Im using QTP9.0
| | 2 |
| Greetings friends ,
Hope all of you are doing well.
When I run a test, is it possible for me to for me to take
each row from the data table , once at a time.
In other words,if i have 10 rows in the global data table,
say data1,data2, data 3...and so on up to data10.
Can I have the value of data1 when I run a test, and next
time when I run the same test (say next day), it should
skip data1 as it has already used it and go directly to
data 2 ???
Would be great if anybody can help me out know in this
issue.
Thanks & Regards !!
| CTS | 4 |
| what is the test object? | | 1 |
| if you have the same application screen with 7 drop down
boxes and approximately 70 values how do you test with QTP? | Ordain-Solutions | 1 |
| Is it possible to return multiple values from a function..?
Then how..? | | 2 |
| How to use library files in QTP? how we can call these
files in to script? | Wipro | 3 |
| Have you performed Debugging and how did you? | | 2 |
| WHAT IS THE DESCRIPTIVE programming when it is useful? &
when to use this ? | CTS | 5 |
| |
| For more QTP Interview Questions Click Here |