Comments on: LoadRunner Web Service Tutorial: Learning the Basics https://testguild.com/test-web-service-loadrunner/ Tue, 07 Jun 2022 06:26:13 +0000 hourly 1 By: shalini https://testguild.com/test-web-service-loadrunner/#comment-106721 Mon, 05 May 2014 10:57:07 +0000 https://testguild.com/?p=152#comment-106721 Hi Joe,

I am trying to create one load test for web service. when I am running it, it throws soap fault error. I have added expectedResult= “AnySoap” in the script as read through some blogs. It doesnt work.
Need your help Please.

Regards,
Shalini

]]>
By: javeed https://testguild.com/test-web-service-loadrunner/#comment-77320 Thu, 16 Jan 2014 15:51:29 +0000 https://testguild.com/?p=152#comment-77320 Hi Joe,

I am unable to import the xml/wsdl files in Loadrunner and getting error as “The specified WSDL may be incompatible with the selected toolkit.Try using a different toolkit”. Please give me the solution to fix the above one.

Regards,
Javeed
javeed369@gmail.com

]]>
By: uft https://testguild.com/test-web-service-loadrunner/#comment-63197 Thu, 31 Oct 2013 15:11:29 +0000 https://testguild.com/?p=152#comment-63197 Hello Joe,

How to parametrize the security Username & Passswords fields under HTTP tab for any API Test in UFT? Right now I can only enter a specific field value and I want to iterate it with multiple values.
In ST 9.5 I can use the web_set_user command for same.

Please assist.

Thanks.

]]>
By: Bob https://testguild.com/test-web-service-loadrunner/#comment-53107 Thu, 28 Mar 2013 00:05:47 +0000 https://testguild.com/?p=152#comment-53107 hello Joe,
i am try to set transaction pass and fail base on web service output value. i set web service output value as following

GetResult=result

then i put parameter in output message as following

lr_output_message(lr_eval_string(“{result}”))

here, i am having issue. where i am trying to set transaction pass or fail base on web service output of result.

if (lr_output_message(lr_eval_string(“{result}”)) == “APPROVE”)

lr_end_transaction(“XXXXX”, LR_PASS);

else
lr_end_transaction(“XXXXX”, LR_FAIL);

return 0);

can you tell me where am i making mistake in If statement? thanks

]]>
By: Vishal Saxena https://testguild.com/test-web-service-loadrunner/#comment-39661 Fri, 26 Oct 2012 10:00:35 +0000 https://testguild.com/?p=152#comment-39661 Hello Joe,

First of all, I would llike to share the reason for failure of my custom request as discussed in previous posts.
It was the authorization part, that was being incorrectly sent. Below was the resolution I found & it worked,
– Earlier I was using ,web_add_header(“Authorization”, lr_eval_string(“Basic {p_Username}””:””{p_Password}”));
which was WRONG.
The string {p_Username}””:””{p_Password} was encoded by base64 encoder, therefore passing the encoded string actually worked.
This was checked from SOAP UI HTTP Log.

Now, I am again stuck while making a test-run on Controller. Below are the RTS details-
Use Winlet replay engine instead of Socket engine (script fails using Socket)
Issue- Vusers does not increases beyond INIT state after 2-3 are on run, when I try to execute the same with localhost as agent, It ramps up to 20 vuser. This is a very strange behaviour, But I am actually stuck due to this.
Your advice might prove worth again.

Please help. Thanks in Advance Joe.
Regards,
Vishal Saxena

]]>
By: Vishal Saxena https://testguild.com/test-web-service-loadrunner/#comment-39224 Thu, 11 Oct 2012 13:11:24 +0000 https://testguild.com/?p=152#comment-39224 If it would have been, I might not have asked :). Surely, I am having those permissions, otherwise it would have failed doing manually also. Am I correct Sir? Thanks Anyways. Will update the error cause at your forum, once I resolve it.

]]>
By: Joe Colantonio https://testguild.com/test-web-service-loadrunner/#comment-39219 Thu, 11 Oct 2012 11:08:46 +0000 https://testguild.com/?p=152#comment-39219 In reply to Vishal Saxena.

Vishal Saxena » Dumb question — but are you sure that you have the correct permissions for your username?

]]>
By: Vishal Saxena https://testguild.com/test-web-service-loadrunner/#comment-39218 Thu, 11 Oct 2012 11:02:39 +0000 https://testguild.com/?p=152#comment-39218 In addition to my earlier post , to share with you the error that is being thrown by the application is,
h2> Access is denied. \r\n
Action.c(19): \r\n
Action.c(19): \r\n
Action.c(19): \r\n
Action.c(19): Description: An error occurred while accessing the resources required
Action.c(19): to serve this request. The server may not be configured for access to the requested URL.\r
Action.c(19): \n
Action.c(19): \r\n
Action.c(19): \r\n
Action.c(19): Error message 401.2.: Unauthorized: Logon failed due to server configu
Action.c(19): ration.  Verify that you have permission to view this directory or page based on the
Action.c(19): credentials you supplied and the authentication methods enabled on the Web server.  C
Action.c(19): ontact the Web server’s administrator for additional assistance.\r\n
I even tried adding below statements,
web_add_header(“Host”, “server”);
web_add_header(“Authorization”, “username:password”);

Any help shall be appriciated.

Regards,
Vishal Saxena

]]>
By: Joe Colantonio https://testguild.com/test-web-service-loadrunner/#comment-39186 Tue, 09 Oct 2012 21:04:54 +0000 https://testguild.com/?p=152#comment-39186 In reply to Vishal Saxena.

Vishal Saxena » For 403 errors when using NTLM authentication try verify the following:
1. Make sure that information in web_set_user is correct.

Example:
Assumptions:
Username: usr
Password: my_passwd
Domain: spark
Web server name: lazarus
Port: 80

Given the above, the function should be

web_set_user(“spark\\usr”, “my_passwd”, “lazarus:80”);

Note:
The domain name “spark” followed by a double backslash must be appended before the username.
NTLM Authentication is supported by Sockets Replay Engine (default) from LoadRunner 7.5 and above.
Make sure that there are no special characters in the username/password. Special characters include (:;&*\”/#~,?{}$%|<>+.”@^()[]+-)\\.

2. Try to add the following statement before the web_set_user function. This forces the connection to the server to a particular protocol rather than letting the server suggest one during the connection handshake:

web_set_sockets_option(“SSL_VERSION”, “3”);

3. Replay your script in the extended log with “Advance trace” to verify the information sent to your server. Then, compare the header request of the execution log with the one that was used during recording from the Recording Log (for Single Protocol) or Generation Log (for Multiple Protocol). If there is missing information, add it to the script using a web_add_cookie statement. For example, if you see “SMCHALLENGE=Yes” in the Recording or Generation Log, but not on the execution log, add the following to the script before the web_url request:

web_add_cookie(“SMCHALLENGE=Yes ; path…; domain= …)

]]>
By: Vishal Saxena https://testguild.com/test-web-service-loadrunner/#comment-39166 Tue, 09 Oct 2012 10:00:45 +0000 https://testguild.com/?p=152#comment-39166 Hello Joe,

I have resolved my issue to some extent. The error message I was getting earlier was due to misplaced “Mode=HTML”, “RecContentType=text/xml”.

Now, I am stuck with another error message “Error -26628: HTTP Status-Code=403 (Forbidden)”. I have also tried adding web_set_user(“username”,password”, host:port”); but still the request fails.
The request ask for its authentication when it is hitted on explorer.
Can you please suggest.

Regards,
Vishal Saxena

]]>