Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

perlguitest · Win32::GuiTest (Perl)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 2444
  • Category: Perl
  • Founded: Jul 25, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 1669 - 1698 of 1818   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#1669 From: "Baljit Singh" <baljit77@...>
Date: Tue Feb 20, 2007 11:54 am
Subject: any inputs on using this on unix
baljit77
Send Email Send Email
 
we have some win32 applications ported to unix platforms
using "mainwin". Any success failures with this kind of scenerio?

Also any body has used win32:GuiTest for stingray grid controls?

#1670 From: "dukestefjen" <dukestefjen@...>
Date: Tue Feb 20, 2007 1:44 pm
Subject: wait states while window is busy painting
dukestefjen
Send Email Send Email
 
What is the best way to get my guitest script to wait until a window
has updated its content. On a slower machine, the application process
is idle before the windowing system has completed painting the window.

#1671 From: Gustavo Delfino <gdelfino@...>
Date: Sun Feb 11, 2007 8:40 pm
Subject: Documentation comment
gdelfino01
Send Email Send Email
 
In regards to the Chapter 2. GUI testing - tutorial (first part) says:

"Note, that in the second call of FindWindowLike you don't have to
give "^Edit" regular expression as a class name. Parent window and
control id, in that particular situation, is enough. But we will use
this redundancy as a fuse."

Under Windows 2000, I had to change that "^Edit" to "^Static" in
order for the program to work.

This difference between XP & 2000 should probably be documented.

Regards,

Gustavo Delfino

#1672 From: Gustavo Delfino <gdelfino@...>
Date: Mon Feb 12, 2007 9:58 pm
Subject: Testing MATLAB GUI apps
gdelfino01
Send Email Send Email
 
Hello all. I am trying to figure out if Win32::GuiTest can help me
test GUI applications made in MATLAB.

I am hopeful because WinSpy can see all the elements inside my custom
MATLAB application. For example, there is an input field which WinSpy
identifies as:

Handle: 000101FA
Caption: (blank)
Class: SunAwtCanvas (Unicode)
Rectangle: (383,728) - (459,747)-76x19

#1673 From: "davidjohnibberson" <david.ibberson@...>
Date: Mon Feb 12, 2007 5:35 pm
Subject: UnCheckButton, CheckButton, SelComboItemText, WMSetText
davidjohnibb...
Send Email Send Email
 
Hello,

I am using the above functions to set values of the relevant controls.

UnCheckButton will uncheck the checbox on screen
CheckButton - will check the checkbox on screen
SelComboItemText - will select the correct item from the list
WMSetText - will set the value of the text edit.

However, the values are not really set - when I save the record all
default values are used.

I've seen some posts on this forum about using sendmessage NOTIFY to
the control so ensure that the change is really made. I haven't used
SendMesssage so if someone could pleas let me have the correct syntax.

Do I have another options?

Thanks in advance,
David Ibberson.

#1674 From: "davidjohnibberson" <david.ibberson@...>
Date: Wed Feb 14, 2007 5:00 pm
Subject: CheckButton
davidjohnibb...
Send Email Send Email
 
Hello,

I'm using the checkbutton function on a screen, although it appears to
enable the button, when the record is saved, the change is not
recorded.

I have read about using sendmessage to send a notify but I'm pretty
new to all this and couldn't find any information about it on the
internet.

Could someone please let me have some examples or suggest other
alternatives?

Thanks,
David Ibberson.

#1675 From: "Amrita" <amritamitra_123@...>
Date: Wed Feb 14, 2007 1:30 pm
Subject: put unicode characters to a textbox
amritamitra_123
Send Email Send Email
 
Hi friends,
Am in real need of this. I have some input files in greek, slovak,
etc...i have all the fonts n all so its displaying correctly in a text
doc. Now i need to read from those files and put each word in a text
box of a tool . This is the problem... as soon as its doing that the
text showing up is getting distorted .. the accents and all are
becoming weird characters. plzzz help.

am using wmsettext... here's the code.


#!d:/Perl/bin/perl.exe
use Win32::GuiTest qw( :ALL);
require Encode;



	 my @whnds = FindWindowLike( undef, "^LiloPlugInManualTester" );
	 if( !@whnds ){
	     die "Cannot find window with title/caption \n";
	 }else{
	     printf( "Window handle of calculator application is %x\n",
$whnds[ 0 ] );
	 }

	 SetForegroundWindow( $whnds[ 0 ] );
	 $filelist="FileList.txt";
	 $command="dir /b .\\WinSoft_Correct_Spell_copy > $filelist";
	 `$command`;

	 open(fh, "<$filelist") or die "Could not open $filelist\n";
	 @farray=<fh>;
	 foreach $filename(@farray)
	 {
		 chomp($filename);
		 open(sample,"<.\\WinSoft_Correct_Spell_copy\\$filename") or die
"Could not open $filename\n";
		 open(testwrite,">test.txt") or die "Could not open $filename\n";
		 print $filename;
		 @wordlist=<sample>;
		 #print @wordlist;
		 &TestWordList(@wordlist);
		 close sample;
	 }
	 close fh;

	 MainLoop;

	 sub TestWordList(@wordlist)
	 {
		 foreach $word (@wordlist)
		 {
			  #chomp($word);
			 # print testwrite $word;
			  my $sp_ctrl_id = 1000;
              my @sp_hnds = FindWindowLike( $whnds[ 0 ], undef, "Edit",
$sp_ctrl_id );
              $result= WMSetText( $sp_hnds[0], $word );
              #sleep 1;





		 }
	 }

#1676 From: "brentje" <brentje@...>
Date: Tue Feb 20, 2007 2:24 pm
Subject: Re: any inputs on using this on unix
brentje
Send Email Send Email
 
I don't know about using Win32::GuiTest on Unix, but there is a
X11::GUITest out there.  That may be what you're looking for.

--- In perlguitest@yahoogroups.com, "Baljit Singh" <baljit77@...> wrote:
>
> we have some win32 applications ported to unix platforms
> using "mainwin". Any success failures with this kind of scenerio?
>
> Also any body has used win32:GuiTest for stingray grid controls?
>

#1677 From: "brentje" <brentje@...>
Date: Tue Feb 20, 2007 2:14 pm
Subject: Re: silktest vs using win32::GuiTest
brentje
Send Email Send Email
 
Let me start off by saying that I have not had any formal training in
testing.  I have no documentation on any kinds of testing methodology.
  Anything I do have was found on the net somewhere.  I started my
career off as a programmer, and my interests lay mostly in that area.
  Although I do get a kick out of tearing apart someone else's program,
so I've grown to like testing.  But basically, I looked at the task
that needed to be done from a programmer's point of view.

Many of us have created our own framework for the application we are
testing.  I wouldn't say mine is any better then anyone else's because
I haven't seen anyone else's, but I am proud of it and where it's
going.  I didn't even realize what I was making until the basic code
was written.  But here are the things I went through.

I was asked to write regression testing scripts, to make sure that the
steps we've laid out in the manual will work.  The basic idea I had
was to make emulate a normal user as closely as possible.  That means
instead of using code to push a button, I actually move the mouse
cursor there and click.  So the first function I wrote was a Move
Mouse command.  Since the one in GuiTest instantly moves the cursor to
where you say, I made a loop that moved it incrementally to provide a
delay and to make it look a little more normal.  From there, I moved
on to filling fields.  I decided I didn't want to blindly click with
mouse coordinates, so I made a function that looked for a field based
on it's label.  Once I find the field, I grab it's screen coordinates
and feed that into the Move Mouse function.  This way, they can move
the field where ever they want to and I don't have to change my code.
  I think after that I starting coding functions that set a combobox to
a specific value, grabbing it's location in the drop-down and moving
the mouse to click on it.  After that, things really started getting
out of hand.  I've added code to wait for a window based on it's title
or it's contents, added logging features, grab screenshots, added code
to manipulate objects through SendMessage, added XML files to hold
data that drives the scripts, added database code to interact with the
data our software uses, created a system to run multiple scripts, and
probably a few other things I can't think of right now.  Next is a
blackbox testing system, where the scripts intentionally try to make
error messages show.  Without a doubt, it is a lot of work to get a
system up and running.  But the results are worth it in my eyes.  I
don't think I would have gotten anywhere near the results I've gotten
if I went with the top commercial choice I had.

But again, this is just my system.  It's pretty geared towards the
software I'm testing, although I've tried to make it as generic as
possible.  I'm sure others have systems that do things I haven't even
thought of, or provide better ways of doing things.  Anyways, this is
the process I've gone through.  It's taken me about a year and a half
script about a third of our application, and it'll probably take me
another year or so to script the rest.  Well, I hope this helps.

Brent

--- In perlguitest@yahoogroups.com, gs rao <gsrao_ggt@...> wrote:
>
> Hi Brent,
>
>   I am new to the win32::GuiTest, I want to do the functionality
testing of an application using win32::GuiTest. Can you please tell me
what are the basic steps, we need to take while designing the
automation test frame work for that application using win32::GuiTest ?
>   Is there any kind of frame work for the win32::GuiTest ?
>   Or can you please guide me how to start the process of automating
the functionality testing for an application using win32::GuiTest ?
>   if you have any specific documents related to the functionality
testing using win32::GuiTest, please send it to me ?
>
>   Thanks for your help
>
>   Regards,
>   G.Subba Rao

#1678 From: "brentje" <brentje@...>
Date: Tue Feb 20, 2007 2:28 pm
Subject: Re: wait states while window is busy painting
brentje
Send Email Send Email
 
There is a WaitForReady function available in GuiTest.  I've added a 1
second buffer just in case whenever I wait for a window to load.

--- In perlguitest@yahoogroups.com, "dukestefjen" <dukestefjen@...> wrote:
>
> What is the best way to get my guitest script to wait until a window
> has updated its content. On a slower machine, the application process
> is idle before the windowing system has completed painting the window.
>

#1679 From: "Piotr Kaluski" <pkaluski@...>
Date: Tue Feb 20, 2007 2:36 pm
Subject: Re: UnCheckButton, CheckButton, SelComboItemText, WMSetText
pkaluski
Send Email Send Email
 
Try using a mixture of SendKeys and SendMouse* methods.
Using control specific functions like SelComboItemText is risky. There
are several events, which can be observed by an application. Those
events maybe related to key strokes and mose events. If you use
control specific function, those events will not be generated.

--Piotr

