In HP Load Runner VU Gen, I'd like to white a script that reads data from a table, with multiple columns and use data to call some url, based on env.
I do have 2 tables with the same structure : mytable_dev and mytable_prod. Those are File paramaters tables. For example, in mytable_dev.dat: firstname | lastname | age john | Smith | 12 Lara | Croft | 24 ...
I can do something like this to get "dev" or "prod":
env = lr_get_attrib_string("env");
Then I can select the table (dev or prod) with:
sprintf (data_temp,"{url_imd_%s}", env);
lr_save_string (lr_eval_string(data_temp), "data_env");
Then I'd like to call some url, based on table values:
web_rest("Foo",
"URL=http://somesite.com/foo/{data_env['firstname']}/{data_env['lastname']}",
...
How can I do that ?
Th.