Forum Discussion
mchelikani
12 years agoContributor
I have a Test Step-1 where I have HTTP Request as I posed. The http request has variables which gets data from datasource.
I have an event handler testRunListener.afterStep where I have the groovy code as I posted.
when I try to save the request using the groovy script in the above said even handler the request getting saved is as it is in my HttpRequest Post body. (I am expecting the variable in my request will get replaced with values from datasource).
The test case is successful as when I the request is sent to the server and when I caputure it in our server it has values replaces from the datasource.
please let me know if I am not clear. Thanks for Replying.
I have an event handler testRunListener.afterStep where I have the groovy code as I posted.
when I try to save the request using the groovy script in the above said even handler the request getting saved is as it is in my HttpRequest Post body. (I am expecting the variable in my request will get replaced with values from datasource).
The test case is successful as when I the request is sent to the server and when I caputure it in our server it has values replaces from the datasource.
please let me know if I am not clear. Thanks for Replying.
Related Content
- 7 years ago