Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Add column on replay does not work(Recording a add column for a table , while replay the clumn does not get added)
Add column on replay does not work [message #1711875] Tue, 20 October 2015 08:38 Go to next message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
I have a feature of adding a column in appllication , I have recorderd the feature but on replay the column does not get added.


The following is the ECL being recorded

with [get-view XXXX] {
with [get-table -index 1] {
get-column-header Internal | click
get-column-header External | click
get-menu Add | click
}
}
with [get-window -class InputDialog] {
get-editbox -after [get-label "Enter New Rule Token"] | set-text "new_column"
get-button OK | click
}


On replay the column does not get added
Re: Add column on replay does not work [message #1711898 is a reply to message #1711875] Tue, 20 October 2015 09:27 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Harshini,

Is it possible to get your application (AUT) to reproduce the issue on our side?

Kind regards,
Ulyana.
Re: Add column on replay does not work [message #1712670 is a reply to message #1711898] Tue, 27 October 2015 12:02 Go to previous messageGo to next message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Sorry Ulyana the AUT is proprietary therefore cannot provide it , Is there any other means where the issue can be traced out.

Thanks,
Harshini
Re: Add column on replay does not work [message #1712763 is a reply to message #1712670] Wed, 28 October 2015 07:28 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Harshini,

Could you please attach Widget Details for a table?

Kind regards,
Ulyana.
Re: Add column on replay does not work [message #1715117 is a reply to message #1712763] Thu, 19 November 2015 11:18 Go to previous messageGo to next message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Widget information

Class: org.eclipse.swt.widgets.Composite
extends org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
implements org.eclipse.swt.graphics.Drawable

WidgetID: Shell/Composite|0/Composite|0/Composite|0/Composite|0/Composite|0/CTabFolder|1/Composite|3/|0/Composite|0/FXXXXDisplayViewer|1/Composite|4
Style flags: 33554432
Enabled: true
Focused: false
Visible: true
Reparentable: true


Please find above the widget details

[Updated on: Thu, 19 November 2015 11:18]

Report message to a moderator

Re: Add column on replay does not work [message #1715245 is a reply to message #1715117] Fri, 20 November 2015 13:58 Go to previous messageGo to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

HI Harshini Garikiparthi,
Do you receive any type of error ?


"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Re: Add column on replay does not work [message #1715363 is a reply to message #1715245] Mon, 23 November 2015 02:34 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Harshini,

Could you please attach an HTML execution report as well? You can generate it by clicking "Generate Report" button in Execution view.

Kind regards,
Ulyana.

Re: Add column on replay does not work [message #1721883 is a reply to message #1715363] Mon, 01 February 2016 09:52 Go to previous messageGo to next message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Hi Ulyana ,
I have come across another scenario.
Scenario: Click on a nebula grid , Press on shift and click on another Nebula Grid , the contents of the first cell gets copied.
When trying to capture this on RCPTT , the shift press is not getting captured therefore it does not get copied , Can you please help me with ecl script used for key press.

Thanks.
Re: Add column on replay does not work [message #1726041 is a reply to message #1715363] Wed, 09 March 2016 08:58 Go to previous messageGo to next message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Hi Ulyana ,

Please find the HTMPL report attached.

Please find the ECL script below

get-view XXX | get-table -index 1 | get-menu Add | click
with [get-window -class InputDialog] {
get-editbox -after [get-label "Enter New Rule Token"] | set-text "new_col"
get-button OK | click
}

get-view XXX | get-table -index 1 | get-menu Add | click
with [get-window -class InputDialog] {
with [get-editbox -after [get-label "Enter New Rule Token"]] {
set-text "new_Colu"
set-text "new_Colum"
set-text "new_Column"
}
get-button OK | click
}
with [get-view XXX | get-table -index 1] {
select "AAAA\\[0\\]" | activate-cell-edit -column 7
get-editbox | set-text 1
apply-cell-edit -deactivate
select "AAAA\\[1\\]" | activate-cell-edit -column 7
get-editbox | set-text 1
apply-cell-edit -deactivate
select "AAAA\\[2\\]" | activate-cell-edit -column 7
get-editbox | set-text 1
apply-cell-edit -deactivate
}


when we add a new column ( its index becomes 7) , but on replay the new column does not get added but instead the values get set in the current column which comes up on Index 7.


Please help.

Thanks,
Harshini
Re: Add column on replay does not work [message #1727215 is a reply to message #1726041] Mon, 21 March 2016 11:38 Go to previous messageGo to next message
Andrey Sobolev is currently offline Andrey SobolevFriend
Messages: 75
Registered: February 2015
Member
Hi,

I have a question after reading a conversation:

Let's look on first ECL snippet.

with [get-view XXXX] {
with [get-table -index 1] {
get-column-header Internal | click
get-column-header External | click
get-menu Add | click
}
}
with [get-window -class InputDialog] {
get-editbox -after [get-label "Enter New Rule Token"] | set-text "new_column"
get-button OK | click
}



>>get-menu Add | click<< is called over a table widget, so we don't record anything about positioning of mouse during header click.

So I think we are passing different mouse position during replay since we don't aware of this.

I've created a simple mockup for this case in https://github.com/xored/q7.quality.mockups/blob/master/plugins/com.xored.q7.quality.mockups.swt/src/org/eclipse/swt/table/TableWithColumnMenu.java

And be able to reproduce similar behaviour:
with [get-view "Q7 Quality Mockups" | get-group TableWithColumnMenu | get-table] {
    get-column-header "Column with checkbox " | click
    get-column-header "Empty column" | click
    get-column-header Values | click
    get-menu "Column:1" | click
}
get-window Action | get-button OK | click


We need to pass a proper mouse locations to MenuDetect call.

It would be helpful if you could pass us code snippet of how you are handling positions inside your context menu code.

Best regards,
Andrey.

Re: Add column on replay does not work [message #1727312 is a reply to message #1727215] Tue, 22 March 2016 06:24 Go to previous messageGo to next message
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Hello Andrey ,

The following is the code snippet used to get the cursor location.


Table table = fTableViewer.getTable();

// calculate click offset within table area
Point point = Display.getDefault().map(null, table, new Point(event.x, event.y));

ViewerCell cell = fTableViewer.getCell(point);

if (cell != null)
// clicked on a table cell
fSelectedColumnIndex = cell.getColumnIndex();
else {
// no cell detected, clicked on header
TableItem item = table.getItem(0);
int[] order = table.getColumnOrder();
for (int i = 0; i < table.getColumnCount(); i++)
{
Rectangle rect = item.getBounds(order[i]);
if (point.x >= rect.x && point.x <= rect.x + rect.width)
{
fSelectedColumnIndex = order[i];
}
}
}
From the above code we get the column index where the add operation ( rigth click on the column and select ADD )is done and after the respective column the newly created column would be added.


Thanks ,
Harshini
Re: Add column on replay does not work [message #1727580 is a reply to message #1727312] Thu, 24 March 2016 07:59 Go to previous message
Andrey Sobolev is currently offline Andrey SobolevFriend
Messages: 75
Registered: February 2015
Member
Hi Harshini,

Yes, I do almost same way.

We definitely not pass correct mouse locations if click on table column's.

Best regards,
Andrey.
Previous Topic:Not able to launch AUT with RCP Test Runner
Next Topic:How to make RCPTT load the plugins present in *.link file created under dropins folder
Goto Forum:
  


Current Time: Fri Apr 26 17:00:34 GMT 2024

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

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

Back to the top