Jump to content

Web Service Protocol In Loadrunner


shortyshort406

Recommended Posts

Hello Friends,

I need Small help for Scripting in Vuser.

i am using Web service protocol in Loadrunner.
I have parameter output of web service as following.

[b]GetResult=result[/b]

then i put parameter in output message as following

[b]lr_output_message(lr_eval_string("{result}")):[/b]

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

[b]if ([/b][b]lr_output_message(lr_eval_string("{result}")) == "APPROVE")[/b]

[b]lr_end_transaction("XXXXX", LR_PASS);[/b]

[b] else[/b]
[b]lr_end_transaction("XXXXX", LR_FAIL);[/b]

[b]return 0;[/b]

even, output of web service is [b]APPROVE[/b] still i get transaction fail on replay screen. so can anyone tell me where am i making error. i really appreciate . thanks

my e-mail [email protected]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...