2012-11-22 2 views
0

일반적으로 우편 번호에 넣는 텍스트 필드를 포함하는 웹 페이지에 스크립트를 기록합니다. 입력 한 우편 번호를 기반으로 다른 필드가 업데이트됩니다. svript를 재생할 때 오류가 발생합니다. 내 문제는 생성되는 스크립트가 우편 번호의 일부로 입력 한 각 번호에 대해 하나의 web_submit_data를 포함한다는 것과 관련이 있다고 생각합니다. 여기 LoadRunner ajax 필드

내가 얻을 오류 MSG 인 첫 번째 web_submit_data 후 :

오류 -26612 : 대한 HTTP 현상 코드 = 500 (내부 서버 오류) "일부 URL"[MsgId에 : MER-26612] ]

누군가이 문제와 가능한 해결책을 알고 있습니까?

http://www.myloadtest.com/scripting-exercise-a-basic-ajax-application/

감사합니다 : 그것은 여기에 설명되어 있습니다!


내 코드는 다음과 같습니다. 웹/HTTP 프로토콜을 사용하는 레코더이며 selfpopulating 필드/자동 완성 필드에 입력 할 때 녹음되므로 Zipcode 필드에 7000을 입력하면 LR은 각 nubmer에 대해 하나의 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", "[email protected]", ENDITEM, 
    LAST); 

return 0; 

}

답변

1

내 생각에는 처리되지 않은 동적 데이터가 있다는 것입니다. 이것은 다른 post과 매우 관련이 있습니다. 언급 한 요청을 살펴보면 동적 데이터의 처리되지 않은 요소와 완전히 위조 된 것으로 보이는 보안 ID로 분류되는 몇 가지 항목이 있습니다.

비즈니스 프로세스를 2-3 번 기록하십시오. WinDiff (LoadRunner에 포함) 또는 다른 파일 DIFF 도구를 사용하여 녹음 내용 간의 차이점을 식별하십시오. 동적 요소는 말 그대로 녹음 내용의 차이로 페이지에서 뛰어 내리지 않으면 안됩니다. 스크립트를 계속 진행하려면 이러한 동적 요소를 적절하게 처리해야합니다.

또한 각 단계마다 101 개의 하우스 키핑 항목을 테스트하면 예상되는 결과가 나타납니다. 당신의 코드에서 현저하게 결석 한 것은 정확한 기대 결과에 대한 어떤 종류의 체크이다. 이 경우 HTTP 200 상태 페이지가 반환되어 비즈니스 프로세스의 컨텍스트에서 완전히 벗어나지 만 언제 스크립트를 계속 사용할 수 있는지 쉽게 알 수 있습니다."궤도를 벗어났다"는 예상치 못한 결과로 인해 1-2 가지 요청 집합 내에서 HTTP 500을 치는 것이 100 % 확실하다는 것을 모르는 상태에서.

0

서버가 이러한 잘못된 사라 PHP 스크립트로 내부 오류가있는 경우 HTTP가 오류 (500)가 생성됩니다. Ajax 요청을 생성하는 코드와 가져 오는 파일을 게시 할 수 있다면 도움을 제공 할 수 있습니다 (내용은 괜찮습니다).

0

Magnus, 녹음 버튼 사용을 중단하고 요청을 받기 위해 도구를 사용하는 대신 HTTP 레벨에서 어떤 일이 일어나는지 살펴볼 것을 제안합니다.

, HTTP Watch 또는 Fiddler으로 시간을 보내고 응용 프로그램이 실제로 무엇을하는지 먼저 확인해보십시오.

수동으로 수행 할 때 어떤 일이 발생하는지 모르는 경우 자동화 할 수 없습니다.

관련 문제