0

xml ファイルをセットアップしました。tsung で http 要求を実行しているときに、ssl 証明書の問題があると思います。

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="debug" dumptraffic="true" version="1.0">

  <clients>
    <client host="localhost" maxusers="1" use_controller_vm="true"/>
  </clients>

  <servers>
    <server host="hostname.com" port="443" type="ssl"></server>
  </servers>


  <load>
    <arrivalphase phase="1" duration="1" unit="minute">
      <users arrivalrate="1" unit="second"/>
    </arrivalphase>
  </load>

 <sessions>
  <session name="http_test_1" probability="100" type="ts_http">

      <request subst="true">
        <dyn_variable name="redirect" re="Location: (http://.*)\r"/>
        <http url="/users/sign_in" contents='{&quot;user&quot;: {&quot;email&quot;: &quot;vishal.jagtap+51@zibtek.com&quot;,&quot;password&quot;: &quot;tudip123&quot;}}' content_type='application/json' method="POST" version="1.1">
        </http>
      </request>

    <thinktime random='true' value='27'/>

    <repeat name="redirect_loop" max_repeat="5">
      <request subst="true">
        <dyn_variable name="redirect" re="Location: (http://.*)\r"/>
        <http url="%%_redirect%%" method="GET"></http>
      </request>
      <until var="redirect" eq=""/>
    </repeat>

    <request>
      <http url="/users/edit" method="GET" version="1.1">
        </http>
    </request>

  </session>
 </sessions>

</tsung>

tsung.dump で 302 を取得しました。どうすれば https リクエストをヒットできますか?xml に何らかの方法または構成がありますか?

ここで私を助けてください!私は3日から立ち往生しています:(

4

1 に答える 1