Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi!
You can get the raw request either from the TestStepResult for an HTTPTestRequestStep with
rawRequest = new String( rt.rawRequestData() )
xmlOutput = rt.requestContentAsXml
for a JdbcTestStepResult you can use
xmlResponse = rt.requestContentAsXml
to get the XML version of the result.. to get the connection properties you need to go to the JdbcTestRequestStep itself:
jdbcRequest = testRunner.testCase.testSteps["JDBC Request"]
connectionString = jdbcRequest.connectionString
query = jdbcRequest.query
Hope this helps!
regards,
/Ole
eviware.com
You can get the raw request either from the TestStepResult for an HTTPTestRequestStep with
rawRequest = new String( rt.rawRequestData() )
xmlOutput = rt.requestContentAsXml
for a JdbcTestStepResult you can use
xmlResponse = rt.requestContentAsXml
to get the XML version of the result.. to get the connection properties you need to go to the JdbcTestRequestStep itself:
jdbcRequest = testRunner.testCase.testSteps["JDBC Request"]
connectionString = jdbcRequest.connectionString
query = jdbcRequest.query
Hope this helps!
regards,
/Ole
eviware.com