I want to generate HTML report for my execution,so for that i designed Setup script and Teardown script which is working fine If my testcase have teststeps only (attached script and report(screen-1))-i.e 1 request or multiple requests but if my testcase have requests with datasource and Datasink or any of the testcase is disabled then i am unable to generated report-error message displayed(screen 2),not sure how to fix this issue.need help.
I have attached both the setup script in text file.
"com.eviware.soapui.support.scripting.ScriptException: Error in TearDown Script of I1_TS3_Recommendation Dedupe/Merge/Sort"
I think the issue is that you are assuming all test steps have the getHttpRequest() method which they don't. getHttpRequest() is specified in the interface HttpRequestTestStep, thus the test step you are checking must implement this interface.
A simple solution would be to check to see if each step implements the interface (using the Membership operator 'in') before you check the status. something like: