srisatya


{ City } bangalore
< Country > india
* Profession * test engineer
User No # 23597
Total Questions Posted # 0
Total Answers Posted # 11

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 47
Users Marked my Answers as Wrong # 18
Questions / { srisatya }
Questions Answers Category Views Company eMail




Answers / { srisatya }

Question { vsworx, 42154 }

What is Object Spy in QTP?


Answer

Inorder to view the properties of different objects along
with their values we use Object Spy.
For Eg: Properties Values
Height 14
Width 22
Class Name WebEdit

Is This Answer Correct ?    4 Yes 4 No

Question { Wipro, 13831 }

how do check the links in a webpage ?


Answer

Hi
You can check links in aweb page by using the following
script:
if Browser(title:=BrowserName).Page(title:=TitleName).Link
(name:=LinkName).Exist then
msgbox "pass"
else
msgbox "fail"
end if

Is This Answer Correct ?    3 Yes 0 No


Question { Syntel, 18393 }

hi in QTP 8.2 in the edit box has text like "raju want
married" . i want to check "want" is their in the text
or not ?


Answer

Hi Friends, Pls check this answer:

s= "raju want married"
d="want"
x= split (s," ")
if Instr(d,x(1))<> 0 then
msgbox "Passed"
else
msgbox "Failed"
End If

Thanks,
Sri

Is This Answer Correct ?    1 Yes 0 No

Question { Thatavarti Technologies, 6948 }

Hi,The question is write a script for the following
scenario.
scenario:in a job portal i entered QTP 3yrs testing then
click search button.then it displays results like
Test lead bangalore (here is a checkbox).
Test lead hyderabad check box
so on...
question is if test lead position in bangalore then
checkbox shld be enabled automatically..


Answer

Your question is not clear, can u tell me once again clearly

Is This Answer Correct ?    1 Yes 0 No

Question { 8433 }

i need the word "good morning" to be displayed by default
whenver we click upon the blank test while opening the qtp.
Could you please answer...


Answer

Hi Swapna,
What Chinna told is correct. You might have mistake while
saving it..
i.e while saving in Save window, pls select Save as type as
All Files. You will get it...

Is This Answer Correct ?    0 Yes 0 No

Question { 13217 }

How do we call Library Files(.vbs) in the Test Script

Thanks in Advance...



Answer

By using script, we can add in this way also:

path1="C:/Lib1"
path2="C:/Lib2"
Set qtLibraries =
qtApp1.Test.Settings.Resources.Libraries ' Get the
libraries collection object

qtLibraries.Add path1 ,1
qtLibraries.Add path2 ,2

Is This Answer Correct ?    0 Yes 1 No

Question { Siemens, 12382 }

Wht is Smart Identification Mechanisam in QTP..Actually
when do we this Technology means during Recording or running
....how is technology works. Anybody can expalin
this .....Thanks in advacne


Answer

QTP uses SmartIdentification when QTP fails to recognise an
object using Mandatory and Assretive properties.

The secret behind the smart identification is: Even though
the object properties have been changed during a period of
time, there will be some common points that still exist in
both the versions of the object. Smart Identification
catches that common property and recognizes the object.
Smart identification is an important feature in QTP.

The Smart Identification mechanism uses two types of
properties:
· Base Filter Properties—The most fundamental properties of
a particular test object class; those whose values cannot
be changed without changing the essence of the original
object. For example, if a Web link's tag was changed from
{A} to any other value, you could no longer call it the
same object.
· Optional Filter Properties—Other properties that can help
identify objects of a particular class. These properties
are unlikely to change on a regular basis, but can be
ignored if they are no longer applicable

Is This Answer Correct ?    3 Yes 1 No

Question { Wipro, 32794 }


How can i count the list box elements in QTP ?using script
plz explain me (Chandana)


Answer

Hi
You can use this:
Count =Browser("title:abc").Page("title:abc").WebList
("name:=xyz").GetROProperty("items count")
msgbox Count

Is This Answer Correct ?    14 Yes 6 No

Question { 6759 }

If there are 10 notepads opened on desktop. how can we
close a particular 2nd notepad using script


Answer

Hi Radha,

If you want to close the second Notepad, you can use the
below script:
Window("Notepad_2").Close

or by using Descriptive Programming you can use:
Window("text:=Untitled - Notepad","Location:=1").close


Here the Location value keeps changing.

Pls try it...

Is This Answer Correct ?    4 Yes 0 No

Question { Persistent, 9389 }

when we enter url,one page should open.write a vb script
,that page is open or not


Answer

SystemUtil.Run "C:\Program Files\Internet
Explorer\iexplore.exe","","C:\Program Files\Internet
Explorer","open"
Browser("title:=about:blank").Page("url:=about:blank").Sync
Browser
("title:=about:blank").Navigate "http://www.google.com/"

If Browser("title:=Google").Page("title:=Google").Exist then
msgbox "Page Exists"
else
msgbox "Page does not Exist"
end if

Is This Answer Correct ?    6 Yes 2 No

Question { iGate, 18096 }

How can i count "spaces" in any sentence or a string
if suppose " It is a Testing question"
Here we have 4 gaps(spaces)
Is there any function to find out spaces between words


Answer

s="Gita is a good girl "
d=split(s," ")
count =0
For i=ubound(d) to 1 step -1
count =count +1

Next
msgbox count

Is This Answer Correct ?    11 Yes 4 No