Thanks Roman.Today evening i will try it ok.

On Thu, Oct 9, 2008 at 11:40 PM, Roman Zilber <[EMAIL PROTECTED]> wrote:

> Jyoshna,
>
> There is no such thing as similar toolbar on all applications, there is
> also difference between toolbar and menu. You need to start from clear (and
> detailed) understanding of what you want. From your explanation now I
> understand, that you need something like function
>
> *Function MyApp_SelectMenu(menuItem, menuType)
>
> where
>   menuType:
>                  toolbar button
>                  contextMenu (RightClick)
>                  mainApplicationMenu
>   menuItem: "File->Exit"
> *
> so, now we have an interface for want you want.
> It is possible to do, if QTP records the menu on the application properly.
> To create function like that you need to feel comfortable with:
> - vbscript
> - basics of QTP: understanding Object Repository, be able to add functional
> libraries to your test.
> if you okay with all these, read in internet about "QTP descriptive
> programming".
>
> When you will have a specific question about the implementation, you can
> try to ask about your problem again, and I believe, the responses will be
> more productive for you.
>
> Roman
>
> On Thu, Oct 9, 2008 at 1:13 AM, lakshmi jyoshna <[EMAIL PROTECTED]>wrote:
>
>>  Roman why i asked the script on word is because the functionality is
>> very simimilar to the functionality on my application.
>> Roman i am not very much experienced in qtp.i am learning qtp. if you know
>> the answer please help me.otherwise ignore this.
>>
>>   On Tue, Oct 7, 2008 at 7:27 PM, Roman Zilber <[EMAIL PROTECTED]> wrote:
>>
>>> I am confused. Your original question was.
>>>
>>> >Hai can any one tell me the script to select on a toolbar button in *any
>>> application*
>>> >and for rightclick option
>>>
>>> Which did not had much sense, when you start talking about "word
>>> document", I thought, that here we are coming to the point.
>>> We can start from beginning.
>>>
>>> What are you testing? If you need to test different ways to activate an
>>> action in Word document, that mean you are working in Microsoft. Or maybe
>>> your company develops some add-on for Word application. Why did you ask
>>> about "any application", do you need to do similar actions in different
>>> application, not only in Word?
>>>
>>> If you need a correct answer, you need to spend some time and formulate a
>>> correct question.
>>>
>>> Roman
>>>
>>>
>>> On Tue, Oct 7, 2008 at 12:20 AM, lakshmi jyoshna <[EMAIL PROTECTED]>
>>> wrote:
>>> > Roman i am not asking for workaround...
>>> > In testing we have to test all the work arounds right.
>>> > to the customer you cant say use only this option(like keyboard
>>> > shortcuts) like that
>>> >
>>> >
>>> > see i have two doubts
>>> >
>>> > 1.
>>> > a. Open a word document from the Start menu
>>> > b. Click on the Open toolbar button on the main toolbar
>>> >
>>> > The second one is
>>> >
>>> >
>>> > 2.
>>> > a. Open a word document from the Start menu
>>> > b. Enter some text
>>> > c. Select the whole text you entered
>>> > d. Right click on that
>>> > c.From the appeared right click pop up menu select "Copy" option
>>> > d. Paste it any where in the same document
>>> >
>>> >
>>> >
>>> > I need script for both of these
>>> > I think every one understand my question...
>>> >
>>> >
>>> >
>>> > On Tue, Oct 7, 2008 at 1:55 AM, Roman Zilber <[EMAIL PROTECTED]>
>>> wrote:
>>> >>
>>> >> If you use Word, you can access menu with keyboard shortcut.
>>> >>
>>> >> On Mon, Oct 6, 2008 at 6:43 AM, lakshmi jyoshna <
>>> [EMAIL PROTECTED]>
>>> >> wrote:
>>> >> > here we have to pass the values for obj ,offsetx and offsety
>>> >> >
>>> >> > i want to right click on a word document
>>> >> > so what i have to place instead of obj,offsetx and offsety
>>> >> >
>>> >> > On Mon, Oct 6, 2008 at 4:09 PM, lakshmi jyoshna <
>>> [EMAIL PROTECTED]>
>>> >> > wrote:
>>> >> >>
>>> >> >> i think here i have to pass the values for obj ,offset-x and
>>> offset_t
>>> >> >>  can you try this code on a word doc and let me know the code for
>>> that
>>> >> >> sory dont think otherwise
>>> >> >> i dont have qtp now
>>> >> >> i have to try it in my home thats what iam asking
>>> >> >>
>>> >> >> On Mon, Oct 6, 2008 at 4:01 PM, Srinivas Pavuluru <
>>> [EMAIL PROTECTED]>
>>> >> >> wrote:
>>> >> >>>
>>> >> >>> Hi Lakshmi.
>>> >> >>>
>>> >> >>> I found following code in QTP help, may be this helps to you.. Try
>>> and
>>> >> >>> let me know..
>>> >> >>>
>>> >> >>> Right Click using Device Replay
>>> >> >>> The function below uses the Device Replay object to perform a
>>> right
>>> >> >>> click
>>> >> >>> operation on any object by retrieving the coordinates of the
>>> object.
>>> >> >>>
>>> >> >>> Sub RightClickObj(Obj, Offset_x, Offset_y)
>>> >> >>>     x_coord = Obj.GetROProperty("abs_x")
>>> >> >>>     y_coord = Obj.GetROProperty("abs_y")
>>> >> >>>     Set dr = CreateObject("Mercury.DeviceReplay")
>>> >> >>>     dr.MouseClick x_coord + Offset_x, y_coord + Offset_y, 2
>>> >> >>> End Sub
>>> >> >>>
>>> >> >>>
>>> >> >>> --
>>> >> >>> With Regards
>>> >> >>> Srinivas P
>>> >> >>>
>>> >> >>> On Mon, Oct 6, 2008 at 2:50 PM, lakshmi jyoshna
>>> >> >>> <[EMAIL PROTECTED]>
>>> >> >>> wrote:
>>> >> >>>>
>>> >> >>>> for right click micrightbn method is there
>>> >> >>>> but i dont know the syntax properly
>>> >> >>>>
>>> >> >>>> On Mon, Oct 6, 2008 at 9:32 AM, kool guy <[EMAIL PROTECTED]>
>>> wrote:
>>> >> >>>>>
>>> >> >>>>> Hi,
>>> >> >>>>>
>>> >> >>>>> I think it's possible to select any  item in toolbar but it's
>>> not
>>> >> >>>>> possible for right click.
>>> >> >>>>>
>>> >> >>>>> Srikar
>>> >> >>>>>
>>> >> >>>>> On Mon, Oct 6, 2008 at 6:04 AM, lakshmi jyoshna
>>> >> >>>>> <[EMAIL PROTECTED]> wrote:
>>> >> >>>>>>
>>> >> >>>>>> no its possible
>>> >> >>>>>>
>>> >> >>>>>> On Sun, Oct 5, 2008 at 10:14 PM, Enock Prince
>>> >> >>>>>> <[EMAIL PROTECTED]>
>>> >> >>>>>> wrote:
>>> >> >>>>>>>
>>> >> >>>>>>> Its not possible in VBscript.
>>> >> >>>>>>> Use Mercury.DeviceReplay.
>>> >> >>>>>>>
>>> >> >>>>>>> Thanks.
>>> >> >>>>>>>
>>> >> >>>>>>> Enock Prince.G
>>> >> >>>>>>>
>>> >> >>>>>>> On 10/5/08, lakshmi jyoshna <[EMAIL PROTECTED]> wrote:
>>> >> >>>>>>>>
>>> >> >>>>>>>> Hai can any one tell me the script to select on a toolbar
>>> button
>>> >> >>>>>>>> in
>>> >> >>>>>>>> any application
>>> >> >>>>>>>> and for rightclick option
>>> >> >>>>>>>>
>>> >> >>>>>>>> --
>>> >> >>>>>>>> Jyoshna
>>> >> >>>>>>>>
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>> --
>>> >> >>>> Jyoshna
>>> >> >>>>
>>> >> >>>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> Jyoshna
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > Jyoshna
>>> >> >
>>> >> > >
>>> >> >
>>> >>
>>>
>>
>
> >
>


-- 
Jyoshna

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to