1 1 5 true continue 1 false 5000 30000 apex.oracle.com 443 https false false username demo = password demodemo = User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:48.0) Gecko/20100101 Firefox/48.0 Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language fr,en-US;q=0.7,en;q=0.3 Accept-Encoding gzip, deflate pls/apex/r/pyx/test/login true GET true false Sign In Assertion.response_data false 2 submit_path #wwvFlowForm action false <form role="none" action="wwv_flow.accept?p_context=test/login/110363106872668" method="post" name="wwv_flow" id="wwvFlowForm" data-oj-binding-provider="none" novalidate="" autocomplete="off"> p_flow_id #pFlowId value false <input type="hidden" name="p_flow_id" value="97111" id="pFlowId"> p_flow_step_id #pFlowStepId value false <input type="hidden" name="p_flow_step_id" value="9999" id="pFlowStepId"> p_instance #pInstance value false <input type="hidden" name="p_instance" value="110363106872668" id="pInstance"> p_page_submission_id #pPageSubmissionId value false <input type="hidden" name="p_page_submission_id" value="ODEwMzY1MjMyMjc3ODI1MDEwMzQ3OTI5MTExMzc4MTE1Nzg0MDE/hkibEOPM4jDzW8OGgpzbtvf6GI-e4g3R3-z4WKWL-uMdcxHfcDWHU1go05DdMy5ZHpQaMENPAFUoGWFUM9uBRw" id="pPageSubmissionId"> pContext #pContext value false <input type="hidden" value="test/login/110363106872668" id="pContext"> pSalt #pSalt value false <input type="hidden" value="81036523227782501034792911137811578401" id="pSalt"> p_reload_on_submit #pReloadOnSubmit value false <input type="hidden" name="p_reload_on_submit" value="S" id="pReloadOnSubmit"> pPageItemsProtected #pPageItemsProtected value false <input type="hidden" id="pPageItemsProtected" value="/2Eod3vwXsVXutuu_HxFDCKcdKqaJWtvx0lPHHzBR9M7ZEFbM_8tvRGTw-mZggDnOwZJVJ7Dj7ZyC3an8KWeLBw"> p_request #pRequest value true <input type="hidden" name="p_request" value="" id="pRequest"> pls/apex/${submit_path} true POST true true false false ${pContext} = true p_context text/plain false ${p_flow_id} = true text/plain p_flow_id false ${p_flow_step_id} = true p_flow_step_id false ${p_instance} = true p_instance false = true p_debug false ${p_request} = true p_request false ${p_reload_on_submit} = true p_reload_on_submit false ${p_page_submission_id} = true p_page_submission_id false {"pageItems":{"itemsToSubmit":[{"n":"P9999_USERNAME","v":"demo"},{"n":"P9999_PASSWORD","v":"demodemo"},{"n":"P9999_REMEMBER","v":"N"}],"protected":"${pPageItemsProtected}","rowVersion":"","formRegionChecksums":[]},"salt":"${pSalt}"} = true p_json false = true false = true redirectURL redirectURL ${redirectURL} true GET true false OKKKK Assertion.response_data false 2 false saveConfig true true true true true true true true false false true true false false false true false false false true 0 true true true true For scripting only "> Oracle APEX Jmeter压测-登录 1 1 5 true continue 1 false 5000 30000 apex.oracle.com 443 https false false username demo = password demodemo = User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:48.0) Gecko/20100101 Firefox/48.0 Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language fr,en-US;q=0.7,en;q=0.3 Accept-Encoding gzip, deflate pls/apex/r/pyx/test/login true GET true false Sign In Assertion.response_data false 2 submit_path #wwvFlowForm action false <form role="none" action="wwv_flow.accept?p_context=test/login/110363106872668" method="post" name="wwv_flow" id="wwvFlowForm" data-oj-binding-provider="none" novalidate="" autocomplete="off"> p_flow_id #pFlowId value false <input type="hidden" name="p_flow_id" value="97111" id="pFlowId"> p_flow_step_id #pFlowStepId value false <input type="hidden" name="p_flow_step_id" value="9999" id="pFlowStepId"> p_instance #pInstance value false <input type="hidden" name="p_instance" value="110363106872668" id="pInstance"> p_page_submission_id #pPageSubmissionId value false <input type="hidden" name="p_page_submission_id" value="ODEwMzY1MjMyMjc3ODI1MDEwMzQ3OTI5MTExMzc4MTE1Nzg0MDE/hkibEOPM4jDzW8OGgpzbtvf6GI-e4g3R3-z4WKWL-uMdcxHfcDWHU1go05DdMy5ZHpQaMENPAFUoGWFUM9uBRw" id="pPageSubmissionId"> pContext #pContext value false <input type="hidden" value="test/login/110363106872668" id="pContext"> pSalt #pSalt value false <input type="hidden" value="81036523227782501034792911137811578401" id="pSalt"> p_reload_on_submit #pReloadOnSubmit value false <input type="hidden" name="p_reload_on_submit" value="S" id="pReloadOnSubmit"> pPageItemsProtected #pPageItemsProtected value false <input type="hidden" id="pPageItemsProtected" value="/2Eod3vwXsVXutuu_HxFDCKcdKqaJWtvx0lPHHzBR9M7ZEFbM_8tvRGTw-mZggDnOwZJVJ7Dj7ZyC3an8KWeLBw"> p_request #pRequest value true <input type="hidden" name="p_request" value="" id="pRequest"> pls/apex/${submit_path} true POST true true false false ${pContext} = true p_context text/plain false ${p_flow_id} = true text/plain p_flow_id false ${p_flow_step_id} = true p_flow_step_id false ${p_instance} = true p_instance false = true p_debug false ${p_request} = true p_request false ${p_reload_on_submit} = true p_reload_on_submit false ${p_page_submission_id} = true p_page_submission_id false {"pageItems":{"itemsToSubmit":[{"n":"P9999_USERNAME","v":"demo"},{"n":"P9999_PASSWORD","v":"demodemo"},{"n":"P9999_REMEMBER","v":"N"}],"protected":"${pPageItemsProtected}","rowVersion":"","formRegionChecksums":[]},"salt":"${pSalt}"} = true p_json false = true false = true redirectURL redirectURL ${redirectURL} true GET true false OKKKK Assertion.response_data false 2 false saveConfig true true true true true true true true false false true true false false false true false false false true 0 true true true true For scripting only "> 1 1 5 true continue 1 false 5000 30000 apex.oracle.com 443 https false false username demo = password demodemo = User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:48.0) Gecko/20100101 Firefox/48.0 Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language fr,en-US;q=0.7,en;q=0.3 Accept-Encoding gzip, deflate pls/apex/r/pyx/test/login true GET true false Sign In Assertion.response_data false 2 submit_path #wwvFlowForm action false <form role="none" action="wwv_flow.accept?p_context=test/login/110363106872668" method="post" name="wwv_flow" id="wwvFlowForm" data-oj-binding-provider="none" novalidate="" autocomplete="off"> p_flow_id #pFlowId value false <input type="hidden" name="p_flow_id" value="97111" id="pFlowId"> p_flow_step_id #pFlowStepId value false <input type="hidden" name="p_flow_step_id" value="9999" id="pFlowStepId"> p_instance #pInstance value false <input type="hidden" name="p_instance" value="110363106872668" id="pInstance"> p_page_submission_id #pPageSubmissionId value false <input type="hidden" name="p_page_submission_id" value="ODEwMzY1MjMyMjc3ODI1MDEwMzQ3OTI5MTExMzc4MTE1Nzg0MDE/hkibEOPM4jDzW8OGgpzbtvf6GI-e4g3R3-z4WKWL-uMdcxHfcDWHU1go05DdMy5ZHpQaMENPAFUoGWFUM9uBRw" id="pPageSubmissionId"> pContext #pContext value false <input type="hidden" value="test/login/110363106872668" id="pContext"> pSalt #pSalt value false <input type="hidden" value="81036523227782501034792911137811578401" id="pSalt"> p_reload_on_submit #pReloadOnSubmit value false <input type="hidden" name="p_reload_on_submit" value="S" id="pReloadOnSubmit"> pPageItemsProtected #pPageItemsProtected value false <input type="hidden" id="pPageItemsProtected" value="/2Eod3vwXsVXutuu_HxFDCKcdKqaJWtvx0lPHHzBR9M7ZEFbM_8tvRGTw-mZggDnOwZJVJ7Dj7ZyC3an8KWeLBw"> p_request #pRequest value true <input type="hidden" name="p_request" value="" id="pRequest"> pls/apex/${submit_path} true POST true true false false ${pContext} = true p_context text/plain false ${p_flow_id} = true text/plain p_flow_id false ${p_flow_step_id} = true p_flow_step_id false ${p_instance} = true p_instance false = true p_debug false ${p_request} = true p_request false ${p_reload_on_submit} = true p_reload_on_submit false ${p_page_submission_id} = true p_page_submission_id false {"pageItems":{"itemsToSubmit":[{"n":"P9999_USERNAME","v":"demo"},{"n":"P9999_PASSWORD","v":"demodemo"},{"n":"P9999_REMEMBER","v":"N"}],"protected":"${pPageItemsProtected}","rowVersion":"","formRegionChecksums":[]},"salt":"${pSalt}"} = true p_json false = true false = true redirectURL redirectURL ${redirectURL} true GET true false OKKKK Assertion.response_data false 2 false saveConfig true true true true true true true true false false true true false false false true false false false true 0 true true true true For scripting only ">

Oracle APEX Jmeter压测-登录

[[Oracle APEX]]

背景

使用

  1. 测试应用
    地址
  2. 用户信息
    账号demo 密码demodemo
  1. 登录页
    ![[../../../../files/截屏2024-09-26 11.04.46.png]]

  2. 首页
    ![[../../../../files/截屏2024-09-26 11.05.37.png]]

1.分析登录

  1. 查看真实的登录

    OsXM1-2024-09-26-13-20-46

  2. 请求的参数 OsXM1-2024-09-26-13-20-57

  3. 复制 下面代码另存为 xxx.jmx, 再通过Jmeter打开该文件

  4. URL 友好模式
    ```xml 1 1 5 true continue 1 false 5000 30000 apex.oracle.com 443 https false false username demo = password demodemo = User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:48.0) Gecko/20100101 Firefox/48.0 Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language fr,en-US;q=0.7,en;q=0.3 Accept-Encoding gzip, deflate pls/apex/r/pyx/test/login true GET true false Sign In Assertion.response_data false 2 submit_path #wwvFlowForm action false <form role="none" action="wwv_flow.accept?p_context=test/login/110363106872668" method="post" name="wwv_flow" id="wwvFlowForm" data-oj-binding-provider="none" novalidate="" autocomplete="off"> p_flow_id #pFlowId value false <input type="hidden" name="p_flow_id" value="97111" id="pFlowId"> p_flow_step_id #pFlowStepId value false <input type="hidden" name="p_flow_step_id" value="9999" id="pFlowStepId"> p_instance #pInstance value false <input type="hidden" name="p_instance" value="110363106872668" id="pInstance"> p_page_submission_id #pPageSubmissionId value false <input type="hidden" name="p_page_submission_id" value="ODEwMzY1MjMyMjc3ODI1MDEwMzQ3OTI5MTExMzc4MTE1Nzg0MDE/hkibEOPM4jDzW8OGgpzbtvf6GI-e4g3R3-z4WKWL-uMdcxHfcDWHU1go05DdMy5ZHpQaMENPAFUoGWFUM9uBRw" id="pPageSubmissionId"> pContext #pContext value false <input type="hidden" value="test/login/110363106872668" id="pContext"> pSalt #pSalt value false <input type="hidden" value="81036523227782501034792911137811578401" id="pSalt"> p_reload_on_submit #pReloadOnSubmit value false <input type="hidden" name="p_reload_on_submit" value="S" id="pReloadOnSubmit"> pPageItemsProtected #pPageItemsProtected value false <input type="hidden" id="pPageItemsProtected" value="/2Eod3vwXsVXutuu_HxFDCKcdKqaJWtvx0lPHHzBR9M7ZEFbM_8tvRGTw-mZggDnOwZJVJ7Dj7ZyC3an8KWeLBw"> p_request #pRequest value true <input type="hidden" name="p_request" value="" id="pRequest"> pls/apex/${submit_path} true POST true true false false ${pContext} = true p_context text/plain false ${p_flow_id} = true text/plain p_flow_id false ${p_flow_step_id} = true p_flow_step_id false ${p_instance} = true p_instance false = true p_debug false ${p_request} = true p_request false ${p_reload_on_submit} = true p_reload_on_submit false ${p_page_submission_id} = true p_page_submission_id false {"pageItems":{"itemsToSubmit":[{"n":"P9999_USERNAME","v":"demo"},{"n":"P9999_PASSWORD","v":"demodemo"},{"n":"P9999_REMEMBER","v":"N"}],"protected":"${pPageItemsProtected}","rowVersion":"","formRegionChecksums":[]},"salt":"${pSalt}"} = true p_json false = true false = true redirectURL redirectURL ${redirectURL} true GET true false OKKKK Assertion.response_data false 2 false saveConfig true true true true true true false false true true false false false true false false false true 0 true true true true For scripting only

```
  1. URL常规模式
    ```xml 1 1 5 true continue 1 false 5000 30000 apex.oracle.com 443 https false false username demo = password demodemo = User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:48.0) Gecko/20100101 Firefox/48.0 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language fr,en-US;q=0.7,en;q=0.3 Accept-Encoding gzip, deflate pls/apex/f true GET true false false 97111:LOGIN = true p Sign In Assertion.response_data false 2 submit_path #wwvFlowForm action false <form role="none" action="wwv_flow.accept?p_context=test/login/110363106872668" method="post" name="wwv_flow" id="wwvFlowForm" data-oj-binding-provider="none" novalidate="" autocomplete="off"> p_flow_id #pFlowId value false <input type="hidden" name="p_flow_id" value="97111" id="pFlowId"> p_flow_step_id #pFlowStepId value false <input type="hidden" name="p_flow_step_id" value="9999" id="pFlowStepId"> p_instance #pInstance value false <input type="hidden" name="p_instance" value="110363106872668" id="pInstance"> p_page_submission_id #pPageSubmissionId value false <input type="hidden" name="p_page_submission_id" value="ODEwMzY1MjMyMjc3ODI1MDEwMzQ3OTI5MTExMzc4MTE1Nzg0MDE/hkibEOPM4jDzW8OGgpzbtvf6GI-e4g3R3-z4WKWL-uMdcxHfcDWHU1go05DdMy5ZHpQaMENPAFUoGWFUM9uBRw" id="pPageSubmissionId"> pContext #pContext value false <input type="hidden" value="test/login/110363106872668" id="pContext"> pSalt #pSalt value false <input type="hidden" value="81036523227782501034792911137811578401" id="pSalt"> p_reload_on_submit #pReloadOnSubmit value false <input type="hidden" name="p_reload_on_submit" value="S" id="pReloadOnSubmit"> pPageItemsProtected #pPageItemsProtected value false <input type="hidden" id="pPageItemsProtected" value="/2Eod3vwXsVXutuu_HxFDCKcdKqaJWtvx0lPHHzBR9M7ZEFbM_8tvRGTw-mZggDnOwZJVJ7Dj7ZyC3an8KWeLBw"> p_request #pRequest value true <input type="hidden" name="p_request" value="" id="pRequest"> pls/apex/${submit_path} true POST true true false false ${pContext} = true p_context text/plain false ${p_flow_id} = true text/plain p_flow_id false ${p_flow_step_id} = true p_flow_step_id false ${p_instance} = true p_instance false = true p_debug false ${p_request} = true p_request false ${p_reload_on_submit} = true p_reload_on_submit false ${p_page_submission_id} = true p_page_submission_id false {"pageItems":{"itemsToSubmit":[{"n":"P9999_USERNAME","v":"demo"},{"n":"P9999_PASSWORD","v":"demodemo"},{"n":"P9999_REMEMBER","v":"N"}],"protected":"${pPageItemsProtected}","rowVersion":"","formRegionChecksums":[]},"salt":"${pSalt}"} = true p_json false = true false = true pls/apex/f true GET true false false 97111:1:${p_instance} = true p OKKKK Assertion.response_data false 2 false saveConfig true true true true true true false false true true false false false true false false false true 0 true true true true For scripting only
```
  1. Oauth2 登录
