Setting.WebPackage

2,978 views
Skip to first unread message

Ujvala QTP

unread,
Mar 29, 2012, 1:48:49 AM3/29/12
to QTP - HP Quick Test Professional - Automated Software Testing
Please explain what is Setting.WebPackage. Where we use it? How we use
it?
Setting.WebPackage("ReplayType") = 2

Deepak Kumar Mahapatro

unread,
Mar 30, 2012, 2:16:28 AM3/30/12
to mercu...@googlegroups.com
Setting.WebPackage("ReplayType") specifies the mouse movement in the
browser at run time.
By default the replaytype is event i.e. 1
we can change that in tools-->option-->web-->advance-->replytype or
using the setting object

if the reply type is event or 1 then at run time the mouse doesn't
move the operation is carried out directly through the browser event
but if that is mouse or 2 then mouse goes to that object and perform
the task.
for e.g. if the operation is on webedit, then for replaytype 1 it
directly set the text but for replaytype 2, mouse pointer goes to
that editbox and we can observe the cursor movement while the text is
entered.
similarly for webbutton, the button is clicked irrespective of the
position of mouse pointer for replaytype 1 and for replaytype 2, we
can observe that the mouse pointer goes to the button and button is
clicked by the mouse.

i know this much only. if u get some more information then please post it here.

thanks

> --
> 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 Mercu...@googlegroups.com
> To unsubscribe from this group, send email to
> MercuryQTP+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>


--
Regards,
Deepak

Deepak Kumar Mahapatro

unread,
Mar 30, 2012, 2:19:22 AM3/30/12
to mercu...@googlegroups.com
just create a simple html file with some basic controls and try these
replaytypes. u'll understand it better

On 3/29/12, Ujvala QTP <ujva...@gmail.com> wrote:

Sanketh Shanbhag

unread,
Nov 24, 2012, 3:55:45 AM11/24/12
to mercu...@googlegroups.com
Should work fine.... No issues when in executed.
Do your actual properties have special characters in them ?

Also try .exist & then .click

Another thing to try would be disable smart...& then run your code.

Regards
Sanketh



On Thu, Nov 22, 2012 at 1:58 PM, Vinothkumar Manoor Chinnasamy <vinothku...@gmail.com> wrote:
Hi,
 
Code:
'***********************************************************************************************************************
Browser("name:=xyz").webelement("outerhtml:=abc","innertext:=efg","index:=0").highlight

                    Setting.WebPackage("ReplayType") = 2
Browser("name:=xyz").webelement("outerhtml:=abc","innertext:=efg","index:=0").Click
                    Setting.WebPackage("ReplayType") = 1
'***********************************************************************************************************************
Above is the code i used to perform the click action on the object.
 
The first line of the code is executing with default replay type(i.e.,1) where i can able to highlight the object, when i proceed without changing the replay type the action is not performed in that object.
 
Work Around:
After changing the replay type from 1 to 2 i can able to perform the action in that specific object.
 
Problem facing after the workaround:
The execution varies with machine to machine where in one machine the code is running succesfully.in some machine code side gettng struck.
highlighted the line which i can't perform using replay type=1.
 
 
 
 
 

On Tuesday, October 30, 2012 12:58:12 PM UTC-4, Sanketh Shanbhag wrote:
Can you post the lines of code ( Line where it is getting stuck & the previous one would also help ) where is it getting stuck ?
Not sure if replay type causes execution error on remote machines.

Regards
Sanketh


On Monday, October 29, 2012 8:28:29 PM UTC+5:30, Vinothkumar Manoor Chinnasamy wrote:
Hi,
 
I am using this option Setting.WebPackage("ReplayType") = 2 due to action for my application's object can be performed by changing this mode.
But if i am running this execution in a remote machine, Execution is getting struck in mid.
if any one know the reson kindly help

--
Reply all
Reply to author
Forward
0 new messages