I'm trying to print value on console but I don't see any value
snippet of code
And prepresp = response.event.txn_count
Then print 'count is : ', response.event.txn_count
Then print 'count is : ', prepresp
I'm trying to print value on console but I don't see any value
snippet of code
And prepresp = response.event.txn_count
Then print 'count is : ', response.event.txn_count
Then print 'count is : ', prepresp
your code seems to be missing with 'def' keyword for defining 'prepresp'
And def prepresp = response.event.txn_count
Then print 'count is : ', response.event.txn_count
Then print 'count is : ', prepresp
This should work
* def count = response[0].EXPR$0
–
Deficit You should use karate.log(response)
for logging on the console.
The print action should print to the HTML page which is provided in the console after the tests run.
© 2022 - 2024 — McMap. All rights reserved.