--- In perlguitest@yahoogroups.com, "davidjohnibberson"
<david.ibberson@...> wrote:
>
> Hello,
>
> I am using the above functions to set values of the relevant controls.
>
> UnCheckButton will uncheck the checbox on screen
> CheckButton - will check the checkbox on screen
> SelComboItemText - will select the correct item from the list
> WMSetText - will set the value of the text edit.
>
> However, the values are not really set - when I save the record all
> default values are used.
>
> I've seen some posts on this forum about using sendmessage NOTIFY to
> the control so ensure that the change is really made. I haven't used
> SendMesssage so if someone could pleas let me have the correct syntax.
>
> Do I have another options?
>
> Thanks in advance,
> David Ibberson.
>

#1680 From: "Piotr Kaluski" <pkaluski@...>
Date: Tue Feb 20, 2007 2:44 pm
Subject: Re: wait states while window is busy painting
pkaluski
Send Email Send Email
 
I have to warn you, that WaitForReady not always work. It does not
work when you use Terminal Server.
The way I am trying to to solve this problem is to wait for particular
control(s) to appear. In most cases there is a control, which is
created on the end, so if you find it (by using WaitWindow), you can
assume that a whole window is almost ready.
I am also under impression, that if you Send a message to such a
window, SendMessage will not return until the window is ready. But I
am not sure.

--Piotr

--- In perlguitest@yahoogroups.com, "brentje" <brentje@...> wrote:
>
> There is a WaitForReady function available in GuiTest.  I've added a 1
> second buffer just in case whenever I wait for a window to load.
>
> --- In perlguitest@yahoogroups.com, "dukestefjen" <dukestefjen@> wrote:
> >
> > What is the best way to get my guitest script to wait until a window
> > has updated its content. On a slower machine, the application process
> > is idle before the windowing system has completed painting the window.
> >
>

#1681 From: "Piotr Kaluski" <pkaluski@...>
Date: Tue Feb 20, 2007 2:48 pm
Subject: Re: silktest vs using win32::GuiTest
pkaluski
Send Email Send Email
 
Brent,
Would be possible that you share your code with us?

--Piotr

--- In perlguitest@yahoogroups.com, "brentje" <brentje@...> wrote:
>
> Let me start off by saying that I have not had any formal training in
> testing.  I have no documentation on any kinds of testing methodology.
>  Anything I do have was found on the net somewhere.  I started my
> career off as a programmer, and my interests lay mostly in that area.
>  Although I do get a kick out of tearing apart someone else's program,
> so I've grown to like testing.  But basically, I looked at the task
> that needed to be done from a programmer's point of view.
>
> Many of us have created our own framework for the application we are
> testing.  I wouldn't say mine is any better then anyone else's because
> I haven't seen anyone else's, but I am proud of it and where it's
> going.  I didn't even realize what I was making until the basic code
> was written.  But here are the things I went through.
>
> I was asked to write regression testing scripts, to make sure that the
> steps we've laid out in the manual will work.  The basic idea I had
> was to make emulate a normal user as closely as possible.  That means
> instead of using code to push a button, I actually move the mouse
> cursor there and click.  So the first function I wrote was a Move
> Mouse command.  Since the one in GuiTest instantly moves the cursor to
> where you say, I made a loop that moved it incrementally to provide a
> delay and to make it look a little more normal.  From there, I moved
> on to filling fields.  I decided I didn't want to blindly click with
> mouse coordinates, so I made a function that looked for a field based
> on it's label.  Once I find the field, I grab it's screen coordinates
> and feed that into the Move Mouse function.  This way, they can move
> the field where ever they want to and I don't have to change my code.
>  I think after that I starting coding functions that set a combobox to
> a specific value, grabbing it's location in the drop-down and moving
> the mouse to click on it.  After that, things really started getting
> out of hand.  I've added code to wait for a window based on it's title
> or it's contents, added logging features, grab screenshots, added code
> to manipulate objects through SendMessage, added XML files to hold
> data that drives the scripts, added database code to interact with the
> data our software uses, created a system to run multiple scripts, and
> probably a few other things I can't think of right now.  Next is a
> blackbox testing system, where the scripts intentionally try to make
> error messages show.  Without a doubt, it is a lot of work to get a
> system up and running.  But the results are worth it in my eyes.  I
> don't think I would have gotten anywhere near the results I've gotten
> if I went with the top commercial choice I had.
>
> But again, this is just my system.  It's pretty geared towards the
> software I'm testing, although I've tried to make it as generic as
> possible.  I'm sure others have systems that do things I haven't even
> thought of, or provide better ways of doing things.  Anyways, this is
> the process I've gone through.  It's taken me about a year and a half
> script about a third of our application, and it'll probably take me
> another year or so to script the rest.  Well, I hope this helps.
>
> Brent
>
> --- In perlguitest@yahoogroups.com, gs rao <gsrao_ggt@> wrote:
> >
> > Hi Brent,
> >
> >   I am new to the win32::GuiTest, I want to do the functionality
> testing of an application using win32::GuiTest. Can you please tell me
> what are the basic steps, we need to take while designing the
> automation test frame work for that application using win32::GuiTest ?
> >   Is there any kind of frame work for the win32::GuiTest ?
> >   Or can you please guide me how to start the process of automating
> the functionality testing for an application using win32::GuiTest ?
> >   if you have any specific documents related to the functionality
> testing using win32::GuiTest, please send it to me ?
> >
> >   Thanks for your help
> >
> >   Regards,
> >   G.Subba Rao
>

#1682 From: "Piotr Kaluski" <pkaluski@...>
Date: Tue Feb 20, 2007 2:56 pm
Subject: Re: Using SendKeys- Simulate <Shift><Home> or Double mouse Click
pkaluski
Send Email Send Email
 
OK. I have the same problem. I got it on a machine with Polish version
of XP. And in the same time it works fine on a machine with US XP.

More investigation is needed. But for sure there is a problem...

--Piotr

--- In perlguitest@yahoogroups.com, "Piotr Kaluski" <pkaluski@...> wrote:
>
> Hi,
> I have carefully checked what you have written. I have also run the
> script using Tk, attached below. Everything worked as expected.
> Below is the script, which uses Notepad.
>
> use Win32::GuiTest qw( :ALL );
> my @wnd = FindWindowLike( 0, "Untitled - Notepad" );
>
> SetForegroundWindow( $wnd[ 0 ] );
> SendKeys( "{HOME}" );
> sleep( 1 );
> SendKeys( "+{END}" );
> sleep( 1 );
> SendKeys( "{DELETE}" );
> print "\n";
>
> It does exactly what is expected. It goes to beginning of the line, it
> selects the whole line and then deletes it.
>
> In order to get a shift pressed, you have to use +. If you want it to
> be kept for more then one character, you take all to-be-shifted
> characters in parens "()". "()" by themself only group characters. I
> did not observe them working as a shift key.
>
> And what do you mean by jaming? How does it manifest itself?
> What windows version do you use?
>
> --Piotr
>
>
> --- In perlguitest@yahoogroups.com, "brentje" <brentje@> wrote:
> >
> > I think I have an explaination at least...
> >
> > Been checking out the GuiTest.XS code, since I'm having a problem
> > sending brackets through SendKeys.  Appearently there are 2 more
> > modifiers that aren't documented: the ( and the ).  They are used as a
> > pseudo shiftlock.  The + modifier only works for the very next
> > character after it, and the shift key is released after that character
> > is processed.  Now you would hope that either using
> >
> > SendKeys("{HOME}+{END}{DELETE}")
> >
> > on a text field would do what you want...highlight all the text in a
> > text field and delete it.  You would also hope that if that didn't
> > work, that
> >
> > SendKeys("{HOME}({END}){DELETE}")
> >
> > would work.  BUT...whenever the SendKeysImp function in the
> > GuiTest.XS, the function called my SendKeys, processes a { character,
> > the Shift flag for either the + or ( modifiers gets reset and turned
> > off.  So it's technically impossible to have it hold down the Shift
> > and any special keys at the same time using SendKeys.
> >
> > As for it jamming the Shift key to be always on...still haven't
> > figured that out.  It seems to happen whenever the ( and ) modifiers
> > are used as well.  The Shift just doesn't disengage.  I haven't had it
> > happen to me with the + modifier, and haven't tried the {SHIFT}
> > special key, but it definately happens with ( and ).
> >
> > OH, and if you were like me and wondered how exactly you send the
> > literal characters instead of the modifier, just put it in squigly
> > braces {}.  As in:
> >
> >     SendKeys("{(}This is in brackets{)}");
> >
> > That should produce:
> >
> >     (This is in brackets)
> >
> > So...I think you might be out of luck unfortunately.  The only way
> > I've been able to do it is with the mouse.
> > Here's my function:
> >
> > sub ClearEditControl
> > {
> >     my $H_Control   = shift;
> >
> >     my $i_Y         = 0;
> >     my $i_LeftX     = 0;
> >     my $i_TopY      = 0;
> >     my $i_RightX    = 0;
> >     my $i_BottomY   = 0;
> >
> >
> >     ($i_LeftX, $i_TopY, $i_RightX, $i_BottomY) = GetWindowRect(
> > $H_Control );
> >
> >     $i_Y = $i_TopY + (int(($i_BottomY - $i_TopY)/2));
> >
> >     tt_MoveMouse($i_LeftX, $i_Y);
> >
> >     SendLButtonDown();
> >
> >     tt_MoveMouse($i_RightX, $i_Y);
> >
> >     SendLButtonUp();
> >
> >     SendKeys("{DELETE}");
> >
> > }
> >
> > Good luck, and post your workaround if you find another one...
> >
> > Brent
> >
> >
> > --- In perlguitest@yahoogroups.com, "tobin_cataldo" <tcataldo@> wrote:
> > >
> > > Has anybody found a solution to this without using SendRawKey?
> > >
> > > SendKeys("+({DOWN 100})");
> > > and{PGDN} jam the shift as well, without actually highlighting.
> > >
> > > --- In perlguitest@yahoogroups.com, "rmqa_group" <rmqa_group@>
wrote:
> > > >
> > > > Hmmm, strange.
> > > >
> > > > The "+" (shift) modifier doesn't seem to work with either
{HOME} or
> > > > {END}. I've not had need to use it in this combination, though
> +{TAB}
> > > > seems to work as expected.
> > > >
> > > > It also seems to "jam" the shift key, as switching to another
> > > > application after the script, you may find the shift still
engaged.
> > > >
> > > > You may have to resort to using the SendRawKey function instead...
> > > >
> > > > DH
> > > >
> > > > > Here is a simple program which shows the problem. When the
> > > > highlight
> > > > > button is selected, the curser just goes to the end of the
text.
> > > > The
> > > > > text is not highlighted.  Any suggestions?
> > > > >
> > > > > use Tk;
> > > > > use Win32::GuiTest qw(SendKeys );
> > > > >
> > > > > my $mw = MainWindow->new;
> > > > >
> > > > > my $e = $mw->Entry->pack;
> > > > > $e->insert(0, "Test String");
> > > > >
> > > > > my $f = $mw->Frame->pack;
> > > > >
> > > > > $f->Button(
> > > > >     -text => "Highlight",
> > > > >     -command => [\&highlight, $e]
> > > > > )->pack(-side => 'left');
> > > > >
> > > > > MainLoop;
> > > > >
> > > > > sub highlight
> > > > > {
> > > > >     my $e = shift;
> > > > >     $e->focusForce;
> > > > >     SendKeys("{HOME}+({END}) {DELETE}");
> > > > > }
> > > > >
> > > >
> > >
> >
>

#1683 From: "brentje" <brentje@...>
Date: Tue Feb 20, 2007 2:42 pm
Subject: Re: UnCheckButton, CheckButton, SelComboItemText, WMSetText
brentje
Send Email Send Email
 
The option I took was to move the mouse there and click were needed,
so the action is just a normal mouse action.  If you do want to use a
WM_NOTIFY message, this is a good place to start:

http://www.piotrkaluski.com/files/winguitest/docs/ch02s04.html

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platfor\
m/commctls/common/messages/wm_notify.asp


--- In perlguitest@yahoogroups.com, "davidjohnibberson"
<david.ibberson@...> wrote:
>
> Hello,
>
> I am using the above functions to set values of the relevant controls.
>
> UnCheckButton will uncheck the checbox on screen
> CheckButton - will check the checkbox on screen
> SelComboItemText - will select the correct item from the list
> WMSetText - will set the value of the text edit.
>
> However, the values are not really set - when I save the record all
> default values are used.
>
> I've seen some posts on this forum about using sendmessage NOTIFY to
> the control so ensure that the change is really made. I haven't used
> SendMesssage so if someone could pleas let me have the correct syntax.
>
> Do I have another options?
>
> Thanks in advance,
> David Ibberson.
>

#1684 From: "brentje" <brentje@...>
Date: Tue Feb 20, 2007 3:29 pm
Subject: Re: silktest vs using win32::GuiTest
brentje
Send Email Send Email
 
I don't mind sharing snippets, examples of things I've pieced together
from searching the net.  The whole framework...that will be something
I need to talk over with the owners.  Technically the code belongs to
them, so I can't just toss it onto the net for everyone to grab.
They've already had a problem with someone walking off with the code
to the main software we make, so they've put some restrictive clauses
in all contracts because of it.  I would like to make this an open
source project, but I want to finish off certain parts before I
present the idea to the owners.  I can't tell you how long this will
be though.

Brent

--- In perlguitest@yahoogroups.com, "Piotr Kaluski" <pkaluski@...> wrote:
>
> Brent,
> Would be possible that you share your code with us?
>
> --Piotr

#1685 From: "Baljit Singh" <baljit77@...>
Date: Tue Feb 20, 2007 2:54 pm
Subject: calc buttons not reporting captions
baljit77
Send Email Send Email
 
i tried the simple calc.pl available with the installs.
PushButtons does not seem to work. ( result is always 0. )

1) winSpy on any of the button shows empty "Caption"
Only TextBox returns "0." i.e the default contents of calc.

2)
"foreach my $child (@children) {
printf "Child: %8s %s\n", $child, GetWindowText($child);"

