thirumala reddy


{ City } bangalore-hyd
< Country > india
* Profession *
User No # 24122
Total Questions Posted # 0
Total Answers Posted # 29

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

Users Marked my Answers as Correct # 118
Users Marked my Answers as Wrong # 31
Questions / { thirumala reddy }
Questions Answers Category Views Company eMail




Answers / { thirumala reddy }

Question { 12693 }

How to create runtime property for an object?


Answer

By using "SetToProperty" you can do that

for example if any object property is changing during runtime our test will fail, to avoid that we can use SetToProperty.

e.g. if any WebEdit "name" property is changing then

Browser("xxx").Page("yyy").WebEdit("zzz").SetToProperty("name", "new value of name")

and this value is valid for that run session only (during runtime) after that that property will remain the property in the object repository

if any queries plz mail me
a.thirumalareddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No

Question { Ordain Solutions, 49464 }

What are the abbreviations for tsr and mtr?


Answer

hi friends,

.tsr-->test shared repository--> file extension of a shared
repository.

.mtr-->modular test repository--> file extension of a
per-action repository.

.mtb-->modular test batch--> file extension of batch run

.mts-->modular test script-->file extension of a test

.qfl-->quickTest functional library-->file extension of a
script in QTP

.vbs-->VB script-->file extension of library files

Is This Answer Correct ?    27 Yes 1 No


Question { 5964 }

How to handle Run-time errors?


Answer

there are two types of run-time errors
expected (if we know in which line of script it is occuring)
and unexpected (if we do not know the occuring place)

for expected run-time errors we will handle using VB script
like on error resume next method

for unexpected errors we will go for recovery scenario

Is This Answer Correct ?    3 Yes 1 No

Question { BirlaSoft, 12863 }

How we can merge the object repositories?say if we have two
or three object repositories then how e can merge them? is
there any option in Qtp to merge the object repositories


Answer

yes we can merge the object repositories

-->go to Resources
-->select object respository manager
-->go to tools
-->select object repository merge tool
-->new window will appear with name "new merge"
-->give the path of the primary and secondary file
-->click ok

a window will appear with conflicts

if u want to change that conflicts go to "resolution options" and do the modifications

Is This Answer Correct ?    7 Yes 0 No

Question { IBM, 8344 }

how can we merge the object repositories?is ther any option
in qtp to merge the object repositories if we have two or
three object repositories?


Answer

Let us suppose that there are three object
repositories(shared)A,B,C

Go to Resources-->Object Repository Manager-->Tools-->Object
Repository Merge Tool

Then we will get one box with two options Primary file and
secondary file. Select the path of the A and B files using
buttons and select them. Then click ok button and it will
merge the A and B repositories.

To merge C repository to this (same navigation as above) and
here C is secondary file.

Is This Answer Correct ?    3 Yes 0 No

Question { SRM, 11248 }

What is parameterization? What is syncronization pt.?


Answer

parameterization is passing multiple input values instead of constant values to verify the functionality.

whenever there is a timegap between the qtp and the application process the test fails, to avoid that we have to use synchronization.
waitproperty "property name", "property value", "time"

Is This Answer Correct ?    5 Yes 0 No

Question { HP, 67181 }

what is the difference between invoke application and
system.util.run


Answer

You can run any application from a specified location using a SystemUtil.Run statement.

"SystemUtil.Run" is especially useful if your test includes more than one application.

You can specify an application and pass any supported parameters, or you can specify a file name and the associated application starts with the specified file open.

for e.g. SystemUtil.run "iexplore.exe", "www.gmail.com"


"InvokeApplication" invokes an executable application.

Is This Answer Correct ?    3 Yes 1 No

Question { 8352 }

Give a comment on Regular Expressions using QTP?


Answer

Regular expression is checking the pattern rather than constant value.

when you are doing web testing the browser name is keep changing, so by using .* we can handle that.

Is This Answer Correct ?    2 Yes 0 No

Question { BirlaSoft, 15942 }

HOW DO U CALL A ACTION IN QTP?


Answer

by using call to copy of action and call to existing action we can call the actions.

if we use call to copy of action, we can call nonreusable as well as reusable actions, and we can modify the script, and we can call many times and one action sheet will be added in datatable when ever you called (per every calling you get one action sheet)

if we used call to existing action we can call only reusable actions (in QTP 9.5 above all actions are reusable only) and the script is read only (we can not modify the script), and there will be only one action sheet if we call more than once also

Is This Answer Correct ?    1 Yes 5 No

Question { 5324 }

Where we write the FUNCTIONS, in Expert view (or) in any
textfiles like Notepad and save it in Library functions
folder? How to cal that functions to our script? How to
save that functions to Function generator?


Answer

we can save that library files in our local folder and by using "executefile" method we can directly associate those files

for e.g executefile "path of the library file"

Is This Answer Correct ?    0 Yes 0 No

Question { Xavient, 68771 }

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me
sample script for this where there is some condition. like
if "text" THEN msgbox() else endif


Answer

systemutil.Run "iexplore.exe", "newtours.demoaut.com"

getValue=Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").GetROProperty("name")
msgbox getValue

If name<>userName Then
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "thirumala"
Else
Reporter.ReportEvent micfail, "check edit box existancy", "Edit box is not existed"
End If

Is This Answer Correct ?    9 Yes 2 No

Question { Kanbay, 6058 }

how we can do web browser using parametarisation in QTP ?


Answer

validating the functionality with multiple inputs is called parameterization.

we can validate a web browser using parameterization from the dataTable.

if u want script plz mail me i will send the script with details

Is This Answer Correct ?    1 Yes 0 No

Question { Wipro, 15172 }


Explain me in deatail about DATADRIVEN framework including
scripts ?(realtimes plz)(Chandana)


Answer

in DataDriven framework we have to pass the test data for parameterization from external sheet like excel and we have to write script (record and playback is not followed by all companies)

Is This Answer Correct ?    1 Yes 0 No

Question { VSoft, 7097 }

how much space occupies in object respository by default?


Answer

hi friends,

there is no particular limitation for storage, but if we
stored more than 1.5 GB it effects the performance of the QTP.

Is This Answer Correct ?    0 Yes 0 No

Question { 6314 }

what is option explicit?


Answer

option explicit force you to declare a variable to avoid any mistakes in the script

normally when u misspell something in script it takes as a new variable

Is This Answer Correct ?    3 Yes 0 No

 [1]   2    Next