Changeset 1990 for trunk


Ignore:
Timestamp:
07/08/15 09:02:45 (9 years ago)
Author:
pharms
Message:
 
Location:
trunk/autoquest-plugin-http/src/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPLogParser.java

    r1923 r1990  
    195195        Session session = sessionObj.getValue(); 
    196196 
     197        long orderingId = 0; 
    197198        if ((session.getHttpExchange() != null) && (session.getHttpExchange().size() > 0)) { 
    198199            List<Event> sequence = new LinkedList<Event>(); 
    199200            for (HttpExchange exchange : session.getHttpExchange()) { 
     201                 
     202                // check, if the exchange is an old one and does not contain ordering ids yet. 
     203                // If not, then add them. 
     204                if (exchange.getRequest().getOrderingId() == null) { 
     205                    exchange.getRequest().setOrderingId(orderingId++); 
     206                } 
     207                else { 
     208                    orderingId = exchange.getRequest().getOrderingId(); 
     209                } 
     210                 
     211                if (exchange.getResponse().getOrderingId() == null) { 
     212                    exchange.getResponse().setOrderingId(orderingId++); 
     213                } 
     214                else { 
     215                    orderingId = exchange.getResponse().getOrderingId(); 
     216                } 
     217                 
     218                // now handle the exchange 
    200219                sequence.add(new Event(createEvent(exchange), 
    201220                                       new HTTPTarget(exchange.getReceiver()))); 
  • trunk/autoquest-plugin-http/src/main/resources/HttpExchangeStructure.xsd

    r1437 r1990  
    3333    <xsd:attribute name="url" use="required" type="xsd:anyURI" /> 
    3434    <xsd:attribute name="query" type="xsd:string" /> 
     35    <xsd:attribute name="orderingId" type="xsd:long" /> 
    3536  </xsd:complexType> 
    3637 
     
    4142    </xsd:sequence> 
    4243    <xsd:attribute name="status" use="required" type="xsd:integer" /> 
     44    <xsd:attribute name="orderingId" type="xsd:long" /> 
    4345  </xsd:complexType> 
    4446 
Note: See TracChangeset for help on using the changeset viewer.