#223 TestSuite Setup Scripts used in TestCase and TestStep

open
nobody
None
5
2009-07-28
2009-07-07
No

The desired feature considers SetupScript inheritance from Testsuits to testcases(which are in the testsuit).
Now it is possible to run TestSuit and all the testcases(which it includes) with one Setup script in TestSuit. But when we need to run one of the testcase it necessary to edit Setup Script in each testcase. When we have about 20 testcase, and want to run them one by one it is very tiring, to edit each one.

My request for feature is to implement automatic inheritance of entered SetupScript( to Testsuit) to each TestCase, it already has.

regards

Andrzej

Discussion

  • Andrzej Zaleski

    Andrzej Zaleski - 2009-07-28

    Actually, the feature concerns running single TestCase in an independent way from TestSuite, but with the use of declared groovy script functions in TestSuite Groovy Setup Script. The feautre could be extended to running single Groovy Test Step in an independent way from TestSuite and/or Test Case but with the use of declared groovy script functions in either TestSuite Groovy Setup Script or/and TestCase Groovy Setup Script. Experience in the field of testing web services let me claim that this is a very desired functionality, because it is much more easier to delare one set of Groovy functions in one Setup Script which could be used be single Test Steps in situtation of testing them one by one. Attached files consists a patch with the code make-ups I've done.

     
  • Andrzej Zaleski

    Andrzej Zaleski - 2009-07-28
    • summary: SetupScript inheritance from Testsuits to testcases --> TestSuite Setup Scripts used in TestCase and TestStep
     
  • Andrzej Zaleski

    Andrzej Zaleski - 2009-07-28

    The feature is described and ilustrated with Screen Shots on the following web page : http://top.touk.pl/confluence/display/SUI/Functional+Specification
    The patch is for SoapUI v3.0. The screen shots are from SoapUI v2.51. As you can see if you want to run TestCase with the use of SetupScript from TestSuite or run TestStep with the use of SetupScript from TestSuite or/and TestCase all you need to do is to set the property in TestSuite -> Run TestSuite StartupScript on Startup of TestCase, to true value.

     
  • Ole Lensmar

    Ole Lensmar - 2009-08-09

    Hi!

    thanks.. and sorry for not seeing this earlier.. I can add this to the sources, we could also add a check so that the inherited script is only run if the TestCase is run "by itself", thus removing the requirement to turn this off when running the entire TestCase.. does that make sense?

    regards!

    /Ole
    eviware.com

     
  • Andrzej Zaleski

    Andrzej Zaleski - 2009-08-10

    Hi!

    Citing you : "we could also add a check so that the inherited script is only run
    if the TestCase is run "by itself", thus removing the requirement to turn
    this off when running the entire TestCase.. does that make sense?", I hope you that you mean :

    (...)we could also add a check so that the inherited script is only run
    if the TestCase is run "by itself", thus removing the requirement to turn
    this off when running the entire TestSuite(...)

    I think this makes more sense, however setting this by the property in TestSuite -> Run
    TestSuite StartupScript on Startup of TestCase (as true or false) is in my opinion better way.

    Moreover

    "running single Groovy Test Step in an independent way from TestSuite and/or Test
    Case but with the use of declared groovy script functions in either
    TestSuite Groovy Setup Script or/and TestCase Groovy Setup Script"

    is a very similiar functionality so you can add this as well.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks