Get All Transactions

This API returns all existing transaction Entities for the specific test.

Request

JSON

URL http://ip:port/shunra/api/transaction/{testId}
HTTP Method GET
HTTP Headers

Content-Type: application/json

Accept: application/json

Authorization: Basic YW5vbnltb3VzOg==

Body None

XML

URL http://ip:port/shunra/api/transaction/{testId}
HTTP Method GET
HTTP Headers

Content-Type: application/xml

Accept: application/xml

Authorization: Basic YW5vbnltb3VzOg==

Body None

Response

JSON

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: application/json; charset=UTF-8

Accept-Ranges: bytes

HTTP Body
{
    "transactions": [{
        "id": "88afd157-7e20-4adb-b7e9-3a6222ff8d35",
        "name": "Transaction #1",
        "description": "",
        "orderNum": 0,
        "averageUserTime": 4599.0,
        "averageNetworkTime": 0.0,
        "runs": {
            "4362578f-8937-4c28-a25e-4a433c0b2a63": {
                "id": "4362578f-8937-4c28-a25e-4a433c0b2a63",
                "startTime": 1407419154718,
                "endTime": 1407419159189,
                "userTime": 4471.0,
                "networkTime": 4471.0,
                "status": "Stop",
                "averageBandwithClientUp": 0.27,
                "averageBandwithClientDown": 1.58,
                "averageBandwithServerDown": 0.0,
                "averageBandwithServerUp": 0.0,
                "totalThroughputClientUp": 263.0,
                "totalThroughputClientDown": 580.0,
                "totalThroughputServerUp": 580.0,
                "totalThroughputServerDown": 263.0,
                "aggregateScoreMobile": 100.0,
                "aggregateScoreDesktop": 100.0,
                "numberOfErrorsHttp": 0,
                "applicationTurnsHttp": 0,
                "protocolOverheadHttp": 0.0,
                "passed": true,
                "networkScenario": "Network scenario 1"
            },{…}
       }
    }, {
        "id": "e5959c29-3578-48e5-9480-aacbd1285401",
        "name": "Transaction #2",
        "description": "",
        "orderNum": 1,
        "averageUserTime": 3256.0,
        "averageNetworkTime": 0.0,
        "runs": {}
            }
        }
    }]
}

XML

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: application/xml; charset=UTF-8

Accept-Ranges: bytes

HTTP Body
<existingTransactions>
   <transactions>
      <name>Transaction #1</name>
      <description />
      <orderNum>0</orderNum>
      <averageUserTime>4599.0</averageUserTime>
      <averageNetworkTime>0.0</averageNetworkTime>
      <runs>
         <entry>
            <key>4362578f-8937-4c28-a25e-4a433c0b2a63</key>
            <value>
               <startTime>1407419154718</startTime>
               <endTime>1407419159189</endTime>
               <userTime>4471.0</userTime>
               <networkTime>4471.0</networkTime>
               <status>Stop</status>
               <averageBandwithClientUp>0.27</averageBandwithClientUp>
               <averageBandwithClientDown>1.58</averageBandwithClientDown>
               <averageBandwithServerDown>0.0</averageBandwithServerDown>
               <averageBandwithServerUp>0.0</averageBandwithServerUp>
               <totalThroughputClientUp>263.0</totalThroughputClientUp>
               <totalThroughputClientDown>580.0</totalThroughputClientDown>
               <totalThroughputServerUp>580.0</totalThroughputServerUp>
               <totalThroughputServerDown>263.0</totalThroughputServerDown>
               <aggregateScoreMobile>100.0</aggregateScoreMobile>
               <aggregateScoreDesktop>100.0</aggregateScoreDesktop>
               <numberOfErrorsHttp>0</numberOfErrorsHttp>
               <applicationTurnsHttp>0</applicationTurnsHttp>
               <protocolOverheadHttp>0.0</protocolOverheadHttp>
               <passed>true</passed>
               <networkScenario>Network scenario 1</networkScenario>
            </value>
         </entry>
         <entry>
            <key>0e25c795-4353-445f-bd9d-56552f96ba7c</key>
            <value>
               …….
            </value>
         </entry>
      </runs>
   </transactions>
   <transactions>
      <name>Transaction #2</name>
      <description />
      <orderNum>1</orderNum>
      <averageUserTime>3256.0</averageUserTime>
      <averageNetworkTime>0.0</averageNetworkTime>
      <runs>
         <entry>
            <key>2e5cef40-5347-4cdc-8063-ddaf9ee76a35</key>
            <value>
               …….
            </value>
         </entry>
      </runs>
   </transactions>
</existingTransactions>