nanda.d reddy


{ City } bangalore
< Country > india
* Profession *
User No # 6256
Total Questions Posted # 1
Total Answers Posted # 107

Total Answers Posted for My Questions # 5
Total Views for My Questions # 9093

Users Marked my Answers as Correct # 292
Users Marked my Answers as Wrong # 124
Answers / { nanda.d reddy }

Question { 6259 }

how many checkpoint u have to used


Answer

see pls concentrate to write script to check that expected
value..

dont depend on checkpoints...according to my knowledge they
will script for checking status..

Is This Answer Correct ?    0 Yes 1 No

Question { 5260 }

how do u call a from library file


Answer

Hi,

it is not executive. it is executefile method.


first save ur function file in .vbs format.

u can call them in two ways.

1) with out storing them in associated library files, by
using executefile and call methods.

2) with storing in associated library files and using call
method.

coming to first method:

executefile ""(ex: "d:\mydocuments\nanda\login.vbs"
call login_open()

Here executefile executes the funtion file but not a single
function.
call method calls a function in that executed file.
(remember that diff. between xecutefile and call methods.
Executefile executes a script file, and call functions calls
a single function in that execute file)

coming to second method:

go to menu bar--select test menu---select settings--select
resources--click on add(+) button in associated library
files section)--browse the script file and click on
open---click on apply--click on OK.

now come to expert view--write

call function() (Here Function refers the function which
available in that stored file)

the interviewer may ask that what is the diff. between above
two methods...

executefile method uses only in single action where it written.

but second method will use entire test.

I think u got my answer....if no...let me know pls..

sudhanandareddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No


Question { Institute for Medical Education, 15305 }

How to do excception handling ( error handling ) in QTP


Answer

Generally we do the exception handling by using IF..Then
statement.

for example..

If Browser("XXXX").Window("Text:=XXXXX").Exist Then
Browser("XXXX").Window("Text:=XXXXX").Close
End If

Like this..

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    9 Yes 2 No

Question { 8532 }

Hai Guys,

can anybody show me how to write automaed test cases using
VB scprit(examples)...i had an interviw soon...please guyz
send as quickly as possible


Answer

Vidya,

can we know patil did wrong...

i tried to explain clearly. is that looking wrong..

regards
Nanda

nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 1 No

Question { 10430 }

what is bug life cycle?


Answer

When New deffect found...
--We will log that Bug to Developer with Status New.

--If Developer Rejects it will return to me with
status "Rejected".(Developer rejects a deffect with two
reasons. 1. it is Duplicate to previous Deffet. 2. that is
not a bug. it will not affect to Functionality of
application)

--If Developer is not decided that whethe the deffect is
Valid or Invalid he will change the status to "Watchlist".

----If Developer accepts it he will change the Status
to "Open".

--- He will chenge the Status to "In Fixing" while coding
(I.E fixing that bug)

--- after fixing it he will resend to tester with
satus "fixed"

--- when tester received that the tester will change the
Status to "ready for retest"

--- IF that bug is Validated he will change the status
to "closed"

--- If it is not vlidated he will change the Status
to "Reopen" and will send to Developer.


please Ping me whether i am corect or not?

Is This Answer Correct ?    3 Yes 2 No

Question { 9878 }

How u will open the build automatically in QTP except using
Systemutil.run command


Answer

by using invokeaplicaiton method..we can open an exe file.

Is This Answer Correct ?    1 Yes 0 No

Question { 9750 }

In our application (Web based application)we will get a pdf
file and we have check a particular text in that pdf. Can
any one tell how to check text in a pdf file.

In the same pdf file it generating some links and I have to
click that links. QTP unable recognizing that links, even
id did record and playback qtp does not generating any
script.

Can any one help me….?


Answer

Hi...we should have add in for it. but with add in also we
do it..by copieng pdf test to a text file.

for this...
string1 = "nanda"
len_data = len(string1)
i=0
file_path = "C:\Documents and Settings\Madhu
Sudhan\Desktop\pdftotext.text"
Set clipboard = createobject("mercury.clipboard")

Set fso = createobject("scripting.filesystemobject")
Set notepad = fso.createtextfile(file_path,8)

'*********Start recording click on Edit menu--select all,
'click on Edit menu--copy, click on pdf file to get deselect
'the text...************
Window("Adobe Reader").Activate
Window("Adobe Reader").WinMenu("Menu").Select "Edit;"
Window("Adobe Reader").WinMenu("Menu").Select "Edit;"
Window("Adobe Reader").Activate
get_text = clipboard.gettext
notepad.write get_text
notepad.close

