Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » api recorder problems
api recorder problems [message #111553] Thu, 06 September 2007 14:47 Go to next message
mike is currently offline mikeFriend
Messages: 80
Registered: July 2009
Member
All

I am getting mixed results/bahaviors using the API recorder addon. I
am using eclipse 3.3 and Java 1.5, I have the 1.5 agent controller
installed (this seems to be required by the API recorder, all other TPTP
stuff seem to use the internal agent, why is this??) I have the lated
4.4.0.4 release installed.

o In most cases the tool simply never generates a test case at all. often
the associated task being profiled never seems to exit, by this I mean
application exits but the red square on the console says lit and the task
never displays as terminated in the profiler view.

o All in all I only seem to be able to monitor some Swing based
applications and the example SimpleStringTest code provided in the
documentation. Any SWT or RCP or more complex java apps never generate
testsuites. All of the swing based applications generate JUnit test code
with syntax errors, a line containing "}};" needs to be removed from
multiple locations.

o Using all wildcards in the filtering dialog insures not testsuite will
be generated, I seem to need to specify a package or nothing is collected.
Actually I seem to need to have a package ending in a '*' for anything to
work.

o I really wish the dialog for generating a testsuite pre selected the
"testsuite" option not the "no testsuite" option, the only reason for
using it is to generate a testsuite in thefirst place.

Not fussing here, this capability would be very useful to me if it worked.
I think I read somewhere that this is probekit based?? Is there any
associated .probe files I can use instead??
Re: api recorder problems [message #113793 is a reply to message #111553] Mon, 01 October 2007 17:30 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Mike,
Thanks for your interest in the API Recorder. Although Technology
Preview is tested, it is still maturing function sometimes with outstanding
limitations.

Let me try to address these issues below:

Paul
"mike shipkowski" <michael.shipkowski@sas.com> wrote in message
news:767495feaf583f6ff22ee9a7b626db63$1@www.eclipse.org...
> All
>
> I am getting mixed results/bahaviors using the API recorder addon. I am
> using eclipse 3.3 and Java 1.5, I have the 1.5 agent controller installed
> (this seems to be required by the API recorder, all other TPTP stuff seem
> to use the internal agent, why is this??)

The API Recorder is tested and works with both the Agent Controller and
Integrated Agent Controller (IAC).

> I have the lated 4.4.0.4 release installed.

TPTP does have a 4.4.0.4 release. I would assume you are (and recommend)
using the latest
maintenance release (4.4.0.3). See:

http://www.eclipse.org/tptp/home/downloads/?ver=4.4.0.3

> o In most cases the tool simply never generates a test case at all. often
> the associated task being profiled never seems to exit, by this I mean
> application exits but the red square on the console says lit and the task
> never displays as terminated in the profiler view.

I believe this is caused by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138110#c6. If you are using
4.4.0+, please open a defect for this problem
( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP%20T esting under
the Test.Agents.Recorder component) with the steps/code to reproduce the
problem.

> o All in all I only seem to be able to monitor some Swing based
> applications and the example SimpleStringTest code provided in the
> documentation. Any SWT or RCP or more complex java apps never generate
> testsuites. All of the swing based applications generate JUnit test code
> with syntax errors, a line containing "}};" needs to be removed from
> multiple locations.

Currently, only stand-alone Java applications are supported by the API
Recorder. That is, RCP applications are not supported.

When you launch your SWT application, does the application appear and run to
completion? Is a recording created?

Your issue with a stand-alone SWT application and
Swing application (e.g. Java - Application launch configuration) appears to
be a
defect. After looking at the code generation code, I cannot determine where
the
extra characters are coming from. Can you attach the generated test suite
and
test class?

> o Using all wildcards in the filtering dialog insures not testsuite will
> be generated, I seem to need to specify a package or nothing is collected.
> Actually I seem to need to have a package ending in a '*' for anything to
> work.

Yes, by default everything is excluded. You need to specify which packages,
classes, and methods to be recorded. Complete package, class, and method
names (e.g. no trailing *) have been tested to work. If your does not,
please
reply with the filter set.

> o I really wish the dialog for generating a testsuite pre selected the
> "testsuite" option not the "no testsuite" option, the only reason for
> using it is to generate a testsuite in thefirst place.

Great feedback. There is no default selection since the dialog is reused.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=205093.

> Not fussing here, this capability would be very useful to me if it worked.

Thank you. We would be interested in discussing if you would like to
contribute to this component.

> I think I read somewhere that this is probekit based?? Is there any
> associated .probe files I can use instead??

Yes, you can export the probe (File >> Export >> Test >> API Recorder Probe.
Previous Topic:Widget Resolver help needed
Next Topic:Profiling under linux x86-64
Goto Forum:
  


Current Time: Fri Apr 26 23:27:58 GMT 2024

Powered by FUDForum. Page generated in 0.03457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top