Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] Does RCPTT support Data Driven?(Does RCPTT support Data Driven?)
[SOLVED] Does RCPTT support Data Driven? [message #1554266] Fri, 09 January 2015 05:18 Go to next message
hanh le is currently offline hanh leFriend
Messages: 3
Registered: January 2015
Junior Member
Hi All,

Does RCPTT support Data Driven?
I need to run a script with multiple data, does RCPTT support that?

Best regards,
Hanh Le

[Updated on: Wed, 30 September 2015 07:44] by Moderator

Report message to a moderator

Re: Does RCPTT support Data Driven? [message #1559623 is a reply to message #1554266] Mon, 12 January 2015 05:31 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

Thank you for contacting us!
One of the most asked features for RCPTT is to execute a same test with different parameters. Is it exactly what you want?
You can find more information about it by following links:
https://www.eclipse.org/rcptt/documentation/userguide/contexts/super/
https://www.eclipse.org/rcptt/documentation/userguide/contexts/parameters/

Please try and let me know if it is suitable for you.


Yours sincerely,
Olga.
Re: Does RCPTT support Data Driven? [message #1559684 is a reply to message #1559623] Mon, 12 January 2015 06:21 Go to previous messageGo to next message
hanh le is currently offline hanh leFriend
Messages: 3
Registered: January 2015
Junior Member
Hello Olga,

I want to run the same test with a collection of data, not with different parameters.
For example:
- Run the test "Valid Login" with some data i.e. "user1/pass1", "user2/pass2"...
In this case, I use two parameters "user_param", "pass_param". But I cannot run the test with above data.

I have tried to use "parameter context", but it is not my case.
Could I try my case with RCPTT?

Thanks and regards,
Hanh Le







Re: Does RCPTT support Data Driven? [message #1560077 is a reply to message #1559684] Mon, 12 January 2015 11:26 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,

Thank you for the explanation. As I understand you want to read parameters from some file.
In RCPTT you can read tables from csv files and use content of them in test cases.
Take a look at the following snippet of ECL code

 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"]
}

proc "get-value" [val table] [val columnName] [val rowNumber] { // this proc returns value from columnName column rowNumber row
    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:/temp/read-csv.csv"]] { // read table from csv-file
    get-value $table "a1" 0 | log // this line writes to Error log value from column a1 row 0
}


With the table:
a1,b1
1,2

the above snippet will write to Error log value 1.

Is it suitable for you?
Please let me know if you have any questions.


Yours sincerely,
Olga.
Re: Does RCPTT support Data Driven? [message #1561209 is a reply to message #1560077] Tue, 13 January 2015 02:04 Go to previous message
hanh le is currently offline hanh leFriend
Messages: 3
Registered: January 2015
Junior Member
Hello Olga,

Yes, it is my case.
Thank you very much.

Best regards,
Hanh Le
Previous Topic:[SOLVED] Problem importing launch configurations
Next Topic:Waiting for AUT Startup, but RCP application started up
Goto Forum:
  


Current Time: Tue Apr 23 14:32:00 GMT 2024

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

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

Back to the top