set notepad = fso.opentextfile(file_path,1)

do while notepad.AtEndofStream <> true

get_data = notepad.readline

search_data = instr(get_data, "nanda")
capture_data = mid(get_data,search_data,len_data))
if capture_data = string1 then

i = i+1
else
end if

loop

msgbox "the text is found in "& i" rows"

for any queries...
nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 1 No

Question { 10159 }

How will u find that how many List boxes( and check boxes)
are present in one particular window


Answer

Hi,

try this code...


set odesc = discription.create

odesc("Class Name").value ="WinCheckBox"
odesc("native class").value="Button"

set checkboxcount= window("").childobjects
(odesc)

counts=checkboxcount.count

msgbox counts

u will get number in msgbox.

please ping me if there is any feedback.

Is This Answer Correct ?    5 Yes 0 No

Question { 10159 }

How will u find that how many List boxes( and check boxes)
are present in one particular window


Answer

Hi,
then do some modification..

Just remove line Odesc("nativeclass") = "Button"

I think it will work now

If any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No

Question { BSL, 8534 }

Wt is the difference between Business Component and
scripted component?


Answer

Hi,

A Business Component also called as keyword components.
because in Business Component script will generated in
keyword view(there will be no expert view) based on
available keywords in Object Repository. so any one can
generate the script even they dont have much knowledge in
Automation.

A Scripted Component is nothing but scripting the
components using expert view. so here u can use
Descriptinve programming also. in this both keyword view
and Expert view are available.

that is main difference according my knowledge and
experience.

If any queries, plase mail me@

nanda.dreddy@gmail.com

Is This Answer Correct ?    6 Yes 4 No

Question { 4703 }

For example one window is there the window contain some of
Check boxes but my question is how many check boxes are
there particular window?

Please solve the problem
gi_raju@rediffmail.com
ippaliraju@yahoo.co.in


Answer

set objcheckbox = description.create

objcheckbox("class name").value = "WinCheckbox"
objcheckbox("nativeclass").value = "Button"

set get_checkbox = window("XXXX").childobjects(objcheckbox)

count_checkbox = get_checkbox.count

'msgbox count_checkbox

if u want to know the name of each and every checkbox..

for i = 0 to count_checkbox-1

check_name = get_checkbox(i).getROProperty("text")
msgbox check_name

next

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    4 Yes 0 No

Question { 10669 }

How many actions we can create with in a test?


Answer

it is 255 only...

why because...

Each action should contain one action sheet in data
table....but the data table can have only 256 sheets..one
is already assigned as Global..so remaining will be 255. we
can not create an action without local sheet.

Regards..

Nanda.dreddy@gmail.com

Is This Answer Correct ?    10 Yes 1 No

Question { 5166 }

Can we continue functionality testing without framework?


Answer

Hi..

We can do that. some of the companies are doing that. If the
customer is paying for framework..definitely they will
follow this.

If any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 0 No

Question { Quinnox, 18642 }

Please explain me in detail! How to handle runtime errors
in QTP useing recovery senario or with out scenario


Answer

Let me explain with out recovery scenario,

we can handle exeptions like pop windows by using IF
ELSE statements.

for example..

if window("XXXX").dialog("XXXX").exist then

window("XXXX").dialog("XXXX").winbutton("text:=XXXX").click
window(("XXXX)).winbutton("XXXX").click
else


end if

and also by using methods like "on error resume next,
err.number, err.raise, err.information" methods.

if any queries on this..

nanda.dreddy@gmail.com

Is This Answer Correct ?    4 Yes 2 No

Question { 4115 }

Can any one tell the different properties and values of
differnt objects like
Browser,Page,link,webedit,webcombobox,webradio
botton,webcheckbox and web button.Because I am facing a lot
of problems in interviews with Descriptive Programing.I
never worked on web Application...Pls help any one as soon
as possible....


Answer

HI,

this is simple. we can write DP by using Object
Identification dialog box and Object Spy.

in the Object Identification dialog box we can know which
properties we have to write while DP...and in Object SPY we
can know run time values of these properties.

For Browser and page we can give wither Name property or
title property.
for link HTML Tag and Name.
for webcombo box : class name, attachedtext

like this we can write. please check in Object
Identification dialog box.

Is This Answer Correct ?    1 Yes 0 No

Prev    1   2   3    [4]   5   6   7   8    Next