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 { TCS, 6988 }

what is the extension for the test version of the script?


Answer

Nagaraj,

.mtr is for Local Object Repository. mtr stands for
Moduler Test repository.

.mts stands for moduler test script.

if any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    1 Yes 2 No

Question { CTS, 8877 }

Give me exact application where we should use low level
recording?


Answer

we dont use low level recording..

Is This Answer Correct ?    0 Yes 2 No


Question { 10064 }

How can we see the analog recording steps in QTP..the Steps
are stored in a track file with an extension .dat..how can
we open the file..


Answer

Hi,

while Analog recording QTP will generate only one line
code..that is called track. we can not modify it. so..no
need to bather about it.

if any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 6 No

Question { 5625 }

How to load an object to a object repository at RUN TIME ?


Answer

you can not add object to Object repository with using
script.

if any queries..

nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 5 No

Question { 27273 }

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST


Answer

Hi Raju..its good answer.

keep answering..

Nanda

Is This Answer Correct ?    1 Yes 2 No

Question { CTS, 6325 }

If you entered into yahoo mail with your valid user name
and password , then you will get " welcome , username "
(for example you will see , “welcome, Krishna” ) text on
the top of the Inbox page , how can you test the user name
is correct or not using QTP?


Answer

yeah....

you can use the getROProperty method to get that value.
later on compare that value with ur parameter.

for example:

