Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Calling other suites in a behaviour?
Calling other suites in a behaviour? [message #111480] Thu, 06 September 2007 09:00 Go to next message
Eclipse UserFriend
Originally posted by: lee.smith.mobile.j.com

Hi There,

I've been trying to setup some tests and I've got them working fine in a
simple case where i have all the test cases within a single suite. I've also
been able to call individual cases from other suites and run them in another
suite.

However, what I would like to do is run one suite from within another -
given the test editor allows you to setup the behviour to do this I assume
this is supposed to be supported? :)

I've setup a really simple example to to try this out:

i. I created a test suite 'TestChild' that includes a single test case,
'TestCase1'. All it does it open and then immediately close the new project
wizard. I added the test case to the behaviour on 'TestChild', and when I
run it it all works fine.

ii. I then created a test suite 'TestParent' that again includes a single
test case 'TestCase2'. Again it just opens the wizard and closes it. I added
the test case to the behaviour on 'TestParent' and run it and again it all
works.

iii. I then added 'TestChild' to the behaviour on 'TestParent'. Now when
I run 'TestParent' the test executes, and completes with a pass result. Upon
investing the execution log however I can see that the test case in
'TestParent' was run, and it did run 'TestChild' however it didn't run any
of the test cases within it. If I was the execution myself, I can see that
the new project wizard is never opened so it's not that it's just not
reporting it correctly.

However, If I add the 'TestCase1' test case on TestChild directly to
TestParent's behaviour, both the test cases run correctly.

So, is what I'm trying to do actually allowed? Or is the test editor giving
me the incorrect impression that adding child test suites to the behaviour
of a parent test suite is possible?

Obviously I could work-around this by always adding all the test-cases on
the children to the parent, however that creates a bit of a mess as then if
I need to change the test-cases on a child I need to go back through all the
test suites that use it and update them.

FYI, I'm using TPTP 4.3.1 on Eclipse 3.2.2.


Cheers, Lee
Re: Calling other suites in a behaviour? [message #112710 is a reply to message #111480] Wed, 19 September 2007 12:31 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Lee,
This has since been fixed in TPTP 4.4.0.

Paul
"Lee Smith" <lee.smith@mobile.j.com> wrote in message
news:fboffd$uje$1@build.eclipse.org...
> Hi There,
>
> I've been trying to setup some tests and I've got them working fine in a
> simple case where i have all the test cases within a single suite. I've
> also been able to call individual cases from other suites and run them in
> another suite.
>
> However, what I would like to do is run one suite from within another -
> given the test editor allows you to setup the behviour to do this I assume
> this is supposed to be supported? :)
>
> I've setup a really simple example to to try this out:
>
> i. I created a test suite 'TestChild' that includes a single test case,
> 'TestCase1'. All it does it open and then immediately close the new
> project wizard. I added the test case to the behaviour on 'TestChild', and
> when I run it it all works fine.
>
> ii. I then created a test suite 'TestParent' that again includes a
> single test case 'TestCase2'. Again it just opens the wizard and closes
> it. I added the test case to the behaviour on 'TestParent' and run it and
> again it all works.
>
> iii. I then added 'TestChild' to the behaviour on 'TestParent'. Now
> when I run 'TestParent' the test executes, and completes with a pass
> result. Upon investing the execution log however I can see that the test
> case in 'TestParent' was run, and it did run 'TestChild' however it didn't
> run any of the test cases within it. If I was the execution myself, I can
> see that the new project wizard is never opened so it's not that it's just
> not reporting it correctly.
>
> However, If I add the 'TestCase1' test case on TestChild directly to
> TestParent's behaviour, both the test cases run correctly.
>
> So, is what I'm trying to do actually allowed? Or is the test editor
> giving me the incorrect impression that adding child test suites to the
> behaviour of a parent test suite is possible?
>
> Obviously I could work-around this by always adding all the test-cases on
> the children to the parent, however that creates a bit of a mess as then
> if I need to change the test-cases on a child I need to go back through
> all the test suites that use it and update them.
>
> FYI, I'm using TPTP 4.3.1 on Eclipse 3.2.2.
>
>
> Cheers, Lee
>
Previous Topic:TPTP files and reports with BIRT
Next Topic:changing the RAC port makes eclipse crash when trying to verify the deployment
Goto Forum:
  


Current Time: Fri Apr 19 19:49:04 GMT 2024

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

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

Back to the top