above code returned
Child:   852424 0.
Child:   197372
Child:   197402
....
....
...


I expected it to return '1', '2',etc.. for all the buttons.
What is wrong here.


I am on Windows2K.

#1686 From: "kpqt01" <kpqt01@...>
Date: Tue Feb 20, 2007 4:52 pm
Subject: Additional functions to test SysTreeView32 control.
kpqt01
Send Email Send Email
 
Hello all,

I've been working with Win32::GuiTest to test our product for about 6
months now.  I notice that there aren't many functions to deal with
SysTreeView32 control.  But, our application using so much TreeView
control, so it force me to write some additional functionality to
navigate around the tree's node.

Since I needed it so bad, I figure some one else might needed it too.
So I'd like to share the code with you guys and hopefully it will be
useful.

I am not confident enough with my C++ programming skill to edit the
Win32::GuiTest module's backend. So, I decided to write just PERL code
using the example that provided with the project.  I notice that some
of the code already exist in the current version of Win32::GuiTest,
but I just has to write these little function to test our application.
  Please keep in mind that my PERL Code skill also kind of poor and
pretty messy.  But it does get things done for me :).

Anyhow, by posting TreeView.pm and TreeView.pm.html files here, I hope
that some of the PERL and C++ Expert out there can correct my mistakes
and make it more useful. I'd also like to ask if one of the project's
Moderator or Programmer can add this little functionality into next
version of Win32::GuiTest.

I don't know how to attached file in Yahoo group's messages so I am
going to temporary put it in the following place. Hopefully one of the
moderators can get the 2 files and post it some where so people can
get it.

http://compxsolution.com/TreeView/TreeView.pm
http://compxsolution.com/TreeView/TreeView.pm.html

If you guys have any question please feel free to email me @
kpham.p@...

Thank you all for a great project.
Khanh Pham

#1687 From: "Piotr Kaluski" <pkaluski@...>
Date: Tue Feb 20, 2007 7:57 pm
Subject: Re: Additional functions to test SysTreeView32 control.
pkaluski
Send Email Send Email
 
Excellent!

Once I have some time I will incorporate in the official release.
Many, many thanks.

--Piotr

--- In perlguitest@yahoogroups.com, "kpqt01" <kpqt01@...> wrote:
>
> Hello all,
>
> I've been working with Win32::GuiTest to test our product for about 6
> months now.  I notice that there aren't many functions to deal with
> SysTreeView32 control.  But, our application using so much TreeView
> control, so it force me to write some additional functionality to
> navigate around the tree's node.
>
> Since I needed it so bad, I figure some one else might needed it too.
> So I'd like to share the code with you guys and hopefully it will be
> useful.
>
> I am not confident enough with my C++ programming skill to edit the
> Win32::GuiTest module's backend. So, I decided to write just PERL code
> using the example that provided with the project.  I notice that some
> of the code already exist in the current version of Win32::GuiTest,
> but I just has to write these little function to test our application.
>  Please keep in mind that my PERL Code skill also kind of poor and
> pretty messy.  But it does get things done for me :).
>
> Anyhow, by posting TreeView.pm and TreeView.pm.html files here, I hope
> that some of the PERL and C++ Expert out there can correct my mistakes
> and make it more useful. I'd also like to ask if one of the project's
> Moderator or Programmer can add this little functionality into next
> version of Win32::GuiTest.
>
> I don't know how to attached file in Yahoo group's messages so I am
> going to temporary put it in the following place. Hopefully one of the
> moderators can get the 2 files and post it some where so people can
> get it.
>
> http://compxsolution.com/TreeView/TreeView.pm
> http://compxsolution.com/TreeView/TreeView.pm.html
>
> If you guys have any question please feel free to email me @
> kpham.p@...
>
> Thank you all for a great project.
> Khanh Pham
>

#1688 From: gs rao <gsrao_ggt@...>
Date: Wed Feb 21, 2007 5:29 am
Subject: Re: Re: silktest vs using win32::GuiTest
gsrao_ggt
Send Email Send Email
 
Hi Brent,

   Thanks for the information.It has so much information about your experience of
working with Win32:GuiTest.Surely, it should help us alot.

   I have a question to you that is I was installed the Active Perl 5.6 in my
system and I have tried to install the Win32:GuitTest 2.2 on the same system.
   I have followed as per the instructions given in the installation process of
the Win32:GuiTest build.
   While installing the build it's giving error message like "it should not be
allowed to install the packages on the current build".

   Can you please tell me how do we install the Win32:GuiTest in my system and
what are the steps do i need to take while installation like do we need to
install the Active Perl latest version or need to upgrade the latest version or
no need to install the Active Perl in my system ?

   Please tell me, Is that Active perl installation will take any affect for the
installation of Win32:GuiTest build ?


   Thanks in advance.

   Subba Rao



brentje <brentje@...> wrote:
           Let me start off by saying that I have not had any formal training in
testing. I have no documentation on any kinds of testing methodology.
Anything I do have was found on the net somewhere. I started my
career off as a programmer, and my interests lay mostly in that area.
Although I do get a kick out of tearing apart someone else's program,
so I've grown to like testing. But basically, I looked at the task
that needed to be done from a programmer's point of view.

Many of us have created our own framework for the application we are
testing. I wouldn't say mine is any better then anyone else's because
I haven't seen anyone else's, but I am proud of it and where it's
going. I didn't even realize what I was making until the basic code
was written. But here are the things I went through.

I was asked to write regression testing scripts, to make sure that the
steps we've laid out in the manual will work. The basic idea I had
was to make emulate a normal user as closely as possible. That means
instead of using code to push a button, I actually move the mouse
cursor there and click. So the first function I wrote was a Move
Mouse command. Since the one in GuiTest instantly moves the cursor to
where you say, I made a loop that moved it incrementally to provide a
delay and to make it look a little more normal. From there, I moved
on to filling fields. I decided I didn't want to blindly click with
mouse coordinates, so I made a function that looked for a field based
on it's label. Once I find the field, I grab it's screen coordinates
and feed that into the Move Mouse function. This way, they can move
the field where ever they want to and I don't have to change my code.
I think after that I starting coding functions that set a combobox to
a specific value, grabbing it's location in the drop-down and moving
the mouse to click on it. After that, things really started getting
out of hand. I've added code to wait for a window based on it's title
or it's contents, added logging features, grab screenshots, added code
to manipulate objects through SendMessage, added XML files to hold
data that drives the scripts, added database code to interact with the
data our software uses, created a system to run multiple scripts, and
probably a few other things I can't think of right now. Next is a
blackbox testing system, where the scripts intentionally try to make
error messages show. Without a doubt, it is a lot of work to get a
system up and running. But the results are worth it in my eyes. I
don't think I would have gotten anywhere near the results I've gotten
if I went with the top commercial choice I had.

But again, this is just my system. It's pretty geared towards the
software I'm testing, although I've tried to make it as generic as
possible. I'm sure others have systems that do things I haven't even
thought of, or provide better ways of doing things. Anyways, this is
the process I've gone through. It's taken me about a year and a half
script about a third of our application, and it'll probably take me
another year or so to script the rest. Well, I hope this helps.

