amarendra


{ City } pune
< Country > india
* Profession *
User No # 17210
Total Questions Posted # 0
Total Answers Posted # 54

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

Users Marked my Answers as Correct # 241
Users Marked my Answers as Wrong # 83
Answers / { amarendra }

Question { 7349 }

i have qtp 9.5 ver software.but i don't know the license
key. if anyone have license key please send it to my
personal mail id(munir.reddy@yahoo.com


Answer

Better you can use demo verison of QTP 9.5 or cracked
verison. Nobody will share you the licenses as its cost is
nearly 8 lakhs...

So use the demo verison and if it is expired, use the
following process to reinstall QTP without OS installation.


1)Goto Registry

a. Enter REGEDIT by clicking StartRun.
b. Click CTRL+F.
c. Enter QTP* and Press Enter.
d. Delete all keys that are related to QTP.
NOTE : If you are not able to find the folders then
manually go to all locations and search the folders.


2) Delete the keys from the HKEY_local_machine in the
registry
1) Clssystem
2) MercuryInteractive
In the HKEY_CLASSES_ROOT
1) Remove Rainbow.SentinelLM

3) Delete the files from your system

wlrun.ini,mercury.ini,sysprs7.dll,clauth1.dll,clauth2.dll,ls
prst7.dll,lsprst7.tgz,lservrc,ssprs.dll,ssprs.tgz,tmpPrst.tg
z,sysprs7.tgz
Some of the files not available in your system. leave it
and continue to next step.

4) Uninstall QTP from add remove programs

5) Restart the System.

6) Goto registry and delete Mercury interactive from two
folders HKEY Current users and HKEY Local Machine

7) Install QTP

8) Restart the system

Is This Answer Correct ?    2 Yes 0 No

Question { 6517 }

Hi Guys,

I tried to install java add-in for QTP 9.5 after the whole
installation but it didn't install but then i also found in
documentation saying that winrunner7.6 patch for java
plugin would work fine with QTP. But when i tried to
install from winrunner7.6 it asks me for the path of
winrunner So my question is are we supposed to install
winrunner for java add in to work on QTP. Please suggest me


Answer

AT the time of QTP 9.5 installation, you need to select the
type of installation as "Custom" instead of "Typical".
Next, it shows the avaiable addins in it.
Right click on Java Addin and select the first item in the
list and continue your execution.

This way you van install any addins on QTP 9.5. no need to
install it from Winrunner 7.6.

All the best...

Is This Answer Correct ?    4 Yes 0 No


Question { 6597 }

How can i open 5 multiple browser at once through QTP VB
script and i want to login with 5 different credentials i
already tried with this code but its entering credentials
only for first browser and am using datatable to
parameterize


Answer

Using Data parameterization, we can do that or in other
purpose also

Method1:
var_RowCount = DataTable.GetSheet("Action1").GetRowCount
For i = 1 to var_RowCount
DataTable.SetCurrentRow(i)
SystemUtil.Run "iexplore","www.abcd.com"
uname = DataTable("Username",dtLocatSheet)
psd = DataTable("Password",dtLocatSheet)
Browser("index:=0").Page("title:=.*").WebEdit
("name:=Usname").Set uname
Browser("index:=0").Page("title:=.*").WebEdit
("name:=Pwd").Set psd
Browser("index:=0").Page("title:=.*").WebButton
("name:=Go").Click
Next

Method2:
For i = 1 to 5
SystemUtil.Run "iexplore","www.abcd.com"
Next
For i = 1 to 5
Browser("index:=" & i).Page("title:=.*").WebEdit
("name:=Usname").Set uname
Browser("index:=" & i).Page("title:=.*").WebEdit
("name:=Pwd").Set psd
Browser("index:=" & i).Page("title:=.*").WebButton
("name:=Go").Click
Next

Is This Answer Correct ?    2 Yes 3 No

Question { 4114 }

unable to get item from the combobox using descriptive
programing. can any one give me the peice of code to
schedule the booking from one place to another using
DESCRIPTIVE PROGRAMING.


