Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Question : How to create a data table
Question : How to create a data table [message #1707154] Wed, 02 September 2015 15:31 Go to next message
Harhouri Sawsen is currently offline Harhouri SawsenFriend
Messages: 3
Registered: September 2015
Junior Member
Hello,
Im a new user for RCPTT.
I would create a data table (that can be excel file , xml file , ...) to launch test case that verify some settings that must be equal tothe values that exist in Data table?
Crying or Very Sad
Can any one help please ?

Best Regards,
Sawsen
Re: Question : How to create a data table [message #1709380 is a reply to message #1707154] Mon, 28 September 2015 07:05 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Sawsen,

RCPTT can read csv files, you can use it as your data table.
Please see read-csv-file ECL command example.

Kind regards,
Ulyana.
Re: Question : How to create a data table [message #1709403 is a reply to message #1707154] Mon, 28 September 2015 09:21 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

Take a look at this article. It might be useful for your case.
It is about how to read tables from csv files and use content of it


Yours sincerely,
Olga.
Re: Question : How to create a data table [message #1709408 is a reply to message #1709403] Mon, 28 September 2015 09:44 Go to previous messageGo to next message
Harhouri Sawsen is currently offline Harhouri SawsenFriend
Messages: 3
Registered: September 2015
Junior Member
Hello Ulyana,

Thank you for your answer.
For  read-csv-file command, the output of this one is an EMF Table Object.
I am trying to see how to retrieve this output to use in my tests...



Re: Question : How to create a data table [message #1709410 is a reply to message #1709403] Mon, 28 September 2015 09:47 Go to previous messageGo to next message
Harhouri Sawsen is currently offline Harhouri SawsenFriend
Messages: 3
Registered: September 2015
Junior Member
Hello Olga Yurchuk,

Thank you for your answer.
Your link seems helpful. I will try this method.

Regards,
Sawsen

[Updated on: Mon, 28 September 2015 09:47]

Report message to a moderator

Re: Question : How to create a data table [message #1709514 is a reply to message #1709408] Tue, 29 September 2015 06:39 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Harhouri,

This procedure example may be helpful:

proc "index-of" [val list -input] [val item] {

$list | each [val elem] [val index] {

if [$elem | eq $item] { $index }

} | to-list | get 0 [int "-1"]

}

index-of [list 1 2 3] 4 | eq [int "-1"] | assert-true

index-of [list 1 2 3] 2 | eq 1 | assert-true



proc "get-value" [val table] [val columnName] [val rowNumber] {

let [val columnIndex [$table | get columns | to-list | index-of $columnName]] {

$table | get rows | to-list

| get $rowNumber | get values | to-list

| get $columnIndex

}

}





let [val table [read-csv-file "file:///Users/Ulik_MacAir/rcpttWorkspace_iTest/Project/ccc.csv"]] {

get-value $table "Name" 0 | eq "v11" | assert-true

get-value $table "Value" 0 | eq "v21" | assert-true

get-value $table "Name" 1 | eq "v12" | assert-true

get-value $table "Value" 1 | eq "v22" | assert-true


}

Kind regards,
Ulyana.
Re: Question : How to create a data table [message #1720107 is a reply to message #1709514] Thu, 14 January 2016 13:17 Go to previous messageGo to next message
jeremie gr is currently offline jeremie grFriend
Messages: 41
Registered: June 2015
Member
HI,
Do you konw it's possible to create Table EMF Object without file csv?

Because I want to create table on my projet and I want to update this table in my script.


Thanks,

Jeremie
Re: Question : How to create a data table [message #1740802 is a reply to message #1720107] Thu, 18 August 2016 15:20 Go to previous message
jeremie gr is currently offline jeremie grFriend
Messages: 41
Registered: June 2015
Member
hi,

have you solution? Smile

thanks,

jeremie
Previous Topic:rcptt process was terminated while waiting for aut startup data
Next Topic:Nightly build git repo
Goto Forum:
  


Current Time: Fri May 03 22:24:53 GMT 2024

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

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

Back to the top