Brent

--- In perlguitest@yahoogroups.com, gs rao <gsrao_ggt@...> wrote:
>
> Hi Brent,
>
> I am new to the win32::GuiTest, I want to do the functionality
testing of an application using win32::GuiTest. Can you please tell me
what are the basic steps, we need to take while designing the
automation test frame work for that application using win32::GuiTest ?
> Is there any kind of frame work for the win32::GuiTest ?
> Or can you please guide me how to start the process of automating
the functionality testing for an application using win32::GuiTest ?
> if you have any specific documents related to the functionality
testing using win32::GuiTest, please send it to me ?
>
> Thanks for your help
>
> Regards,
> G.Subba Rao






---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

[Non-text portions of this message have been removed]

#1689 From: "Suresh Nelamangala" <suresh.avadhani@...>
Date: Wed Feb 21, 2007 7:44 am
Subject: Re: Re: silktest vs using win32::GuiTest
suresh_suraj48
Send Email Send Email
 
hi gs rao,

Can you do this on your machine
perl should be in path before you can type ppm here

C:\>ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState SRL. All Rights Reserved.

Entering interactive shell. Using Term::ReadLine::Stub as readline library.

Type 'help' to get started.

ppm> install Win32:GuiTest




On 2/21/07, gs rao <gsrao_ggt@...> wrote:
>
>   Hi Brent,
>
> Thanks for the information.It has so much information about your
> experience of working with Win32:GuiTest.Surely, it should help us alot.
>
> I have a question to you that is I was installed the Active Perl 5.6 in my
> system and I have tried to install the Win32:GuitTest 2.2 on the same
> system.
> I have followed as per the instructions given in the installation process
> of the Win32:GuiTest build.
> While installing the build it's giving error message like "it should not
> be allowed to install the packages on the current build".
>
> Can you please tell me how do we install the Win32:GuiTest in my system
> and what are the steps do i need to take while installation like do we need
> to install the Active Perl latest version or need to upgrade the latest
> version or no need to install the Active Perl in my system ?
>
> Please tell me, Is that Active perl installation will take any affect for
> the installation of Win32:GuiTest build ?
>
>
> Thanks in advance.
>
> Subba Rao
>
>
>
> brentje <brentje@... <brentje%40yahoo.com>> wrote:
> Let me start off by saying that I have not had any formal training in
> testing. I have no documentation on any kinds of testing methodology.
> Anything I do have was found on the net somewhere. I started my
> career off as a programmer, and my interests lay mostly in that area.
> Although I do get a kick out of tearing apart someone else's program,
> so I've grown to like testing. But basically, I looked at the task
> that needed to be done from a programmer's point of view.
>
> Many of us have created our own framework for the application we are
> testing. I wouldn't say mine is any better then anyone else's because
> I haven't seen anyone else's, but I am proud of it and where it's
> going. I didn't even realize what I was making until the basic code
> was written. But here are the things I went through.
>
> I was asked to write regression testing scripts, to make sure that the
> steps we've laid out in the manual will work. The basic idea I had
> was to make emulate a normal user as closely as possible. That means
> instead of using code to push a button, I actually move the mouse
> cursor there and click. So the first function I wrote was a Move
> Mouse command. Since the one in GuiTest instantly moves the cursor to
> where you say, I made a loop that moved it incrementally to provide a
> delay and to make it look a little more normal. From there, I moved
> on to filling fields. I decided I didn't want to blindly click with
> mouse coordinates, so I made a function that looked for a field based
> on it's label. Once I find the field, I grab it's screen coordinates
> and feed that into the Move Mouse function. This way, they can move
> the field where ever they want to and I don't have to change my code.
> I think after that I starting coding functions that set a combobox to
> a specific value, grabbing it's location in the drop-down and moving
> the mouse to click on it. After that, things really started getting
> out of hand. I've added code to wait for a window based on it's title
> or it's contents, added logging features, grab screenshots, added code
> to manipulate objects through SendMessage, added XML files to hold
> data that drives the scripts, added database code to interact with the
> data our software uses, created a system to run multiple scripts, and
> probably a few other things I can't think of right now. Next is a
> blackbox testing system, where the scripts intentionally try to make
> error messages show. Without a doubt, it is a lot of work to get a
> system up and running. But the results are worth it in my eyes. I
> don't think I would have gotten anywhere near the results I've gotten
> if I went with the top commercial choice I had.
>
> But again, this is just my system. It's pretty geared towards the
> software I'm testing, although I've tried to make it as generic as
> possible. I'm sure others have systems that do things I haven't even
> thought of, or provide better ways of doing things. Anyways, this is
> the process I've gone through. It's taken me about a year and a half
> script about a third of our application, and it'll probably take me
> another year or so to script the rest. Well, I hope this helps.
>
> Brent
>
> --- In perlguitest@yahoogroups.com <perlguitest%40yahoogroups.com>, gs rao
> <gsrao_ggt@...> wrote:
> >
> > Hi Brent,
> >
> > I am new to the win32::GuiTest, I want to do the functionality
> testing of an application using win32::GuiTest. Can you please tell me
> what are the basic steps, we need to take while designing the
> automation test frame work for that application using win32::GuiTest ?
> > Is there any kind of frame work for the win32::GuiTest ?
> > Or can you please guide me how to start the process of automating
> the functionality testing for an application using win32::GuiTest ?
> > if you have any specific documents related to the functionality
> testing using win32::GuiTest, please send it to me ?
> >
> > Thanks for your help
> >
> > Regards,
> > G.Subba Rao
>
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#1690 From: Ernesto Guisado <erngui@...>
Date: Wed Feb 21, 2007 8:45 am
Subject: Re: Re: silktest vs using win32::GuiTest
erngui
Send Email Send Email
 
