I record a script on a webpage that contains a textfield that I typically put in zip codes snd another field is updated based on the zipcode numbers I type in.
When replaying the svript I get errors. I think my problem has to do with that the script being generated contains one web_submit_data for each number I put in as part of the zip code.
Here is the error msg I get at the after the first web_submit_data:
Error -26612: HTTP Status-Code=500 (Internal Server Error) for "and some url" [MsgId: MER-26612]]
Does someone know this problem and a possible solution?
It is described here to:
Thank you!
My code is below. It is recorder using the web/http protocol and it is recording when I type into a selfpopulating field/autocomplete field, so when I type 7000 into the zipcode field LR generates one web_submit_data for each nubmer i type in. I do not know if that is the problem dough.
Action()
{
web_url("nav_security_check",
"URL=http://someurl.local:8080/brukerprofil/nav_security_check?id=12345678910",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=img/nav_logo.gif", "Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0", ENDITEM,
LAST);
lr_think_time(4);
web_submit_data("brukerprofil",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.0-brukerprofil~skjema-valgtAdresseType",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType", "Value=radio11", ENDITEM,
LAST);
lr_think_time(4);
web_submit_data("brukerprofil_2",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.1-brukerprofil~skjema-valgtAdresseType-alternativAdressePanel-norskAlternativPostnummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=7", ENDITEM,
LAST);
web_submit_data("brukerprofil_3",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.1-brukerprofil~skjema-valgtAdresseType-alternativAdressePanel-norskAlternativPostnummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=70", ENDITEM,
LAST);
web_submit_data("brukerprofil_4",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.1-brukerprofil~skjema-valgtAdresseType-alternativAdressePanel-norskAlternativPostnummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=700", ENDITEM,
LAST);
web_submit_data("brukerprofil_5",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.1-brukerprofil~skjema-valgtAdresseType-alternativAdressePanel-norskAlternativPostnummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=7000", ENDITEM,
LAST);
web_submit_data("brukerprofil_6",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.1-brukerprofil~skjema-valgtAdresseType-alternativAdressePanel-norskAlternativPostnummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=7000", ENDITEM,
LAST);
web_submit_data("brukerprofil_7",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.2-brukerprofil~skjema-valgtAdresseType-alternativAdressePanel-norskAlternativPostnummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=7000", ENDITEM,
LAST);
lr_think_time(6);
web_submit_data("brukerprofil_8",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IBehaviorListener.1-brukerprofil~skjema-kontonummer",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=kontonummer", "Value=62281154546", ENDITEM,
LAST);
web_submit_data("brukerprofil_9",
"Action=http://someurl.local:8080/brukerprofil/brukerprofil?0-1.IFormSubmitListener-brukerprofil~skjema",
"Method=POST",
"RecContentType=text/html",
"Referer=http://someurl.local:8080/brukerprofil/brukerprofil?0",
"Snapshot=t10.inf",
"Mode=HTML",
ITEMDATA,
"Name=brukerprofil-skjema_hf_0", "Value=", ENDITEM,
"Name=valgtAdresseType", "Value=radio11", ENDITEM,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostAdresse1", "Value=Nedgata 2", ENDITEM,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostAdresse2", "Value=Postboks 2", ENDITEM,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostAdresse3", "Value=Sentrum 123", ENDITEM,
"Name=valgtAdresseType:alternativAdressePanel:norskAlternativPostnummer", "Value=7000", ENDITEM,
"Name=kontonummer", "Value=62281154546", ENDITEM,
"Name=mobilpanel:landkode", "Value=47", ENDITEM,
"Name=mobilpanel:nummer", "Value=98765432", ENDITEM,
"Name=telefonnummerpanel:landkode", "Value=47", ENDITEM,
"Name=telefonnummerpanel:nummer", "Value=22225555", ENDITEM,
"Name=ekstra-telefonnummerpanel:landkode", "Value=46", ENDITEM,
"Name=ekstra-telefonnummerpanel:nummer", "Value=11223344", ENDITEM,
"Name=epost", "Value=per.hansen@hjemme.no", ENDITEM,
LAST);
return 0;
}