Answer

Use GetROProperty to retreive the selected item from
Combobox

E.g.
val = Broswer().Page().WebList().GetROProperty("value")

If it is WinComboBox, use the below code
val = Window().WinComboBox().GetROProperty("text")

Is This Answer Correct ?    0 Yes 1 No

Question { 3101 }

How to get align property of the link on web page?


Answer

There is no such property exist in QTP for Link project for
Web page.

If you want to retreive any property values of any object,
use GerROProperty method.

E.g.
val = Browser().Page().Link().GetROProperty("name")

Is This Answer Correct ?    0 Yes 3 No

Question { Livetek, 5461 }

Suppose Object name was changed in the application in the
second build.I have just modified the name in the Object
repository as changes in the Application.
Is it possible to accure changes in the script accordingly?
If so
Suppose I am calling the script through function,
Will the changes affect in the script(which is in the
function)automatically?
If not affected, tell me the solution,How to handle this.
How should I change the object property name while using
functions


Answer

The script/code on Function will not be reflected
automatically. So you have to change the logical name of
the object in your functions manually.

This is only the possibility to modify the script.

This case, Better to use descriptive programming.

Is This Answer Correct ?    2 Yes 1 No

Question { 37084 }

How will you send values to a cell in a webtable using QTP?


Answer

For WebTable object, you can retreive the cell data but
can't set any value directly.

To retreive data.
val = Browser().Page().WebTable().GetCellData(row,column)

To set the value.
If you want to set any value on cell, you can do it on its
child objects.
So make sure what is the child object of that cell i.e.
either WebEdit or WebCheckBox or WebRadioButton etc...

Using the method, you can set the value to that child objet.

Using ChildItem method, you can fetch the child object of
the cell.
Browser().Page().WebTable().ChildItem
(row,col,ChildObjClassname,index of the child
object).Set "abcd"

or

Set ChildObj = Browser().Page().WebTable().ChildItem
(row,col,ChildObjClassname,index of the child object)
ChildObj.Set "abcd"

E.g.
Set ChildObj = Browser("ab").Page("cd").WebTable
("de").ChildItem(row,col,WebEdit,0)
ChildObj.Set "abcd"

If the cell has more than multiple similar child objects,
then you need to take care of the object index.

Is This Answer Correct ?    38 Yes 6 No

Question { 2515 }

How should I click on the right click menu objects
When I trying to add the object properties to the OR.It is
showing only Window(Window).Not all the objects of the
window.
Also while recording I found No script.
How to solve this>.


Answer

Make sure you have selected proper options in Record and
Run settings. If not, you can't able to record the test
scripts.

Is This Answer Correct ?    0 Yes 0 No

Question { 3132 }

Hi,

My problem is as follows.

I recorded a script that created Object repository of each
action i recorded. But later I added one more step (which
was to enter data in a textfield) into the script through
expert view.
But as no repository for this newly added step exists in the
test, my script fails. So please help me to sort this
problem that how can I create object repository of a new
step in an existing test.
Thanks everyone


Answer

You informed that you recorded the test script. When you
record the script, like set a value to a textbox, at that
time, it creates the syntax/statements into your test script
(can view it in Expert view). At same time, it adds the
correspnding objects into object repository.

As you specified that, you have added one more line in
Expert view manually and do not know how to add object into
repository.

So, simply open object repository. You can find "+" symbol
button with the tooltip "add objects to local". Click on
that button and it will show you the finger point icon.
Select the object that you want to add. Click on OK. So the
object will be added to your onbect repository. Get the
name of the object. Paste it into you code in expert view.

E.g. the new line which you added in Expertview
Browser("test").Page("test").WebEdit("don't no the name of
the object").Set "abcd"

Solution:
Add the textbox(WebEdit)object to object repository. you
can get the name of the WebEdit(textbox) object
is "textbox1" for example.

So you have to change code in expert view as below.
Browser("test").Page("test").WebEdit("textbox1).Set "abcd"

Is This Answer Correct ?    2 Yes 0 No

Prev    1   2   3    [4]