Suresh Nelamangala wrote:
>
> hi gs rao,
>
> Can you do this on your machine
> perl should be in path before you can type ppm here
>
> C:+AFw->ppm
> PPM - Programmer's Package Manager version 3.1.
> Copyright (c) 2001 ActiveState SRL. All Rights Reserved.
>
> Entering interactive shell. Using Term::ReadLine::Stub as readline
> library.
>
> Type 'help' to get started.
>
> ppm> install Win32:GuiTest
>
> On 2/21/07, gs rao <gsrao+AF8-ggt+AEA-yahoo.com
> <mailto:gsrao+AF8-ggt+ACU-40yahoo.com>> wrote:
> >
> > Hi Brent,
> >
> > Thanks for the information.It has so much information about your
> > experience of working with Win32:GuiTest.Surely, it should help us alot.
> >
> > I have a question to you that is I was installed the Active Perl 5.6
> in my
> > system and I have tried to install the Win32:GuitTest 2.2 on the same
> > system.
> > I have followed as per the instructions given in the installation
> process
> > of the Win32:GuiTest build.
> > While installing the build it's giving error message like "it should not
> > be allowed to install the packages on the current build".
> >
> > Can you please tell me how do we install the Win32:GuiTest in my system
> > and what are the steps do i need to take while installation like do
> we need
> > to install the Active Perl latest version or need to upgrade the latest
> > version or no need to install the Active Perl in my system ?
> >
> > Please tell me, Is that Active perl installation will take any
> affect for
> > the installation of Win32:GuiTest build ?
> >
> >
> > Thanks in advance.
> >
> > Subba Rao
> >
> >
> >
> > brentje <brentje+AEA-yahoo.com <mailto:brentje+ACU-40yahoo.com>
> <brentje+ACU-40yahoo.com>> wrote:
> > Let me start off by saying that I have not had any formal training in
> > testing. I have no documentation on any kinds of testing methodology.
> > Anything I do have was found on the net somewhere. I started my
> > career off as a programmer, and my interests lay mostly in that area.
> > Although I do get a kick out of tearing apart someone else's program,
> > so I've grown to like testing. But basically, I looked at the task
> > that needed to be done from a programmer's point of view.
> >
> > Many of us have created our own framework for the application we are
> > testing. I wouldn't say mine is any better then anyone else's because
> > I haven't seen anyone else's, but I am proud of it and where it's
> > going. I didn't even realize what I was making until the basic code
> > was written. But here are the things I went through.
> >
> > I was asked to write regression testing scripts, to make sure that the
> > steps we've laid out in the manual will work. The basic idea I had
> > was to make emulate a normal user as closely as possible. That means
> > instead of using code to push a button, I actually move the mouse
> > cursor there and click. So the first function I wrote was a Move
> > Mouse command. Since the one in GuiTest instantly moves the cursor to
> > where you say, I made a loop that moved it incrementally to provide a
> > delay and to make it look a little more normal. From there, I moved
> > on to filling fields. I decided I didn't want to blindly click with
> > mouse coordinates, so I made a function that looked for a field based
> > on it's label. Once I find the field, I grab it's screen coordinates
> > and feed that into the Move Mouse function. This way, they can move
> > the field where ever they want to and I don't have to change my code.
> > I think after that I starting coding functions that set a combobox to
> > a specific value, grabbing it's location in the drop-down and moving
> > the mouse to click on it. After that, things really started getting
> > out of hand. I've added code to wait for a window based on it's title
> > or it's contents, added logging features, grab screenshots, added code
> > to manipulate objects through SendMessage, added XML files to hold
> > data that drives the scripts, added database code to interact with the
> > data our software uses, created a system to run multiple scripts, and
> > probably a few other things I can't think of right now. Next is a
> > blackbox testing system, where the scripts intentionally try to make
> > error messages show. Without a doubt, it is a lot of work to get a
> > system up and running. But the results are worth it in my eyes. I
> > don't think I would have gotten anywhere near the results I've gotten
> > if I went with the top commercial choice I had.
> >
> > But again, this is just my system. It's pretty geared towards the
> > software I'm testing, although I've tried to make it as generic as
> > possible. I'm sure others have systems that do things I haven't even
> > thought of, or provide better ways of doing things. Anyways, this is
> > the process I've gone through. It's taken me about a year and a half
> > script about a third of our application, and it'll probably take me
> > another year or so to script the rest. Well, I hope this helps.
> >
> > Brent
> >
> > --- In perlguitest+AEA-yahoogroups.com
> <mailto:perlguitest+ACU-40yahoogroups.com>
> <perlguitest+ACU-40yahoogroups.com>, gs rao
> > <gsrao+AF8-ggt+AEA-...> wrote:
> > >
> > > Hi Brent,
> > >
> > > I am new to the win32::GuiTest, I want to do the functionality
> > testing of an application using win32::GuiTest. Can you please tell me
> > what are the basic steps, we need to take while designing the
> > automation test frame work for that application using win32::GuiTest ?
> > > Is there any kind of frame work for the win32::GuiTest ?
> > > Or can you please guide me how to start the process of automating
> > the functionality testing for an application using win32::GuiTest ?
> > > if you have any specific documents related to the functionality
> > testing using win32::GuiTest, please send it to me ?
> > >
> > > Thanks for your help
> > >
> > > Regards,
> > > G.Subba Rao
> >
> > ---------------------------------
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q+ACY-A for great tips from Yahoo! Answers users.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> +AF8AXw-.+AF8-,+AF8-.+AF8AXwBf-
> Messages in this topic
>
<http://groups.yahoo.com/group/perlguitest/message/1663;+AF8-ylc=X3oDMTM0b3QzdWh\
vBF9TAzk3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBG1zZ0lkAzE2ODkEc2V\
jA2Z0cgRzbGsDdnRwYwRzdGltZQMxMTcyMDQ0Mzc5BHRwY0lkAzE2NjM->
> (11) Reply (via web post)
>
<http://groups.yahoo.com/group/perlguitest/post;+AF8-ylc=X3oDMTJwN3Y4M2NpBF9TAzk\
3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBG1zZ0lkAzE2ODkEc2VjA2Z0cgR\
zbGsDcnBseQRzdGltZQMxMTcyMDQ0Mzc5?act=reply+ACY-messageNum=1689>
> +AHw- Start a new topic
>
<http://groups.yahoo.com/group/perlguitest/post;+AF8-ylc=X3oDMTJlZDU5dTNwBF9TAzk\
3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA250cGMEc3R\
pbWUDMTE3MjA0NDM3OQ-->
>
> Messages
>
<http://groups.yahoo.com/group/perlguitest/messages;+AF8-ylc=X3oDMTJlYXZxYXM2BF9\
TAzk3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA21zZ3M\
Ec3RpbWUDMTE3MjA0NDM3OQ-->
> +AHw- Links
>
<http://groups.yahoo.com/group/perlguitest/links;+AF8-ylc=X3oDMTJmOHUzaTRrBF9TAz\
k3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA2xpbmtzBH\
N0aW1lAzExNzIwNDQzNzk->
> +AHw- Database
>
<http://groups.yahoo.com/group/perlguitest/database;+AF8-ylc=X3oDMTJjazhnMnU3BF9\
TAzk3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA2RiBHN\
0aW1lAzExNzIwNDQzNzk->
> +AHw- Polls
>
<http://groups.yahoo.com/group/perlguitest/polls;+AF8-ylc=X3oDMTJmMDRubDBwBF9TAz\
k3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA3BvbGxzBH\
N0aW1lAzExNzIwNDQzNzk->
> +AHw- Members
>
<http://groups.yahoo.com/group/perlguitest/members;+AF8-ylc=X3oDMTJlNXR2dmQzBF9T\
Azk3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA21icnME\
c3RpbWUDMTE3MjA0NDM3OQ-->
> +AHw- Calendar
>
<http://groups.yahoo.com/group/perlguitest/calendar;+AF8-ylc=X3oDMTJkMzdoZG9mBF9\
TAzk3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA2NhbAR\
zdGltZQMxMTcyMDQ0Mzc5>
>
> Yahoo! Groups
>
<http://groups.yahoo.com/;+AF8-ylc=X3oDMTJkOXVvcGdsBF9TAzk3MzU5NzE0BGdycElkAzM2O\
DkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMTcyMDQ0Mzc5>
>
> Change settings via the Web
>
<http://groups.yahoo.com/group/perlguitest/join;+AF8-ylc=X3oDMTJma3YxN3VsBF9TAzk\
3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA3N0bmdzBHN\
0aW1lAzExNzIwNDQzNzk->
> (Yahoo! ID required)
> Change settings via email: Switch delivery to Daily Digest
>
<mailto:perlguitest-digest+AEA-yahoogroups.com?subject=Email+ACU-20Delivery:+ACU\
-20Digest>
> +AHw- Switch format to Traditional
>
<mailto:perlguitest-traditional+AEA-yahoogroups.com?subject=Change+ACU-20Deliver\
y+ACU-20Format:+ACU-20Traditional>
>
> Visit Your Group
>
<http://groups.yahoo.com/group/perlguitest;+AF8-ylc=X3oDMTJkZWxua2RrBF9TAzk3MzU5\
NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwNmdHIEc2xrA2hwZgRzdGltZQMx\
MTcyMDQ0Mzc5>
> +AHw- Yahoo! Groups Terms of Use <http://docs.yahoo.com/info/terms/> +AHw-
> Unsubscribe <mailto:perlguitest-unsubscribe+AEA-yahoogroups.com?subject=>
> Recent Activity
>
>    +ACo-
>        13
>       New Members
>      
<http://groups.yahoo.com/group/perlguitest/members;+AF8-ylc=X3oDMTJmOW51dnVqBF9T\
Azk3MzU5NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwN2dGwEc2xrA3ZtYnJz\
BHN0aW1lAzExNzIwNDQzNzk->
>
> Visit Your Group
>
<http://groups.yahoo.com/group/perlguitest;+AF8-ylc=X3oDMTJlNGsxcGxxBF9TAzk3MzU5\
NzE0BGdycElkAzM2ODkzNjEEZ3Jwc3BJZAMxNzA1MDA2OTUxBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUD\
MTE3MjA0NDM3OQ-->
>
> Give Back
>
> Yahoo! for Good
>
<http://us.lrd.yahoo.com/+AF8-ylc=X3oDMTJtOWcyY29uBF9TAzk3MzU5NzE0BF9wAzEEZ3JwSW\
QDMzY4OTM2MQRncnBzcElkAzE3MDUwMDY5NTEEc2VjA25jbW9kBHNsawNicmFuZARzdGltZQMxMTcyMD\
Q0Mzc5;+AF8-ylg=1/SIG=11314uv3k/+ACoAKg-http+ACU-3A//brand.yahoo.com/forgood>
>
> Get inspired
>
> by a good cause.
>
> Y! Toolbar
>
> Get it Free!
>
<http://us.lrd.yahoo.com/+AF8-ylc=X3oDMTJvdDVqNHM4BF9TAzk3MzU5NzE0BF9wAzIEZ3JwSW\
QDMzY4OTM2MQRncnBzcElkAzE3MDUwMDY5NTEEc2VjA25jbW9kBHNsawN0b29sYmFyBHN0aW1lAzExNz\
IwNDQzNzk-;+AF8-ylg=1/SIG=11c6dvmk9/+ACoAKg-http+ACU-3A//toolbar.yahoo.com/+ACU-\
3F.cpdl=ygrps>
>
> easy 1-click access
>
> to your groups.
>
> Yahoo! Groups
>
> Start a group
>
<http://groups.yahoo.com/start;+AF8-ylc=X3oDMTJvdGpkOTBjBF9TAzk3MzU5NzE0BF9wAzME\
Z3JwSWQDMzY4OTM2MQRncnBzcElkAzE3MDUwMDY5NTEEc2VjA25jbW9kBHNsawNncm91cHMyBHN0aW1l\
AzExNzIwNDQzNzk->
>
> in 3 easy steps.
>
> Connect with others.
>
> .
>
> +AF8AXw-,+AF8-.+AF8-,+AF8AXwBf-

#1691 From: "evenprime" <evenprime@...>
Date: Wed Feb 21, 2007 1:02 am
Subject: freeze keyboard and mouse during tests?
evenprime
Send Email Send Email
 
Is their any way to freeze the keyboard and mouse during automation?

I actually use GUI-test to automate gui-only configurations settings
now and then, and users tend to sabotage things pretty dandily.

But I imagine many a test has been sabotaged by accidental knocking of
the mouse or keyboard or even natural mouse-float in LED mice :^)

Ideas?

#1692 From: gs rao <gsrao_ggt@...>
Date: Wed Feb 21, 2007 8:53 am
Subject: Re: Re: silktest vs using win32::GuiTest
gsrao_ggt
Send Email Send Email
 
Hi Suresh,

   Thanks for the information.
   As per your instruction, i have tried by typing the ppm at command prompt,
it's invoking the Perl Package Manager window and control is going to next line
and blinking there in the command prompt.
   In the perl package manager window, it's displaying the status like
"Synchronizing Database ... done"

   I didn't get any message like "PPM - Programmers package..." ?

   Do we need to change any settings in the ppm window ? Can you please help me
on this ?

   Regards,
   G.Subba Rao


Suresh Nelamangala <suresh.avadhani@...> wrote:
           hi gs rao,

Can you do this on your machine
perl should be in path before you can type ppm here

C:\>ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState SRL. All Rights Reserved.

Entering interactive shell. Using Term::ReadLine::Stub as readline library.

Type 'help' to get started.

ppm> install Win32:GuiTest

