JinRong Cai | 3 Jul 04:51 2009
Picon

recording slowly with abbot.

Hi all,

I am trying to test my JAVA GUI with abbot 1.0.1
And the performance is too slow for me, ex, wait 1 min for the input field, 1 min to select another panel popup ......

Is there any parameters settings to adjust the performance of the test framework?
or any other suggestions?

Thanks.

------------------------------------------------------------------------------
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Timothy Wall | 3 Jul 14:03 2009
Picon

Re: recording slowly with abbot.

Usually this is caused by the recording mechanism attempting to create  
or match component references (due to something in the app making it  
difficult to distinguish different ones).  Does this happen when you  
start a new script from scratch?

You'd need to look at it with a performance analysis tool, though, to  
be sure.  Netbeans has one built-in.

On Jul 2, 2009, at 10:51 PM, JinRong Cai wrote:

> Hi all,
>
> I am trying to test my JAVA GUI with abbot 1.0.1
> And the performance is too slow for me, ex, wait 1 min for the input  
> field, 1 min to select another panel popup ......
>
> Is there any parameters settings to adjust the performance of the  
> test framework?
> or any other suggestions?
>
> Thanks.
> ------------------------------------------------------------------------------
> _______________________________________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

------------------------------------------------------------------------------
SourceForge.net | 4 Jul 14:33 2009
Picon
Picon

[abbot - Developers] Automated testing


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7479692
By: eamonnmag

I've looked at this software, but i believe it to be heavy, considering the
fact that i have >50k lines of GUI code in an application. Testing every possible
combination of events in an event driven environment would be pretty difficult
using this framework.

I was wondering who of you would be interested in developing an annotation driven
mechanism for testing GUIs in a brute force sort of approach. I.e., we use robots
to browse through the entire GUI space -> encompassing multiple forms, events,
and so forth and using annotations to provide test data to things such as text
fields, combo boxes, and so forth where appropriate.

I think this could be a very possible system to code up, but i have only really
just thought a bit about it, had a look at what's already out there (only really
this framework) and thought about what could be an improvement in such a complex
testing environment.

Anyone interested, or do you believe this to be an unattainable goal?

Eamonn

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=168263

------------------------------------------------------------------------------
SourceForge.net | 6 Jul 14:37 2009
Picon
Picon

[abbot - Help] nullPointer while recording


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7482533
By: nitipatil

Hi all

i am using abbot to test  swing application. while doing recording, i am getting
nullpointer exception.

I wont get such exception when i open application without recording.

NullPointerException application under test.

        (caught
at abbot.editor.ScriptEditor$16.uncaughtException(ScriptEditor.j
ava:1835))
java.lang.NullPointerException
        at java.util.Properties$LineReader.readLine(Unknown Source)
        at java.util.Properties.load0(Unknown Source)
        at java.util.Properties.load(Unknown Source)

Do anybody has idea why this exception is occuring while recording 

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=168262

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
Timothy Wall | 7 Jul 14:54 2009
Picon

Re: [abbot - Help] nullPointer while recording

Chances are your application is trying to read a properties file and  
can't find it where it normally does.
Is your current directory (user.dir) the same in both cases?
Dump your system properties in both cases.

Other than that, the main difference is that the recorder uses a  
different class loader when launching your application than is  
normally used in a generic application.

On Jul 6, 2009, at 8:37 AM, SourceForge.net wrote:

>
> Read and respond to this message at:
> https://sourceforge.net/forum/message.php?msg_id=7482533
> By: nitipatil
>
> Hi all
>
>
> i am using abbot to test  swing application. while doing recording,  
> i am getting
> nullpointer exception.
>
> I wont get such exception when i open application without recording.
>
> NullPointerException application under test.
>
>        (caught
> at abbot.editor.ScriptEditor$16.uncaughtException(ScriptEditor.j
> ava:1835))
> java.lang.NullPointerException
>        at java.util.Properties$LineReader.readLine(Unknown Source)
>        at java.util.Properties.load0(Unknown Source)
>        at java.util.Properties.load(Unknown Source)
>
> Do anybody has idea why this exception is occuring while recording
>
>
>
> ______________________________________________________________________
> You are receiving this email because you elected to monitor this  
> forum.
> To stop monitoring this forum, login to SourceForge.net and visit:
> https://sourceforge.net/forum/unmonitor.php?forum_id=168262
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited  
> time,
> vendors submitting new applications to BlackBerry App World(TM) will  
> have
> the opportunity to enter the BlackBerry Developer Challenge. See  
> full prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
Timothy Wall | 8 Jul 15:12 2009
Picon

