2014-11-10 5 views
0

방법 GET 요청 중에 다음과 같은 응답 코드에 대한 다음

 <html> 
 
     <head> 
 
     <title>HR WorkWays</title> 
 
     <SCRIPT LANGUAGE="JavaScript"> 
 
     if(window.history.forward(1) != null) window.history.forward(1); 
 
     </script> 
 
     <script language="JavaScript" src="/theme/disabledRightclick.js""></script> 
 
     <SCRIPT LANGUAGE=JavaScript FOR=window EVENT=onbeforeunload> 
 
     if (window.event.clientY < 0 && window.event.clientY < -80) { 
 
      valuex=window.event.returnValue = ""; 
 
     
 
      } 
 
     </script> 
 
     
 
     
 
     
 
     
 
     
 
     </head> 
 
     <body> 
 
     </body> 
 
     </html>  
 
     
 
     
 
      
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     <!-- Added for GSFIX --> 
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     
 
     <div style="font: bold 12px Arial; color:#FF0000"></div> 
 
     
 
     <html> 
 
     <head> 
 
     <title>PAN NO</title> 
 
     <style type="text/css"> 
 
     div#rolltipDiv { 
 
      position:absolute; visibility:hidden; 
 
      left:0; top:0; z-index:1000; 
 
      font:Arial, Helvetica, sans-serif; 
 
      width:220px; padding:3px; font-size:11px; 
 
      background-color:#dee7f7; border:1px solid #336; 
 
      } 
 
     
 
     .aceTextField { 
 
     border-width: 1; 
 
     border-style: single; 
 
     font-size: 2.5 mm; 
 
     font:Arial, Helvetica, sans-serif; 
 
     font-weight :normal; 
 
     text-align : right; 
 
     } 
 
     .aceNoTextField { 
 
     border-width: 0; 
 
     border-style: single; 
 
     font-size: 2.5 mm; 
 
     font:Arial, Helvetica, sans-serif; 
 
     font-weight :normal; 
 
     text-align : right; 
 
     } 
 
     
 
     .buttStyle { 
 
     background-color: #EEEEEE; 
 
     border-width: 1; 
 
     border-color: #DDDDDD; 
 
     font-size: 7pt; 
 
     font:Arial, Helvetica, sans-serif; 
 
     font-weight: bold; 
 
     } 
 
      </style> 
 
     <style type="text/css"> 
 
     <!-- 
 
     .style10 { font:Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; font-weight: bold; } 
 
     .style15 { font:Arial, Helvetica, sans-serif; font-size: 12px; color: #0000ff; font-weight: bold; } 
 
     .style20 { font:Arial, Helvetica, sans-serif; font-size: 9px; color: 2; } 
 
     a { 
 
     \t font-family: tahoma; 
 
     \t font-size: xx-small; 
 
     } 
 
     .style42 {color: #FFFFFF; font:Arial, Helvetica, sans-serif;} 
 
     .style58 { font:Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; font-weight: bold; } 
 
     .style65 {color: #000000 font:Arial, Helvetica, sans-serif;} 
 
     body { 
 
     } 
 
     a:link { 
 
     \t text-decoration: none; 
 
     \t color: #000000; 
 
     } 
 
     a:visited { 
 
     \t text-decoration: none; 
 
     \t color: #000000; 
 
     } 
 
     a:hover { 
 
     \t text-decoration: none; 
 
     \t color: #000000; 
 
     } 
 
     a:active { 
 
     \t text-decoration: none; 
 
     \t color: #000000; 
 
     } 
 
     body,td,th { 
 
     \t color: #000000; 
 
     } 
 
     .style79 {color: #666666 font:Arial, Helvetica, sans-serif;} 
 
     .style86 {font-size: 14px; 
 
     \t \t font-weight: bold; \t 
 
     \t \t font:Arial, Helvetica, sans-serif; 
 
     \t  } 
 
     .style87 {font-size: 14px; color: #000000; } 
 
     .style88 {font-size: 14; } 
 
     .heading 
 
     { 
 
     \t border-width:0; 
 
     \t border-color:#185081; 
 
     \t text-align:left; \t \t \t 
 
     \t font-size: 8pt; \t \t 
 
     \t font-weight: bold; \t 
 
     \t font:Arial, Helvetica, sans-serif; 
 
     \t foreground-color:#ffffff; \t 
 
     } 
 
     .msgStl 
 
     { 
 
     \t border-width:0; 
 
     \t border-color:#185081; 
 
     \t text-align:center; \t \t \t 
 
     \t font-size: 8pt; \t \t 
 
     \t font-weight: bold; \t 
 
     \t font:Arial, Helvetica, sans-serif; 
 
     \t foreground-color:#ffffff; \t 
 
     } 
 
     --> 
 
     </style> 
 
     
 
     <SCRIPT language="javascript"> 
 
     // VJK: Later we can remove 
 
     \t if(window.parent.contents == null) { 
 
     \t \t window.showModalDialog('/New_Window_error.html','window','title:Error ; dialogWidth:400px;dialogHeight:310px; status:no'); 
 
     \t \t if(navigator.appName == 'Netscape'){ 
 
     \t \t \t window.stop(); \t 
 
     \t \t } else { 
 
     \t \t \t document.execCommand('stop'); 
 
     \t \t } 
 
     \t \t 
 
     \t } 
 
     // VJK: Later we can remove 
 
     function doValidate() 
 
     { 
 
     \t myFrm = document.forms.panNo; 
 
     
 
     \t var str_pan = allTrim(myFrm.pan_no.value); 
 
     \t if(validate_pan(str_pan) == false) 
 
     \t { 
 
     \t \t return false; 
 
     \t } 
 
     \t 
 
      if(myFrm.pan_no.value == 'APPPP1234W') 
 
      { 
 
      \t alert('Please enter a new PAN value.'); 
 
      \t return false; 
 
      } 
 
     \t 
 
     \t document.forms.panNo.flag.value='P'; 
 
     \t **document.getElementById("cuen").value="hc|aa|faaf|offaa||faa{a||f^aaaafafafaff||afa|fafff|a}o^[email protected]}c^";** 
 
     \t 
 
     \t document.getElementById("url").value="/pan.jsp"; 
 
     \t document.forms.panNo.action="/pan.jsp"; 
 
     \t 
 
     \t document.forms.panNo.submit(); 
 
     } 
 
     
 
     function allTrim(string) 
 
     { 
 
      \t var temp = ""; 
 
      
 
      \t string = '' + string; 
 
      
 
      \t splitstring = string.split(" "); 
 
      
 
      \t for(i = 0; i < splitstring.length; i++) 
 
      \t { 
 
      \t \t temp += splitstring[i]; 
 
      \t } 
 
      
 
      \t return temp; 
 
     } 
 
     
 
     function validate_pan(str_pan1) 
 
     { 
 
      var str_pan = allTrim(str_pan1); 
 
     \t //var str_pan = str_pan1; 
 
     
 
     \t if (str_pan.length == 0) 
 
     \t { 
 
     \t \t alert("Pan Number cannot be blank."); 
 
     \t \t document.getElementById("pan_no").focus(); 
 
     \t \t return false; 
 
     \t } 
 
     \t 
 
      if(str_pan.length!=0 && str_pan!="APPLIEDFOR" && str_pan!="PANAPPLIED" && str_pan!="PANINVALID" && str_pan!="PANNOTAVBL") 
 
      { 
 
       var reg= new RegExp("[A-Z][A-Z][A-Z][A-Z][A-Z][0-9][0-9][0-9][0-9][A-Z]"); 
 
       if(reg.test(str_pan)==false) 
 
       { 
 
        alert("The first 5 characters of Pan No should be alpha in caps, the next 4 should be numerals and the last charater an alphabet in caps OR it should be APPLIEDFOR in capital letters."); 
 
     \t \t \t document.getElementById("pan_no").focus(); 
 
        return false; 
 
       } 
 
       
 
       if(str_pan.charAt(3)!='P') 
 
     \t  { 
 
     \t  alert("The fourth character of the PAN Number should be aplhabet P "); 
 
     \t  return false; 
 
     \t  } 
 
      } 
 
     } 
 
     
 
     function resizePan(obj) 
 
     { 
 
     \t if(obj.value == 'PAN NOT AVAILABLE/PAN APPLIED') 
 
     \t { 
 
     \t \t obj.size = '12'; 
 
     \t \t obj.maxLength = '10'; 
 
     \t } \t \t 
 
     \t document.getElementById('pan_no').value = ""; 
 
     } 
 
     </script> 
 
     
 
     
 
     <style type='text/css'> body { scrollbar-face-color:ghostwhite; \t scrollbar-highlight-color:darkgray; scrollbar-3dlight-color:lightblue; scrollbar-darkshadow-color:gray; scrollbar-shadow-color:darkslateblue; scrollbar-arrow-color:midnightblue; scrollbar-track-color:gainsboro; } </style> 
 
     <link href="/theme/Styles_Modified.css" rel="stylesheet" type="text/css" /> 
 
     </head> 
 
     <body > \t 
 
     
 
     <form name="panNo" method="post" action="/pan.jsp"> 
 
     <INPUT TYPE="hidden" NAME="cuen" id="cuen" VALUE=""> 
 
     <INPUT TYPE="hidden" NAME="url" id="url" VALUE=""> 
 
     <center> 
 
     <div align="center"></div> 
 
     <table width="43%" border="0" align="center"> 
 
      <tr> 
 
      <td height="168" colspan="3"> 
 
       <table bgcolor="#F2F3F4" width="418" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" rules="none"> 
 
       <tr bgcolor="#185081" > 
 
        <td colspan="2"><div align="center" class="tableHeader13">Update PAN </div></td> 
 
       </tr> 
 
       <tr> 
 
        <td colspan="2">&nbsp;</td> 
 
       </tr> 
 
       <tr> 
 
        <td width="143" class="tableContent11b"><p>&nbsp;Employee ID</p></td> 
 
        <td width="269" class="tableContent11"><p align="left">21865275</p></td> 
 
       </tr> 
 
       <tr> 
 
        <td width="143" height="24" class="tableContent11b"><p>&nbsp;Employee Name</p></td> 
 
        <td width="269" class="tableContent11"><p align="left">ABC21865275</p></td> 
 
       </tr> 
 
       <!-- 
 
       <tr bgcolor="#FFFFFF" class="style58"> 
 
        <td width="143" height="24"><p class="style87">&nbsp;Existing PAN</p></td> 
 
        <td width="269"><p align="left" class="style88">AGOPR99999</p></td> 
 
       </tr> 
 
       --> 
 
       <tr> 
 
        <td height="26" class="tableContent11b"><span>&nbsp;PAN</span></td> 
 
        <td width="269" class="tableContent11"><input name="pan_no" id="pan_no" type="text" size='12' maxlength='10' value="APPPP1234W" onFocus="resizePan(this)" class="textBoxEntryNo11L" > 
 
        </td> 
 
       </tr>   
 
       </table> 
 
       </td> 
 
      </tr>  
 
     </table> 
 
     
 
     <table align="center"> 
 
     \t <tr> 
 
     \t \t <td> 
 
     \t \t <input type="button" name="Submit" value="Confirm PAN" onClick="doValidate()" class="buttonStyle12"> 
 
     \t \t </td> 
 
     \t </tr> 
 
     </table> 
 
     </center> 
 
     <table align="center" width="434"> 
 
     \t <tr> 
 
     \t \t <td width="434" height="10"></td> 
 
     \t </tr> 
 
     \t <tr> 
 
     \t \t <td height="40"> 
 
     \t \t \t 
 
     \t \t \t \t <div class="messageBlue11b">This screen is enabled from 
 
     \t \t \t \t 01/05/2014 
 
     to 15/11/2014 
 
     </div> 
 
     \t </td> 
 
     \t 
 
     
 
     </table> 
 
     
 
     <INPUT TYPE='hidden' NAME='jspName' VALUE='pan'> 
 
     <input type="Hidden" name="flag" VALUE=""> 
 
     </form> 
 
      
 
     
 
     </body> 
 
     </html> 
 

 

 
    [1]: http://i.stack.imgur.com/SS7BO.jpg

을 위해 JMeter를에서 정규 표현식을 추출, 내가 값 document.getElementById를 ("cuen"). 값을 추출 할 필요가 = " @aaoacaaaaafaaaaaaaa} ck @ | o @@ cfff @@ k^c @ c {a^{ko {{} | {f {c {c {o} {{ ""; 그리고 다음 HTTP 요청에 게시해야합니다. 내가 매개 변수

다음 사용

[JMeter가에서 정규 표현식 추출기] [10] 정규식을 언급 정규 표현식 아래

답변

0

없이보십시오. 나는 그것을 시도 을, 내 컴퓨터에서 작동합니다.

+0

예. 작동합니다. 감사합니다. Nachiket kate – gopi

+0

도움이된다면 답을주십시오. –

0

사용을 추출하기 위해 정교하게하십시오!

.document \ .getElementById \ (\ "cuen \"\) \. value = "(. +?)". 또한이 도움이 될 "1"

희망으로 일치 호을 유지

.

+0

이는 스크립트 태그에 working.Basically 없습니다. Regular Expressio의 "Response field to check"에서 무엇을 선택해야합니까? n Extractor – gopi

+0

신체가 "** Body **" –

+0

이 아니어야합니다. 어느 것이 더 효과적인지 알려주십시오. – gopi

0

우회 표시를 시도하십시오.() "값 앞에 ="(+.?) : (.? +) "표시에 의해/

처럼 문서 \ .getElementById \ (\"cuen \ "\) \ .value =" "< - 특수 문자를 이스케이프 할 필요가

document.getElementById\(\"cuen\"\)\.value=\"(.*)\"; 

이 시도 스페이스의

+0

문서 "\ .getElementById \ (\"cuen \ "\) \ .value ="(. +?) ", 템플릿 : $ 1 $ 및 일치 번호 : 0 – gopi

+0

Jmeter에서 다음과 같은 정규식 추출기 문제가 발생했습니다. 다음 코드에서 cuen을 추출하고 싶습니다.이 href = "/ EPSF/EPSFEmpIndex.jsp? cuen = \"(. *) \ "\" 도움을 청하십시오. IPSF 2014-2015 gopi

관련 문제