Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Missing steps in test behavior
Missing steps in test behavior [message #68690] Wed, 26 April 2006 13:32 Go to next message
Bertrand Quenin is currently offline Bertrand QueninFriend
Messages: 70
Registered: July 2009
Member
Hi all,

I think that test behavior lakcs two important steps in the behavior.
I"m speaking about test "begin" and test "end". Indeed, these concepts
exist in JUnit formality under the "setUp" and "tierDown" methods. I think
it's a mandatory step in a test suite that should be present in each test
type. What do you think about it and i'm sorry if it has already been
submitted as a feature enhancment.

Regards.
BQ.
Re: Missing steps in test behavior [message #68796 is a reply to message #68690] Thu, 27 April 2006 11:17 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Bertrand,
In fact, the same methods (e.g. setUp() and tearDown()) are used in TPTP
JUnit tests. The behavior of a TPTP JUnit test models the execution
sequence and its synchronization. The methods of the generated JUnit test
class are invoked using this behavior but still following the existing JUnit
execution conventions:

1) setUp()
2) testMyTest()
3) tearDown()

Paul
"Bertrand Quenin" <bquenin@axway.com> wrote in message
news:2e820e600ee5fb15e20f93b0d7856df3$1@www.eclipse.org...
> Hi all,
>
> I think that test behavior lakcs two important steps in the behavior.
> I"m speaking about test "begin" and test "end". Indeed, these concepts
> exist in JUnit formality under the "setUp" and "tierDown" methods. I think
> it's a mandatory step in a test suite that should be present in each test
> type. What do you think about it and i'm sorry if it has already been
> submitted as a feature enhancment.
>
> Regards.
> BQ.
>
Re: Missing steps in test behavior [message #73191 is a reply to message #68796] Mon, 05 June 2006 12:40 Go to previous messageGo to next message
Bertrand Quenin is currently offline Bertrand QueninFriend
Messages: 70
Registered: July 2009
Member
Yes, i'm aware about this. What i meant was to introduce this concept in
the TPTP model. Setup and TearDown methods are not specifical to JUnit
tests. Setup and Teardown (or whatever, close, end, finish, etc.) steps
should be, in my opinion, present in the TPTP behavior model as mandatory
steps, i.e. for all test types (Web, Manual, auto gui, etc.) and then
mapped to the chosen technology.

Paul Slauenwhite wrote:

> Hi Bertrand,
> In fact, the same methods (e.g. setUp() and tearDown()) are used in TPTP
> JUnit tests. The behavior of a TPTP JUnit test models the execution
> sequence and its synchronization. The methods of the generated JUnit test
> class are invoked using this behavior but still following the existing JUnit
> execution conventions:

> 1) setUp()
> 2) testMyTest()
> 3) tearDown()

> Paul
> "Bertrand Quenin" <bquenin@axway.com> wrote in message
> news:2e820e600ee5fb15e20f93b0d7856df3$1@www.eclipse.org...
>> Hi all,
>>
>> I think that test behavior lakcs two important steps in the behavior.
>> I"m speaking about test "begin" and test "end". Indeed, these concepts
>> exist in JUnit formality under the "setUp" and "tierDown" methods. I think
>> it's a mandatory step in a test suite that should be present in each test
>> type. What do you think about it and i'm sorry if it has already been
>> submitted as a feature enhancment.
>>
>> Regards.
>> BQ.
>>
Re: Missing steps in test behavior [message #73636 is a reply to message #73191] Fri, 09 June 2006 13:01 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Bertrand,
This can be modeled using the current behavioral model by creating a
test for each setup and tear down and reference these 'tests' before and
after the actual test invocation.

If this solution is not suitable, please feel free to open a TPTP
enhancement.

Paul
"Bertrand Quenin" <bquenin@axway.com> wrote in message
news:e82dc2465998ac5a373ae80cbd5bafe7$1@www.eclipse.org...
> Yes, i'm aware about this. What i meant was to introduce this concept in
> the TPTP model. Setup and TearDown methods are not specifical to JUnit
> tests. Setup and Teardown (or whatever, close, end, finish, etc.) steps
> should be, in my opinion, present in the TPTP behavior model as mandatory
> steps, i.e. for all test types (Web, Manual, auto gui, etc.) and then
> mapped to the chosen technology.
>
> Paul Slauenwhite wrote:
>
> > Hi Bertrand,
> > In fact, the same methods (e.g. setUp() and tearDown()) are used in
TPTP
> > JUnit tests. The behavior of a TPTP JUnit test models the execution
> > sequence and its synchronization. The methods of the generated JUnit
test
> > class are invoked using this behavior but still following the existing
JUnit
> > execution conventions:
>
> > 1) setUp()
> > 2) testMyTest()
> > 3) tearDown()
>
> > Paul
> > "Bertrand Quenin" <bquenin@axway.com> wrote in message
> > news:2e820e600ee5fb15e20f93b0d7856df3$1@www.eclipse.org...
> >> Hi all,
> >>
> >> I think that test behavior lakcs two important steps in the
behavior.
> >> I"m speaking about test "begin" and test "end". Indeed, these concepts
> >> exist in JUnit formality under the "setUp" and "tierDown" methods. I
think
> >> it's a mandatory step in a test suite that should be present in each
test
> >> type. What do you think about it and i'm sorry if it has already been
> >> submitted as a feature enhancment.
> >>
> >> Regards.
> >> BQ.
> >>
>
>
Re: Missing steps in test behavior [message #79719 is a reply to message #73636] Wed, 02 August 2006 23:15 Go to previous message
Bertrand Quenin is currently offline Bertrand QueninFriend
Messages: 70
Registered: July 2009
Member
Paul Slauenwhite wrote:

> Hi Bertrand,
> This can be modeled using the current behavioral model by creating a
> test for each setup and tear down and reference these 'tests' before and
> after the actual test invocation.

> If this solution is not suitable, please feel free to open a TPTP
> enhancement.

> Paul

This solution is a workaround, nothing more. I agree that it's not
mandatory to have a global "begin" and "end" step in a test suite.
Moreover, it's easily implemented in JUnit by using the TestSetup wrapper
on the Hyades test suite and providing global setUp and tearDown methods.
I was just proposing this enhancment as the TPTP model is really pertinent
and, in my opinion, it lacks these two steps, but it's ok =)

Regards
BQ.
Previous Topic:Change default artifact editor extension
Next Topic:TPTP stops processing events
Goto Forum:
  


Current Time: Thu Jul 18 03:36:49 GMT 2024

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

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

Back to the top