How to work with REST API web services in Loadrunner

1,192 views
Skip to first unread message

laxmi narayana

unread,
Aug 23, 2010, 1:32:22 AM8/23/10
to LoadRunner
Hi Guys,

Does anybody have idea on how to work with REST API in Load runner
using web services???

Thanks,
Laxmi narayana

chaitanya bhatt

unread,
Aug 23, 2010, 2:30:31 AM8/23/10
to lr-loa...@googlegroups.com
More than often, HTTP/HTML protocol is used for recording RESTful web service calls. Alternatively, if you are know the core concepts of web services technology and if you are provided with WSDL files and/or a recordable interface then web services protocol in LR can be used. 
 
        Be it, RESTful or SOAP, the key factor which actually matters to help you decide which protocol to use is the underlying transport layer protocol used by your AUT. If its HTTP then any of the aforementioned protocol in LR should do the job. If its JMS, then only Web Services protocol will work.
 
-Chaitanya M Bhatt

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

laxmi narayana

unread,
Aug 23, 2010, 2:46:47 AM8/23/10
to lr-loa...@googlegroups.com
Hi Chaithanya,

Thx for info.Web services can done by using WSDL file.But for dealing RESTful web services we need WADL file(This consists of GET,POST,PUT,DELETE methods).I have tried to import WADL file,but LR is not supporting WADL file.

               Can you please provide me a sample script if you have already worked on it?.

Thanks,
Laxmi narayana

chaitanya bhatt

unread,
Aug 23, 2010, 2:52:51 AM8/23/10
to lr-loa...@googlegroups.com
May I ask you again; what is the transport protocol used by your application? Is it HTTP or JMS?
 
-Chaitanya M Bhatt

Krishnakanth PPS

unread,
Aug 23, 2010, 3:01:05 AM8/23/10
to lr-loa...@googlegroups.com
In Rest API, transport is always Http. I dont believe there is any JMS. I have not come across any till now. 

there are four pillars as you may call it in ReST web service calls. 

GET, PUT, POST, DELETE.

Please find this interesting blog, which talks about performance testing ReST APIs using loadrunner.


We recently tried scripting, and we were able to do using normal http protocol.

You can use web custom requests as these ReST APIs are URI based. 

We are still on learning phase. 

laxmi narayana

unread,
Aug 23, 2010, 3:01:32 AM8/23/10
to lr-loa...@googlegroups.com
Hi Chaithanya,

I not doing it by recording...I need to do it by importing WADL file.(Same as we do it by using web services protocol by importing WSDL file).

Thanks,
Laxmi narayana Reddy N

Vinayak Singh

unread,
Aug 23, 2010, 5:24:20 AM8/23/10
to lr-loa...@googlegroups.com
Restful API work only on HTTP. JMS can not come into picture.
Normal Http protocol should work in this.
 
Vinayak SIngh

James Pulley

unread,
Aug 23, 2010, 10:49:57 AM8/23/10
to lr-loa...@googlegroups.com

If you cannot import, then record.

 

If you cannot record, then program. 

 

If you cannot program, then borrow a programmer.

 

If you cannot borrow a programmer, then you are out of luck.

 

Read up on web_custom_request() and overall architecture for RESTful web services.    This should provide a path for you in the integration with LoadRunner.    Nothing stops you from writing your own parser to read a WADL and output appropriate web_custom_request() syntax…should that be the route you decide to take.

 

James Pulley, http://www.loadrunnerbythehour.com

Vamsi

unread,
Aug 25, 2010, 3:47:36 AM8/25/10
to LoadRunner
Check this link to work with REST API in Load runner

http://performancetestinginfo.blogspot.com/2010/05/testing-restful-web-services-using.html

~Vamsi Tokala


