Forum Discussion

jayeshk's avatar
jayeshk
Occasional Contributor
15 years ago

Global Property Transfer not working for SoapUI TestRunner

Hi,
I am trying to do the following steps through 3.6.1 SoapUI Test Runner.

1. Login Test Case
2. Property Transfer- Capture SessionID to Global properties.
3. Property Transfer- Retrieve SessionID from Global properties
4. Logout Test Case

If I run Soap UI TestRunner in version 3.6.1, till step 2 it is working fine.But I am not able to get Session ID from step 2 to step 3.As a result Logout Test Case fails. And neither I can use session Id for other tests.
Same problem if I try from command window.

Please help me soon with the solution for Global Property Transfer.

2 Replies

  • Hi,

    global properties are stored in the soapui-settings.xml file, make sure that you have specified the same file as used by the GUI (with the -t option)

    regards,

    /Ole
    eviware.com
  • jayeshk's avatar
    jayeshk
    Occasional Contributor
    Hi,
    TestRunner is reading values from soapUI-settings.xml but the problem which now I found out is, in case if I run Login Test Case through TestRunner, it is not updating SoapUI-settings.xml with Global Properties like SessionID. Hence Logout Test Case is not able to take the latest SessionID and it fails.
    Please let me know if we need to do any settings for successful transfer of Global Property from SoapUI Preferences->Global Settings to soapUI-settings.xml.

    Following is the command line I am using:
    cmd.exe /C testrunner.bat -ehttp://<host>:<port>/sts/services/SecurityTokenServiceSvc -s"TestSuite Login" -cLogin -r -a -j -f"C:\Documents and Settings\jayeshk\Desktop\SoapReports" -I -S -t"C:\Documents and Settings\jayeshk\soapui-settings.xml" -i C:\Jayesh\SoapUI\login-soapui-project.xml

    cmd.exe /C testrunner.bat -ehttp://<host>:<port>/ws/services/LogoutSvc -s"TestSuite Logout" -c"logout TestCase" -r -a -j -f"C:\Documents and Settings\jayeshk\Desktop\SoapReports" -I -S -t"C:\Documents and Settings\jayeshk\soapui-settings.xml" -i C:\Jayesh\SoapUI\logout-soapui-project.xml

    In Logout, the required Session ID from Login is not transferred.