Forum Discussion
jayeshk
14 years agoOccasional Contributor
Even after using the two options -t & -G still it is not working.
Below is the command used:
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 -GSessionID=${SessionID} -t"C:\Documents and Settings\jayeshk\soapui-settings.xml" -i C:\Jayesh\SoapUI\login-soapui-project.xml
The Global property "SessionID" is not transferred from Soap UI -> Preferences to soapui-settings.xml.
Also check attached screenshot. I tried to 3 options for Global property:
1) No value for session ID - This did not worked
2) Value ${SessionID} - This did not worked
3) Exact session ID value from Login service Response - This worked but don't know how it can we retrieve SessionID automatically from Global Property Preference.
Please let me know how to write Global Property to soapui-settings.xml from TestRunner for Login & retrieve from it for Logout automatically.
Below is the command used:
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 -GSessionID=${SessionID} -t"C:\Documents and Settings\jayeshk\soapui-settings.xml" -i C:\Jayesh\SoapUI\login-soapui-project.xml
The Global property "SessionID" is not transferred from Soap UI -> Preferences to soapui-settings.xml.
Also check attached screenshot. I tried to 3 options for Global property:
1) No value for session ID - This did not worked
2) Value ${SessionID} - This did not worked
3) Exact session ID value from Login service Response - This worked but don't know how it can we retrieve SessionID automatically from Global Property Preference.
Please let me know how to write Global Property to soapui-settings.xml from TestRunner for Login & retrieve from it for Logout automatically.
Related Content
- 7 months agosohailalam2696