Hi,

Here i send javascript file for view result in tree(response data)

<HTML><HEAD><TITLE>MNS NM Login </TITLE>
<META content=JavaScript name=vs_defaultClientScript>
<LINK href="images/default.css" 
type=text/css rel=stylesheet>

 <SCRIPT language=javascript >
        function trimSpace(x)
        {
                var emptySpace = / /g;
                var trimAfter = x.replace(emptySpace,"");
                return(trimAfter);
        }
        function validation() {
        var userName = document.Login.txtUser.value;
        var passWord = document.Login.txtPass.value;
                if(trimSpace(userName).length == 0 )
                {
                        alert("Please enter the UserName ");
                        document.Login.txtUser.focus();
                        return false;
                }
                else if(trimSpace(passWord).length == 0 )
                {
                        alert("Please enter the  Password");
                        document.Login.txtPass.focus();
                        return false;
                }

                //document.Login.submit.disabled = true;
                document.Login.submit();
                document.Login.txtUser.focus();
        }
        function setFocus() {
                document.Login.txtUser.focus();
        }
        function closeParent() {
                var login=window.opener;
                login.opener=self;
                login.close();
        }
</SCRIPT>
</HEAD>
<BODY onLoad="closeParent();setFocus()" >
<FORM id=Form1 name=Login action=LoginServlet method=post OnSubmit="return
validation()"> 
<input type=hidden name="login" value="login">
<TABLE class=skinbigtbl cellSpacing=5 cellPadding=0 align=center>
  <TBODY>
  <TR>
    <TD vAlign=center>
      <TABLE cellSpacing=0 cellPadding=0 width=450 align=center border=0>
        <TBODY>
        <TR>
          <TD class=skintopleft></TD>
          <TD class=skintop></TD>
          <TD class=skintopright></TD></TR>
        <TR>
          <TD class=skinleft></TD>
          <TD bgColor=#ffffff>
            <TABLE cellSpacing=0 cellPadding=0 width="98%" align=center
border=0>
              <TBODY>
              <TR>
                <TD class=skinhdrtitle><SPAN id=lblCC>MNS Network
Manager</SPAN></TD>
                <TD class=skinhdrcc>
                  <TABLE class=buttontbl cellSpacing=0 cellPadding=0>
                    <TBODY>
                    <TR>
                      <TD noWrap> images/pan_logo.gif 
            </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

                        <TABLE cellSpacing=0 cellPadding=0 align=center 
border=0>
              <TBODY>
              <TR>
                <TD class=lgncell><SPAN >Username:</SPAN></TD>
                <TD class=lgncell>
                                <INPUT class=boxes200 type=text maxLength=25 
name=txtUser></TD></TR>
              <TR>
                <TD class=lgncell><SPAN id=lblUsername>Password:</SPAN></TD>
                <TD class=lgncell><INPUT class=boxes200 type=password 
                  maxLength=25 name=txtPass><input type="hidden"
name="freePort" value="5500"></TD>
                </TR>
                                <TR>
                <TD class=lgncell colSpan=2 align=center>
                                <Input type=image name="submit" 
src="images/login_off.gif">
                                </TD>
                </TR>
              </TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="98%" align=center
border=0>
              <TBODY>
              <TR>
                <TD class=lgncell>&nbsp;<BR><BR></TD>
                <TD class=lgncell vAlign=bottom align=right><SPAN
id=lblBestViewed> </SPAN></TD></TR></TBODY></TABLE></TD>
          <TD class=skinright></TD></TR>
        <TR>
          <TD class=skinbottomleft></TD>
          <TD class=skinbottom></TD>
          <TD class=skinbottomright></TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

 </FORM>
 </BODY></HTML>


and viewresult tree.jmx file given below:

<jmeterTestPlan version="1.2" properties="1.8">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test
Plan" enabled="true">
      <elementProp name="TestPlan.user_defined_variables"
elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments"
testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>
      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <stringProp name="TestPlan.comments"></stringProp>
    </TestPlan>
    <hashTree>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup"
testname="Thread Group" enabled="true">
        <longProp name="ThreadGroup.start_time">1169125735000</longProp>
        <stringProp name="ThreadGroup.delay"></stringProp>
        <stringProp name="ThreadGroup.duration"></stringProp>
        <stringProp name="ThreadGroup.num_threads">1</stringProp>
        <boolProp name="ThreadGroup.scheduler">false</boolProp>
        <elementProp name="ThreadGroup.main_controller"
elementType="LoopController" guiclass="LoopControlPanel"
testclass="LoopController" testname="Loop Controller" enabled="true">
          <stringProp name="LoopController.loops">1</stringProp>
          <boolProp name="LoopController.continue_forever">false</boolProp>
        </elementProp>
        <longProp name="ThreadGroup.end_time">1169125735000</longProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
      </ThreadGroup>
      <hashTree>
        <HTTPSampler guiclass="HttpTestSampleGui" testclass="HTTPSampler"
testname="HTTP Request" enabled="true">
          <stringProp
name="HTTPSampler.path">/acmnms/LoginPage.jsp</stringProp>
          <stringProp name="HTTPSampler.method">POST</stringProp>
          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
          <stringProp name="HTTPSampler.protocol"></stringProp>
          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
          <stringProp name="HTTPSampler.port">8080</stringProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments"
guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined
Variables" enabled="true">
            <collectionProp name="Arguments.arguments"/>
          </elementProp>
          <stringProp name="HTTPSampler.mimetype"></stringProp>
          <stringProp name="HTTPSampler.FILE_FIELD"></stringProp>
          <stringProp name="HTTPSampler.monitor">false</stringProp>
          <stringProp name="HTTPSampler.domain">localhost</stringProp>
          <stringProp name="HTTPSampler.FILE_NAME"></stringProp>
          <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
        </HTTPSampler>
        <hashTree/>
        <ConfigTestElement guiclass="HttpDefaultsGui"
testclass="ConfigTestElement" testname="HTTP Request Defaults"
enabled="true">
          <stringProp
name="HTTPSampler.path">/acmnms/LoginPage.jsp</stringProp>
          <stringProp name="HTTPSampler.domain">localhost</stringProp>
          <stringProp name="HTTPSampler.protocol"></stringProp>
          <stringProp name="HTTPSampler.port">8080</stringProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments"
guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined
Variables" enabled="true">
            <collectionProp name="Arguments.arguments"/>
          </elementProp>
        </ConfigTestElement>
        <hashTree/>
        <ResultCollector guiclass="ViewResultsFullVisualizer"
testclass="ResultCollector" testname="View Results Tree" enabled="true">
          <objProp>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>false</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
             
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
            </value>
            <name>saveConfig</name>
          </objProp>
          <stringProp name="filename"></stringProp>
          <boolProp name="ResultCollector.error_logging">false</boolProp>
        </ResultCollector>
        <hashTree/>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>


Please help me..
Thanks
-- 
View this message in context: 
http://www.nabble.com/how-can-go-to-the-next-page-in-jmeter-tf3033715.html#a8430379
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to