12 years ago
Write line in TestCase log via a Groovy Script
Hi,
I have a groovy script that alters through a testcase property variable a specific date in my request.
I like to write in my groovy script a line to de TestCase log so it is visible in the log to which date the date in the request was changed.
See example below. Is this possible in a groovy script?
Thanks.
TestCase log
Test started at 2014-07-08 19:36:03.631
Step 1 [Groovy - Change Deliverydate] OK: took 6 ms
Added line by Groovy script: DeliveryDate changed to : 09-07-2014
TestCase finished with status [FINISHED], time taken = 2002
Step 2 [3.2.1. (GetLocations in Area - Happyflow)] OK: took 1996 ms
I have a groovy script that alters through a testcase property variable a specific date in my request.
I like to write in my groovy script a line to de TestCase log so it is visible in the log to which date the date in the request was changed.
See example below. Is this possible in a groovy script?
Thanks.
TestCase log
Test started at 2014-07-08 19:36:03.631
Step 1 [Groovy - Change Deliverydate] OK: took 6 ms
Added line by Groovy script: DeliveryDate changed to : 09-07-2014
TestCase finished with status [FINISHED], time taken = 2002
Step 2 [3.2.1. (GetLocations in Area - Happyflow)] OK: took 1996 ms