Re: [abbot - Developers] Automated testing


On Jul 4, 2009, at 8:33 AM, SourceForge.net wrote:

>
> Read and respond to this message at:
> https://sourceforge.net/forum/message.php?msg_id=7479692
> By: eamonnmag
>
> I've looked at this software, but i believe it to be heavy,  
> considering the
> fact that i have >50k lines of GUI code in an application. Testing  
> every possible
> combination of events in an event driven environment would be pretty  
> difficult
> using this framework.
>
> I was wondering who of you would be interested in developing an  
> annotation driven
> mechanism for testing GUIs in a brute force sort of approach. I.e.,  
> we use robots
> to browse through the entire GUI space -> encompassing multiple  
> forms, events,
> and so forth and using annotations to provide test data to things  
> such as text
> fields, combo boxes, and so forth where appropriate.
>
> I think this could be a very possible system to code up, but i have  
> only really
> just thought a bit about it, had a look at what's already out there  
> (only really
> this framework) and thought about what could be an improvement in  
> such a complex
> testing environment.
>
> Anyone interested, or do you believe this to be an unattainable goal?

I don't think Combinatorial tests will give you much payback, given  
that you won't have time to run them all and the number of *useful*  
combinations is a miniscule set of the *available* combinations.

Fundamentally, you have to put intelligence into your tests.  Ideally,  
you could write a single, detailed description of user actions in one  
place and have that used as the basis for both constructing the UI  
*and* running a test against the UI.  But that requires your UI  
construction set has to include incorporation of that description into  
the building of the UI, and the UI itself needs to expose sufficient  
API for the test harness to perform its tests.

Swing is rather poorly constructed in that respect.  It's non-trivial  
to programmatically exercise the same code paths that are followed  
when a user drives the UI.  I found it most effective to isolate UI  
component testing into code-driven Abbot tests, which would cover all  
aspects of the component functionality.  I'd then try for reasonable  
coverage driving the integrated UI more programmatically, avoiding  
event-driven tests to the extent possible, since event driven testing  
is both slower and more error prone.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
Timothy Wall | 24 Jul 17:02 2009
Picon

Re: [abbot - Developers] Launching WTK emulator = abbot ExitException?

The error is benign, and just means that Costello prevented the  
application from exiting the VM.

On Jul 24, 2009, at 10:42 AM, SourceForge.net wrote:

>
> Read and respond to this message at:
> https://sourceforge.net/forum/message.php?msg_id=7525879
> By: waynemot
>
> Hi,
> I just started working with Abbot & Costello a couple of weeks ago  
> and have
> figured out some of it.  I want to do some functional testing of a  
> phone app
> running in a phone emulator (WTK2.5.2) and when I try to launch the  
> emulator
> in Costello's interface I get an abbot:ExitException (see below) I'm  
> just wondering
> if anybody has any ideas on how to get Costello to launch this.   
> Since it's
> Sun's WTK emulator I have to live with what I get from them but I'd  
> like to
> run it inside of an abbot framework.  Any thoughts?
> Thanks
> Wayne
> -------------------- Stack Trace Below -------------------------------
> <code>
> Error: abbot.ExitException: Application exit denied (1) on  
> Thread[Script
> runner:3,6,AUT Thread Group for Script Editor (root):0]
> in step 'com.sun.kvem.environment.EmulatorWrapper'
> at /home/wmotycka/abbot-1.0.2/lib/WTKlaunch:3
> abbot.ExitException: Application exit denied (1) on Thread[Script  
> runner:3,6,AUT
> Thread Group for Script Editor (root):0]
> 	at abbot.NoExitSecurityManager.checkExit(NoExitSecurityManager.java: 
> 40)
> 	at abbot.editor.ScriptEditor 
> $EditorSecurityManager.checkExit(ScriptEditor.java:
> 2842)
> 	at java.lang.Runtime.exit(Runtime.java:88)
> 	at java.lang.System.exit(System.java:868)
> 	at  
> com.sun.kvem.environment.EmulatorWrapper.main(EmulatorWrapper.java:86)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at abbot.script.Call.invoke(Call.java:194)
> 	at abbot.script.Call.runStep(Call.java:129)
> 	at abbot.script.Launch.synchronizedRunStep(Launch.java:138)
> 	at abbot.script.Launch.runStep(Launch.java:203)
> 	at abbot.script.Step.run(Step.java:92)
> 	at abbot.script.StepRunner.runStep(StepRunner.java:277)
> 	at abbot.script.Sequence.runStep(Sequence.java:110)
> 	at abbot.script.Script.runStep(Script.java:530)
> 	at abbot.script.StepRunner.runStep(StepRunner.java:274)
> 	at abbot.script.StepRunner.run(StepRunner.java:194)
> 	at abbot.editor.ScriptEditor$LaunchAction.run(ScriptEditor.java:2660)
> 	at java.lang.Thread.run(Thread.java:595)
> </code>
>
> ______________________________________________________________________
> You are receiving this email because you elected to monitor this  
> forum.
> To stop monitoring this forum, login to SourceForge.net and visit:
> https://sourceforge.net/forum/unmonitor.php?forum_id=168263

