mahendranath


{ City } hyderabad
< Country > india
* Profession * software engineer
User No # 47945
Total Questions Posted # 0
Total Answers Posted # 24

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

Users Marked my Answers as Correct # 78
Users Marked my Answers as Wrong # 26
Answers / { mahendranath }

Question { IBM, 3230 }

How to make arguments optional in a function?


Answer

we can make arguments optional by using "Optional" keyword

ex: fucntion fun_name(a,b,optional c)

end function

Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    0 Yes 3 No

Question { CyberLink, 3465 }

dears, I have one question for QTP.If my software is
english and defined objects is english name. But, if my
software has support MUI, under this case that my objects
in the QTP can't work, because the QTP can't catch the
objects name. In this case, is anybody know how to solve
this problem? Thanks a lot.


Answer

Go for descriptive programming.Take the unique property of
that object other than name property.then instruct qtp to
perform operation on that object .I think it will work.


Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    1 Yes 0 No


Question { Accenture, 9031 }

I open login gmail page after that QTP is not able to
identify the object present in it then what u will do


Answer

The browser should be IE.

onece you record the login page.Need to regularize the frame
logical name.Because each time execute the script the frame
id will changing dynamically.

ex: Browser().Page().Frame("c.*").WebTextBox.set "dfdfdf"

regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    2 Yes 4 No

Question { Navis, 3388 }

What is the syntax to use out of two characters.

Pls anybody can give the answer.. Thanks in advance...


Answer

ex: for example we want to exclude a,f out of a to z. then


"[^a,f]"


Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    0 Yes 3 No

Question { IBM, 4529 }

tell me about regular expressions in QTP? where we use?
give eample?


Answer

Qtp may not recognize the objects whos porperty values are
dynamically changing.In those situation we can use regular
expressions.

for example: in your mail inbox you have 15 messages

u recorded this and in object repository it stores inbox
(15)

assume u got few mails and now your inbox having 20 mails.
now you run the script which ever you recorded. The qtp
will not recognize the inbox(15) .because right now your
inbox having 20 messeges.

in this situation you need to reqularize the inbox as
follows

inbox\(\d+\)
now qtp will identify

Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    1 Yes 0 No

Question { 5914 }

QTP Query:


Hello to all,

I'm getting an error (as below) when I perform descriptive
programming on any Web application.

"The test run cannot continue due to an unrecoverable
error.The "myvar_0" object was not found in the Object
Repository.
Check the Object Repository to confirm that the object
exists or to find the correct name for the object "

But I do not have any problem when I perform the same
descriptive programming on a Windows application such as
Sample Application - Flight.

Previosly , I had prepared a lot of scripts - both via
creating the properties collection object and by giving the
description in string arguments and implemented them on
Flight and they're working perfectly fine.I'm using QTP
Version 9.2

The sample script I have used for Web application is as
below :

Set myvar_0 = Description.Create

'Setting property collection object for Browser
myvar_0("class").value = "Browser"
myvar_0("name").value= ".*"

'Setting property collection object for Page
Set myvar_1 = Description.Create
myvar_1("class").value = "Page"
myvar_1("name").value= ".*"

'Setting property collection object for Text box
Set myvar_2 = Description.Create
myvar_2("class").value = "WebEdit"
myvar_2("name").value= ".*"

'Setting property collection object for Button
Set myvar_3 = Description.Create
myvar_3("class").value = "WebButton"
myvar_2("name").value= ".*"

SystemUtil.Run "C:\Program Files\Internet
Explorer\iexplore.exe"
Browser("myvar_0").Page("myvar_1").WebEdit("myvar_2").Set
("hello how are you ?")
Browser("myvar_0").Page("myvar_1").WebButton
("myvar_3").Click
Browser("myvar_0").Page("myvar_1").Sync
Browser("myvar_0").Close

As our application is a Web based application, I was
planning to make a few changes in regards to the object
names, but unfortunately I am getting the above mentioned
error.

Could anyone please advice me, whether it could anything to
do with the run setting or anything else.I am getting the
same error even while implementing on our Sample
Application - Mercury Tours website.

I would be grateful to anybody who can solve my problem !!


Answer

myvar_0("class").value = "Browser"


Instead of "class" you just take "micclass" in all the
locations where ever you defined the class.

i hope it may help you.

Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    1 Yes 1 No

Question { 35941 }

How can we use the "CreateObject("Wscript.Shell")" in QTP
and what is the definition and purpose of it?


Answer

If we want to work on operating system related functions
(like command prompt,windows registry....) then we go
for "Wscript.Shell".Actually this is vbScript class. WE can
not directly use this in qtp. For that one we need to
create one instance firstofall. Using CreateObject we can
create instance as followes.

Set oShell=CreateObject("Wscript.Shell")
oSehll.popup "Have a great day"
oShell.Run "cmd /k dir"
oShell.sendkeys "{ENTER}"
set oShell=Nothig

I hope this may useful.
Regard,
mahi.kotike@gmail.com

Is This Answer Correct ?    29 Yes 2 No

Question { 15777 }

What are stage in a Bug Life Cycle?


Answer

NEW- Whenever the defect is newly identified for the first
time then the testengineer will set the status as new.

OPEN-Whenever the developer accepts the defect then he will
set the status as open.

FIXED- whenever the developer rectifies the defect before
releasing the next build he will set the status fixed.

CLOSED-Whenever the next build is released the testers will
check whether the defects are properly rectified or not.if at all they feel defect is properly rectified then
they set status as close.

REOPEN- once the next build is released the testers will
check whether the defect is properly rectified or
not.if at all they feel derct is not rectified
properly then they will set status as reopen.

HOLD- Whenever the developer is confused to accept or reject
the defect then he will set the status as hold.

REJECT- whenever the developer feels it is not at all a
defect then he will set status as reject.

ASPERDESIGN- Whenever the developer feels the tester has
raised the defect without knowing the latest
requirements then he will set the status as
asperdesing.

DEFFERED- Whenever the defect is accepted by the developer
and he requires some extra time to rectify that
defect then he will set the status as deffered.

pls let me know any thing wrong.

Thanks & Regards
mahi.kotike@gmail.com

Is This Answer Correct ?    4 Yes 0 No

Question { 12206 }

What is the difference between Regression and Retest
Testing?


Answer

In Retesting one will perform testing on the same functionality again and again with multiple sets of values inorder come to a conclusion whether it is working fine or not.

In Regression testing one will perform testing on already tested functionality again and again.usually we do it in two scenarios,
1.Whenever the tester find some defects,send it to the development department,after rectification developers will release the next build,once the next build is released the testers will check the defect functionality aswellas the related fuctionality are working fine or not.
2.Whenever some new features are added,next build is released to the testing department then the testers will once again test all the related features of the those new features inorder to check whether they are working same as previous or not.

Retesting starts from the first build and cotinue up to last build.
Regression testing starts from second build and continue up to last build.

pls let me know if at all any thing wrong.

Thanks & Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    0 Yes 1 No

Prev    1    [2]