Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [TUTO] Super contexts with groups(An example to use differents groups with the same test)
icon1.gif  [TUTO] Super contexts with groups [message #1447734] Sat, 18 October 2014 20:39
Francis BACQUET is currently offline Francis BACQUETFriend
Messages: 46
Registered: September 2014
Member
Hello,

the groups context represents combined references to contexts. The contexts may be same or different. In my sample, I use param with eclScript.

That my sample:
First I create an eclScript "scriptParam" (new -> context -> Ecl Script):
proc display {
	show-alert $param
}


Then, I create 3 parameters(new -> context -> parameter):
param1 with one param (param : 1)
param2 with one param (param : 2)
param3 with one param (param : 3)

And also, I create 3 groups(new -> context -> group):
group1 with "scriptParam" and param1
group2 with "scriptParam" and param2
group3 with "scriptParam" and param3

I create a "super context" groups, and add three groups in its context.

Finally, I create a test case "testGroups":
display

I add the super context in its context.

Project's picture:


http://img11.hostingpics.net/thumbs/mini_604224testGroups.png


I play "testGroups" and 3 tests are executed:
1)show dialog with "1"
2)show dialog with "2"
3)show dialog with "3"

I join my project test (superContextParameter) and my application (optional)

My project contains also another sample.
I use scriptParam with a super context param. the result is the same.
Previous Topic:E4 support is it in your plan ?
Next Topic:New ECL command
Goto Forum:
  


Current Time: Fri Apr 19 11:05:59 GMT 2024

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

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

Back to the top