Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
270 views

LoadRunner - VuGen - Script for WCF services with net.tcp protocol

I need to run load tests on WCF services. The documentation I find refers to web services of the WSDL type, however, in my environment only URLs of the type are generated:

http: // <server>: <port> /Client/Client.svc

net.tcp://<server>:<port>/Client/Client.svc

What protocol should be used?
Is there any document that refers to this type of tests?
How can I record a script that calls this service?

Thank you!

0 Likes
5 Replies
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: LoadRunner - VuGen - Script for WCF services with net.tcp protocol

Hi Carlos,

Let me try to answer the questions.

What protocol should be used?

Web Services protocol.

Is there any document that refers to this type of tests?

You may click on the Help->Vugen Help Center and search "web services" for more information.

Basically, you may need to know about SOATool->Manage services & Add Service Call.


How can I record a script that calls this service?

After Imported the wsdl, click the record button and go next with the guide panels.

Additionally, I see that you're talking about "net.tcp". The web service protocol does not support TCP transport directly.

If your server does not support "Http or Https", you may have to go to this panel to set the scenarios.

 

tcppanel.jpg

 

Finally, if you have some problems with import wsdl, would you please upload your wsdl file or the URL for us?

Hope my asnsers help.

Thanks,

Elvis

Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: LoadRunner - VuGen - Script for WCF services with net.tcp protocol

Thank you very much Elvis for your comments and help.

I tried to load the WSDL but it failed. I have attached the WSDL file.

 I attached a file with screenshots for better explanation.

I really appreciate any help.

Regards

Carlos Acosta

0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: LoadRunner - VuGen - Script for WCF services with net.tcp protocol

Oh..That's quite complicated case.

As I could not access the other xsd here: <wsdl:import namespace="http://produbanco.bll.contract" location="http://uiotestv-swcf40.corptest.gfptest.com:8101/Canales1/CanalesSrv1.svc?wsdl=wsdl0"/>

So in my Environment, I could not import the WSDL correctly.

Would please attached the script which you have already tried to import that WSDL.

(In that script folder, after you've tried to import a wsdl, you may see one folder named "WSDL", Vugen would download the wsdl & related xsd files to this folder and generate stub files. May I have a check on these files?)

 

 

For another question:

nettcpBinding is not directly supported. Both WCF & .Net toolkit would filter non-http ports. 

One way you may have a try is to modify that port in WSDL to "http" & set the "scenarios" (WCF-custombinding) to make it send by TCP.(You may find that options in a picture in the previous reply.)

But it is very hard to do make a correct script. That is really a limitation in currently web-service protocol, TCP ports are not well handled.

 

Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: LoadRunner - VuGen - Script for WCF services with net.tcp protocol

Hello,

Thanks for your answer and sorry for the delay.

I have attached a screenshot with the contents of th WSDL folder.

I appreciate any comments and help.

Thank you!

Carlos Acosta

 
 

 

0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: LoadRunner - VuGen - Script for WCF services with net.tcp protocol

Hi Carlos,

Sorry for the delay. I'm busy with the projects.

I've checked the latest attachment. It seems that the import failed and the downloaded wsdl was not saved properly.

As you've attached main wsdl in the previous message. 

Could you please also download & attach this file which may be named as wsdl0

from "http://uiotestv-swcf40.corptest.gfptest.com:8101/Canales1/CanalesSrv1.svc?wsdl=wsdl0"

 

Thanks,

Elvis

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.