Timothy Wall | 16 Jan 2013 13:52
Gravatar

Re: [ABBOT] Don't print screen

In bash:

    bash$ export ENV_VAR=env-value java -cp {classpath}:lib/costello.jar {main class name}

How do you normally launch your java applications?

On Jan 16, 2013, at 7:34 AM, MOULIN NEXON Fabrice wrote:

> Thakns, but I don't undertand the lauching command line ?
> 
> Is it ?
> > java -jar lib/costella.jar MyClass.main([])
> Can you give more explication of the lauching command line ?
> 
> Does Abbot redefine CLASSPATH variable ?
> 
> 
> Fabrice MOULIN-NEXON
> Design engineer / Ingénieur d'Etudes
> Tel : +33 (0)5 62 88 75 39 / Fax : +33 (0)5 62 88 75 00
> www.thalesgroup.com
> 
> Consider the environment! Please don't print this e-mail unless you really need to.
> 
> The information contained in this e-mail and any attachments are the property of THALES and may be
confidential. If you are not the intended recipient, please notify us immediately, send this message
back to us and destroy it. You are hereby notified that any review, dissemination, distribution, copying
or otherwise use of this e-mail is strictly prohibited.
> 
> Le 01/16/13 03:44, Timothy Wall a écrit :
(Continue reading)

Timothy Wall | 16 Jan 2013 03:44
Gravatar

Re: [ABBOT] Don't print screen

Costello launches your program by loading its class and invoking its main method.

If you need additional environment settings, you should set those when launching Costello.

On Jan 15, 2013, at 12:52 PM, MOULIN NEXON Fabrice wrote:

> Hye, 
> 
> I want to test my java application with your abbot/costello program, but I can't start my start screen.
> I've an exception. I don't uunderstand how costella launch my program.
> 
> My program need environment varaiable. Is it blocking for lauching a simple application.
> 
> How costello run my application ? What is it the command line laucnhing ?
> java -jar myapplication.jar ? I think it's more complex.
> 
> I must choose an application to valid an java GUI, and I want to test your program.
> 
> Thanks for your help.
> 
> -- 
> Fabrice MOULIN-NEXON
> Design engineer / Ingénieur d'Etudes
> Tel : +33 (0)5 62 88 75 39 / Fax : +33 (0)5 62 88 75 00
> www.thalesgroup.com
> 
> Consider the environment! Please don't print this e-mail unless you really need to.
> 
> The information contained in this e-mail and any attachments are the property of THALES and may be
confidential. If you are not the intended recipient, please notify us immediately, send this message
(Continue reading)

James Doyle | 10 Dec 2012 23:31

Capturing screenshot or component hierarchy on script failure

Hi all,

