Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Issue is ChoiceSelectionCommand
Issue is ChoiceSelectionCommand [message #123572] Wed, 20 February 2008 19:38 Go to next message
Pushparaj is currently offline Pushparaj
Messages: 62
Registered: July 2009
Member
Hi All,
In my dialog i am using ComboBoxCellEditor. So while recording the test
case i select one of the item which is displayed in the editor.
But while running the script i am gettin the following error.

org.eclipse.core.runtime.CoreException
Error while executing a macro command: MacroCommand [choice-select, line
22]
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.tptp.test.auto.gui.internal.commands.ChoiceSelec tionCommand.playback(ChoiceSelectionCommand.java:143)

I don't know why i am getting this error message.

Pushparaj
Re: Issue is ChoiceSelectionCommand [message #123587 is a reply to message #123572] Thu, 21 February 2008 02:33 Go to previous messageGo to next message
Pushparaj is currently offline Pushparaj
Messages: 62
Registered: July 2009
Member
Hi All,

Also i am getting the same error wherever i am using cell editors.
If its a text TextCellEditor, this error is coming in ModifyCommand.

Is TPTP is not supporting cell editors?

Pushparaj.
Re: Issue is ChoiceSelectionCommand [message #123677 is a reply to message #123587] Thu, 21 February 2008 14:14 Go to previous messageGo to next message
Jimmy Jin is currently offline Jimmy Jin
Messages: 32
Registered: July 2009
Member
As I know the cell editors in JFace Table is not supported in current
AGR version. We did an enhancement to get it supported, but this needs
addition attributes in the <command> element.

Does anyone else also like to have this enhancement?

Jimmy Jin

Pushparaj wrote:
> Hi All,
>
> Also i am getting the same error wherever i am using cell editors.
> If its a text TextCellEditor, this error is coming in ModifyCommand.
>
> Is TPTP is not supporting cell editors?
>
> Pushparaj.
>
Re: Issue is ChoiceSelectionCommand [message #123702 is a reply to message #123677] Thu, 21 February 2008 15:31 Go to previous messageGo to next message
Pushparaj is currently offline Pushparaj
Messages: 62
Registered: July 2009
Member
Hi Jimmy Jin,

Can you please explain what enhancement/attribute i should do to make it
working?
Becuase in my application we are using celleditor in most of our viewers.
So without this fix ican't continue my work.

Is there any workaround for this issue?

Please help me to resolve this issue.
Re: Issue is ChoiceSelectionCommand [message #123817 is a reply to message #123702] Sun, 24 February 2008 13:06 Go to previous messageGo to next message
Jimmy Jin is currently offline Jimmy Jin
Messages: 32
Registered: July 2009
Member
Hello, Pushparaj,

The key is to get the cell editor activated before the modify or choice
select command is executed.

The enhancement includes adding some attributes to the <command>
element, to include the identify of the parent of the current ComboBox
or Text, if it is a Table.
* When recording, for the modify and choice selection command, if the
according control's parent is a Table, then include parent Table's
identify into the attributes. Also include the column and row, which
this control is in, into the <command> element.
* When playback, if there is these parent control info in the modify and
choice select command and it's a Table, then try to send an mouse click
event to the Table with calculated mouse position, so that the editor in
the according cell can be activated.

I think this can also be workaround by adding a verification command
before your modify or choice select command. In the verification
command, you can find out the Table, and send it a proper mouse down
event to activate the cell editor.

Regards,
Jimmy Jin

Pushparaj wrote:
> Hi Jimmy Jin,
>
> Can you please explain what enhancement/attribute i should do to make it
> working? Becuase in my application we are using celleditor in most of
> our viewers. So without this fix ican't continue my work.
>
> Is there any workaround for this issue?
>
> Please help me to resolve this issue.
>
Re: Issue is ChoiceSelectionCommand [message #124265 is a reply to message #123817] Tue, 26 February 2008 02:20 Go to previous messageGo to next message
Pushparaj is currently offline Pushparaj
Messages: 62
Registered: July 2009
Member
Hi Jimmy Jin,
Can i get this enhancement if i take the latest build ?.

Because i tried the workaround what you mentioned in your reply. I am not
facing any problem while recording the test case. But while running it is
going up to the verification method then it waits for sometime after that
i am getting some irrelevent error message(in line number 3).

So if you have the plan to add your enhancement in near future i can wait
for this enhancement.

Thanks,
Pushparaj
Re: Issue is ChoiceSelectionCommand [message #124720 is a reply to message #124265] Thu, 28 February 2008 14:08 Go to previous messageGo to next message
Jimmy Jin is currently offline Jimmy Jin
Messages: 32
Registered: July 2009
Member
Hello, Pushparaj,

I will suggest you debug the verification method to see what the problem
it is. The enhancement needs some modification to the generated XML
script, so it may take me some time to submit it (also including the
modification to the document, which I've never done before). Also even
it's available in some version of AGR, I'm not sure if you can use the
compatible Eclipse version (for example 3.4).

You can post your verification method here, and I can also help you to
have a look.

Regards,
Jimmy Jin

Pushparaj wrote:
> Hi Jimmy Jin,
> Can i get this enhancement if i take the latest build ?.
> Because i tried the workaround what you mentioned in your reply. I am
> not facing any problem while recording the test case. But while running
> it is going up to the verification method then it waits for sometime
> after that i am getting some irrelevent error message(in line number 3).
>
> So if you have the plan to add your enhancement in near future i can
> wait for this enhancement.
>
> Thanks,
> Pushparaj
>
Re: Issue is ChoiceSelectionCommand [message #124946 is a reply to message #124720] Sat, 01 March 2008 17:14 Go to previous message
Pushparaj is currently offline Pushparaj
Messages: 62
Registered: July 2009
Member
Hi Jimmy Jin,
If it is working in some AGR version I am ready to use the compatible
eclipse version (3.4).

In my verification method I didn't written any code. It is blank.

Thanks,
Pushparaj
Previous Topic:problem with profiling RCP application ..
Next Topic:Is there any training provided for tptp
Goto Forum:
  


Current Time: Sun Oct 26 09:38:26 GMT 2014

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

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