Forum Discussion

AnandKiran's avatar
AnandKiran
Frequent Contributor
16 years ago

How to declare properties in TestSuite level using Groovy

Hi ,

I am trying to declare the variables in the TestSuite level and i want to access them in my test steps . But I am stuck in the first step

When i tried declaring a variable in setup script

testSuite.properties["n"].value = "http://www.parasoft.com/wsdl/calculator/"

I am getting an error

Sat Jul 11 11:28:45 IST 2009:ERROR:An error occured [java.lang.NullPointerException], see error log for details

Can you tell me why this error has occured.

Regards
Anand.
  • AnandKiran's avatar
    AnandKiran
    Frequent Contributor
    Hi Team,

    I want to declare the Namespaces in the TestSuite level ( i.e in the setup script of the TestSuite). When I tried to do this I got an error which is described above.Can anyone suggest where did I go wrong

    Thanks
    With Regards
    Anand
  • Usha_Kodali's avatar
    Usha_Kodali
    Frequent Contributor
    Hi Anand,
    It would be good if you can post your solution and findings...