On 2/21/07, gs rao <gsrao_ggt@...> wrote:
>
> Hi Brent,
>
> Thanks for the information.It has so much information about your
> experience of working with Win32:GuiTest.Surely, it should help us alot.
>
> I have a question to you that is I was installed the Active Perl 5.6 in my
> system and I have tried to install the Win32:GuitTest 2.2 on the same
> system.
> I have followed as per the instructions given in the installation process
> of the Win32:GuiTest build.
> While installing the build it's giving error message like "it should not
> be allowed to install the packages on the current build".
>
> Can you please tell me how do we install the Win32:GuiTest in my system
> and what are the steps do i need to take while installation like do we need
> to install the Active Perl latest version or need to upgrade the latest
> version or no need to install the Active Perl in my system ?
>
> Please tell me, Is that Active perl installation will take any affect for
> the installation of Win32:GuiTest build ?
>
>
> Thanks in advance.
>
> Subba Rao
>
>
>
> brentje <brentje@... <brentje%40yahoo.com>> wrote:
> Let me start off by saying that I have not had any formal training in
> testing. I have no documentation on any kinds of testing methodology.
> Anything I do have was found on the net somewhere. I started my
> career off as a programmer, and my interests lay mostly in that area.
> Although I do get a kick out of tearing apart someone else's program,
> so I've grown to like testing. But basically, I looked at the task
> that needed to be done from a programmer's point of view.
>
> Many of us have created our own framework for the application we are
> testing. I wouldn't say mine is any better then anyone else's because
> I haven't seen anyone else's, but I am proud of it and where it's
> going. I didn't even realize what I was making until the basic code
> was written. But here are the things I went through.
>
> I was asked to write regression testing scripts, to make sure that the
> steps we've laid out in the manual will work. The basic idea I had
> was to make emulate a normal user as closely as possible. That means
> instead of using code to push a button, I actually move the mouse
> cursor there and click. So the first function I wrote was a Move
> Mouse command. Since the one in GuiTest instantly moves the cursor to
> where you say, I made a loop that moved it incrementally to provide a
> delay and to make it look a little more normal. From there, I moved
> on to filling fields. I decided I didn't want to blindly click with
> mouse coordinates, so I made a function that looked for a field based
> on it's label. Once I find the field, I grab it's screen coordinates
> and feed that into the Move Mouse function. This way, they can move
> the field where ever they want to and I don't have to change my code.
> I think after that I starting coding functions that set a combobox to
> a specific value, grabbing it's location in the drop-down and moving
> the mouse to click on it. After that, things really started getting
> out of hand. I've added code to wait for a window based on it's title
> or it's contents, added logging features, grab screenshots, added code
> to manipulate objects through SendMessage, added XML files to hold
> data that drives the scripts, added database code to interact with the
> data our software uses, created a system to run multiple scripts, and
> probably a few other things I can't think of right now. Next is a
> blackbox testing system, where the scripts intentionally try to make
> error messages show. Without a doubt, it is a lot of work to get a
> system up and running. But the results are worth it in my eyes. I
> don't think I would have gotten anywhere near the results I've gotten
> if I went with the top commercial choice I had.
>
> But again, this is just my system. It's pretty geared towards the
> software I'm testing, although I've tried to make it as generic as
> possible. I'm sure others have systems that do things I haven't even
> thought of, or provide better ways of doing things. Anyways, this is
> the process I've gone through. It's taken me about a year and a half
> script about a third of our application, and it'll probably take me
> another year or so to script the rest. Well, I hope this helps.
>
> Brent
>
> --- In perlguitest@yahoogroups.com <perlguitest%40yahoogroups.com>, gs rao
> <gsrao_ggt@...> wrote:
> >
> > Hi Brent,
> >
> > I am new to the win32::GuiTest, I want to do the functionality
> testing of an application using win32::GuiTest. Can you please tell me
> what are the basic steps, we need to take while designing the
> automation test frame work for that application using win32::GuiTest ?
> > Is there any kind of frame work for the win32::GuiTest ?
> > Or can you please guide me how to start the process of automating
> the functionality testing for an application using win32::GuiTest ?
> > if you have any specific documents related to the functionality
> testing using win32::GuiTest, please send it to me ?
> >
> > Thanks for your help
> >
> > Regards,
> > G.Subba Rao
>
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
>
> [Non-text portions of this message have been removed]
>
>
>

[Non-text portions of this message have been removed]






---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

[Non-text portions of this message have been removed]

#1693 From: "Suresh Nelamangala" <suresh.avadhani@...>
Date: Wed Feb 21, 2007 9:45 am
Subject: Re: Re: silktest vs using win32::GuiTest
suresh_suraj48
Send Email Send Email
 
when you type ppm , does a GUI window get launched out of your DOS Prompt ?
IF its a GUI window of PPM , then there must be a install option.

What is the output on your DOS Prompt when you type ppm there , can you cut
paste it here?
You must have internet on the machine in which you are trying to install
win32:guitest
reason : PPM will access CPAN.

One more option to get ppm will be

Start - Programs - ActiveStatePerl - Perl Package Manager

Have you tried this first ?

In the active state perl documentation look for - > Using PPM to install
modules

Hope this helps




On 2/21/07, gs rao <gsrao_ggt@...> wrote:
>
>   Hi Suresh,
>
> Thanks for the information.
> As per your instruction, i have tried by typing the ppm at command prompt,
> it's invoking the Perl Package Manager window and control is going to next
> line and blinking there in the command prompt.
> In the perl package manager window, it's displaying the status like
> "Synchronizing Database ... done"
>
> I didn't get any message like "PPM - Programmers package..." ?
>
> Do we need to change any settings in the ppm window ? Can you please help
> me on this ?
>
> Regards,
> G.Subba Rao
>
>
>
> Suresh Nelamangala <suresh.avadhani@...<suresh.avadhani%40gmail.com>>
> wrote:
> hi gs rao,
>
> Can you do this on your machine
> perl should be in path before you can type ppm here
>
> C:\>ppm
> PPM - Programmer's Package Manager version 3.1.
> Copyright (c) 2001 ActiveState SRL. All Rights Reserved.
>
> Entering interactive shell. Using Term::ReadLine::Stub as readline
> library.
>
> Type 'help' to get started.
>
> ppm> install Win32:GuiTest
>
> On 2/21/07, gs rao <gsrao_ggt@... <gsrao_ggt%40yahoo.com>> wrote:
> >
> > Hi Brent,
> >
> > Thanks for the information.It has so much information about your
> > experience of working with Win32:GuiTest.Surely, it should help us alot.
> >
> > I have a question to you that is I was installed the Active Perl 5.6 in
> my
> > system and I have tried to install the Win32:GuitTest 2.2 on the same
> > system.
> > I have followed as per the instructions given in the installation
> process
> > of the Win32:GuiTest build.
> > While installing the build it's giving error message like "it should not
> > be allowed to install the packages on the current build".
> >
> > Can you please tell me how do we install the Win32:GuiTest in my system
> > and what are the steps do i need to take while installation like do we
> need
> > to install the Active Perl latest version or need to upgrade the latest
> > version or no need to install the Active Perl in my system ?
> >
> > Please tell me, Is that Active perl installation will take any affect
> for
> > the installation of Win32:GuiTest build ?
> >
> >
> > Thanks in advance.
> >
> > Subba Rao
> >
> >
> >
> > brentje <brentje@... <brentje%40yahoo.com> <brentje%40yahoo.com>>
> wrote:
> > Let me start off by saying that I have not had any formal training in
> > testing. I have no documentation on any kinds of testing methodology.
> > Anything I do have was found on the net somewhere. I started my
> > career off as a programmer, and my interests lay mostly in that area.
> > Although I do get a kick out of tearing apart someone else's program,
> > so I've grown to like testing. But basically, I looked at the task
> > that needed to be done from a programmer's point of view.
> >
> > Many of us have created our own framework for the application we are
> > testing. I wouldn't say mine is any better then anyone else's because
> > I haven't seen anyone else's, but I am proud of it and where it's
> > going. I didn't even realize what I was making until the basic code
> > was written. But here are the things I went through.
> >
> > I was asked to write regression testing scripts, to make sure that the
> > steps we've laid out in the manual will work. The basic idea I had
> > was to make emulate a normal user as closely as possible. That means
> > instead of using code to push a button, I actually move the mouse
> > cursor there and click. So the first function I wrote was a Move
> > Mouse command. Since the one in GuiTest instantly moves the cursor to
> > where you say, I made a loop that moved it incrementally to provide a
> > delay and to make it look a little more normal. From there, I moved
> > on to filling fields. I decided I didn't want to blindly click with
> > mouse coordinates, so I made a function that looked for a field based
> > on it's label. Once I find the field, I grab it's screen coordinates
> > and feed that into the Move Mouse function. This way, they can move
> > the field where ever they want to and I don't have to change my code.
> > I think after that I starting coding functions that set a combobox to
> > a specific value, grabbing it's location in the drop-down and moving
> > the mouse to click on it. After that, things really started getting
> > out of hand. I've added code to wait for a window based on it's title
> > or it's contents, added logging features, grab screenshots, added code
> > to manipulate objects through SendMessage, added XML files to hold
> > data that drives the scripts, added database code to interact with the
> > data our software uses, created a system to run multiple scripts, and
> > probably a few other things I can't think of right now. Next is a
> > blackbox testing system, where the scripts intentionally try to make
> > error messages show. Without a doubt, it is a lot of work to get a
> > system up and running. But the results are worth it in my eyes. I
> > don't think I would have gotten anywhere near the results I've gotten
> > if I went with the top commercial choice I had.
> >
> > But again, this is just my system. It's pretty geared towards the
> > software I'm testing, although I've tried to make it as generic as
> > possible. I'm sure others have systems that do things I haven't even
> > thought of, or provide better ways of doing things. Anyways, this is
> > the process I've gone through. It's taken me about a year and a half
> > script about a third of our application, and it'll probably take me
> > another year or so to script the rest. Well, I hope this helps.
> >
> > Brent
> >
> > --- In perlguitest@yahoogroups.com
<perlguitest%40yahoogroups.com><perlguitest%40yahoogroups.com>, gs rao
> > <gsrao_ggt@...> wrote:
> > >
> > > Hi Brent,
> > >
> > > I am new to the win32::GuiTest, I want to do the functionality
> > testing of an application using win32::GuiTest. Can you please tell me
> > what are the basic steps, we need to take while designing the
> > automation test frame work for that application using win32::GuiTest ?
> > > Is there any kind of frame work for the win32::GuiTest ?
> > > Or can you please guide me how to start the process of automating
> > the functionality testing for an application using win32::GuiTest ?
> > > if you have any specific documents related to the functionality
> > testing using win32::GuiTest, please send it to me ?
> > >
> > > Thanks for your help
> > >
> > > Regards,
> > > G.Subba Rao
> >
> > ---------------------------------
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ---------------------------------
> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games.
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#1694 From: gs rao <gsrao_ggt@...>
Date: Wed Feb 21, 2007 5:02 am
Subject: Reg : Getting problem while installing the Win32:GuiTest
gsrao_ggt
Send Email Send Email
 
Hi Piotr,

   I am new to the Win32:GuiTest programming.I have downloaded the installable
folder from your site and tried for installation.I have already installed the
Active Perl 5.6 in my system and I have tried to install the Win32:GuiTest on
the same system.
   As per the instructions, I have started the installation.

   After giving  value for this statement Install package
'C:\temp\win32-guitest.ppd?' (y/N): Y, it's giving the error message like "it's
not installable in the current build".

   Is there any restriction or presteps we need to take care before the
installation of the Win32:GuiTest ? Can you please tell me do we need to install
the latest Active Perl version or the current Active Perl 5.6 version is fine to
install the Win32:GuiTest in my system.

   Please let me know, if you need more information.

   Thanks in advance.

   Regards,
   G.Subba Rao



Piotr Kaluski <pkaluski@...> wrote:
           Excellent!

Once I have some time I will incorporate in the official release.
Many, many thanks.

--Piotr

