| Back to Questions Page |
| Question |
If an application name is changing frequently i.e while
recording it has name “Window1” and then while running
its “Windows2” in this case how does QTP handle?
|
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Siva |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
QTP handle this type situation using "Regular
expressions",like :"Windows.*"("*" indicates 0 to meny
no.s/characters ... in this case 1 2 3 4 5 ........)  |
0 | Prasad |
| |
| |
| Answer |
Yes..We can handle such situation using the regular
expressions.Select "window1" in the script.Goto tools and
open the object repository.Select Window1 in the tree that
gets displayed.In the configure value click the constant
value option button and change the value from "window1"
to "window.*" and click the Regular expression
checkbox.click OK.  |
2 | Jaya |
| |
| |
| Answer |
the same thing can be handled using smart
identification..in base filter properties list select some
of the unique properties for the window except the text
property which is changing dynamically..and u can use
GETROPROPERTY and SETTOPROPERTY for the same  |
0 | Aparna |
| |
| |
|
|
| |
| Answer |
Best one is regular expression.Regular expression can
easily identifies the objects with dynamic values during
run-time.
1. Go to Object Repository.
2. Select the particular object in the left side and
double click on the property value("Name of the window")
3.Click on regular Expression check box and set as 'window
[0-9]*  |
0 | Siva |
| |
| |
| Question |
which checkpoint we use to validate yahoo login screen
window after login with ur id and password in qtp |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Grsmrc2118@yahoo.com |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
May be there are several ways, but I think, by getting the
title of the yahoo page, we can validate. This is concept,
not real example. I have to test this today.... So Check
the correctness of this code before run it.
pname= Browser("...").Page("welcome xxxx/OR Something
else").GetRoProperty("text")
If pname="welcomexxx" then
datatable("TestName",3)=Environment("TestName")
datatable("Results",3)="Pass"
else
datatable("TestName",3)=Environment("TestName")
datatable("Results",3)="Fail"
End if
Datatable.exportsheet "c:\res.xls",3  |
0 | Anonymous |
| |
| |
| Answer |
Already I am nervous.
First give me job. Then I show you how to do auto. Please
don't ask such type of hard questions.
----------------------------------------------------------
By using Standard Check Points. Check the title of the Next
Widow.
Ex: title="welcome.*"
x=Browser()page().GetROProperty("text")
If x="welcome JIGGA" then
Browser().page().webButton("").click
End if
We can use this as a standard check point.  |
0 | Anonymous [Neudesic] |
| |
| |
| Answer |
rather than using checkpoints in scripts it is better to
use GetRoProperty to validate any functionality. Some times
Checkpoints are getting failed when scripts are moved from
one location to the other location
for validating yahoo loging we can use inbox, compose
buttons visible property  |
0 | Venkat [Neudesic] |
| |
| |
| Answer |
Text Area check point for UID and Password Fields  |
0 | Rajendra Pradeep [Neudesic] |
| |
| |
| Answer |
Page Check point OR Table Check point
Please correct me if i am wrong  |
0 | Muralikri [Neudesic] |
| |
| |
| Answer |
Sorry for writting this Muralikrishna, your answer is
wrong. You should use standard check point to login and
passward and page checkpoint for the login window.  |
0 | Purni [Neudesic] |
| |
| |
| Answer |
If it is after log in I mean after entering into the
account u have to check the text check point inorder to
verify the account holders name is appeared on the screen.
If it is sign in page u have to insert standard checkpoint
to check username is printed or not.
sailaja  |
0 | Sailaja [Neudesic] |
| |
| |
| Question |
we have one text box and one list box(list box appear in
same page or another page) what ever the text enter in text
box that must be displyed in list box as first one.
for example if we enter 10 in text box that is the 1st item
in list box . after that we enter 11 then 11 is the 1st item
and 10 is 2nd item. the maximum limit of list box is 10
items. if we enter 11th item the 10th item is deleted and
llth one is add as 1st one and 9th one goes to 10th position |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Veda |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
HELLO...........
Is it a toung twister mr or miss n plz inform me if u get
a answer 4 tht i will be waiting.  |
0 | Renuka.patil |
| |
| |
| Answer |
Use Regular expression.......  |
0 | Cradle_o_filth |
| |
| |
| Answer |
If Listbox.ListCount >= 10 Then
Listbox.RemoveItem Listbox.ListCount - 1
End If
Listbox.AddItem Textbox.Text, 0
 |
0 | Jagadesh |
| |
| |
| Question |
we have a link in a website or webtable How can we record
link in that table or site? link is not static we don't
know exact location of that link? how ? if u know pls give
reply with script also? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Veda |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
I think with discriptive programing but i don't know how
to use that discriptive programing in this situation.  |
0 | Veda |
| |
| |
|
| |
|
Back to Questions Page |