rayudu


{ City } pune
< Country > india
* Profession * qa
User No # 7698
Total Questions Posted # 26
Total Answers Posted # 14

Total Answers Posted for My Questions # 36
Total Views for My Questions # 130114

Users Marked my Answers as Correct # 60
Users Marked my Answers as Wrong # 15
Questions / { rayudu }
Questions Answers Category Views Company eMail

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

Livetek,

2 QTP 5912

How can I replace all the text from the QTP script with some other text.

Livetek,

1 QTP 3667

How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me

Livetek, Virtusa,

5 QTP 13131

hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

Livetek, NIIT,

QTP 1487

QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "

Livetek,

2 QTP 7726

There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me

Livetek,

2 QTP 3763

Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

Livetek,

QTP 2032

How can i initiate the objects to find uniquely in OR

IBM, Livetek,

QTP 1439

How can i count "spaces" in any sentence or a string if suppose " It is a Testing question" Here we have 4 gaps(spaces) Is there any function to find out spaces between words

iGate, Livetek,

5 QTP 18049

I have the following Doubts Please clarify me with examples? 1.Could QTP cover entire application? or part of the application? 2.Shall we rewrite(modify) the Manual testcase to automate? 3.How can I execute my scripts through client mechine which is not having QTP installation 4.Few objects are not being identified by QTP afeter one month. what could be the reason for this (I am using trail version of 15 days)

Livetek,

2 QTP 4861

I got some information from the QTP help.But i am not sure whether through this process will QTP work or not bellow is the Help what I have Remote setup Settings Remote WSH, which is a new technology included in WSH 5.6, provides the ability to run a script on a remote machine or machines. With Remote WSH, the script is physically copied from the local machine to the remote machine before executing. In order to enable Remote WSH functionality, you must first set up the remote machine with the proper security settings. The steps below perform the tasks that enable Remote WSH. Note Both the remote and local machines must be running Windows NT 4 SP3 or greater in order to use Remote WSH. To enable a machine to run remote scripts 1. Install WSH V5.6 on the machine. If you are using Windows 2001 or have installed Internet Explorer 6 or greater, WSH 5.6 has already been installed. Note WSH 5.6 is available for download from the web at http://msdn.microsoft.com/scripting 2. Add yourself to the remote machine's Local Administrators group. 3. To enable Remote WSH, use Poledit.exe on the server. Note An administrator who wants to enable Remote WSH must either acquire the Windows 2000 resource kit, or use http://msdn.microsoft.com/scripting to acquire the necessary windowsscript.adm file that contains the WSH settings. The windowsscript.adm file must be copied to the server that sets the gapplicabel group's policies. Although it is not necessary to copy the file to the server's \WINNT\INF directory, this is nonetheless where the default adm files are located. Note For more information on Poledit.exe, see the Poledit.exe's online help system. 4. WSH should now be enabled on the machine. To test it,. WSH 5.6 can run scripts that reside on remote systems. The following scripts demonstrate this capability. These scripts make the assumption that the files are located on a local machine directory called "c:\wsh5.6"; change the local path and the remote machine name as necessary. After initially running RemoteTest.WSF on the local machine, there may be a small pause as DCOM verifies your identity. After you see the "Done" message, a file named "c:\beenhere.txt" on the remote machine indicates the time that you executed the command (from the remote computer's clock). Script to run scripts remotely set oController = CreateObject("WSHController") set oProcess= oController.CreateScript("c:\wsh5.6\beenhere.wsf","remmachine") oProcess. Execute Could you tell me will it work fine

Livetek,

QTP 1766

I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

Livetek,

QTP 1693

How can I find out whether a word in a string is existed or not for example "QTP IS A POWERFULL TOOL FOR AUTOMATION" How can i find out whether "powerfull" is existed in the above string or not Could anyone answer it?

Livetek,

7 QTP 19220

How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me?

Livetek,

1 QTP 4446

What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

Livetek,

QTP 1452


 [1]   2    Next



Answers / { rayudu }

Question { Oracle, 23874 }

There will be two security guards at hell and heaven. hell
guy used to speak lie always and we can ask one and only
one question to move into heaven(twist is we don't know who
is hell or heaven gaurd).how can we move into heaven?


Answer

Ask one gaurd that... Are you a gaurd??
If he answered No.He is Hell guy?
so Go to the other door That should be Heaven.
Else
He say I am Gaurd!
He is a heaven guy. Go with him...

Is This Answer Correct ?    1 Yes 0 No

Question { 7097 }

I?m right now doing manual testing for Java Projects. We
are planning to automate it. So, I need your suggestions in
choosing an appropriate automated testing tool for doing
Functionality testing, UI testing and Performance testing
so that I will be able to implement it for our projects.
Kindly help me in this regard.

Thanks in advance.

with regards,
Kavitha.


Answer

QTP is the best tool for automating java based application

Is This Answer Correct ?    2 Yes 0 No


Question { Syntel, 18284 }

hi in QTP 8.2 in the edit box has text like "raju want
married" . i want to check "want" is their in the text
or not ?


Answer

str="raju wants marriage"
a=instr(1,str,"wants")
If a<>0 Then
msgbox "Required text existed "
Else
msgbox "Required text not existed"
End If

Is This Answer Correct ?    0 Yes 0 No

Question { Ordain Solutions, 6410 }

How to find the number the number of Links, Brolken Links
in a webpage?


Answer

By using childobject method


