Loadrunner for webservice/ oracle

27 views
Skip to first unread message

Mandar GV

unread,
Jun 4, 2008, 3:23:46 AM6/4/08
to LoadRunner
Hi

Has anybody worked on Loadrunner for webservices which perform
database transactions?

Regards,
Mandar

kmb...@gmail.com

unread,
Jun 4, 2008, 4:49:11 PM6/4/08
to LoadRunner
Yes.

Mandar GV

unread,
Jun 5, 2008, 5:19:17 AM6/5/08
to LoadRunner
Hi
I am going to work on a new project.
Here the developers have created a java object which invokes the
webservice and the webservice code has the path where in we upload the
xmls with data.
after running the webservice the data gets loaded to oracle database.

I have some questions here:

1. Which protocol should I use for Java object?
2. Which approach is corect:
a) Using the WSD/Link to webservice in the loadrunner script?
b) Using the java code in the LR script.

3.How do we induce java code in LR script
4.Can we add LR Transactions inside the Java code induced in the LR
script?


Thanks In Advance

Mandar
> > Mandar- Hide quoted text -
>
> - Show quoted text -

vij

unread,
Jun 16, 2008, 7:07:04 AM6/16/08
to LoadRunner
i think you can include Lr script inside java/C code
> > - Show quoted text -- Hide quoted text -

kmb...@gmail.com

unread,
Jun 16, 2008, 8:54:47 PM6/16/08
to LoadRunner
Can you tell me what have you tried ?
How do you do it manually ?
Manually you launch exe or how is it exactly ?
Did you try java record and replay?
Why do you feel you need Java object for tests ?
Why cannot you upload the xml directly to webservice thorugh web
custom request ?

mandar vaze

unread,
Jun 16, 2008, 10:38:43 PM6/16/08
to LR-Loa...@googlegroups.com
I am using webservice protocol, I am importing wsdl through "manage services" option on LR 9.0, then I call the required webservce. I have put the connection paramters in the " "connection settings "tab.when i run the script it is giving following execuation log.
One of the parameters I am passing should be an xml.
 ================

Action.c(63): Web service call "ProcessControlPoint_101" started

Action.c(63): Error: InvokeMethod failed: Request Data parsing error.

Action.c(63): InvokeMethod trace: com.mercury.ws.exception.ProxyInvocationException: Request Data parsing error.

            at com.mercury.ws.invoker.JInvoker.parseRequestData(Unknown Source)

            at com.mercury.ws.invoker.JInvoker.generateArguments(Unknown Source)

            at com.mercury.ws.invoker.JInvoker.invoke(Unknown Source)

Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

            ... 3 more

Action.c(63): Error: InvokeMethod failure: AXIS engine threw an exception.

Action.c(63): Notify: Saving Parameter "response = "

Action.c(63): Error: Web service call "ProcessControlPoint_101" execution failed

Action.c(63): Notify: Transaction "Infogix_try_002" ended with "Fail" status (Duration: 0.9463).

Ending action Action.

Ending iteration 1.

Ending Vuser...

Starting action vuser_end.

Ending action vuser_end.

Vuser Terminated.

============================
 
let me know ur thoughts on this

 
extend_log.rtf

Chandu

unread,
Jun 17, 2008, 12:41:56 AM6/17/08
to LR-Loa...@googlegroups.com
Hello Mandar -
You sound too confused dude, cool. Ask the developer for the WSDL url, use this URL in the recording screen of the LR . The LR will parse this WSDL and generate the script.
 
More info on this is explained very clearly in the VUGen Mannual .
 
Thanks
Chandu

 

kiran badi

unread,
Jun 17, 2008, 12:44:37 AM6/17/08
to LR-Loa...@googlegroups.com
paste what process control point has ?
Seems like you also need help from HP Support.

kiran badi

unread,
Jun 17, 2008, 12:53:07 AM6/17/08
to LR-Loa...@googlegroups.com
Also just saw your logs attached,
 
The string 'Itr' with parameter delimiters is not a parameter.
you have problem with xml generated or parameters given.Triple check the xml's for white spaces or any other junk characters.Also make sure you are not sending junk data to server.
Henceforth please refrain from multiposting.I assume you have posted this in atleast 3 other places.
Reply all
Reply to author
Forward
0 new messages