2013-06-05 30 views
5

Từ phản hồi UI SOAP bên dưới;Cách sử dụng giá trị cụ thể từ phản hồi SOAP UI thành yêu cầu UI SOAP mới

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"   xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<soapenv:Body> 
    <ns0:HelpDesk_Submit_ServiceResponse xmlns:ns0="urn:HPD_IncidentInterface_Create_WS"> 
    <ns0:Incident_Number>**INC000000000274**</ns0:Incident_Number> 
    </ns0:HelpDesk_Submit_ServiceResponse> 
</soapenv:Body> 
</soapenv:Envelope> 

Tôi muốn đưa ra INC000000000274 và sau đó ăn nó vào một nơi cụ thể trong một yêu cầu SOAP UI mới như dưới đây;

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:HPD_IncidentInterface_WS"> 
<soapenv:Header> 
    <urn:AuthenticationInfo> 
    <urn:userName></urn:userName> 
    <urn:password></urn:password> 
    <!--Optional:--> 
    <urn:authentication></urn:authentication> 
    <!--Optional:--> 
    <urn:locale></urn:locale> 
    <!--Optional:--> 
    <urn:timeZone></urn:timeZone> 
    </urn:AuthenticationInfo> 
</soapenv:Header> 
<soapenv:Body> 
    <urn:HelpDesk_Query_Service> 
    <urn:Incident_Number>**INC000000000274**</urn:Incident_Number> 
    </urn:HelpDesk_Query_Service> 

Làm thế nào tôi có thể làm điều đó? Tôi đang sử dụng phiên bản SOAP UI miễn phí. Giá trị tôi muốn đưa ra và sau đó nạp vào sẽ khác nhau mỗi lần từ phản hồi.

Trả lời

11

Bạn cần thiết lập bước Chuyển thuộc tính để lưu Số sự cố vào Thuộc tính, sau đó bạn có thể sử dụng Thuộc tính đó trong yêu cầu của mình.

soapUI này hướng dẫn bao gồm một tình huống giống hệt nhau để mà bạn mô tả:

http://www.soapui.org/Functional-Testing/transferring-property-values.html

+0

Cảm ơn Matt, mà giúp đỡ. – Sohaib

Các vấn đề liên quan