--- In perlguitest@yahoogroups.com, "kpqt01" <kpqt01@...> wrote:
>
> Hello all,
>
> I've been working with Win32::GuiTest to test our product for about 6
> months now. I notice that there aren't many functions to deal with
> SysTreeView32 control. But, our application using so much TreeView
> control, so it force me to write some additional functionality to
> navigate around the tree's node.
>
> Since I needed it so bad, I figure some one else might needed it too.
> So I'd like to share the code with you guys and hopefully it will be
> useful.
>
> I am not confident enough with my C++ programming skill to edit the
> Win32::GuiTest module's backend. So, I decided to write just PERL code
> using the example that provided with the project. I notice that some
> of the code already exist in the current version of Win32::GuiTest,
> but I just has to write these little function to test our application.
> Please keep in mind that my PERL Code skill also kind of poor and
> pretty messy. But it does get things done for me :).
>
> Anyhow, by posting TreeView.pm and TreeView.pm.html files here, I hope
> that some of the PERL and C++ Expert out there can correct my mistakes
> and make it more useful. I'd also like to ask if one of the project's
> Moderator or Programmer can add this little functionality into next
> version of Win32::GuiTest.
>
> I don't know how to attached file in Yahoo group's messages so I am
> going to temporary put it in the following place. Hopefully one of the
> moderators can get the 2 files and post it some where so people can
> get it.
>
> http://compxsolution.com/TreeView/TreeView.pm
> http://compxsolution.com/TreeView/TreeView.pm.html
>
> If you guys have any question please feel free to email me @
> kpham.p@...
>
> Thank you all for a great project.
> Khanh Pham
>






---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

[Non-text portions of this message have been removed]

#1695 From: <jmvt@...>
Date: Wed Feb 21, 2007 3:03 pm
Subject: Re: Re: wait states while window is busy painting
dukestefjen
Send Email Send Email
 
Actually, the SendMessage might be a good approach. WaitWindow seems to work
pretty good for me. My application has a huge grid object that has to fill in
and I need to make sure thats done before I can proceed.

Thanks.

>From: Piotr Kaluski <pkaluski@...>
>Date: 2007/02/20 Tue AM 08:44:05 CST
>To: perlguitest@yahoogroups.com
>Subject: [perlguitest] Re: wait states while window is busy painting

>
>I have to warn you, that WaitForReady not always work. It does not
>work when you use Terminal Server.
>The way I am trying to to solve this problem is to wait for particular
>control(s) to appear. In most cases there is a control, which is
>created on the end, so if you find it (by using WaitWindow), you can
>assume that a whole window is almost ready.
>I am also under impression, that if you Send a message to such a
>window, SendMessage will not return until the window is ready. But I
>am not sure.
>
>--Piotr
>
>--- In perlguitest@yahoogroups.com, "brentje" <brentje@...> wrote:
>>
>> There is a WaitForReady function available in GuiTest.  I've added a 1
>> second buffer just in case whenever I wait for a window to load.
>>
>> --- In perlguitest@yahoogroups.com, "dukestefjen" <dukestefjen@> wrote:
>> >
>> > What is the best way to get my guitest script to wait until a window
>> > has updated its content. On a slower machine, the application process
>> > is idle before the windowing system has completed painting the window.
>> >
>>
>
>

#1696 From: gs rao <gsrao_ggt@...>
Date: Wed Feb 21, 2007 3:25 pm
Subject: Re: Re: silktest vs using win32::GuiTest
gsrao_ggt
Send Email Send Email
 
Hi Suresh,

   Thanks for your response.
   It's working fine.

   Once again thank you very much for your timely response.

   Subba Rao

Suresh Nelamangala <suresh.avadhani@...> wrote:
           when you type ppm , does a GUI window get launched out of your DOS
Prompt ?
IF its a GUI window of PPM , then there must be a install option.

What is the output on your DOS Prompt when you type ppm there , can you cut
paste it here?
You must have internet on the machine in which you are trying to install
win32:guitest
reason : PPM will access CPAN.

One more option to get ppm will be

Start - Programs - ActiveStatePerl - Perl Package Manager

Have you tried this first ?

In the active state perl documentation look for - > Using PPM to install
modules

Hope this helps

On 2/21/07, gs rao <gsrao_ggt@...> wrote:
>
> Hi Suresh,
>
> Thanks for the information.
> As per your instruction, i have tried by typing the ppm at command prompt,
> it's invoking the Perl Package Manager window and control is going to next
> line and blinking there in the command prompt.
> In the perl package manager window, it's displaying the status like
> "Synchronizing Database ... done"
>
> I didn't get any message like "PPM - Programmers package..." ?
>
> Do we need to change any settings in the ppm window ? Can you please help
> me on this ?
>
> Regards,
> G.Subba Rao
>
>
>
> Suresh Nelamangala <suresh.avadhani@...<suresh.avadhani%40gmail.com>>
> wrote:
> hi gs rao,
>
> Can you do this on your machine
> perl should be in path before you can type ppm here
>
> C:\>ppm
> PPM - Programmer's Package Manager version 3.1.
> Copyright (c) 2001 ActiveState SRL. All Rights Reserved.
>
> Entering interactive shell. Using Term::ReadLine::Stub as readline
> library.
>
> Type 'help' to get started.
>
> ppm> install Win32:GuiTest
>
> On 2/21/07, gs rao <gsrao_ggt@... <gsrao_ggt%40yahoo.com>> wrote:
> >
> > Hi Brent,
> >
> > Thanks for the information.It has so much information about your
> > experience of working with Win32:GuiTest.Surely, it should help us alot.
> >
> > I have a question to you that is I was installed the Active Perl 5.6 in
> my
> > system and I have tried to install the Win32:GuitTest 2.2 on the same
> > system.
> > I have followed as per the instructions given in the installation
> process
> > of the Win32:GuiTest build.
> > While installing the build it's giving error message like "it should not
> > be allowed to install the packages on the current build".
> >
> > Can you please tell me how do we install the Win32:GuiTest in my system
> > and what are the steps do i need to take while installation like do we
> need
> > to install the Active Perl latest version or need to upgrade the latest
> > version or no need to install the Active Perl in my system ?
> >
> > Please tell me, Is that Active perl installation will take any affect
> for
> > the installation of Win32:GuiTest build ?
> >
> >
> > Thanks in advance.
> >
> > Subba Rao
> >
> >
> >
> > brentje <brentje@... <brentje%40yahoo.com> <brentje%40yahoo.com>>
> wrote:
> > Let me start off by saying that I have not had any formal training in
> > testing. I have no documentation on any kinds of testing methodology.
> > Anything I do have was found on the net somewhere. I started my
> > career off as a programmer, and my interests lay mostly in that area.
> > Although I do get a kick out of tearing apart someone else's program,
> > so I've grown to like testing. But basically, I looked at the task
> > that needed to be done from a programmer's point of view.
> >
> > Many of us have created our own framework for the application we are
> > testing. I wouldn't say mine is any better then anyone else's because
> > I haven't seen anyone else's, but I am proud of it and where it's
> > going. I didn't even realize what I was making until the basic code
> > was written. But here are the things I went through.
> >
> > I was asked to write regression testing scripts, to make sure that the
> > steps we've laid out in the manual will work. The basic idea I had
> > was to make emulate a normal user as closely as possible. That means
> > instead of using code to push a button, I actually move the mouse
> > cursor there and click. So the first function I wrote was a Move
> > Mouse command. Since the one in GuiTest instantly moves the cursor to
> > where you say, I made a loop that moved it incrementally to provide a
> > delay and to make it look a little more normal. From there, I moved
> > on to filling fields. I decided I didn't want to blindly click with
> > mouse coordinates, so I made a function that looked for a field based
> > on it's label. Once I find the field, I grab it's screen coordinates
> > and feed that into the Move Mouse function. This way, they can move
> > the field where ever they want to and I don't have to change my code.
> > I think after that I starting coding functions that set a combobox to
> > a specific value, grabbing it's location in the drop-down and moving
> > the mouse to click on it. After that, things really started getting
> > out of hand. I've added code to wait for a window based on it's title
> > or it's contents, added logging features, grab screenshots, added code
> > to manipulate objects through SendMessage, added XML files to hold
> > data that drives the scripts, added database code to interact with the
> > data our software uses, created a system to run multiple scripts, and
> > probably a few other things I can't think of right now. Next is a
> > blackbox testing system, where the scripts intentionally try to make
> > error messages show. Without a doubt, it is a lot of work to get a
> > system up and running. But the results are worth it in my eyes. I
> > don't think I would have gotten anywhere near the results I've gotten
> > if I went with the top commercial choice I had.
> >
> > But again, this is just my system. It's pretty geared towards the
> > software I'm testing, although I've tried to make it as generic as
> > possible. I'm sure others have systems that do things I haven't even
> > thought of, or provide better ways of doing things. Anyways, this is
> > the process I've gone through. It's taken me about a year and a half
> > script about a third of our application, and it'll probably take me
> > another year or so to script the rest. Well, I hope this helps.
> >
> > Brent
> >
> > --- In perlguitest@yahoogroups.com
<perlguitest%40yahoogroups.com><perlguitest%40yahoogroups.com>, gs rao
> > <gsrao_ggt@...> wrote:
> > >
> > > Hi Brent,
> > >
> > > I am new to the win32::GuiTest, I want to do the functionality
> > testing of an application using win32::GuiTest. Can you please tell me
> > what are the basic steps, we need to take while designing the
> > automation test frame work for that application using win32::GuiTest ?
> > > Is there any kind of frame work for the win32::GuiTest ?
> > > Or can you please guide me how to start the process of automating
> > the functionality testing for an application using win32::GuiTest ?
> > > if you have any specific documents related to the functionality
> > testing using win32::GuiTest, please send it to me ?
> > >
> > > Thanks for your help
> > >
> > > Regards,
> > > G.Subba Rao
> >
> > ---------------------------------
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ---------------------------------
> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games.
>
> [Non-text portions of this message have been removed]
>
>
>

[Non-text portions of this message have been removed]






---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.

[Non-text portions of this message have been removed]

#1697 From: "Tim Mitchell" <maxquig@...>
Date: Wed Feb 21, 2007 6:01 pm
Subject: Re: SelTreeViewItemPath gets stuck in endless loop
tmaxquig
Send Email Send Email
 
Piotr,

Sorry I took so long in testing this. The good news is that
SelTreeViewItemPath no longer gets stuck in an endless loop when the
item is not found on the tree. The bad news is that it doesn't
return a flag of any kind to indicate whether or not it is
successful. If not successfule it gives an error message "No such
child SubsetsXXX at C:/Perl/site/lib/SMTpats/TKS.pm line 1579". In
this example line 1579 is the line that calls the function.

