Dominique
16 years agoOccasional Contributor
newbie: properties don't work + how to use Groovy scripts?
Good afternoon,
I am new in SOAPUI and I have the following situation:
I have a lot of requests, containing the following variables:
%%CLIENT_ID%%
%%REF_ID%%
(the values with the '%%' signs are imported from an external file.)
In order to fill in the values of the mentioned variables, I have made the following replacements for each request:
12345
265
I have decided to work in this way because "Test Properties" did not work well: I had filled in the test properties as follows (on test suite level):
%%CLIENT_ID%% : 12345
%%REF_ID%% : 265
but when I ran the request, the values %%CLIENT_ID%% and %%REF_ID%% were not replaced by 12345 and 265.
Now, I have the following problem: I would like to use the following variable:
%%TIMEOUT_30SEC%%
where TIMEOUT_30SEC should equal the current date/time + 30 seconds.
In order to do this, I need a groovy script in order to calculate this value, but as the examples on the website explain how to change a property of a testcase, I also need to know how to use the properties of Test Cases.
Can anybody help me?
Thanks
Dominique
I am new in SOAPUI and I have the following situation:
I have a lot of requests, containing the following variables:
%%REF_ID%%
(the values with the '%%' signs are imported from an external file.)
In order to fill in the values of the mentioned variables, I have made the following replacements for each request:
265
I have decided to work in this way because "Test Properties" did not work well: I had filled in the test properties as follows (on test suite level):
%%CLIENT_ID%% : 12345
%%REF_ID%% : 265
but when I ran the request, the values %%CLIENT_ID%% and %%REF_ID%% were not replaced by 12345 and 265.
Now, I have the following problem: I would like to use the following variable:
where TIMEOUT_30SEC should equal the current date/time + 30 seconds.
In order to do this, I need a groovy script in order to calculate this value, but as the examples on the website explain how to change a property of a testcase, I also need to know how to use the properties of Test Cases.
Can anybody help me?
Thanks
Dominique