SelectSingleNode method

Relevant for: API testing only


Selects a single node from an array containing input/output properties.

Back to top


This method is not part of a UFT One API testing class, but is invoked by the InputEnvelope object.

Back to top


<activity>.InputEnvelope.SelectSingleNode("<fully qualified Xpath>").<supported object/method>

Back to top


Parameter Description
Fully qualified XPath The XPath to the property node in the array. Right-click the property/parameter name in the Input/Checkpoints tab in the Properties pane and select Copy Fully Qualified XPathto retrieve this information.

Back to top

Return Type

No explicit return - enables the test to access the property or parameter.

Back to top


var GetFlights_Input_Departure_City = GetDataSource("WebServiceData!Input").GetValue(this.Loop2.CurrentIterationNumber-1, "DepartureCity").ToString();
StServiceCallActivity4.InputEnvelope.SelectSingleNode("/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='GetFlights'][1]/*[local-name(.)='DepartureCity'][1]").InnerText = GetFlights_Input_Departure_City;

Back to top