```xml 
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Oracle Apex Oauth2登录">
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
    </TestPlan>
    <hashTree>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Scenario 1">
        <intProp name="ThreadGroup.num_threads">5</intProp>
        <intProp name="ThreadGroup.ramp_time">3</intProp>
        <longProp name="ThreadGroup.delay">5</longProp>
        <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
          <stringProp name="LoopController.loops">1</stringProp>
          <boolProp name="LoopController.continue_forever">false</boolProp>
        </elementProp>
      </ThreadGroup>
      <hashTree>
        <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="用户定义的变量">
          <collectionProp name="Arguments.arguments">
            <elementProp name="app_id" elementType="Argument">
              <stringProp name="Argument.name">app_id</stringProp>
              <stringProp name="Argument.value">348</stringProp>
              <stringProp name="Argument.metadata">=</stringProp>
            </elementProp>
            <elementProp name="host" elementType="Argument">
              <stringProp name="Argument.name">host</stringProp>
              <stringProp name="Argument.value">wx-dev.xxxxxxxx.com</stringProp>
              <stringProp name="Argument.metadata">=</stringProp>
            </elementProp>
            <elementProp name="path" elementType="Argument">
              <stringProp name="Argument.name">path</stringProp>
              <stringProp name="Argument.value">edex/dev</stringProp>
              <stringProp name="Argument.metadata">=</stringProp>
            </elementProp>
            <elementProp name="assertion" elementType="Argument">
              <stringProp name="Argument.name">assertion</stringProp>
              <stringProp name="Argument.value">xxxxxxxxxx</stringProp>
              <stringProp name="Argument.metadata">=</stringProp>
            </elementProp>
            <elementProp name="auth_host" elementType="Argument">
              <stringProp name="Argument.name">auth_host</stringProp>
              <stringProp name="Argument.value">stsdev.xxxxxxxxxxx.com</stringProp>
              <stringProp name="Argument.metadata">=</stringProp>
            </elementProp>
          </collectionProp>
        </Arguments>
        <hashTree/>
        <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults">
          <intProp name="HTTPSampler.connect_timeout">5000</intProp>
          <intProp name="HTTPSampler.response_timeout">30000</intProp>
          <stringProp name="HTTPSampler.domain">${host}</stringProp>
          <stringProp name="HTTPSampler.port">443</stringProp>
          <stringProp name="HTTPSampler.protocol">https</stringProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量">
            <collectionProp name="Arguments.arguments"/>
          </elementProp>
          <stringProp name="HTTPSampler.implementation"></stringProp>
        </ConfigTestElement>
        <hashTree/>
        <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager">
          <collectionProp name="CookieManager.cookies"/>
          <boolProp name="CookieManager.clearEachIteration">false</boolProp>
          <boolProp name="CookieManager.controlledByThreadGroup">false</boolProp>
        </CookieManager>
        <hashTree/>
        <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV 数据文件设置">
          <stringProp name="delimiter">,</stringProp>
          <stringProp name="fileEncoding">UTF-8</stringProp>
          <stringProp name="filename">/Users/abc/page_id.csv</stringProp>
          <boolProp name="ignoreFirstLine">true</boolProp>
          <boolProp name="quotedData">false</boolProp>
          <boolProp name="recycle">true</boolProp>
          <stringProp name="shareMode">shareMode.all</stringProp>
          <boolProp name="stopThread">false</boolProp>
          <stringProp name="variableNames">page_id</stringProp>
        </CSVDataSet>
        <hashTree/>
        <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager">
          <collectionProp name="HeaderManager.headers">
            <elementProp name="User-Agent" elementType="Header">
              <stringProp name="Header.name">User-Agent</stringProp>
              <stringProp name="Header.value"> Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:48.0) Gecko/20100101 Firefox/48.0</stringProp>
            </elementProp>
            <elementProp name="Accept" elementType="Header">
              <stringProp name="Header.name">Accept</stringProp>
              <stringProp name="Header.value"> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</stringProp>
            </elementProp>
            <elementProp name="Accept-Language" elementType="Header">
              <stringProp name="Header.name">Accept-Language</stringProp>
              <stringProp name="Header.value"> fr,en-US;q=0.7,en;q=0.3</stringProp>
            </elementProp>
            <elementProp name="Accept-Encoding" elementType="Header">
              <stringProp name="Header.name">Accept-Encoding</stringProp>
              <stringProp name="Header.value"> gzip, deflate</stringProp>
            </elementProp>
          </collectionProp>
        </HeaderManager>
        <hashTree/>
        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="获取登录参数">
          <stringProp name="HTTPSampler.path">${path}/f</stringProp>
          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
          <stringProp name="HTTPSampler.method">GET</stringProp>
          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
          <boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量">
            <collectionProp name="Arguments.arguments">
              <elementProp name="p" elementType="HTTPArgument">
                <boolProp name="HTTPArgument.always_encode">false</boolProp>
                <stringProp name="Argument.value">${app_id}</stringProp>
                <stringProp name="Argument.metadata">=</stringProp>
                <boolProp name="HTTPArgument.use_equals">true</boolProp>
                <stringProp name="Argument.name">p</stringProp>
              </elementProp>
            </collectionProp>
          </elementProp>
        </HTTPSamplerProxy>
        <hashTree>
          <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assertion">
            <collectionProp name="Asserion.test_strings">
              <stringProp name="3701464">yao_</stringProp>
            </collectionProp>
            <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
            <boolProp name="Assertion.assume_success">false</boolProp>
            <intProp name="Assertion.test_type">2</intProp>
            <stringProp name="Assertion.custom_message"></stringProp>
          </ResponseAssertion>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="submit_path">
            <stringProp name="HtmlExtractor.refname">submit_path</stringProp>
            <stringProp name="HtmlExtractor.expr">#loginForm</stringProp>
            <stringProp name="HtmlExtractor.attribute">action</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
            <stringProp name="TestPlan.comments">&lt;form role=&quot;none&quot; action=&quot;wwv_flow.accept?p_context=test/login/110363106872668&quot; method=&quot;post&quot; name=&quot;wwv_flow&quot; id=&quot;wwvFlowForm&quot; data-oj-binding-provider=&quot;none&quot; novalidate=&quot;&quot; autocomplete=&quot;off&quot;&gt;</stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="AuthMethod">
            <stringProp name="HtmlExtractor.refname">AuthMethod</stringProp>
            <stringProp name="HtmlExtractor.expr">#optionForms</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
            <stringProp name="TestPlan.comments">&lt;form role=&quot;none&quot; action=&quot;wwv_flow.accept?p_context=test/login/110363106872668&quot; method=&quot;post&quot; name=&quot;wwv_flow&quot; id=&quot;wwvFlowForm&quot; data-oj-binding-provider=&quot;none&quot; novalidate=&quot;&quot; autocomplete=&quot;off&quot;&gt;</stringProp>
          </HtmlExtractor>
          <hashTree/>
        </hashTree>
        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登录">
          <stringProp name="HTTPSampler.domain">${auth_host}</stringProp>
          <stringProp name="HTTPSampler.protocol">https</stringProp>
          <stringProp name="HTTPSampler.path">${submit_path}</stringProp>
          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
          <stringProp name="HTTPSampler.method">POST</stringProp>
          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
          <boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量">
            <collectionProp name="Arguments.arguments">
              <elementProp name="UserName" elementType="HTTPArgument">
                <boolProp name="HTTPArgument.always_encode">false</boolProp>
                <stringProp name="Argument.value">pan</stringProp>
                <stringProp name="Argument.metadata">=</stringProp>
                <boolProp name="HTTPArgument.use_equals">true</boolProp>
                <stringProp name="Argument.name">UserName</stringProp>
              </elementProp>
              <elementProp name="Password" elementType="HTTPArgument">
                <boolProp name="HTTPArgument.always_encode">false</boolProp>
                <stringProp name="Argument.value">m</stringProp>
                <stringProp name="Argument.metadata">=</stringProp>
                <boolProp name="HTTPArgument.use_equals">true</boolProp>
                <stringProp name="Argument.name">Password</stringProp>
              </elementProp>
              <elementProp name="AuthMethod" elementType="HTTPArgument">
                <boolProp name="HTTPArgument.always_encode">false</boolProp>
                <stringProp name="Argument.value">${AuthMethod}</stringProp>
                <stringProp name="Argument.metadata">=</stringProp>
                <boolProp name="HTTPArgument.use_equals">true</boolProp>
                <stringProp name="Argument.name">AuthMethod</stringProp>
              </elementProp>
            </collectionProp>
          </elementProp>
        </HTTPSamplerProxy>
        <hashTree>
          <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言">
            <collectionProp name="Asserion.test_strings">
              <stringProp name="461893074">${assertion}</stringProp>
            </collectionProp>
            <stringProp name="Assertion.custom_message"></stringProp>
            <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
            <boolProp name="Assertion.assume_success">false</boolProp>
            <intProp name="Assertion.test_type">2</intProp>
          </ResponseAssertion>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="p_instance">
            <stringProp name="HtmlExtractor.refname">p_instance</stringProp>
            <stringProp name="HtmlExtractor.expr">#pInstance</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="p_flow_id">
            <stringProp name="HtmlExtractor.refname">p_flow_id</stringProp>
            <stringProp name="HtmlExtractor.expr">#pFlowId</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="p_flow_step_id">
            <stringProp name="HtmlExtractor.refname">p_flow_step_id</stringProp>
            <stringProp name="HtmlExtractor.expr">#pFlowStepId</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="p_page_submission_id">
            <stringProp name="HtmlExtractor.refname">p_page_submission_id</stringProp>
            <stringProp name="HtmlExtractor.expr">#pPageSubmissionId</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="p_request">
            <stringProp name="HtmlExtractor.refname">p_request</stringProp>
            <stringProp name="HtmlExtractor.expr">#pRequest</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">true</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="p_reload_on_submit">
            <stringProp name="HtmlExtractor.refname">p_reload_on_submit</stringProp>
            <stringProp name="HtmlExtractor.expr">#pReloadOnSubmit</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="pSalt">
            <stringProp name="HtmlExtractor.refname">pSalt</stringProp>
            <stringProp name="HtmlExtractor.expr">#pSalt</stringProp>
            <stringProp name="HtmlExtractor.attribute">value</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="next_path">
            <stringProp name="HtmlExtractor.refname">next_path</stringProp>
            <stringProp name="HtmlExtractor.expr">#t_TreeNav_0 &gt; div.a-TreeView-content.is-selected.is-current--top &gt; a</stringProp>
            <stringProp name="HtmlExtractor.attribute">action</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
          <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="submit_path">
            <stringProp name="HtmlExtractor.refname">submit_path</stringProp>
            <stringProp name="HtmlExtractor.expr">#wwvFlowForm</stringProp>
            <stringProp name="HtmlExtractor.attribute">action</stringProp>
            <stringProp name="HtmlExtractor.default"></stringProp>
            <boolProp name="HtmlExtractor.default_empty_value">false</boolProp>
            <stringProp name="HtmlExtractor.match_number"></stringProp>
            <stringProp name="HtmlExtractor.extractor_impl"></stringProp>
          </HtmlExtractor>
          <hashTree/>
        </hashTree>
        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="测试页">
          <stringProp name="HTTPSampler.path">${path}/f</stringProp>
          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
          <stringProp name="HTTPSampler.method">GET</stringProp>
          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
          <boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量">
            <collectionProp name="Arguments.arguments">
              <elementProp name="p" elementType="HTTPArgument">
                <boolProp name="HTTPArgument.always_encode">false</boolProp>
                <stringProp name="Argument.value">${p_flow_id}:${page_id}:${p_instance}</stringProp>
                <stringProp name="Argument.metadata">=</stringProp>
                <boolProp name="HTTPArgument.use_equals">true</boolProp>
                <stringProp name="Argument.name">p</stringProp>
              </elementProp>
            </collectionProp>
          </elementProp>
        </HTTPSamplerProxy>
        <hashTree/>
        <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="聚合报告">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <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>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
      </hashTree>
      <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
        <boolProp name="ResultCollector.error_logging">false</boolProp>
        <objProp>
          <name>saveConfig</name>
          <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>false</dataType>
            <encoding>false</encoding>
            <assertions>true</assertions>
            <subresults>true</subresults>
            <responseData>false</responseData>
            <samplerData>false</samplerData>
            <xml>false</xml>
            <fieldNames>true</fieldNames>
            <responseHeaders>false</responseHeaders>
            <requestHeaders>false</requestHeaders>
            <responseDataOnError>false</responseDataOnError>
            <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
            <assertionsResultsToSave>0</assertionsResultsToSave>
            <bytes>true</bytes>
            <threadCounts>true</threadCounts>
            <idleTime>true</idleTime>
            <connectTime>true</connectTime>
          </value>
        </objProp>
        <stringProp name="TestPlan.comments">For scripting only</stringProp>
        <stringProp name="filename"></stringProp>
      </ResultCollector>
      <hashTree/>
    </hashTree>
  </hashTree>
</jmeterTestPlan>

```
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计