I have a some script written on js in loadrunner. Yesterday I needed a function "web_submit_data". On C it's syntax looks like:
int web_submit_data(const char *StepName, const char *Action, <List of Attributes>, ITEMDATA, <List of data>, [EXTRARES, <List of Resource Attributes>,] LAST);
To set the "List of data" I need ENDITEM constant, but I can't find it in JS Vuser.
I tried ENDITEM, web.ENDITEM, "ENDITEM", but its all does not works.
So, now my call of this function looks like:
web.submit_data("bsi.dll_14",
"Action=http://someaddr.org/a/b/c",
new Array(
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text\html"
"Referer=http://some.ref.link.org/"
"Snapshot=t70.inf",
"Mode=HTML"),
new Array(
new String("Name=exName1"), new String("Value=val1"),
new String("Name=exName2"), new String("Value=val2")));
And I got no errors for this, however sended HTTP-package does not contain data, that i tried to send.
So, can anybody help me with this mad function? How I should use web.submit_data in Javascript vuser?
Thanks in advance.
P.S. Sorry for my bad English. I tried to write understandable.