Skip to main content


Eclipse Community Forums
Forum Search:

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

once again I will present an example. Very Happy.
I'm going to tell you how to play eclScript, with the same test-case.

First I create 3 eclScripts (very difficult to understand Rolling Eyes ),
script1 :
proc display {
	show-alert 1
}


script2 :
proc display {
	show-alert 2
}


script3 :
proc display {
	show-alert 3
}


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

Finally, I create a test case "testScripts" (even more difficult Twisted Evil ):
display


I add the super context eclScript in its context.

Project's picture:
http://img15.hostingpics.net/thumbs/mini_375820testScripts.png

I play "testScripts" 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 (superContextScripts) and my application (optional)

In the next episode, I'll mention how you can combine eclScript and parameter with groups. Good tests with rcptt.

[Updated on: Tue, 14 October 2014 20:25]

Report message to a moderator

Previous Topic:[TUTO] Super context with parameters
Next Topic:Parameter Use
Goto Forum:
  


Current Time: Thu Sep 19 09:25:53 GMT 2024

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

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

Back to the top