Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Testing .NET WebAPI from Visual Studio 2012 iDE and LoadRunner

$
0
0

Hi,

 

I want to Test the .Net Web API from Visual Stusio 2012 (C#)  and LoadRunner.

===========================================================================================

For Example - Using WebServices Protocol I have create the below mentioned webservice and it is working fine also..

 

web_service_call( "StepName=ConversionRate_101",

        "SOAPMethod=CurrencyConvertor|CurrencyConvertorSoap|ConversionRate",
        "ResponseParam=response",
        "Service=CurrencyConvertor",
        "ExpectedResponse=SoapResult",
        "Snapshot=t1435782622.inf",
        BEGIN_ARGUMENTS,
        "FromCurrency=ARS",
        "ToCurrency=DZD",
        END_ARGUMENTS,
        BEGIN_RESULT,
        "ConversionRateResult=Param_ConversionRateResult",
        END_RESULT,
        LAST);

    lr_output_message(lr_eval_string("{Param_ConversionRateResult}"));

====================================================================================

 

Now the Question is --> HOW can I,  Create the same logic in Visual Studio 2012 IDE using C# language and after creating that script, use it in LoadRunner 12.0

 

Thanks,

Sam


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>