Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » TPTP testing and plugin
TPTP testing and plugin [message #100935] Wed, 13 June 2007 20:19 Go to next message
Martin M is currently offline Martin MFriend
Messages: 1
Registered: July 2009
Junior Member
Hi all,

I have a query wrt supported application.
I want to test an Eclipse-plugin, which opens a new shell via a menu.
Unfortunately I wasn't able to capture any action on that new shell.

What's my fault?

I use: Eclipse Version 3.2.2
Build id: M20070212-1330

Eclipse Modeling Framework (EMF)
Version: 2.2.2.v200702131851
Build id: 200702131851

TPTP Automated GUI Recording and Playback
Version: 4.1.100.v200606131519--1G955G6B6A6A6D
Build id: TPTP-4.3.1-200702221346

Here is the code, what I'm doing:

Display display = window.getShell().getDisplay();
Shell shell = new Shell(display);
shell.setData("name", "HelloWorldName");
shell.setText("Hello world from plugin!");

Button ok = new Button(shell, SWT.PUSH);
ok.setText("OK");

Label label = new Label(shell, 0);
Text text = new Text(shell, SWT.LEFT);

label.setText("Input -> ");
text.setText("THIS is a text");
ok.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e){
System.out.println("OK");
}
});


Button cancel = new Button(shell, SWT.PUSH);
cancel.setText("Cancel");

cancel.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e){
System.out.println("Cancel");
}
});

shell.setLayout(new RowLayout());
shell.pack();
shell.open();

Thanks in advance!

Regards,
Martin
Re: TPTP testing and plugin [message #100952 is a reply to message #100935] Thu, 14 June 2007 11:51 Go to previous messageGo to next message
Liz Dancy is currently offline Liz DancyFriend
Messages: 77
Registered: July 2009
Member
Hi Martin,

Thanks for the providing the additional information. I am debugging the
scenario and am able to reproduce the failure to record using your
configuration. I am wondering if it is the type of Shell you are using. If
this is the case we can open an enhancement/defect to support this case. I
will report back with further findings as soon as possible.

Sincerely,

Liz Dancy
"Martin M" <martin4@qfs.de> wrote in message
news:390d6278c8eaaaa35dc61085f57c24af$1@www.eclipse.org...
> Hi all,
>
> I have a query wrt supported application.
> I want to test an Eclipse-plugin, which opens a new shell via a menu.
> Unfortunately I wasn't able to capture any action on that new shell.
> What's my fault?
>
> I use: Eclipse Version 3.2.2
> Build id: M20070212-1330
>
> Eclipse Modeling Framework (EMF) Version: 2.2.2.v200702131851
> Build id: 200702131851
>
> TPTP Automated GUI Recording and Playback Version:
> 4.1.100.v200606131519--1G955G6B6A6A6D
> Build id: TPTP-4.3.1-200702221346
>
> Here is the code, what I'm doing:
>
> Display display = window.getShell().getDisplay();
> Shell shell = new Shell(display);
> shell.setData("name", "HelloWorldName");
> shell.setText("Hello world from plugin!");
>
> Button ok = new Button(shell, SWT.PUSH);
> ok.setText("OK");
>
> Label label = new Label(shell, 0);
> Text text = new Text(shell, SWT.LEFT);
>
> label.setText("Input -> ");
> text.setText("THIS is a text");
> ok.addSelectionListener(new SelectionAdapter(){
> public void widgetSelected(SelectionEvent e){
> System.out.println("OK");
> }
> });
>
>
> Button cancel = new Button(shell, SWT.PUSH);
> cancel.setText("Cancel");
>
> cancel.addSelectionListener(new SelectionAdapter(){
> public void widgetSelected(SelectionEvent e){
> System.out.println("Cancel");
> }
> });
>
> shell.setLayout(new RowLayout());
> shell.pack();
> shell.open();
>
> Thanks in advance!
>
> Regards,
> Martin
>
Re: TPTP testing and plugin [message #101147 is a reply to message #100952] Mon, 18 June 2007 22:50 Go to previous message
Liz Dancy is currently offline Liz DancyFriend
Messages: 77
Registered: July 2009
Member
Hi Martin,

Thanks for your patience. I did some debugging and found that the shell you
are trying to record upon is not getting properly placed in the Shell stack
at record time. This allows it to be caught by a check for it being the 'top
shell' before any events are added to the test case Macro.

In summary, the events are there, they are just not being added to the
Macro. I have opened the following defect to fix this problem:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193220.

Please add yourself to the CC list to track its progress.

Sincerely,

Liz Dancy

"Liz Dancy" <lizdancy@ca.ibm.com> wrote in message
news:f4ra6k$hmc$1@build.eclipse.org...
> Hi Martin,
>
> Thanks for the providing the additional information. I am debugging the
> scenario and am able to reproduce the failure to record using your
> configuration. I am wondering if it is the type of Shell you are using. If
> this is the case we can open an enhancement/defect to support this case. I
> will report back with further findings as soon as possible.
>
> Sincerely,
>
> Liz Dancy
> "Martin M" <martin4@qfs.de> wrote in message
> news:390d6278c8eaaaa35dc61085f57c24af$1@www.eclipse.org...
>> Hi all,
>>
>> I have a query wrt supported application.
>> I want to test an Eclipse-plugin, which opens a new shell via a menu.
>> Unfortunately I wasn't able to capture any action on that new shell.
>> What's my fault?
>>
>> I use: Eclipse Version 3.2.2
>> Build id: M20070212-1330
>>
>> Eclipse Modeling Framework (EMF) Version: 2.2.2.v200702131851
>> Build id: 200702131851
>>
>> TPTP Automated GUI Recording and Playback Version:
>> 4.1.100.v200606131519--1G955G6B6A6A6D
>> Build id: TPTP-4.3.1-200702221346
>>
>> Here is the code, what I'm doing:
>>
>> Display display = window.getShell().getDisplay();
>> Shell shell = new Shell(display);
>> shell.setData("name", "HelloWorldName");
>> shell.setText("Hello world from plugin!");
>>
>> Button ok = new Button(shell, SWT.PUSH);
>> ok.setText("OK");
>>
>> Label label = new Label(shell, 0);
>> Text text = new Text(shell, SWT.LEFT);
>>
>> label.setText("Input -> ");
>> text.setText("THIS is a text");
>> ok.addSelectionListener(new SelectionAdapter(){
>> public void widgetSelected(SelectionEvent e){
>> System.out.println("OK");
>> }
>> });
>>
>>
>> Button cancel = new Button(shell, SWT.PUSH);
>> cancel.setText("Cancel");
>>
>> cancel.addSelectionListener(new SelectionAdapter(){
>> public void widgetSelected(SelectionEvent e){
>> System.out.println("Cancel");
>> }
>> });
>>
>> shell.setLayout(new RowLayout());
>> shell.pack();
>> shell.open();
>>
>> Thanks in advance!
>>
>> Regards,
>> Martin
>>
>
>
Previous Topic:TPTP AGR problem on PVCS plug-in
Next Topic:VPN and HTTP recorder
Goto Forum:
  


Current Time: Thu Apr 18 02:30:38 GMT 2024

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

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

Back to the top