------------------------------------------------------------------------------
SourceForge.net | 24 Jul 16:42 2009
Picon
Picon

[abbot - Developers] Launching WTK emulator = abbot ExitException?


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7525879
By: waynemot

Hi,
I just started working with Abbot & Costello a couple of weeks ago and have
figured out some of it.  I want to do some functional testing of a phone app
running in a phone emulator (WTK2.5.2) and when I try to launch the emulator
in Costello's interface I get an abbot:ExitException (see below) I'm just wondering
if anybody has any ideas on how to get Costello to launch this.  Since it's
Sun's WTK emulator I have to live with what I get from them but I'd like to
run it inside of an abbot framework.  Any thoughts?
Thanks
Wayne
-------------------- Stack Trace Below -------------------------------
<code>
Error: abbot.ExitException: Application exit denied (1) on Thread[Script
runner:3,6,AUT Thread Group for Script Editor (root):0]
in step 'com.sun.kvem.environment.EmulatorWrapper'
at /home/wmotycka/abbot-1.0.2/lib/WTKlaunch:3
abbot.ExitException: Application exit denied (1) on Thread[Script runner:3,6,AUT
Thread Group for Script Editor (root):0]
	at abbot.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:40)
	at abbot.editor.ScriptEditor$EditorSecurityManager.checkExit(ScriptEditor.java:
2842)
	at java.lang.Runtime.exit(Runtime.java:88)
	at java.lang.System.exit(System.java:868)
	at com.sun.kvem.environment.EmulatorWrapper.main(EmulatorWrapper.java:86)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at abbot.script.Call.invoke(Call.java:194)
	at abbot.script.Call.runStep(Call.java:129)
	at abbot.script.Launch.synchronizedRunStep(Launch.java:138)
	at abbot.script.Launch.runStep(Launch.java:203)
	at abbot.script.Step.run(Step.java:92)
	at abbot.script.StepRunner.runStep(StepRunner.java:277)
	at abbot.script.Sequence.runStep(Sequence.java:110)
	at abbot.script.Script.runStep(Script.java:530)
	at abbot.script.StepRunner.runStep(StepRunner.java:274)
	at abbot.script.StepRunner.run(StepRunner.java:194)
	at abbot.editor.ScriptEditor$LaunchAction.run(ScriptEditor.java:2660)
	at java.lang.Thread.run(Thread.java:595)
</code>

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=168263

------------------------------------------------------------------------------
SourceForge.net | 27 Jul 17:31 2009
Picon
Picon

[abbot - Developers] RE: Launching WTK emulator = abbot ExitExcept


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7529934
By: waynemot

Well not exactly innocuous because I can't seem to get it to instantiate the
WTK emulator.  I've managed to get Microemulator to work in the Abbot/Costello
framework however, so I'm taking my efforts that direction.  I'm still a bit
baffled by how to get multiple java command line options passed to the main
of Microemulator but I'm persistent.  Thanks for the reply Tim.
Wayne

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=168263

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Timothy Wall | 28 Jul 16:28 2009
Picon

Re: [abbot - Developers] RE: Launching WTK emulator = abbot ExitExcept


On Jul 27, 2009, at 11:31 AM, SourceForge.net wrote:

>
> Read and respond to this message at:
> https://sourceforge.net/forum/message.php?msg_id=7529934
> By: waynemot
>
> Well not exactly innocuous because I can't seem to get it to  
> instantiate the
> WTK emulator.  I've managed to get Microemulator to work in the  
> Abbot/Costello
> framework however, so I'm taking my efforts that direction.  I'm  
> still a bit
> baffled by how to get multiple java command line options passed to  
> the main
> of Microemulator but I'm persistent.  Thanks for the reply Tim.
> Wayne

You need to enter a stringified array of strings as the first argument  
to main.  Costello represents arrays with square brackets, i.e. "[]",  
within which is a comma-separated list of array elements.

For example,

["this","is","a","test"]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

Gmane