On Aug 23, 7:49 pm, "James Pulley" <loadrunner-li...@jamespulley.com>
wrote:
> If you cannot import, then record.
>
> If you cannot record, then program.  
>
> If you cannot program, then borrow a programmer.
>
> If you cannot borrow a programmer, then you are out of luck.
>
> Read up on web_custom_request() and overall architecture for RESTful web
> services.    This should provide a path for you in the integration with
> LoadRunner.    Nothing stops you from writing your own parser to read a WADL
> and output appropriate web_custom_request() syntax.should that be the route
> you decide to take.
>
> James Pulley,http://www.loadrunnerbythehour.com
>
> From: lr-loa...@googlegroups.com [mailto:lr-loa...@googlegroups.com]
> On Behalf Of laxmi narayana
> Sent: Monday, August 23, 2010 3:02 AM
> To: lr-loa...@googlegroups.com
> Subject: Re: How to work with REST API web services in Loadrunner
>
> Hi Chaithanya,
>
> I not doing it by recording...I need to do it by importing WADL file.(Same
> as we do it by using web services protocol by importing WSDL file).
>
> Thanks,
> Laxmi narayana Reddy N
>
> On Mon, Aug 23, 2010 at 12:22 PM, chaitanya bhatt
>
> <bhatt.chaita...@gmail.com> wrote:
>
> May I ask you again; what is the transport protocol used by your
> application? Is it HTTP or JMS?
>
> -Chaitanya M Bhatt
>
> On Mon, Aug 23, 2010 at 12:46 AM, laxmi narayana <hai3...@gmail.com> wrote:
>
> Hi Chaithanya,
>
> Thx for info.Web services can done by using WSDL file.But for dealing
> RESTful web services we need WADL file(This consists of GET,POST,PUT,DELETE
> methods).I have tried to import WADL file,but LR is not supporting WADL
> file.
>
>                Can you please provide me a sample script if you have already
> worked on it?.
>
> Thanks,
> Laxmi narayana
>
> On Mon, Aug 23, 2010 at 12:00 PM, chaitanya bhatt
>
> <bhatt.chaita...@gmail.com> wrote:
>
> More than often, HTTP/HTML protocol is used for recording RESTful web
> service calls. Alternatively, if you are know the core concepts of web
> services technology and if you are provided with WSDL files and/or a
> recordable interface then web services protocol in LR can be used.
>
>         Be it, RESTful or SOAP, the key factor which actually matters to
> help you decide which protocol to use is the underlying transport layer
> protocol used by your AUT. If its HTTP then any of the aforementioned
> protocol in LR should do the job. If its JMS, then only Web Services
> protocol will work.
>
> -Chaitanya M Bhatt
>
> http://www.performancecompetence.com<http://www.performancecompetence.com/>
>
> On Sun, Aug 22, 2010 at 11:32 PM, laxmi narayana <hai3...@gmail.com> wrote:
>
> Hi Guys,
>
> Does anybody have idea on how to work with REST API in Load runner
> using web services???
>
> Thanks,
> Laxmi narayana
>
> --
> You received this message because you are subscribed to the Google
> "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> <mailto:LR-LoadRunner%2Bunsu...@googlegroups.com>
> For more options, visit this group athttp://groups.google.com/group/LR-LoadRunner?hl=en
>
> --
>
> You received this message because you are subscribed to the Google
> "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> <mailto:LR-LoadRunner%2Bunsu...@googlegroups.com>
> For more options, visit this group athttp://groups.google.com/group/LR-LoadRunner?hl=en
>
> --
>
> You received this message because you are subscribed to the Google
> "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> <mailto:LR-LoadRunner%2Bunsu...@googlegroups.com>
> For more options, visit this group athttp://groups.google.com/group/LR-LoadRunner?hl=en
>
> --
> You received this message because you are subscribed to the Google
> "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> <mailto:LR-LoadRunner%2Bunsu...@googlegroups.com>
> For more options, visit this group athttp://groups.google.com/group/LR-LoadRunner?hl=en
Reply all
Reply to author
Forward
0 new messages