Tim
--- In perlguitest@yahoogroups.com, "Piotr Kaluski" <pkaluski@...>
wrote:
>
> Oopss!
> I am sorry. It is in files section of this group. I have added only
> GuiTest.pm file, not the whole package.
>
> --Piotr
>
>
> --- In perlguitest@yahoogroups.com, "Tim Mitchell" <maxquig@>
wrote:
> >
> > "I have added GuiTest.pm file with a fix." ...added it to what?
I'd
> > like to try it today, but where is it?
> >
> > Tim
> > --- In perlguitest@yahoogroups.com, "Piotr Kaluski" <pkaluski@>
> > wrote:
> > >
> > > Hi,
> > > I have added GuiTest.pm file with a fix. Could you please try
if it
> > > works? Just take the file and replace the current one in your
perl
> > > library directory (something like perl\site\lib\win32\)
> > >
> > > It works at least for me.
> > >
> > > See below for diffs.
> > >
> > > Brent, I am impressed by your thorough analysis. This is
actually
> > your
> > > fix, because after reading your post it took me 10 minutes to
> > > implement a solution. Thanks for your help.
> > >
> > > Let me know if it works for you.
> > >
> > >
> > > diff -c -r1.40 guitest.pm
> > > *** guitest.pm  29 Nov 2005 03:50:46 -0000      1.40
> > > --- guitest.pm  13 Oct 2006 20:33:00 -0000
> > > ***************
> > > *** 89,94 ****
> > > --- 89,95 ----
> > >
> > >   package Win32::GuiTest;
> > >
> > > + use Carp;
> > >   use strict;
> > >   use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $debug %
> > EXPORT_TAGS);
> > >
> > > ***************
> > > *** 1332,1338 ****
> > >                                      $max_buf,
> > >                                      $delay,
> > >                                      @parts );
> > > !             }
> > >           }else{
> > >               $hItem = SendMessage( $hwnd,
> > >                                     TVM_GETNEXTITEM(),
> > > --- 1333,1342 ----
> > >                                      $max_buf,
> > >                                      $delay,
> > >                                      @parts );
> > > !             }else{
> > > !                 carp "No children under $parts[ 0 ]";
> > > !                 return 0;
> > > !             }
> > >           }else{
> > >               $hItem = SendMessage( $hwnd,
> > >                                     TVM_GETNEXTITEM(),
> > > ***************
> > > *** 1340,1345 ****
> > > --- 1344,1350 ----
> > >                                     $hItem );
> > >           }
> > >       }
> > > +     carp "No such child $parts[ 0 ]";
> > >       return 0;
> > >   }
> > >
> > >
> > > --- In perlguitest@yahoogroups.com, "brentje" <brentje@> wrote:
> > > >
> > > > I've been having some fun with SelTreeViewItemPath lately
> > myself, so I
> > > > think I can explain why it selects the "Desktop" in your
example
> > but
> > > > doesn't highlight it, and the endless loop.
> > > >
> > > > SelTreeViewItemPath starts off selecting the root node when
it
> > begins
> > > > it's search for the item you want.  It then calls the
TVPathWalk
> > > > internal function to find the right node.  Inside
TVPathWalk, it
> > > > starts a loop: while( $hItem != 0 ).  At this point, $hItem
is
> > the
> > > > handle to the root node.  It then calls the SendMessage
function
> > for
> > > > TVM_GETITEM, passing in the handle to the root node as the
place
> > to
> > > > start the search, and the text that you are looking for
under
> > the root
> > > > node.  If you send in more then one string to search for (eg
> > > > "Desktop|My Documents"), it will break it into parts and
send the
> > > > first part.  If it finds it, great...it will return the
handle
> > to the
> > > > item.  Or if you've passed in something like "Desktop|My
> > Documents",
> > > > it will call itself recursively for the next item in the
path
> > that you
> > > > want, passing in the handle to the item it just found
> > ("Desktop").  If
> > > > it doesn't find anything, it will return 0.  That's why the
root
> > node
> > > > is selected but not highlighted when it can't find
> > anything...it's
> > > > trying to select the item with the handle of 0, which
doesn't
> > exist.
> > > > In your example program, the first call to
SelTreeViewItemPath
> > > > (SelTreeViewItemPath($TreeWindow[0], "My Documents|My
> > Pictures");)
> > > > will always fail because you're not sending in the proper
path.
> > The
> > > > path should start off with Desktop since that's the root
node.
> > The
> > > > next 2 worked for me when I ran the program though.  And the
> > last call
> > > > just selected (but not highlighted) the Desktop again,
because it
> > > > couldn't find that path.
> > > >
> > > > The endless loop comes into play when TVPathWalk calls itself
> > > > recursively, AND you pass in a path where the last
selectable
> > item has
> > > > no children under it (eg "Desktop|My Documents|My Pictures|
> > (dgdf )").
> > > >  So it comes in, checks to see if we've found the right path
to
> > this
> > > > point ("My Pictures", which is there), checks to see if you
> > given it
> > > > more parts under "My Pictures" to look for (you
have, "(dgdf )"),
> > > > checks to see if "My Pictures" actually has children (it
> > > > doesn't)...and that's where the bug is.  $hItem does not
equal
> > 0, it
> > > > equals the handle to the "My Pictures" node.  Since there
are
> > more
> > > > parts to look for but no children under "My Pictures", it
will
> > > > continuously check "My Pictures" looking for children that
it
> > will
> > > > never find.  Change that last call to look for "Desktop|My
> > > > Documents|My Pictures|(dgdf )", and you'll have your endless
> > loop.
> > > >
> > > > Brent
> > > >
> > > > --- In perlguitest@yahoogroups.com, "Tim Mitchell"
<maxquig@>
> > wrote:
> > > > >
> > > > > I will gladly report this in source forge when I am able
to
> > > > > duplicate it in an application that others can run.
> > > > >
> > > > > I tried to reproduce the bug with this script that opens
> > Windows
> > > > > Explorer and tries to select some items on the left
TreeView.
> > > > >
> > > > > I get different problems this time. It does not duplicate
the
> > > > > endless loop. Instead, SelTreeViewItemPath() fails to
select
> > > > > anything but the root node, and even then it doesn't
highlight
> > the
> > > > > selected item.
> > > > >
> > > > > On the application that I'm testing, items on the tree are
> > selected
> > > > > and highlighted. The Endless loop happens when I
intentionally
> > try
> > > > > to select an item that doesn't exist in the "folders" that
do
> > exist.
> > > > >
> > > > > #!perl -w
> > > > >
> >
#####################################################################
> > > > > ##
> > > > > # EndlessLoopBug.pl Tim Mitchell July 13 2006
> > > > > #
> > > > > # Win32-GuiTest script attempting to reproduce a bug in
> > > > > SelectTargetTreeItem,
> > > > > # This script opens Windows Explorer
> > > > >
> >
#####################################################################
> > > > > ##
> > > > > use Win32::GuiTest qw(:ALL);
> > > > >
> > > > > system("start C:\\WINDOWS\\explorer.exe");
> > > > > sleep 1;   #Wait for Windows\Explorer to get started
> > > > > # Explorer opens by default on My Documents folder
> > > > > # with "My Documents" in the title bar.
> > > > > #Finding the handle of the TreeView
> > > > > my @ExplorerWindow = FindWindowLike(undef, "My Documents");
> > > > > my @OuterFrame = FindWindowLike($ExplorerWindow
> > [0], "", "BaseBar");
> > > > > my @InnerFrame = FindWindowLike($OuterFrame
[0], "", "BaseBar");
> > > > > my @TreeWindow = FindWindowLike($InnerFrame
> > [0], "", "SysTreeView32");
> > > > > # Watch eplorer while this runs. It starts on My Documents
> > > > > sleep 3;
> > > > > SelTreeViewItemPath($TreeWindow[0], "My Documents|My
> > Pictures");
> > > > > # Nothing changed. My Pictures was NOT selected
> > > > > sleep 3;
> > > > > SelTreeViewItemPath($TreeWindow[0], "Desktop");
> > > > > # Desktop was selected but not highlighted in the tree
> > > > > sleep 3;
> > > > > SelTreeViewItemPath($TreeWindow[0], "Desktop|My
Documents|My
> > > > > Pictures");
> > > > > # Desktop is still selected but not highlighted
> > > > > sleep 3;
> > > > > SelTreeViewItemPath($TreeWindow[0], "My Documents|My
Pictures
> > > > > (dgdf )");
> > > > > # Makes not difference
> > > > > --- In perlguitest@yahoogroups.com, "Piotr Kaluski"
> > <pkaluski@>
> > > > > wrote:
> > > > > >
> > > > > > Can you create a bug report in source forge? Please
provide
> > a
> > > > > > description how to reproduce this bug quickly
> > > > > > --Piotr
> > > > > >
> > > > > > --- In perlguitest@yahoogroups.com, "Tim Mitchell"
> > <maxquig@>
> > > > > wrote:
> > > > > > >
> > > > > > > Bug to report...
> > > > > > >
> > > > > > > SelTreeViewItemPath gets stuck in endless loop if the
item
> > you
> > > > > are
> > > > > > > trying to select doesn't exist on the tree. This
function
> > needs
> > > > > to
> > > > > > > return a boolean result indicating success or failure.
> > > > > > >
> > > > > > > I tried to use it to verify that an item does not
exist on
> > the
> > > > > tree.
> > > > > > >
> > > > > > > Tim Mitchell
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

#1698 From: "brentje" <brentje@...>
Date: Thu Feb 22, 2007 3:08 pm
Subject: Re: SelTreeViewItemPath gets stuck in endless loop
brentje
Send Email Send Email
 
I actually forgot all about this.  I just took at look at the
GuiTest.PM file, and the only difference I see between my code and
GuiTest is that GuiTest is using Carp and I don't.  Mine just returns
0, and I handle logging elsewhere.  It also looks like Carp is only
used in that function, so I'm going to guess it's something to do with
Carp.

--- In perlguitest@yahoogroups.com, "Tim Mitchell" <maxquig@...> wrote:
>
> Piotr,
>
> Sorry I took so long in testing this. The good news is that
> SelTreeViewItemPath no longer gets stuck in an endless loop when the
> item is not found on the tree. The bad news is that it doesn't
> return a flag of any kind to indicate whether or not it is
> successful. If not successfule it gives an error message "No such
> child SubsetsXXX at C:/Perl/site/lib/SMTpats/TKS.pm line 1579". In
> this example line 1579 is the line that calls the function.
>
> Tim

Messages 1669 - 1698 of 1818   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help