Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » JWizardDialog text input
JWizardDialog text input [message #55430] Tue, 28 February 2006 10:41 Go to next message
Eclipse UserFriend
Originally posted by: tom.andersson.accenture.com

Hi!

Is it a known issue that you can not perform actions on UI components
inside a JWizardDialog? We are having problems when trying to record text
input in a textfield inside a JWizardDialog. In InputDialog recording
seems to work fine.

We also tried to insert data to the textfields by manually changing the
macro script. As a result the content of the textfield changed to empty
instead of intended content. It did clear the textfield though.

Position-based recording seems to work fine but doesn't really suit our
needs that well.

Thanks!
Tom
Re: JWizardDialog text input [message #55673 is a reply to message #55430] Tue, 28 February 2006 20:24 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Do you mean org.eclipse.jface.wizard.WizardDialog?
I've recorded many actions under a jface wizard dialog, including text
modifications.

"Tom Andersson" <tom.andersson@accenture.com> wrote in message
news:4031cd1347ebc2bb6205e8dd01aece9d$1@www.eclipse.org...
> Hi!
>
> Is it a known issue that you can not perform actions on UI components
> inside a JWizardDialog? We are having problems when trying to record text
> input in a textfield inside a JWizardDialog. In InputDialog recording
> seems to work fine.
>
> We also tried to insert data to the textfields by manually changing the
> macro script. As a result the content of the textfield changed to empty
> instead of intended content. It did clear the textfield though.
>
> Position-based recording seems to work fine but doesn't really suit our
> needs that well.
>
> Thanks!
> Tom
>
Re: JWizardDialog text input [message #55808 is a reply to message #55673] Wed, 01 March 2006 08:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.andersson.accenture.com

Hi Ali.

Yep, WizardDialog it is. It's pretty weird if it should work. None of them
seem to record actions performed on the UI components. Actually clicking
on Finish/Cancel buttons works but actions on text and list components do
not get recorded. Here's an example of what gets recorded:

<shell id="org.eclipse.jface.wizard.WizardDialog" return-code="0">
<command type="select" contextId="wizard"
widgetId="org.eclipse.swt.widgets.Button#{{16}}-{{1.0}}"/>
</shell>

By the way, don't want to open another topic but have a quick question:
Can i use tptp.persistent.id to identify my widgets? Assigning a key/value
pair with that key results in the widget identifiers being something like
Button#{{null},{null}} (don't have an actual sample at the moment) in the
macro.

Thanks for the help.


Ali Mehregani wrote:

> Do you mean org.eclipse.jface.wizard.WizardDialog?
> I've recorded many actions under a jface wizard dialog, including text
> modifications.

> "Tom Andersson" <tom.andersson@accenture.com> wrote in message
> news:4031cd1347ebc2bb6205e8dd01aece9d$1@www.eclipse.org...
>> Hi!
>>
>> Is it a known issue that you can not perform actions on UI components
>> inside a JWizardDialog? We are having problems when trying to record text
>> input in a textfield inside a JWizardDialog. In InputDialog recording
>> seems to work fine.
Re: JWizardDialog text input [message #56136 is a reply to message #55808] Thu, 02 March 2006 16:35 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Tom,

I'm not sure why you're having problems recording UI actions under a wizard.
The sample that I've included under the user guide makes use of a wizard to
create a Java project and I haven't had anyone reporting any such issue. It
might be helpful if you can tell me if your wizard is created any
differently than how most other wizards are created. (e.g. if you are
making an uncommon use of the wizard by adding widgets differently). If you
like us to pursue this problem, I'll need a plug-in that isolates your
wizard. I have to be able to some how reproduce this problem.

As for your second question: "Can i use tptp.persistent.id to identify my
widgets?":
You have to stick ids into your widgets before you can use them. For
example, you can only use tptp.persistent.id for a button if it's created
as:

Button myButton = new Button (...);
myButton.setData("tptp.persistent.id", "myButtonId");

i.e. if you would like your macro to be very robust, then you'll have to
adapt a good UI development policy that always defines persistent Ids for
all widgets that are created.

"Tom Andersson" <tom.andersson@accenture.com> wrote in message
news:8337079d30d7350cfd9b318aa3d0cb34$1@www.eclipse.org...
> Hi Ali.
>
> Yep, WizardDialog it is. It's pretty weird if it should work. None of them
> seem to record actions performed on the UI components. Actually clicking
> on Finish/Cancel buttons works but actions on text and list components do
> not get recorded. Here's an example of what gets recorded:
>
> <shell id="org.eclipse.jface.wizard.WizardDialog" return-code="0">
> <command type="select" contextId="wizard"
> widgetId="org.eclipse.swt.widgets.Button#{{16}}-{{1.0}}"/>
> </shell>
>
> By the way, don't want to open another topic but have a quick question:
> Can i use tptp.persistent.id to identify my widgets? Assigning a key/value
> pair with that key results in the widget identifiers being something like
> Button#{{null},{null}} (don't have an actual sample at the moment) in the

> macro.
>
> Thanks for the help.
>
>
> Ali Mehregani wrote:
>
> > Do you mean org.eclipse.jface.wizard.WizardDialog?
> > I've recorded many actions under a jface wizard dialog, including text
> > modifications.
>
> > "Tom Andersson" <tom.andersson@accenture.com> wrote in message
> > news:4031cd1347ebc2bb6205e8dd01aece9d$1@www.eclipse.org...
> >> Hi!
> >>
> >> Is it a known issue that you can not perform actions on UI components
> >> inside a JWizardDialog? We are having problems when trying to record
text
> >> input in a textfield inside a JWizardDialog. In InputDialog recording
> >> seems to work fine.
>
>
Re: JWizardDialog text input [message #56256 is a reply to message #56136] Fri, 03 March 2006 07:54 Go to previous message
Eclipse UserFriend
Originally posted by: tom.andersson.accenture.com

Hi.

We'll take a look at the way we create the wizards. Also, i've assigned
the id's to components the way you described, i.e.
deleteButton.setData("tptp.persistent.id", "deleteButton"); and that's
when i get null id's to the macro. If i don't assign the id's then the
macro just has some numeral identifiers like Button#1.

Maybe it's functioning the way it is as I'm using some January milestone
build..

Anyway, thanks for the tips, we'll doublecheck that we do things right.

Tom
Previous Topic:Specify workspace for AGR Testsuite to be launched in
Next Topic:Automated test
Goto Forum:
  


Current Time: Tue Apr 23 14:09:37 GMT 2024

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

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

Back to the top