Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : LoadRunner @ OneStopTesting |
Topic: Access a value from the results of web_service_ca |
|
Author | Message |
jay@jay
Newbie Joined: 30Mar2007 Online Status: Offline Posts: 15 |
Topic: Access a value from the results of web_service_ca Posted: 31Mar2007 at 2:25am |
1. What version of LoadRunner (LR) or PerformanceCenter (PC) are you using? - 8.1
2. What is the protocol you are recording? - Web Services 3. Which LoadRunner/PerformanceCenter feature or service packs are you using? - VuGen 4. What kind of LoadRunner license do you have - Subscription, Perpetual, Virtual User days, or Evaluation? (choose the one that fits your license model) - Perpetual 5. What platform(s) and Operating Systems? Include version and service packs. Win XP SP2 6. If you have filed a service request with Mercury, what have they told you at this point with respect to your issue? Hi, Everybody! I'm testing a web service. Values from the results of the web_service_call function with a Web Services Vuser are saved in a parameter between BEGIN_RESULT and END_RESULT with the format: ResultName=ParamName But I can't use this value forward, because I can't access it. How can I do that ? Thank you! Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
pranati01
Newbie Joined: 31Mar2007 Online Status: Offline Posts: 1 |
Posted: 31Mar2007 at 2:45am |
Hi,
Here is the code: int UID = web_service_call("StepName=getNextID_103", "SOAPMethod=UniqueIDServiceService.UniqueIDService.getNextID", "ResponseParam=response", "WSDL=C:/../UniqueIDService.wsdl", "UseWSDLCopy=1", "Snapshot=t1174497367.inf", BEGIN_ARGUMENTS, END_ARGUMENTS, BEGIN_RESULT, "getNextIDReturn = Param_getNextIDReturn", END_RESULT, LAST); lr_think_time(3); lr_message("The value of getNextId is %d", UID ); return 0; But the result is always 0. And I see the result in the Extended log: vuser_init.c(7): Notify: Saving Parameter "response = <?xml ...> vuser_init.c(7): Notify: Saving Parameter "Param_getNextIDReturn = 123" I just want to retrieve the value of getNextIDReturn (is int) and assign it to a variable that can use afterwards. |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.