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 # 9068

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

Question { 6061 }

Hallow friends, plase tell me difference between retesting
and regression testing?


Answer

retesting : Testing the fixed bug before going to close it
to validate whether that bug is fixed successfully or not.

Regression Testing : When ever new functionality is added
or Bug is fixed we will go for regression testing to
validate that modification not effected to rest of other
functionalities of Application.

Is This Answer Correct ?    2 Yes 0 No

Question { 7658 }

OPening of notedpad in QTP to write and execute the coding?


Answer

set fso = createobject("scripting.filesytemobject")

file_path = "c:\nanda.txt"
forwriting =2
forreading = 1
set notepad = fso.createtextfile(file_path,forwriting)
notepad.writeline "this is created by Nanda"
notepad.writeline "this is created on "& now
notepad.close

set notepad = fso.opentextfile(file_path,forreading)
for notepad.atendofstream
n = notepad.readline
msgbox n
Next

this script will create a notepad and write data and read
data in that file.

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

Is This Answer Correct ?    3 Yes 0 No


Question { 3683 }

write vbscript on veb applications in qtp with exapmles?


Answer

Do u want simple script....

For Login ....

browser("XXXX").page("XXXX").webedit("hgshad").set "hdsfajf"
browser("XXXX").page("XXXX").webedit("dsadsagd").set "dlskajdl"
browser("XXXX").page("XXXX").webImage("dasada").click

to count No. Of Links in WebPage..

set objlink = description.create
objlink('html tag").value = "A"

set n = browser("XXXX").page("XXXX").childobjects(objlink)

c = n.count

msgbox c

like this we write script for testing web applications..
these are the sample scripts only...

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

Is This Answer Correct ?    0 Yes 0 No

Question { IBM, 8573 }


in my database haveing 3X3 (manas having 3 rows 3 colums) i
want to test only (2nd row 3colum) bit how to test either
script or any automation plz explain? (Chandana)


Answer

Which data base u r using...based on database the script
will change...

Is This Answer Correct ?    0 Yes 0 No

Question { Accenture, 8719 }

i am new to qtp i do not know how to write script
how to write the code to login if it fails how to able
error messages


Answer

HI...What Satya..we dont need add objects to repository for
descriptive programming.

come to scenario....

dialog("login").winedit("Agent Name:").set datatable.value(1)
dialog("login").winedit("Password:").setsecure
crypt.encrypt(datatable.value(2))
dialog("login").winbutton("OK").click

If dialog("Login").dialog("text:=Flight Reservations").exist
then
dialog("Login").dialog("text:=Flight
Reservations").winbutton("text:=OK").click
dialog("Login").WinButton("Cancel").click
Else
window("Flight reservation").close
end if

like this we can handle pop up messages...

If any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 0 No

Question { 7162 }

Hi Friends... What you are doing in Regression Testing and
how many test cases you ran in regression testing...
suppose there is 1000 test cases is there how many test
cases again you run .. 1000 test caes r how many...

thanx in advance..


Answer

Hi,

Generally we do regression testing when ever Bug is fixed
by developer and after retesting.
and also when ever new functionality added to existing
Application.


# Regression testing it self suggests that it is not
re-testing.
# When a bug is fixed/new functionality is added, we need to
make a prior plan about what are the functionalities will be
affected by that change.
# After we identify the impact, we can get the test cases
out of those functionalities and consider them as regression
test cases for that scenario.
# Considering an example, If yahoo decides to make the
username “Case Sensitive”. Then the functionalities which
will be affected will be:

1. Sign-Up, where you register your self.
2. Sign-In or Login to the application.
3. Forgot Username/Password.

# Out of the above functionalities in “Sign-Up”, you need to
concentrate only on the validations out of the
username/password fields and the rest of the field level
validations are not required to consider.
# By this you can guess what can be the regression test
cases. If still have doubt, let me know.

With Regards..

Nanda
nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No

Question { 5039 }

what is the difference between an Action and a function in
real time


Answer

Hi...

u mean Action and User define Function?

1) a repository is always associated with Action, but not
with User defined function.
2) Generally User defined function has only one output, but
as action can has many.
3) when ever we calling user defined functions we can give
parameter values with our wish, but when we calling reusable
actions we can give any parameter values.

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

