I am doing web service testing by importing the WSDL using UFT API testing. I am placing request content in text mode and running the test and it returned a successful response. How can I read an xml file and send as a request during run time using custom code. I tried the code below but when I ran the test the request being sent was blank and so the response failed.
I'm using the code below,
public void StServiceCallActivity4_OnBelowGenerateRequest(object sender, HP.ST.Ext.WebServicesActivities.ActivityProcessXmlMessageEventArgs args)
{
//TODO: Add your code here...
this.StServiceCallActivity4.InputEnvelope.LoadXml(@"C:\\TestRequest.xml");
}
I appreciate your help.
Thanks Abhi