GetAppval = Browser("XXX").Page("XXX").WebElement("html
tag:=TD","index:=3").GetROProperty("innertext")

getparam = Datatable.Value("name",dtGlobalSheet)

If GetAppval = getparam then
msgbox "pass"
Else
msgbox "fail"
End If

guys here i just given the logic to use. instead message
box use a reporter statement or if u r writing to exeternal
log use it. and i used data table for example, but many
people (including me) will use separate excel file for
parameterization. but this is the logic to check values.

Regards...
nanda.d reddy

Is This Answer Correct ?    1 Yes 0 No

Question { 5215 }

hai there..this is chandu..i have a txt file which
containing 1000 lines but at a time i want to retrieve 50
lines..after 50 lines i required to retrieve 51-100..like
that i want...so could anybody help me in this...thanks in
Advance..


Answer

Hi, check the Below function,

Public Function Func_ReadFromNoetpad
(str_filePath,int_frmLine,int_toLine)

Set fso = CreateObject("Scripting.FileSystemObject")
Set Notepad = fso.OpenTextFile(str_filePath,1)

int_Value = 0

Do While Notepad.AtEndOfStream <> True
getLine = Notepad.ReadLine
int_value = int_value+1

If int_Value => int_frmLine and int_Value <=
int_toLine Then
msgbox getLine
End If

Loop

Set Notepad = Nothing

End Function


Here "str_filePath" is location of the text file in
ur local machine, "int_frmLine" is for from which line u
want to get the data and "int_toLine" is for to which line
u want to get the data.

for example If u want to get the data from 20 to 30

Func_ReadFromNoetpad "C:\Documents and
Settings\sdevarapalli\Desktop\sample.txt",20,30

Note: Here i used msgbox to display the data, becoz i don't
the exact scenario what u want. If u send me what u want to
do with that i can update this function.

If any queries or concerns please mail at :

nanda.dreddy@gmail.com

Is This Answer Correct ?    1 Yes 1 No

Question { TCS, 4905 }

1. How can we use same object repository and Testscript
which is in English flavor to check the application in
different languages thru QTP?(Chinese,Dutch,French)

- I generated script in english and want to use the same
script with different languages?
- for windows i used regular expressions
- I need for edit box,button and combobox,
(English,French,Dutch,Chinese) These are the properties of
a button in different languages
Properties English Dutuch Chinese French
x 400 758 631 601
y 673 603 592 676
windowstyle 1342242816 1342242816 1342242816 1.34E+09
windowid 2 2 2 2
windowextended style 4 4 4 4
width 120 120 120 120
visible TRUE TRUE TRUE TRUE
righttoleft reading FALSE FALSE FALSE FALSE
righttoleftlayout FALSE FALSE FALSE FALSE
rightaligned FALSE FALSE FALSE FALSE
regexpwndtitle cancel Loschen Chinese language Annuler
regexpwndclass button button button button
objectclass button button button button
hwnd 132872 657228 656932 656782
height 33 33 33 33
focused FALSE FALSE FALSE FALSE
enabled TRUE TRUE TRUE TRUE
attached text
abs_y 669 599 627 597
abs_x 396 754 588 672
text cancel Loschen Chinese language Annuler
nativeclass button Button
ordinal Identifier
type,Value none none none none
smartidentification FALSE FALSE FALSE FALSE
comment


Answer

Hi,

see it is very difficult to use Regular expression
always..use the index or location property..let me know if u
didn't get this answer..

Regards
nanda

mail to :
nanda.dreddy@gmail.com

Is This Answer Correct ?    1 Yes 2 No

Question { 12023 }

Hi All,
I want to know how can we schedule QTP scripts.
Am using 9.5 version and in our office they want to
schedule individual scripts of QTP so that it can run
unattended during night time, Please help me how to do that.
2. what is the use of silent test run in qtp
can I schedule the scripts in Silent runner, Please explain.
3.I retrieved data from the database using output value ->
Database output value. the result of the query for eg is 5
rows, iam able to output the first row by selecting the
cols and adding it to output, but am not able to do it for
the rest of the rows.
please tell me how to do it.

Sorry for posting so many qns, am not able to find answ to
any of the above in any websites, hoping that someone would
really help me with these here, please help me.
awaiting for ur immediate revert.

Priya


Answer

use the automation object model...

Set qtApp = CreateObject("QuickTest.Application") ' Create
the Application object

qtApp.Launch

qtApp.Visible = True ' Make the QuickTest application
visible


qtApp.TDConnection.Connect " Path>", "", "", "", "",
False ' Connect to Quality Center

' Prepare the RunResultsOptions object

Set qtRunResultsOptions = CreateObject
("QuickTest.RunResultsOptions") ' Create the Run Results
Options object

qtRunResultsOptions.ResultsLocation = "Root\Version 6.0
\Phase 3\Automated Tests\4.1 Chart Managed in Java\4.1
StructuredTextEditor\4.1 StructuredTextEditor" ' Set a
temporary results location in test lab.
'qtApp.TDTestSet = "Root\QTP Demo\4.1 Chart Managed in
Java\4.1 StructuredTextEditor\4.1 StructuredTextEditor_TP"
Dim Test_path

Test_path = "[QualityCenter] Subject\Automated
Tests\Application\Release 6.0.0\Login\A_User_Login_Existing"
Test_path1 = "[QualityCenter] Subject\Automated
Tests\Application\Release 6.0.0\Login\A_User_Logout"

'Dim qtApp
Dim qtTest
'Set qtApp = CreateObject("QuickTest.Application")
'qtApp.Launch
'qtApp.Visible = True
qtApp.Options.Run.RunMode = "Normal"
qtApp.Options.Run.ViewResults = False
qtApp.Open Test_path, True
Set qtTest = qtApp.Test
'qtTest.Run


qtTest.Run qtRunResultsOptions ' Run the test

qtApp.Open Test_path, True
qtTest.Run qtRunResultsOptions ' Run the test

'qtTest.Close
'qtApp.quit
Set qtTest = Nothing


i think the above script will use for u. here i have
given the test path and results path according to my
quality center. please change those according ur needs.

and put above script in vbs file and schedule the vbs
file by using windows tasks scheduler.

if u r confused , send a mail to below id. i will send
with detail steps with screenshots .

my ID is: nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 1 No

Question { 5099 }

how to get childobject from .net application. i tried but
its showing child object count zero. but window has child
objects.the following script i written... pls help me how to
get.


set parent=SwfWindow("winodw name")
CheckObjectDescription parent, SwfButton

Public Function CheckObjectDescription(parent, oDesc)
Set oDesc = Description.Create()
oDesc("micClass:").Value ="Swfbutton"
Set children = parent.ChildObjects(oDesc)
cntObj=children.count
msgbox(cntObj)
End function


Answer

Hi Check this code...

set parent=SwfWindow("winodw name")
CheckObjectDescription parent, SwfButton

Public Function CheckObjectDescription(parent, oDesc)
Set oDesc = Description.Create()
oDesc("mercury class").Value ="Swfbutton"
Set children = parent.ChildObjects(oDesc)
cntObj=children.count
msgbox(cntObj)
End function

instead of above use this..

set odesc = description.create
odesc("Class Name").Value = "SwfButton"
set childobj = window("").childobjects(odesc)
k = childobj.count
msgbox k




Let me know the feedback -----------
nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No

Question { iFlex, 9939 }

.qfl extension for which file? where vl use it


Answer

Hi Nath, very gud answer.

qfl is the function library file. If create function
library from QTP and when u save it directly from QTP, it
will save with .qfl extenstion. if u want to see that or
edit the u can open that with notepad or u can open with
QTP.

Is This Answer Correct ?    5 Yes 1 No

Question { 5661 }

What are Error handling other than Recovery scenario
manager?


Answer

also we handle some of exceptions using if Else statements.

like

If Browser().Dialog().Exist Then
Browser().Dialog().Close
End If

Is This Answer Correct ?    0 Yes 2 No

Question { 14466 }

Can we do Load Testing with QTP?


Answer

Hi Rohini,

is QTP for Performance testing. If yes, how we will
do load tesing with QTP?

Is This Answer Correct ?    4 Yes 8 No

Question { 7330 }

HI ALL,
HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP?
PLZ URGENT.ANSWER ME.


Answer

Hi,
If you want to install Java or .Net or any other add-ins you
must be having permanent version (either Seat or Concurrent
) of QTP. and you have to purchase the required Add ons from
HP. Generally clients will provide those things. If u
already have the add-ons with u..open the folder of that
add-on, just click on set up. follow the instructions
provided while installing.

Is This Answer Correct ?    6 Yes 2 No

Question { 3630 }

IF THE GUI OF APPLICATION IS CHANGED THEN IS THERE ANY
NECISSITY TO CHANGE OR UPDATE OUR TEST SCRIPTS


Answer

Hi,
If the properies of objects changed then only we need to
update. But if Interface of the application is changed and
properties are remains same, we dont need to update the
script.

But if u did anolog recording u have to rerecord it. we
dont have any option to modify the script generated by
anolog recording.

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No

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