Is This Answer Correct ?    0 Yes 0 No

Question { 27882 }

what is the difference between call to copy action and call
to an existing action


Answer

By using copy of Action we can call any Action whether it is
a reusable or non-reusable. and we can edit this called
action based on situation. but this modification will not
effect to original Action.

by Using call Existing Action we can Reusable Actions only.
This called reusable actions are known as External Actions.
This External Actions are readonly, we can not do any
modifications to script.

If any Queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    9 Yes 1 No

Question { 27882 }

what is the difference between call to copy action and call
to an existing action


Answer

Just try the call copy of action..and let me know.

what i said is 100% correct.

Is This Answer Correct ?    1 Yes 1 No

Question { 5857 }

what type of scripts are asked in qtp?


Answer

they will ask u DP, working with flat files like Notepad,
COM and DOM and dynamic objects.

and some times they wil ask real time script u written
in ur current project.

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

Is This Answer Correct ?    0 Yes 0 No

Question { 6881 }

how to tell about testing a website in interview using qtp??
what r the points to be covered mainly?


Answer

HI..

First u need to identify the Indentify the test cases
for automation...

there some criteria to Identify..

1) Which test case has to execute more times..
2) Which test case is repeating in two or more pages..
3) Which test case needs multiple types of input data..
4) Which test case is in Regression testing....

Like this u can select test cases for
automation...tell them i did data driven and used QTP for
regression testing purpose...

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    4 Yes 0 No

Question { 4485 }

if full in Object Repostoiory then how to load other Object
Repository


Answer

Hi...remember one thing OR never gets full..

if situation comes...and u r using 9.0 or above..

u can go for Object repository Manager..there u can create
another object repository...and by using associate
repositories tool u can associate that repository to current
test..like this u can associate number of repositories for
same test....

if want to execute that repository at run time..

repositoriescollection.add ""
this will execute the repository file at run time only..if u
used this second time in same test it will over write the
old repository...and enables new repository given by u...

If any queries regarding this...

nanda.dreddy@gmail.com

Is This Answer Correct ?    1 Yes 0 No

Question { Wipro, 11631 }

Explain the difference between smart identification and
object identification withn clear example. please it is
very urgent


Answer

In Object Identification ...smart Identification will come.

Let me explain clearly..

there are 3 stages of Object Identification...

1- recorded Description( Mandatory Properties and Assistive
Properites)
2 - Smart Identification
3- Ordinal Identifier

In first stage QTP will search an Runtime Object by using
recorded Description.

If it is not able to Identify an object with these
description it will go for Smart Identification. Here It
will check each and every Property uniquely. If any
mismatches comes then it will identify an Object.

Still it is not able..it will go for Ordinal Identifier...

in this stage we have 3 properties..Index, Location, and
Creation Time

Index : Tab Order of an Object in Application
Location : x,y position of an Object in Application
Creation Time: It is only for Browser, it is nothing browser
opened time.

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

Is This Answer Correct ?    10 Yes 0 No

Question { Livetek, 5943 }

how can i call reusable action in a function
could any one explain me?


Answer

by using if then else statements...

for example...

public function cal_action(strdata)

if strdata = "" then

runAction "Action1[test1]",OneIteration

else

RunAction "Action1[test2]",OneIteration

else if

Close function

Like this....we can call

If any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 1 No

Question { TCS, 10460 }

How do you change Logical Name of the object in test script?


Answer

by using SetTOproperty u can change logincal name of test
object..

For example..in first build there is a OK button..and u
reorded on OK button..

but in modified build it changed to Yes..and this
modificatio is only for single build...in this situation u
need to change that button name OK to Yes

window("XXXX").winbutton("OK").SetTOProperty "Text","Yes"

like this u can change any property of test object..and
remember that u can not a property value of Run Time object.

If any Queries..

Nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 9 No

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