Set linkDescObj=description.Create()
linkDescObj("micclass").value="Link"
Set Links=browser("Gmail: Email from Google").Page("Gmail -
Inbox -srikrishna").ChildObjects(linkDescObj)
NoOfLinks=Links.count()
msgbox NoOfLinks
For i=0 to NoOfLinks-1
linkName=Links(i).getROProperty("name")
msgbox linkName
Next

Is This Answer Correct ?    3 Yes 0 No

Question { Ordain Solutions, 21726 }

setroproperty and getroproperty difference


Answer

Gettoproperty is used for getting runtime values of an
application On the other hand Settoproperty is for Seting
the runtime test object properties

For Settoproperty:

Suppose there is one screen named "TESTING" and another
screen named TESTINGPROCESS"
Now by using settopreperty we can do operations
on "TESTINGPROCESS" screen by using "TESTING" screen.
Here no need of TESTINGPROCESS screen properties in Object
Repository

Is This Answer Correct ?    4 Yes 2 No

Question { 2692 }

for example one window is there, the window contains how
many edit box's i want script? i know the script but that is
not exact answer....
The script is like this ..........

set a=description.creation()
a("Native class")="WinEdit"
b=window("Flight Reservation").childobject(a).count
msgbox b

if u found exact answer please getback to me?
raju.ippali@gmail.com
9823257761


Answer

Your script is right but need to do some modifications

set a=description.create()
a("micclass").value="WinEdit"
b=window("Flight Reservation").childobjects(a).count
msgbox b


Now you can get the results
Before going to execute you have to add the Flight
reservation Properties to the repository

Is This Answer Correct ?    3 Yes 1 No

Question { CTS, 34677 }

how to calculate no. of repeating characters in a a
string..please give me the code


Answer

suppose you have a string like

"God is Great"


A="God is Great"
Cnt=split(A,"G")
msgbox Ubound(Cnt)


will display 2

Is This Answer Correct ?    28 Yes 6 No

Question { 5734 }

How do u override the meaning of a standard object in QTP?


Answer

Standard object means understandable to QTP(QTP standard
objects)

If QTP could not identify the AUT object, then we need to
assign that object to QTP forcefully by using virtual
objects
standard object may be Button, object,table,list, check
box,Radio button


Is This Answer Correct ?    3 Yes 2 No

Question { 2747 }

suppose by navigation i went from 1st page to 5th page write
a script for coming from any page to the 1st page abd by
executing where the page may be . it will come to 1st page
give the code using gmail. give me mail id so that i can
under this answer with out any doubt


Answer



Just write a code like this



Browser(.................).home


Is This Answer Correct ?    1 Yes 0 No

Question { 8569 }

What is the best scripting language for automation
(function) testing


Answer

VB scripting is the best one

Is This Answer Correct ?    8 Yes 3 No

Question { 3875 }

Does we use Classes and methods in realtime..?How wud we
access methods in a class..?Thanq Guys..!


Answer

Shell we add Classes in the Function library?
Else where should we store classes?

Is This Answer Correct ?    0 Yes 0 No

Question { Tech Mahindra, 11265 }

Hello! i am having two comboboxes.Each having 10 items in
it.when i select first item in first combobox,it is not
similar in the second combobox.for ex in first combo if it
is Hyderabad,in second it should be some chenai or some
other item .Write a VBSCRIPT for that?


Answer

suppose in our flight reservation window "Fly from"
and "Fly To" comboboxes values should not be same.ok.
In taht situation below code will give all fail status
because Our flight reservation window has both values same

Just understand the code and implement it on ur application

SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","C:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "rayudu"
Dialog("Login").WinEdit
("Password:").SetSecure "49192ea21d0ec541ad12119e494c01ba2bb
d510b"
Dialog("Login").WinButton("OK").Click

a=window("Flight Reservation").WinComboBox("Fly
From:").GetROProperty("items count")

b=window("Flight Reservation").WinComboBox("Fly
From:").GetROProperty("all items")

a1=window("Flight Reservation").WinComboBox("Fly
To:").GetROProperty("items count")

b1=window("Flight Reservation").WinComboBox("Fly
To:").GetROProperty("all items")

spl=split(b,vblf)
spl1=split(b1,vblf)
For i=0 to a-1
val=spl(i)
msgbox val
val1=spl1(i)
msgbox val1
If val=val1 Then
reporter.ReportEvent micFail,"Step1","Test case is
fail"
Else
reporter.ReportEvent micPass,"Step1","Test case is
pass"
End If
Next

Is This Answer Correct ?    7 Yes 1 No

Question { 11386 }

What is the use of "Define new test object" in QTP 9.1
When should we use? Explain?


Answer

You are exactly right...But
What is the use of Creating new test object, if it not work
on the application.what will we do with it.How to use on
the application????
Please tell me with one example

Is This Answer Correct ?    0 Yes 0 No

Question { 11386 }

What is the use of "Define new test object" in QTP 9.1
When should we use? Explain?


Answer

Thank you nanda...
U r right..
Second one is Okay..
But one thing I have not understood is that, after writting
the code, should we add properties to the repository?
I knew two ways to write script.
1. Add objects to the repository and use them in script.
2. Assigning the property values to the properties
directly, without using OR (Discriptive programming)
But here not using either OR or object property values in
the script
How the QTP identfies the objects of an application.
suppose I have written like this.(if it is web based)

Browser("Rayudu").Page("ray").link("livetek").click

Once application ready how can I run this on the
application.

ok
should we use settoproperty???

Is This Answer Correct ?    0 Yes 0 No