私は通常郵便番号を入力するテキストフィールドを含むWebページにスクリプトを記録し、入力した郵便番号に基づいて別のフィールドが更新されます。svriptを再生するとエラーが発生します。私の問題は、生成されるスクリプトに、郵便番号の一部として入力した番号ごとに1つのweb_submit_dataが含まれていることに関係していると思います。
これは、最初のweb_submit_dataの後に表示されるエラーメッセージです。
エラー-26612:「および一部のURL」のHTTPステータスコード= 500(内部サーバーエラー)[MsgId:MER-26612]]
誰かがこの問題と可能な解決策を知っていますか?ここでは、次のように説明されています。
http://www.myloadtest.com/scripting-exercise-a-basic-ajax-application/
ありがとうございました!
私のコードは以下の通りです。これはweb/httpプロトコルを使用するレコーダーであり、自己入力フィールド/オートコンプリートフィールドに入力すると記録されるため、郵便番号フィールドに7000と入力すると、LRは入力する数字ごとに1つのweb_submit_dataを生成します。問題の生地です。
アクション() {
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;
}