I'm trying to figure out how to troubleshoot non-robust Abbot test 
scripts we've written that cause our CI build to fail.  When the test 
failures are intermittent and the script doesn't fail 100% of the time, 
it would be really helpful to have additional info from the failure 
itself, like a screenshot or component hierarchy.  Is there a way to 
enable anything like that when running scripts via the 
junit.extensions.abbot.ScriptFixture program ("java 
junit.extensions.abbot.ScriptFixture script.xml")? 

Thanks,
Jim

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
Gerard Davison | 27 Nov 2012 11:34
Picon
Favicon

Abbot Jenkins Instance


All,

In order to help me get to the final 1.3 release I have set up a public Jenkins instance courtesy of CloudBees:

https://abbot.ci.cloudbees.com

At the moment there are some environmental issues that are causing test failures, the window manager
provided for the tests is not using gnome or KDE, but hopefully you should see the test failures drop
towards the 4/5 that are still stopping me releasing a new version. (I have a much larger Hudson
Small-Holding that I use internal to Oracle where I also run Abbot tests hence my confidence about the
number of test failures)

I would welcome help on resolving the final few problems,

Gerard

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
Timothy Wall | 22 Nov 2012 16:12
Picon

Fwd: Some question related to abbot



Begin forwarded message:

From: Tanvi gupta <tanvi.atcs <at> gmail.com>
Date: November 22, 2012 2:53:17 AM EST
Subject: Some question related to abbot

Hi Timothy,

I am using abbot-1.2-0 . I am facing problem at the time of capturing screen .Whenever i will try to capture screen (Shift + F2) getting warning :
"Failure Encountered while completing the record. Please Submit a description of the user and UI actions leading up to this error."
Abbot is not able to capture and store component through abbot.

Can you please help me to resolve this problem ? or suggest us why i am getting this warning ?

--
Regards
--
Tanvi Gupta | ATCS
Software Engineer
Advanced Technology Consulting Service, Inc.
602, 6th Floor, 
SDC Vinay, 38-39 Mauji Colony, 
Malviya Nagar, 
Jaipur 302017 
tanvi <at> atcs.com
www.atcs.com
Your complete IT Solutions Provider!


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Wayne Motycka | 10 Oct 2012 18:05
Favicon

Re: Using captured values in beanshell scripts

Gaurav,

On the surface that sounded like the winning combination, resulting in the
expression doing something like this:

   ...
File ofile = new File("screen0.png");
BufferedImage bi = script.getProperty("screenBuf");
try
{
    ImageIO.write(bi, "png", ofile);
} catch (IOException e) {
  ...

Which did create a file, containing a png image, but alas is not the
screen that is being displayed on this phone emulator's display (it's an
empty png of the correct size of pixels however.)  I'm now going to make
an extension to the Step() object because that appears to be the only
mechanism that is capable of the level of abbot.robot control I need.  I
didn't want a custom version of Abbot but I guess I'll be delivering
one...

Thanks for the pointer though, it did clarify how to use script variables
from sample steps within expression steps.

Best regards,
Wayne Motycka

Unless somebody else has some
On Tue, October 9, 2012 11:34 pm, Gaurav Suri wrote:
> Hello,
> Since you want to use the value of screenBuf in expression tag,
> you can use it like.... script.getProperty("screenBuf");   assign this to
> an appropriate variable and use it in the expression.
>
> Regards,
> Gaurav H.Suri
>
>
> On 10/9/12, Wayne Motycka <wmotycka <at> cse.unl.edu> wrote:
>
>> Hi,
>>
>>
>> Well, as a follow up on my previous question, how to capture screens in
>> a Abbot XML script, I've cobbled up the script (below) which uses the
>> 'sample' tag to initiate a snapshot from the
>> abbot.tester.Robot.capture() method into a sample variable I've called
>> screenBuf.
>>
>> My question is, how should I be referring to this variable within the
>> subsequent 'expression' tag/block.  As I understand it, you should be
>> able to reference this variable using the ${screenBuf} syntax but
>> beanshell is bombing out with a complaint about a lexical error, the
>> text of which I've attached after the XML source (again, below.)
>>
>> Any ideas on what my beanshell syntax problem is?
>>
>>
>> Thanks!
>> Wayne Motycka
>> ------------------- Abbot XML script starts here -------------
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>> <AWTTestScript>
>>
>>
>> <component class="javax.swing.JLayeredPane" id="JLayeredPane Instance"
>> index="1" parent="JRootPane Instance" window="MicroEmulator" />
>>
>> <component class="javax.swing.JPanel" hOrder="1" id="JPanel Instance"
>> index="0" parent="JLayeredPane Instance" window="MicroEmulator" />
>>
>> <component class="javax.swing.JRootPane" id="JRootPane Instance"
>> index="0" parent="MicroEmulator" />
>>
>> <component class="org.microemu.app.Main" id="MicroEmulator" root="true"
>>  title="MicroEmulator" />
>>
>> <component class="org.microemu.app.ui.swing.SwingDeviceComponent"
>> id="SwingDeviceComponent Instance" index="0" parent="JPanel Instance"
>> window="MicroEmulator" />
>>
>> <component class="org.microemu.app.ui.swing.SwingDisplayComponent"
>> id="SwingDisplayComponent Instance" index="0"
>> parent="SwingDeviceComponent Instance" window="MicroEmulator" />
>>
>> <launch
>> args="[--device,org/microemu/device/default/device.xml,lancs.mobilemedia
>> .core.ui.MainUIMidlet]"
>> class="org.microemu.app.Main"
>> classpath=".:../scripts/microemu/lib/microemulator.jar:../scripts/micro
>> emu/lib/microemu-jsr-120.jar:../source/jars/MobileMedia.jar"
>> desc="org.microemu.app.Main" method="main" />
>>
>> <sample args="SwingDisplayComponent Instance"
>> class="abbot.tester.Robot" desc="screenBuf=Robot.Capture()"
>> method="capture" property="screenBuf" />
>>
>>
>> <expression desc="import java.io.File; "><![CDATA[import java.io.File;
>>
>>
>> File ofile = new File("screen0.png");
>>
>>
>> try { ImageIO.write(${screenBuf}, "png", ofile);
>> } catch (IOException e) {
>> System.err.println("failed to output component image to file");
>> }
>> return 0;]]></expression>
>>
>> <terminate />
>>
>>
>> </AWTTestScript>
>>
>>
>> ------------- Exception Error from beanshell ----------
>>
>>
>> Error: In file: inline evaluation of: ``import java.io.File  File ofile
>> =
>> new File("screen0.png")  try Error: Sourced file: inline evaluation of:
>> ``import java.io.File;  File ofile = new File("screen0.png");  try {
>> ImageIO.w . . . '' Token Parsing Error: Lexical error at line 6, column
>> 33.  Encountered: "2" (50), after : " <at> "
>> Sourced file: inline evaluation of: ``import java.io.File;  File ofile =
>>  new File("screen0.png");  try {     ImageIO.w . . . '' Token Parsing
>> Error: Lexical error at line 6, column 33.  Encountered: "2" (50),
>> after : " <at> ": <at unknown location>
>>
>>
>> at bsh.Interpreter.eval(Interpreter.java:707) at
>> bsh.Interpreter.eval(Interpreter.java:747)
>> at bsh.Interpreter.eval(Interpreter.java:736) at
>> abbot.script.Expression.runStep(Expression.java:69)
>> 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.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:662)
>>
>>
>>
>>
>> -----------------------------------------------------------------------
>> -------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>>  Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app Try
>> New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> abbot-users mailing list abbot-users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/abbot-users
>>
>>
>

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
Wayne Motycka | 9 Oct 2012 18:57
Favicon

Using captured values in beanshell scripts

Hi,

Well, as a follow up on my previous question, how to capture screens in a
Abbot XML script, I've cobbled up the script (below) which uses the
'sample' tag to initiate a snapshot from the abbot.tester.Robot.capture()
method into a sample variable I've called screenBuf.

My question is, how should I be referring to this variable within the
subsequent 'expression' tag/block.  As I understand it, you should be able
to reference this variable using the ${screenBuf} syntax but beanshell is
bombing out with a complaint about a lexical error, the text of which I've
attached after the XML source (again, below.)

Any ideas on what my beanshell syntax problem is?

Thanks!
Wayne Motycka
------------------- Abbot XML script starts here -------------
<?xml version="1.0" encoding="UTF-8"?>

<AWTTestScript>

  <component class="javax.swing.JLayeredPane" id="JLayeredPane Instance"
index="1" parent="JRootPane Instance" window="MicroEmulator" />

  <component class="javax.swing.JPanel" hOrder="1" id="JPanel Instance"
index="0" parent="JLayeredPane Instance" window="MicroEmulator" />

  <component class="javax.swing.JRootPane" id="JRootPane Instance"
index="0" parent="MicroEmulator" />

  <component class="org.microemu.app.Main" id="MicroEmulator" root="true"
title="MicroEmulator" />

  <component class="org.microemu.app.ui.swing.SwingDeviceComponent"
id="SwingDeviceComponent Instance" index="0" parent="JPanel Instance"
window="MicroEmulator" />

  <component class="org.microemu.app.ui.swing.SwingDisplayComponent"
id="SwingDisplayComponent Instance" index="0"
parent="SwingDeviceComponent Instance" window="MicroEmulator" />

  <launch
args="[--device,org/microemu/device/default/device.xml,lancs.mobilemedia.core.ui.MainUIMidlet]"
class="org.microemu.app.Main"
classpath=".:../scripts/microemu/lib/microemulator.jar:../scripts/microemu/lib/microemu-jsr-120.jar:../source/jars/MobileMedia.jar"
desc="org.microemu.app.Main" method="main" />

  <sample args="SwingDisplayComponent Instance" class="abbot.tester.Robot"
desc="screenBuf=Robot.Capture()" method="capture" property="screenBuf"
/>

  <expression desc="import java.io.File; "><![CDATA[import java.io.File;

File ofile = new File("screen0.png");

try {
    ImageIO.write(${screenBuf}, "png", ofile);
} catch (IOException e) {
    System.err.println("failed to output component image to file");
}
return 0;]]></expression>

  <terminate />

</AWTTestScript>

------------- Exception Error from beanshell ----------

Error: In file: inline evaluation of: ``import java.io.File  File ofile =
new File("screen0.png")  try Error: Sourced file: inline evaluation of:
``import java.io.File;  File ofile = new File("screen0.png");  try {    
ImageIO.w . . . '' Token Parsing Error: Lexical error at line 6, column
33.  Encountered: "2" (50), after : " <at> "
Sourced file: inline evaluation of: ``import java.io.File;  File ofile =
new File("screen0.png");  try {     ImageIO.w . . . '' Token Parsing
Error: Lexical error at line 6, column 33.  Encountered: "2" (50), after :
" <at> ": <at unknown location>

	at bsh.Interpreter.eval(Interpreter.java:707)
	at bsh.Interpreter.eval(Interpreter.java:747)
	at bsh.Interpreter.eval(Interpreter.java:736)
	at abbot.script.Expression.runStep(Expression.java:69)
	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.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:662)

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
Wayne Motycka | 5 Oct 2012 15:14
Favicon

Abbot screen capture via Costello script

Hi All,

I've a need to do screen capture (a SwingDisplayComponent class object) in
the processing of a Costello XML script and I've yet to figure out how I'd
do it.  I'm not that sharp on the "scripting" ability (love to figure it
out though ;-) but I'm needing a few pointers on how-to with regard to
screen capture from scripting.

Thanks!
Wayne Motycka

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
Timothy Wall | 14 Sep 2012 13:21
Gravatar

Re: using Abbot

Abbot is intended to be used from within the same VM, not an external process.

I'm not familiar with Windowtester Pro.

On Aug 22, 2012, at 6:24 AM, Martin Gijsen wrote:

> Hi Timothy,
> 
> I am looking to add support for testing Java GUIs to my framework, and was wondering if I could use Abbot. I
have known about it for years, but did not really need it before and some time ago I somehow got the
impression that it was not being actively maintained any more. Was I mistaken? I hope so.
> 
> What my framework needs is something that will allow it to talk to Java GUI applications (including Swing)
through an API. I also found Google Windowtester Pro, which also has an API, and I am assuming that could
also be used from outside the Java application, but it only mentions JUnit so it is not quite clear. Do you
know if that is the case? I am also wondering what the underlying mechanism is to talk to a Java GUI and if
Abbot and the Google tool use the same approach/technology. Can you enlighten me?
> 
> An additional topic is of course the license, because I am not familiar enough with all these licenses. All
of my code is AGPL licensed. Would that be compatible with the Abbot Eclipse license if I should want to
share Abbot along with my own stuff?
> 
> 
> Thanks,
> 
> Martin

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
dnyanesh patel | 3 Aug 2012 13:51
Picon

Abbot Query



Hi 
I am using abbot framework ,I have some queries  as follows,

Scenario 1:
1. I have created test scripts for testing my application. When I enter correct credentials and run the script It works.
2. I created another scripts checking for an invalid input.When I run that script individually it works.
3. But If I put both scripts in TestSuit, order as follows
            a. Scripts checking for valid credentials
            b. Scripts checking for an invalid inputs
Then in second scripts should not allow applicaion to login. But it does., Can you please help me what can be the possible reason? Does abbot store anyvalues? means Do I need to change any settings. I am new to abbot, please help.



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Neal Burnham | 2 Aug 2012 01:32
Picon

Please remove me from the list

Thanks, Neal
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users

Gmane