cancel
Showing results for 
Search instead for 
Did you mean: 

Groovy script to capture the incoming /Source url?

Highlighted
Contributor

Groovy script to capture the incoming /Source url?

Hi Team,

 

I would like to capture the Source url using Groovy Script as shown below, I would be using script dispatcher to send my response, because I need to run on 10 different Environment.

I need to read the Source url and based on that I will be adding the condition to send the appropriate resposne.

 

Source: pegapp0001vj.metest.local - 10.220.104.50
Destination: http://VIRINF0001VT.metest.local:9080/ws/MEIS_XXXXXXX_0soap12http

POST /ws/MEIS_XXXXXXX_0soap12http HTTP/1.1
content-type: application/soap+xml; charset=UTF-8; action="MEB_SM_XXXXXXX"
user-agent: Axis2
host: VIRINF0001VT.metest.local:9090
content-length: 985

 

Thanks

Senthil kumar. M

2 REPLIES 2
Highlighted
Community Manager

Re: Groovy script to capture the incoming /Source url?

Hi @senthkum,

 

Could you please check if the following topics help you?

https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-capture-results-from-quot-script-logs-q...

https://community.smartbear.com/t5/SoapUI-Pro/Exporting-the-Script-Log-to-an-external-file/m-p/13752...

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

Re: Groovy script to capture the incoming /Source url?

Hi Tanya,

 

Thanks for your support. But I need more clarity on this. I would not be testing from SOAPUI, functional tester would be testing from Online Application. I have created the Stub's in ServiceV Pro, based on the Operations called my stub should send the response. So I need to capture the ULR for my testing.

From the given link I do not see anything to capture the URL, it all talks about capturing the SOAPUI properties. Could you please provide me a link which helps me in capturing the URL using Groovy script.

attached file for reference. 

 

Thanks

Senthil kumar. M

  

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3