groovy - How do I log the request and response in soapUI? -


i calling rest based service soapui. have created load test service , test works. wrote following code in setup script load test.

log.info("this setup script") def request = context.expand('${#request}') log.info(request) def response = context.expand('${#response}') log.info(response); 

the item getting in log "this setup script". added following lines of code in teardown script.

log.info("teardown script") def response = context.expand('${#response}') log.info(response); 

i not seeing "teardown script" text in log. @ point bit puzzled behavior.

load test: this load test

test suite

this test suite

test case options. have unchecked discard ok results test box. test case options

what changes need scripts in order log requests , responses?

when create setup and/or teardown script, remember run once per run, not per test! intended not going work.

in setup, since no tests have run yet, context going empty ... can see log message.

in teardown, suspect there bug in soapui , log not getting sent log tab. if intentionally create error (i used logg.info "hello world!" - note intentional double g), still got error in error log tab.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -