Forum Discussion
jayeshk
15 years agoOccasional 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.
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.